]> git.ipfire.org Git - thirdparty/gcc.git/blob - libjava/configure
install.texi (--enable-reduced-reflection): Document new option.
[thirdparty/gcc.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274 $*
275 _LT_EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='libjava'
418 PACKAGE_TARNAME='libjava'
419 PACKAGE_VERSION='version-unused'
420 PACKAGE_STRING='libjava version-unused'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="java/lang/System.java"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
462 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL SED EGREP FGREP GREP DUMPBIN ac_ct_DUMPBIN NM lt_ECHO CPP CPPFLAGS CXXCPP GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME SUPPRESS_LIBGCJ_BC_TRUE SUPPRESS_LIBGCJ_BC_FALSE 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`
465
466 # Initialize some variables set by options.
467 ac_init_help=
468 ac_init_version=false
469 # The variables have the same names as the options, with
470 # dashes changed to underlines.
471 cache_file=/dev/null
472 exec_prefix=NONE
473 no_create=
474 no_recursion=
475 prefix=NONE
476 program_prefix=NONE
477 program_suffix=NONE
478 program_transform_name=s,x,x,
479 silent=
480 site=
481 srcdir=
482 verbose=
483 x_includes=NONE
484 x_libraries=NONE
485
486 # Installation directory options.
487 # These are left unexpanded so users can "make install exec_prefix=/foo"
488 # and all the variables that are supposed to be based on exec_prefix
489 # by default will actually change.
490 # Use braces instead of parens because sh, perl, etc. also accept them.
491 bindir='${exec_prefix}/bin'
492 sbindir='${exec_prefix}/sbin'
493 libexecdir='${exec_prefix}/libexec'
494 datadir='${prefix}/share'
495 sysconfdir='${prefix}/etc'
496 sharedstatedir='${prefix}/com'
497 localstatedir='${prefix}/var'
498 libdir='${exec_prefix}/lib'
499 includedir='${prefix}/include'
500 oldincludedir='/usr/include'
501 infodir='${prefix}/info'
502 mandir='${prefix}/man'
503
504 ac_prev=
505 for ac_option
506 do
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
510 ac_prev=
511 continue
512 fi
513
514 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515
516 # Accept the important Cygnus configure options, so we can diagnose typos.
517
518 case $ac_option in
519
520 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 ac_prev=bindir ;;
522 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523 bindir=$ac_optarg ;;
524
525 -build | --build | --buil | --bui | --bu)
526 ac_prev=build_alias ;;
527 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
528 build_alias=$ac_optarg ;;
529
530 -cache-file | --cache-file | --cache-fil | --cache-fi \
531 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
532 ac_prev=cache_file ;;
533 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
534 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
535 cache_file=$ac_optarg ;;
536
537 --config-cache | -C)
538 cache_file=config.cache ;;
539
540 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 ac_prev=datadir ;;
542 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 | --da=*)
544 datadir=$ac_optarg ;;
545
546 -disable-* | --disable-*)
547 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
548 # Reject names that are not valid shell variable names.
549 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551 { (exit 1); exit 1; }; }
552 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553 eval "enable_$ac_feature=no" ;;
554
555 -enable-* | --enable-*)
556 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 case $ac_option in
563 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 *) ac_optarg=yes ;;
565 esac
566 eval "enable_$ac_feature='$ac_optarg'" ;;
567
568 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570 | --exec | --exe | --ex)
571 ac_prev=exec_prefix ;;
572 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574 | --exec=* | --exe=* | --ex=*)
575 exec_prefix=$ac_optarg ;;
576
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
579 with_gas=yes ;;
580
581 -help | --help | --hel | --he | -h)
582 ac_init_help=long ;;
583 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
584 ac_init_help=recursive ;;
585 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
586 ac_init_help=short ;;
587
588 -host | --host | --hos | --ho)
589 ac_prev=host_alias ;;
590 -host=* | --host=* | --hos=* | --ho=*)
591 host_alias=$ac_optarg ;;
592
593 -includedir | --includedir | --includedi | --included | --include \
594 | --includ | --inclu | --incl | --inc)
595 ac_prev=includedir ;;
596 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
597 | --includ=* | --inclu=* | --incl=* | --inc=*)
598 includedir=$ac_optarg ;;
599
600 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 ac_prev=infodir ;;
602 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
603 infodir=$ac_optarg ;;
604
605 -libdir | --libdir | --libdi | --libd)
606 ac_prev=libdir ;;
607 -libdir=* | --libdir=* | --libdi=* | --libd=*)
608 libdir=$ac_optarg ;;
609
610 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
611 | --libexe | --libex | --libe)
612 ac_prev=libexecdir ;;
613 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
614 | --libexe=* | --libex=* | --libe=*)
615 libexecdir=$ac_optarg ;;
616
617 -localstatedir | --localstatedir | --localstatedi | --localstated \
618 | --localstate | --localstat | --localsta | --localst \
619 | --locals | --local | --loca | --loc | --lo)
620 ac_prev=localstatedir ;;
621 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
622 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
623 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
624 localstatedir=$ac_optarg ;;
625
626 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 ac_prev=mandir ;;
628 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629 mandir=$ac_optarg ;;
630
631 -nfp | --nfp | --nf)
632 # Obsolete; use --without-fp.
633 with_fp=no ;;
634
635 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
636 | --no-cr | --no-c | -n)
637 no_create=yes ;;
638
639 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
640 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641 no_recursion=yes ;;
642
643 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
644 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
645 | --oldin | --oldi | --old | --ol | --o)
646 ac_prev=oldincludedir ;;
647 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
648 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
649 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
650 oldincludedir=$ac_optarg ;;
651
652 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 ac_prev=prefix ;;
654 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655 prefix=$ac_optarg ;;
656
657 -program-prefix | --program-prefix | --program-prefi | --program-pref \
658 | --program-pre | --program-pr | --program-p)
659 ac_prev=program_prefix ;;
660 -program-prefix=* | --program-prefix=* | --program-prefi=* \
661 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
662 program_prefix=$ac_optarg ;;
663
664 -program-suffix | --program-suffix | --program-suffi | --program-suff \
665 | --program-suf | --program-su | --program-s)
666 ac_prev=program_suffix ;;
667 -program-suffix=* | --program-suffix=* | --program-suffi=* \
668 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
669 program_suffix=$ac_optarg ;;
670
671 -program-transform-name | --program-transform-name \
672 | --program-transform-nam | --program-transform-na \
673 | --program-transform-n | --program-transform- \
674 | --program-transform | --program-transfor \
675 | --program-transfo | --program-transf \
676 | --program-trans | --program-tran \
677 | --progr-tra | --program-tr | --program-t)
678 ac_prev=program_transform_name ;;
679 -program-transform-name=* | --program-transform-name=* \
680 | --program-transform-nam=* | --program-transform-na=* \
681 | --program-transform-n=* | --program-transform-=* \
682 | --program-transform=* | --program-transfor=* \
683 | --program-transfo=* | --program-transf=* \
684 | --program-trans=* | --program-tran=* \
685 | --progr-tra=* | --program-tr=* | --program-t=*)
686 program_transform_name=$ac_optarg ;;
687
688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
689 | -silent | --silent | --silen | --sile | --sil)
690 silent=yes ;;
691
692 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 ac_prev=sbindir ;;
694 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 | --sbi=* | --sb=*)
696 sbindir=$ac_optarg ;;
697
698 -sharedstatedir | --sharedstatedir | --sharedstatedi \
699 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
700 | --sharedst | --shareds | --shared | --share | --shar \
701 | --sha | --sh)
702 ac_prev=sharedstatedir ;;
703 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
704 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
705 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 | --sha=* | --sh=*)
707 sharedstatedir=$ac_optarg ;;
708
709 -site | --site | --sit)
710 ac_prev=site ;;
711 -site=* | --site=* | --sit=*)
712 site=$ac_optarg ;;
713
714 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 ac_prev=srcdir ;;
716 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717 srcdir=$ac_optarg ;;
718
719 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
720 | --syscon | --sysco | --sysc | --sys | --sy)
721 ac_prev=sysconfdir ;;
722 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
723 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
724 sysconfdir=$ac_optarg ;;
725
726 -target | --target | --targe | --targ | --tar | --ta | --t)
727 ac_prev=target_alias ;;
728 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
729 target_alias=$ac_optarg ;;
730
731 -v | -verbose | --verbose | --verbos | --verbo | --verb)
732 verbose=yes ;;
733
734 -version | --version | --versio | --versi | --vers | -V)
735 ac_init_version=: ;;
736
737 -with-* | --with-*)
738 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739 # Reject names that are not valid shell variable names.
740 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
741 { echo "$as_me: error: invalid package name: $ac_package" >&2
742 { (exit 1); exit 1; }; }
743 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 case $ac_option in
745 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746 *) ac_optarg=yes ;;
747 esac
748 eval "with_$ac_package='$ac_optarg'" ;;
749
750 -without-* | --without-*)
751 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package | sed 's/-/_/g'`
757 eval "with_$ac_package=no" ;;
758
759 --x)
760 # Obsolete; use --with-x.
761 with_x=yes ;;
762
763 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
764 | --x-incl | --x-inc | --x-in | --x-i)
765 ac_prev=x_includes ;;
766 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
767 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
768 x_includes=$ac_optarg ;;
769
770 -x-libraries | --x-libraries | --x-librarie | --x-librari \
771 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
772 ac_prev=x_libraries ;;
773 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
774 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
775 x_libraries=$ac_optarg ;;
776
777 -*) { echo "$as_me: error: unrecognized option: $ac_option
778 Try \`$0 --help' for more information." >&2
779 { (exit 1); exit 1; }; }
780 ;;
781
782 *=*)
783 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
784 # Reject names that are not valid shell variable names.
785 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
786 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
787 { (exit 1); exit 1; }; }
788 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
789 eval "$ac_envvar='$ac_optarg'"
790 export $ac_envvar ;;
791
792 *)
793 # FIXME: should be removed in autoconf 3.0.
794 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
795 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
797 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 ;;
799
800 esac
801 done
802
803 if test -n "$ac_prev"; then
804 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
805 { echo "$as_me: error: missing argument to $ac_option" >&2
806 { (exit 1); exit 1; }; }
807 fi
808
809 # Be sure to have absolute paths.
810 for ac_var in exec_prefix prefix
811 do
812 eval ac_val=$`echo $ac_var`
813 case $ac_val in
814 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
815 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816 { (exit 1); exit 1; }; };;
817 esac
818 done
819
820 # Be sure to have absolute paths.
821 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
822 localstatedir libdir includedir oldincludedir infodir mandir
823 do
824 eval ac_val=$`echo $ac_var`
825 case $ac_val in
826 [\\/$]* | ?:[\\/]* ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
829 esac
830 done
831
832 # There might be people who depend on the old broken behavior: `$host'
833 # used to hold the argument of --host etc.
834 # FIXME: To remove some day.
835 build=$build_alias
836 host=$host_alias
837 target=$target_alias
838
839 # FIXME: To remove some day.
840 if test "x$host_alias" != x; then
841 if test "x$build_alias" = x; then
842 cross_compiling=maybe
843 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
844 If a cross compiler is detected then cross compile mode will be used." >&2
845 elif test "x$build_alias" != "x$host_alias"; then
846 cross_compiling=yes
847 fi
848 fi
849
850 ac_tool_prefix=
851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852
853 test "$silent" = yes && exec 6>/dev/null
854
855
856 # Find the source files, if location was not specified.
857 if test -z "$srcdir"; then
858 ac_srcdir_defaulted=yes
859 # Try the directory containing this script, then its parent.
860 ac_confdir=`(dirname "$0") 2>/dev/null ||
861 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862 X"$0" : 'X\(//\)[^/]' \| \
863 X"$0" : 'X\(//\)$' \| \
864 X"$0" : 'X\(/\)' \| \
865 . : '\(.\)' 2>/dev/null ||
866 echo X"$0" |
867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869 /^X\(\/\/\)$/{ s//\1/; q; }
870 /^X\(\/\).*/{ s//\1/; q; }
871 s/.*/./; q'`
872 srcdir=$ac_confdir
873 if test ! -r $srcdir/$ac_unique_file; then
874 srcdir=..
875 fi
876 else
877 ac_srcdir_defaulted=no
878 fi
879 if test ! -r $srcdir/$ac_unique_file; then
880 if test "$ac_srcdir_defaulted" = yes; then
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
882 { (exit 1); exit 1; }; }
883 else
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
885 { (exit 1); exit 1; }; }
886 fi
887 fi
888 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
889 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
890 { (exit 1); exit 1; }; }
891 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
892 ac_env_build_alias_set=${build_alias+set}
893 ac_env_build_alias_value=$build_alias
894 ac_cv_env_build_alias_set=${build_alias+set}
895 ac_cv_env_build_alias_value=$build_alias
896 ac_env_host_alias_set=${host_alias+set}
897 ac_env_host_alias_value=$host_alias
898 ac_cv_env_host_alias_set=${host_alias+set}
899 ac_cv_env_host_alias_value=$host_alias
900 ac_env_target_alias_set=${target_alias+set}
901 ac_env_target_alias_value=$target_alias
902 ac_cv_env_target_alias_set=${target_alias+set}
903 ac_cv_env_target_alias_value=$target_alias
904 ac_env_CPP_set=${CPP+set}
905 ac_env_CPP_value=$CPP
906 ac_cv_env_CPP_set=${CPP+set}
907 ac_cv_env_CPP_value=$CPP
908 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_env_CPPFLAGS_value=$CPPFLAGS
910 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 ac_env_CXX_set=${CXX+set}
913 ac_env_CXX_value=$CXX
914 ac_cv_env_CXX_set=${CXX+set}
915 ac_cv_env_CXX_value=$CXX
916 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_env_CXXFLAGS_value=$CXXFLAGS
918 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
919 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CXXCPP_set=${CXXCPP+set}
925 ac_env_CXXCPP_value=$CXXCPP
926 ac_cv_env_CXXCPP_set=${CXXCPP+set}
927 ac_cv_env_CXXCPP_value=$CXXCPP
928
929 #
930 # Report the --help message.
931 #
932 if test "$ac_init_help" = "long"; then
933 # Omit some internal or obsolete options to make the list less imposing.
934 # This message is too long to be a string in the A/UX 3.1 sh.
935 cat <<_ACEOF
936 \`configure' configures libjava version-unused to adapt to many kinds of systems.
937
938 Usage: $0 [OPTION]... [VAR=VALUE]...
939
940 To assign environment variables (e.g., CC, CFLAGS...), specify them as
941 VAR=VALUE. See below for descriptions of some of the useful variables.
942
943 Defaults for the options are specified in brackets.
944
945 Configuration:
946 -h, --help display this help and exit
947 --help=short display options specific to this package
948 --help=recursive display the short help of all the included packages
949 -V, --version display version information and exit
950 -q, --quiet, --silent do not print \`checking...' messages
951 --cache-file=FILE cache test results in FILE [disabled]
952 -C, --config-cache alias for \`--cache-file=config.cache'
953 -n, --no-create do not create output files
954 --srcdir=DIR find the sources in DIR [configure dir or \`..']
955
956 _ACEOF
957
958 cat <<_ACEOF
959 Installation directories:
960 --prefix=PREFIX install architecture-independent files in PREFIX
961 [$ac_default_prefix]
962 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
963 [PREFIX]
964
965 By default, \`make install' will install all the files in
966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
968 for instance \`--prefix=\$HOME'.
969
970 For better control, use the options below.
971
972 Fine tuning of the installation directories:
973 --bindir=DIR user executables [EPREFIX/bin]
974 --sbindir=DIR system admin executables [EPREFIX/sbin]
975 --libexecdir=DIR program executables [EPREFIX/libexec]
976 --datadir=DIR read-only architecture-independent data [PREFIX/share]
977 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
978 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
979 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
980 --libdir=DIR object code libraries [EPREFIX/lib]
981 --includedir=DIR C header files [PREFIX/include]
982 --oldincludedir=DIR C header files for non-gcc [/usr/include]
983 --infodir=DIR info documentation [PREFIX/info]
984 --mandir=DIR man documentation [PREFIX/man]
985 _ACEOF
986
987 cat <<\_ACEOF
988
989 Program names:
990 --program-prefix=PREFIX prepend PREFIX to installed program names
991 --program-suffix=SUFFIX append SUFFIX to installed program names
992 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
993
994 X features:
995 --x-includes=DIR X include files are in DIR
996 --x-libraries=DIR X library files are in DIR
997
998 System types:
999 --build=BUILD configure for building on BUILD [guessed]
1000 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1001 --target=TARGET configure for building compilers for TARGET [HOST]
1002 _ACEOF
1003 fi
1004
1005 if test -n "$ac_init_help"; then
1006 case $ac_init_help in
1007 short | recursive ) echo "Configuration of libjava version-unused:";;
1008 esac
1009 cat <<\_ACEOF
1010
1011 Optional Features:
1012 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1013 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1014 --enable-multilib build many library versions (default)
1015 --enable-version-specific-runtime-libs
1016 specify that runtime libraries should be installed
1017 in a compiler-specific directory
1018 --enable-plugin build gcjwebplugin web browser plugin
1019 --enable-gconf-peer compile GConf native peers for util.preferences
1020 --enable-java-maintainer-mode
1021 allow rebuilding of .class and .h files
1022 --disable-dependency-tracking speeds up one-time build
1023 --enable-dependency-tracking do not reject slow dependency extractors
1024 --enable-maintainer-mode enable make rules and dependencies not useful
1025 (and sometimes confusing) to the casual installer
1026 --enable-libgcj-debug enable runtime debugging code
1027 --enable-java-awt list of AWT peer implementations to be built
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --disable-getenv-properties
1036 don't set system properties from GCJ_PROPERTIES
1037 --enable-hash-synchronization
1038 use global hash table for monitor locks
1039 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1040 libgcj
1041 --enable-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]
1057
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)
1096
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
1108
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.
1111
1112 _ACEOF
1113 fi
1114
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=.
1121
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=
1128 fi
1129
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
1145
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";;
1150 *)
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}.;;
1159 *)
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;;
1168 *)
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;;
1177 *)
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
1184
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
1199 fi
1200 cd $ac_popdir
1201 done
1202 fi
1203
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
1209
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
1215 fi
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.
1220
1221 It was created by libjava $as_me version-unused, which was
1222 generated by GNU Autoconf 2.59. Invocation command line was
1223
1224 $ $0 $@
1225
1226 _ACEOF
1227 {
1228 cat <<_ASUNAME
1229 ## --------- ##
1230 ## Platform. ##
1231 ## --------- ##
1232
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`
1238
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`
1241
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`
1249
1250 _ASUNAME
1251
1252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253 for as_dir in $PATH
1254 do
1255 IFS=$as_save_IFS
1256 test -z "$as_dir" && as_dir=.
1257 echo "PATH: $as_dir"
1258 done
1259
1260 } >&5
1261
1262 cat >&5 <<_ACEOF
1263
1264
1265 ## ----------- ##
1266 ## Core tests. ##
1267 ## ----------- ##
1268
1269 _ACEOF
1270
1271
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
1283 do
1284 for ac_arg
1285 do
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'" ;;
1296 2)
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
1309 ;;
1310 -* ) ac_must_keep_next=true ;;
1311 esac
1312 fi
1313 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314 # Get rid of the leading space.
1315 ac_sep=" "
1316 ;;
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; }
1322
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.
1330 {
1331 echo
1332
1333 cat <<\_ASBOX
1334 ## ---------------- ##
1335 ## Cache variables. ##
1336 ## ---------------- ##
1337 _ASBOX
1338 echo
1339 # The following way of writing the cache mishandles newlines in values,
1340 {
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"
1347 ;;
1348 *)
1349 sed -n \
1350 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1351 ;;
1352 esac;
1353 }
1354 echo
1355
1356 cat <<\_ASBOX
1357 ## ----------------- ##
1358 ## Output variables. ##
1359 ## ----------------- ##
1360 _ASBOX
1361 echo
1362 for ac_var in $ac_subst_vars
1363 do
1364 eval ac_val=$`echo $ac_var`
1365 echo "$ac_var='"'"'$ac_val'"'"'"
1366 done | sort
1367 echo
1368
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
1377 do
1378 eval ac_val=$`echo $ac_var`
1379 echo "$ac_var='"'"'$ac_val'"'"'"
1380 done | sort
1381 echo
1382 fi
1383
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
1393 fi
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
1401 ' 0
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
1406
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
1411
1412 # Predefined preprocessor variables.
1413
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_NAME "$PACKAGE_NAME"
1416 _ACEOF
1417
1418
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421 _ACEOF
1422
1423
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1426 _ACEOF
1427
1428
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_STRING "$PACKAGE_STRING"
1431 _ACEOF
1432
1433
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1436 _ACEOF
1437
1438
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"
1446 fi
1447 fi
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"
1454 fi
1455 done
1456
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
1467 fi
1468 else
1469 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1470 echo "$as_me: creating cache $cache_file" >&6;}
1471 >$cache_file
1472 fi
1473
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 ,);;
1493 *)
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
1506 fi
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
1524 fi
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; }; }
1534 fi
1535
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
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
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
1588 fi
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; }; }
1594 fi
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.
1598
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; }; }
1604
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; }; }
1621
1622 fi
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/'`
1629
1630
1631 case ${build_alias} in
1632 "") build_noncanonical=${build} ;;
1633 *) build_noncanonical=${build_alias} ;;
1634 esac
1635
1636 case ${host_alias} in
1637 "") host_noncanonical=${build_noncanonical} ;;
1638 *) host_noncanonical=${host_alias} ;;
1639 esac
1640
1641 case ${target_alias} in
1642 "") target_noncanonical=${host_noncanonical} ;;
1643 *) target_noncanonical=${target_alias} ;;
1644 esac
1645
1646
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.
1655
1656 # Prefix 'build-' so this never conflicts with target_subdir.
1657 build_subdir="build-${build_noncanonical}"
1658
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"
1665 fi;
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=.
1672 fi
1673 # No prefix.
1674 target_subdir=${target_noncanonical}
1675
1676
1677 # We use these options to decide which functions to include.
1678
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"
1682
1683 fi;
1684
1685 # We may get other options which we don't document:
1686 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1687
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
1702 fi;
1703
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.
1707
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.."
1713 fi
1714 else
1715 multi_basedir="$srcdir/.."
1716 fi
1717
1718
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
1724 fi
1725
1726 ac_config_commands="$ac_config_commands default-1"
1727
1728
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; }; }
1741
1742 fi
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/'`
1749
1750
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; }; }
1763
1764 fi
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/'`
1771
1772
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
1783
1784 case ${target_alias} in
1785 "") target_noncanonical=${host_noncanonical} ;;
1786 *) target_noncanonical=${target_alias} ;;
1787 esac
1788
1789
1790
1791
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
1797
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
1807 fi
1808
1809
1810 # This works around an automake problem.
1811 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1812
1813
1814
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"
1818
1819 fi;
1820
1821
1822 # Check whether --with-newlib or --without-newlib was given.
1823 if test "${with_newlib+set}" = set; then
1824 withval="$with_newlib"
1825
1826 fi;
1827
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
1840
1841 fi;
1842
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
1855
1856 fi;
1857
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
1870
1871 fi;
1872
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"
1876
1877 fi;
1878
1879
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=
1886 fi
1887
1888
1889 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1890
1891
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.
1902
1903
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
1924 do
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 break 2
1932 fi
1933 done
1934 done
1935
1936 fi
1937 fi
1938 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
1945 fi
1946
1947 fi
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
1962 do
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
1970 fi
1971 done
1972 done
1973
1974 fi
1975 fi
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
1983 fi
1984
1985 CC=$ac_ct_CC
1986 else
1987 CC="$ac_cv_prog_CC"
1988 fi
1989
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
2004 do
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 ac_cv_prog_CC="${ac_tool_prefix}cc"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 break 2
2012 fi
2013 done
2014 done
2015
2016 fi
2017 fi
2018 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
2025 fi
2026
2027 fi
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
2042 do
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
2050 fi
2051 done
2052 done
2053
2054 fi
2055 fi
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
2063 fi
2064
2065 CC=$ac_ct_CC
2066 else
2067 CC="$ac_cv_prog_CC"
2068 fi
2069
2070 fi
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
2085 do
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
2093 fi
2094 ac_cv_prog_CC="cc"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 break 2
2097 fi
2098 done
2099 done
2100
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+' '}$@"
2111 fi
2112 fi
2113 fi
2114 fi
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
2122 fi
2123
2124 fi
2125 if test -z "$CC"; then
2126 if test -n "$ac_tool_prefix"; then
2127 for ac_prog in cl
2128 do
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
2141 do
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
2149 fi
2150 done
2151 done
2152
2153 fi
2154 fi
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
2162 fi
2163
2164 test -n "$CC" && break
2165 done
2166 fi
2167 if test -z "$CC"; then
2168 ac_ct_CC=$CC
2169 for ac_prog in cl
2170 do
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
2183 do
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
2191 fi
2192 done
2193 done
2194
2195 fi
2196 fi
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
2204 fi
2205
2206 test -n "$ac_ct_CC" && break
2207 done
2208
2209 CC=$ac_ct_CC
2210 fi
2211
2212 fi
2213
2214
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; }; }; }
2222
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); }
2242
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. */
2249
2250 int
2251 main ()
2252 {
2253
2254 ;
2255 return 0;
2256 }
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
2267 fi
2268
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. */
2282
2283 int
2284 main ()
2285 {
2286
2287 ;
2288 return 0;
2289 }
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.
2307
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
2313 do
2314 test -f "$ac_file" || continue
2315 case $ac_file in
2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2317 ;;
2318 conftest.$ac_ext )
2319 # This is the source file.
2320 ;;
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;;
2332 * )
2333 break;;
2334 esac
2335 done
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
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; }; }; }
2347 fi
2348
2349 ac_exeext=$ac_cv_exeext
2350 echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6
2352
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; }; }; }
2380 fi
2381 fi
2382 fi
2383 echo "$as_me:$LINENO: result: yes" >&5
2384 echo "${ECHO_T}yes" >&6
2385
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
2394
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; }; }; }
2424 fi
2425
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
2429
2430 rm -f conftest.$ac_ext
2431 EXEEXT=$ac_cv_exeext
2432 ac_exeext=$EXEEXT
2433 fi
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. */
2445
2446 int
2447 main ()
2448 {
2449
2450 ;
2451 return 0;
2452 }
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
2470
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; }; }; }
2478 fi
2479
2480 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2481 fi
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. */
2497
2498 int
2499 main ()
2500 {
2501 #ifndef __GNUC__
2502 choke me
2503 #endif
2504
2505 ;
2506 return 0;
2507 }
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
2535
2536 ac_compiler_gnu=no
2537 fi
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2540
2541 fi
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. */
2559
2560 int
2561 main ()
2562 {
2563
2564 ;
2565 return 0;
2566 }
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
2594
2595 ac_cv_prog_cc_g=no
2596 fi
2597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598 fi
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"
2608 fi
2609 else
2610 if test "$GCC" = yes; then
2611 CFLAGS="-O2"
2612 else
2613 CFLAGS=
2614 fi
2615 fi
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;
2639 {
2640 return p[i];
2641 }
2642 static char *f (char * (*g) (char **, int), char **p, ...)
2643 {
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;
2650 }
2651
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];
2660
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;
2667 int
2668 main ()
2669 {
2670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2671 ;
2672 return 0;
2673 }
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__"
2683 do
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
2712
2713 fi
2714 rm -f conftest.err conftest.$ac_objext
2715 done
2716 rm -f conftest.$ac_ext conftest.$ac_objext
2717 CC=$ac_save_CC
2718
2719 fi
2720
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 ;;
2725 *)
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
2730
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);'
2769 do
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>
2778 int
2779 main ()
2780 {
2781 exit (42);
2782 ;
2783 return 0;
2784 }
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
2808 :
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2812
2813 continue
2814 fi
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
2823 int
2824 main ()
2825 {
2826 exit (42);
2827 ;
2828 return 0;
2829 }
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
2857
2858 fi
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
2866 fi
2867
2868 else
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 fi
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
2879
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
2887 do
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
2900 do
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
2908 fi
2909 done
2910 done
2911
2912 fi
2913 fi
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
2921 fi
2922
2923 test -n "$CXX" && break
2924 done
2925 fi
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
2929 do
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
2942 do
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
2950 fi
2951 done
2952 done
2953
2954 fi
2955 fi
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
2963 fi
2964
2965 test -n "$ac_ct_CXX" && break
2966 done
2967 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2968
2969 CXX=$ac_ct_CXX
2970 fi
2971
2972
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); }
2992
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. */
3004
3005 int
3006 main ()
3007 {
3008 #ifndef __GNUC__
3009 choke me
3010 #endif
3011
3012 ;
3013 return 0;
3014 }
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
3042
3043 ac_compiler_gnu=no
3044 fi
3045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3046 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3047
3048 fi
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. */
3066
3067 int
3068 main ()
3069 {
3070
3071 ;
3072 return 0;
3073 }
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
3101
3102 ac_cv_prog_cxx_g=no
3103 fi
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105 fi
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"
3115 fi
3116 else
3117 if test "$GXX" = yes; then
3118 CXXFLAGS="-O2"
3119 else
3120 CXXFLAGS=
3121 fi
3122 fi
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);'
3130 do
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>
3139 int
3140 main ()
3141 {
3142 exit (42);
3143 ;
3144 return 0;
3145 }
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
3169 :
3170 else
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 continue
3175 fi
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
3184 int
3185 main ()
3186 {
3187 exit (42);
3188 ;
3189 return 0;
3190 }
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
3218
3219 fi
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
3227 fi
3228
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
3234
3235 CXXFLAGS="$save_CXXFLAGS"
3236
3237
3238
3239
3240
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
3264 do
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/* ) ;;
3273 *)
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.
3283 :
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.
3287 :
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
3300 fi
3301 fi
3302 fi
3303 done
3304 done
3305 ;;
3306 esac
3307 done
3308
3309 rm -rf conftest.one conftest.two conftest.dir
3310
3311 fi
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
3320 fi
3321 fi
3322 echo "$as_me:$LINENO: result: $INSTALL" >&5
3323 echo "${ECHO_T}$INSTALL" >&6
3324
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}'
3328
3329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3330
3331 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3332
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`
3348 fi
3349 rm -f conftest.file
3350 if test "$*" != "X $srcdir/configure conftest.file" \
3351 && test "$*" != "X conftest.file $srcdir/configure"; then
3352
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; }; }
3362 fi
3363
3364 test "$2" = conftest.file
3365 )
3366 then
3367 # Ok.
3368 :
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; }; }
3375 fi
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
3390
3391 # expand $ac_aux_dir to an absolute path
3392 am_aux_dir=`cd $ac_aux_dir && pwd`
3393
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;}
3402 fi
3403
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;
3426 do
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'
3434 fi
3435 fi
3436
3437 for ac_prog in gawk mawk nawk awk
3438 do
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
3451 do
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
3459 fi
3460 done
3461 done
3462
3463 fi
3464 fi
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
3472 fi
3473
3474 test -n "$AWK" && break
3475 done
3476
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
3493 fi
3494 rm -f conftest.make
3495 fi
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}"
3504 fi
3505
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=_
3512 fi
3513 rmdir .tst 2>/dev/null
3514
3515 DEPDIR="${am__leading_dot}deps"
3516
3517 ac_config_commands="$ac_config_commands depfiles"
3518
3519
3520 am_make=${MAKE-make}
3521 cat > confinc << 'END'
3522 am__doit:
3523 @echo done
3524 .PHONY: am__doit
3525 END
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
3543 fi
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
3551 fi
3552 fi
3553
3554
3555 echo "$as_me:$LINENO: result: $_am_result" >&5
3556 echo "${ECHO_T}$_am_result" >&6
3557 rm -f confinc confmf
3558
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"
3562
3563 fi;
3564 if test "x$enable_dependency_tracking" != xno; then
3565 am_depcomp="$ac_aux_dir/depcomp"
3566 AMDEPBACKSLASH='\'
3567 fi
3568
3569
3570 if test "x$enable_dependency_tracking" != xno; then
3571 AMDEP_TRUE=
3572 AMDEP_FALSE='#'
3573 else
3574 AMDEP_TRUE='#'
3575 AMDEP_FALSE=
3576 fi
3577
3578
3579
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; }; }
3586 fi
3587
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
3594 fi
3595 fi
3596
3597
3598 # Define the identity of the package.
3599 PACKAGE='libjava'
3600 VERSION='version-unused'
3601
3602
3603 cat >>confdefs.h <<_ACEOF
3604 #define PACKAGE "$PACKAGE"
3605 _ACEOF
3606
3607
3608 cat >>confdefs.h <<_ACEOF
3609 #define VERSION "$VERSION"
3610 _ACEOF
3611
3612 # Some tools Automake needs.
3613
3614 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3615
3616
3617 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3618
3619
3620 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3621
3622
3623 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3624
3625
3626 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3627
3628 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3629
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
3648 do
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
3656 fi
3657 done
3658 done
3659
3660 fi
3661 fi
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
3669 fi
3670
3671 fi
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
3686 do
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
3694 fi
3695 done
3696 done
3697
3698 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3699 fi
3700 fi
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
3708 fi
3709
3710 STRIP=$ac_ct_STRIP
3711 else
3712 STRIP="$ac_cv_prog_STRIP"
3713 fi
3714
3715 fi
3716 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3717
3718 # We need awk for the "check" target. The system "awk" is bad on
3719 # some platforms.
3720 # Always define AMTAR for backward compatibility.
3721
3722 AMTAR=${AMTAR-"${am_missing_run}tar"}
3723
3724 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3725
3726
3727
3728
3729 depcc="$CC" am_compiler_list=
3730
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
3754
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`
3758 fi
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.
3763 #
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
3775
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
3784 fi
3785 ;;
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
3810 fi
3811 fi
3812 done
3813
3814 cd ..
3815 rm -rf conftest.dir
3816 else
3817 am_cv_CC_dependencies_compiler_type=none
3818 fi
3819
3820 fi
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
3824
3825
3826
3827 if
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=
3835 fi
3836
3837
3838 depcc="$CXX" am_compiler_list=
3839
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
3863
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`
3867 fi
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.
3872 #
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
3884
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
3893 fi
3894 ;;
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
3919 fi
3920 fi
3921 done
3922
3923 cd ..
3924 rm -rf conftest.dir
3925 else
3926 am_cv_CXX_dependencies_compiler_type=none
3927 fi
3928
3929 fi
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
3933
3934
3935
3936 if
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=
3944 fi
3945
3946
3947
3948
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
3962 do
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
3970 fi
3971 done
3972 done
3973
3974 fi
3975 fi
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
3983 fi
3984
3985 fi
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
4000 do
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
4008 fi
4009 done
4010 done
4011
4012 fi
4013 fi
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
4021 fi
4022
4023 AS=$ac_ct_AS
4024 else
4025 AS="$ac_cv_prog_AS"
4026 fi
4027
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
4041 do
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
4049 fi
4050 done
4051 done
4052
4053 fi
4054 fi
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
4062 fi
4063
4064 fi
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
4079 do
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
4087 fi
4088 done
4089 done
4090
4091 fi
4092 fi
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
4100 fi
4101
4102 LD=$ac_ct_LD
4103 else
4104 LD="$ac_cv_prog_LD"
4105 fi
4106
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
4120 do
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
4128 fi
4129 done
4130 done
4131
4132 fi
4133 fi
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
4141 fi
4142
4143 fi
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
4158 do
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
4166 fi
4167 done
4168 done
4169
4170 fi
4171 fi
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
4179 fi
4180
4181 AR=$ac_ct_AR
4182 else
4183 AR="$ac_cv_prog_AR"
4184 fi
4185
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
4199 do
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
4207 fi
4208 done
4209 done
4210
4211 fi
4212 fi
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
4220 fi
4221
4222 fi
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
4237 do
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
4245 fi
4246 done
4247 done
4248
4249 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4250 fi
4251 fi
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
4259 fi
4260
4261 RANLIB=$ac_ct_RANLIB
4262 else
4263 RANLIB="$ac_cv_prog_RANLIB"
4264 fi
4265
4266 for ac_prog in gawk mawk nawk awk
4267 do
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
4280 do
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
4288 fi
4289 done
4290 done
4291
4292 fi
4293 fi
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
4301 fi
4302
4303 test -n "$AWK" && break
4304 done
4305
4306 for ac_prog in jar fastjar gjar
4307 do
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
4320 do
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
4328 fi
4329 done
4330 done
4331
4332 fi
4333 fi
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
4341 fi
4342
4343 test -n "$JAR" && break
4344 done
4345 test -n "$JAR" || JAR="no"
4346
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.
4357 ;;
4358 *)
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
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
4369 fi
4370 done
4371 done
4372
4373 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4374 ;;
4375 esac
4376 fi
4377 ZIP=$ac_cv_path_ZIP
4378
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
4385 fi
4386
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.
4397 ;;
4398 *)
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
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
4409 fi
4410 done
4411 done
4412
4413 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4414 ;;
4415 esac
4416 fi
4417 UNZIP=$ac_cv_path_UNZIP
4418
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
4425 fi
4426
4427
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
4436 fi
4437 fi
4438
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
4448 fi
4449 fi
4450
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
4473 do
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/* ) ;;
4482 *)
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.
4492 :
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.
4496 :
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
4509 fi
4510 fi
4511 fi
4512 done
4513 done
4514 ;;
4515 esac
4516 done
4517
4518 rm -rf conftest.one conftest.two conftest.dir
4519
4520 fi
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
4529 fi
4530 fi
4531 echo "$as_me:$LINENO: result: $INSTALL" >&5
4532 echo "${ECHO_T}$INSTALL" >&6
4533
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}'
4537
4538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4539
4540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4541
4542
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
4551 fi;
4552 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4553 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4554
4555
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=
4562 fi
4563
4564 MAINT=$MAINTAINER_MODE_TRUE
4565
4566
4567
4568
4569
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
4574
4575 libgcj_cflags=
4576 libgcj_cxxflags=
4577 libgcj_javaflags=
4578
4579 . ${srcdir}/configure.host
4580
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
4591 fi
4592 fi
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
4596
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
4602
4603 acl_cv_prog_gnu_ld_symbolic=no
4604
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
4608 fi
4609 fi
4610 fi
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=''
4617 fi
4618
4619 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4620 if test -z "$libgcj_ld_symbolic"; then
4621 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4622 fi
4623
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}"
4629
4630
4631
4632
4633
4634
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"`
4662 fi
4663 else
4664 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4665 fi
4666 need_lib_prefix=unknown
4667 hardcode_into_libs=no
4668
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
4672
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
4678
4679 # AIX 3 has no versioning support, so we append a major version to the name.
4680 soname_spec='${libname}${release}${shared_ext}$major'
4681 ;;
4682
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
4703 :
4704 else
4705 can_build_shared=no
4706 fi
4707 ;;
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'
4722 fi
4723 shlibpath_var=LIBPATH
4724 fi
4725 ;;
4726
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'
4731 ;;
4732
4733 beos*)
4734 library_names_spec='${libname}${shared_ext}'
4735 dynamic_linker="$host_os ld.so"
4736 shlibpath_var=LIBRARY_PATH
4737 ;;
4738
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
4751 ;;
4752
4753 cygwin* | mingw* | pw32*)
4754 version_type=windows
4755 shrext=".dll"
4756 need_version=no
4757 need_lib_prefix=no
4758
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
4772
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"
4778 ;;
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"`
4793 fi
4794 ;;
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}'
4798 ;;
4799 esac
4800 ;;
4801
4802 *)
4803 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4804 ;;
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
4809 ;;
4810
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"`
4827 fi
4828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4829 ;;
4830
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
4838 ;;
4839
4840 freebsd1*)
4841 dynamic_linker=no
4842 ;;
4843
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
4852 ;;
4853 freebsd-*)
4854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4855 need_version=yes
4856 ;;
4857 esac
4858 shlibpath_var=LD_LIBRARY_PATH
4859 case $host_os in
4860 freebsd2*)
4861 shlibpath_overrides_runpath=yes
4862 ;;
4863 freebsd3.01* | freebsdelf3.01*)
4864 shlibpath_overrides_runpath=yes
4865 hardcode_into_libs=yes
4866 ;;
4867 *) # from 3.2 on
4868 shlibpath_overrides_runpath=no
4869 hardcode_into_libs=yes
4870 ;;
4871 esac
4872 ;;
4873
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
4882 ;;
4883
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"
4903 fi
4904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4905 ;;
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
4916 ;;
4917 *)
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'
4924 ;;
4925 esac
4926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4927 postinstall_cmds='chmod 555 $lib'
4928 ;;
4929
4930 irix5* | irix6* | nonstopux*)
4931 case $host_os in
4932 nonstopux*) version_type=nonstopux ;;
4933 *)
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=
4947 ;;
4948 *)
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
4958 ;;
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
4965 ;;
4966
4967 # No shared lib support for Linux oldld, aout, or coff.
4968 linux*oldld* | linux*aout* | linux*coff*)
4969 dynamic_linker=no
4970 ;;
4971
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
4986
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'
4994 ;;
4995
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'
5008 fi
5009 shlibpath_var=LD_LIBRARY_PATH
5010 shlibpath_overrides_runpath=yes
5011 hardcode_into_libs=yes
5012 ;;
5013
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
5019 ;;
5020
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
5029 ;;
5030
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
5042 ;;
5043 *)
5044 shlibpath_overrides_runpath=yes
5045 ;;
5046 esac
5047 else
5048 shlibpath_overrides_runpath=yes
5049 fi
5050 ;;
5051
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
5059 ;;
5060
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"
5070 ;;
5071
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
5077 ;;
5078
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'
5090 ;;
5091
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
5100 fi
5101 need_version=yes
5102 ;;
5103
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
5115 ;;
5116 siemens)
5117 need_lib_prefix=no
5118 ;;
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'
5124 ;;
5125 esac
5126 ;;
5127
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
5134 fi
5135 ;;
5136
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
5142 ;;
5143
5144 *)
5145 dynamic_linker=no
5146 ;;
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
5151
5152
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"
5159 fi
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
5163
5164 cat >>confdefs.h <<_ACEOF
5165 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5166 _ACEOF
5167
5168 fi
5169
5170 fi
5171
5172 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5173
5174
5175 # See if the user has requested runtime debugging.
5176 LIBGCJDEBUG="disable"
5177
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
5182
5183 cat >>confdefs.h <<\_ACEOF
5184 #define DEBUG 1
5185 _ACEOF
5186
5187 LIBGCJDEBUG="enable"
5188 fi
5189 fi;
5190
5191
5192 # Check whether --with-escher or --without-escher was given.
5193 if test "${with_escher+set}" = set; then
5194 withval="$with_escher"
5195
5196 fi;
5197 case "$with_escher" in
5198 "")
5199 use_escher=false
5200 ;;
5201 "no")
5202 use_escher=false
5203 ;;
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; }; }
5208 ;;
5209 *)
5210 use_escher=true
5211 ;;
5212 esac
5213
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"
5218
5219 fi;
5220
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=
5228
5229
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
5240 fi
5241 fi
5242 ;;
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
5251 fi
5252 fi
5253 ;;
5254 qt)
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
5263 fi
5264 fi
5265 ;;
5266 x)
5267 use_x_awt=yes
5268 if test -z "$TOOLKIT"; then
5269 TOOLKIT=gnu.java.awt.peer.x.XToolkit
5270 fi
5271 ;;
5272 no)
5273 use_xlib_awt=
5274 use_gtk_awt=
5275 use_qt_awt=
5276 use_x_awt=
5277 break
5278 ;;
5279 *)
5280 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5281 exit 1
5282 esac
5283 done
5284
5285
5286
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=
5293 fi
5294
5295
5296
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=
5303 fi
5304
5305
5306
5307 cat >>confdefs.h <<_ACEOF
5308 #define AWT_TOOLKIT "$TOOLKIT"
5309 _ACEOF
5310
5311
5312
5313 cat >>confdefs.h <<_ACEOF
5314 #define LIBGCJ_PREFIX "$prefix"
5315 _ACEOF
5316
5317
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
5323 fi
5324 if test "$use_x_awt" != yes; then
5325 echo gnu/java/awt/peer/x >> standard.omit
5326 fi
5327
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
5334
5335 if test -z "${with_multisubdir}"; then
5336 builddotdot=.
5337 else
5338 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5339 fi
5340
5341 NATIVE=yes
5342
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
5357 ;;
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
5367 fi
5368 else
5369 which_gcj=cross
5370 fi
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
5380 fi
5381 else
5382 which_gcj=path
5383 fi
5384 fi
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'
5389 ;;
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}`/"
5397 fi
5398 GCJH='$(target_noncanonical)-gcjh'
5399 ;;
5400 path)
5401 GCJ="gcj -B`${PWDCMD-pwd}`/"
5402 GCJH=gcjh
5403 ;;
5404 esac
5405 JAVAC="$GCJ -C"
5406 export JAVAC
5407
5408
5409
5410
5411
5412 # Create it, so that compile/link tests don't fail
5413 test -f libgcj.spec || touch libgcj.spec
5414
5415
5416
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"
5433 fi
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"
5437 fi
5438 if test "$use_gtk_awt" != yes; then
5439 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5440 fi
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"
5446 fi
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"
5457 fi
5458 fi
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"
5462
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"
5476
5477 enable_dlopen=yes
5478
5479
5480
5481 DIRLTDL=libltdl
5482
5483 cat >>confdefs.h <<\_ACEOF
5484 #define USE_LTDL 1
5485 _ACEOF
5486
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"
5492 fi
5493
5494
5495
5496
5497
5498 macro_version='2.1a'
5499 macro_revision='1.2435'
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512 ltmain="$ac_aux_dir/ltmain.sh"
5513
5514 # Set options
5515
5516
5517 enable_win32_dll=no
5518
5519
5520 # Check whether --enable-shared or --disable-shared was given.
5521 if test "${enable_shared+set}" = set; then
5522 enableval="$enable_shared"
5523 p=${PACKAGE-default}
5524 case $enableval in
5525 yes) enable_shared=yes ;;
5526 no) enable_shared=no ;;
5527 *)
5528 enable_shared=no
5529 # Look at the argument we got. We use all the common list separators.
5530 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5531 for pkg in $enableval; do
5532 IFS="$lt_save_ifs"
5533 if test "X$pkg" = "X$p"; then
5534 enable_shared=yes
5535 fi
5536 done
5537 IFS="$lt_save_ifs"
5538 ;;
5539 esac
5540 else
5541 enable_shared=yes
5542 fi;
5543
5544
5545
5546
5547
5548
5549
5550
5551 # Check whether --enable-static or --disable-static was given.
5552 if test "${enable_static+set}" = set; then
5553 enableval="$enable_static"
5554 p=${PACKAGE-default}
5555 case $enableval in
5556 yes) enable_static=yes ;;
5557 no) enable_static=no ;;
5558 *)
5559 enable_static=no
5560 # Look at the argument we got. We use all the common list separators.
5561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5562 for pkg in $enableval; do
5563 IFS="$lt_save_ifs"
5564 if test "X$pkg" = "X$p"; then
5565 enable_static=yes
5566 fi
5567 done
5568 IFS="$lt_save_ifs"
5569 ;;
5570 esac
5571 else
5572 enable_static=yes
5573 fi;
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583 # Check whether --with-pic or --without-pic was given.
5584 if test "${with_pic+set}" = set; then
5585 withval="$with_pic"
5586 pic_mode="$withval"
5587 else
5588 pic_mode=default
5589 fi;
5590
5591 test -z "$pic_mode" && pic_mode=default
5592
5593
5594
5595
5596
5597
5598
5599 # Check whether --enable-fast-install or --disable-fast-install was given.
5600 if test "${enable_fast_install+set}" = set; then
5601 enableval="$enable_fast_install"
5602 p=${PACKAGE-default}
5603 case $enableval in
5604 yes) enable_fast_install=yes ;;
5605 no) enable_fast_install=no ;;
5606 *)
5607 enable_fast_install=no
5608 # Look at the argument we got. We use all the common list separators.
5609 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5610 for pkg in $enableval; do
5611 IFS="$lt_save_ifs"
5612 if test "X$pkg" = "X$p"; then
5613 enable_fast_install=yes
5614 fi
5615 done
5616 IFS="$lt_save_ifs"
5617 ;;
5618 esac
5619 else
5620 enable_fast_install=yes
5621 fi;
5622
5623
5624
5625
5626
5627
5628
5629
5630 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5631 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5632 if test "${lt_cv_path_SED+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 # Loop through the user's path and test for sed and gsed.
5636 # Then use that list of sed's as ones to test for truncation.
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for lt_ac_prog in sed gsed; do
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5645 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5646 fi
5647 done
5648 done
5649 done
5650 IFS=$as_save_IFS
5651 lt_ac_max=0
5652 lt_ac_count=0
5653 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5654 # along with /bin/sed that truncates output.
5655 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5656 test ! -f $lt_ac_sed && continue
5657 cat /dev/null > conftest.in
5658 lt_ac_count=0
5659 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5660 # Check for GNU sed and select it if it is found.
5661 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5662 lt_cv_path_SED=$lt_ac_sed
5663 break
5664 fi
5665 while true; do
5666 cat conftest.in conftest.in >conftest.tmp
5667 mv conftest.tmp conftest.in
5668 cp conftest.in conftest.nl
5669 echo >>conftest.nl
5670 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5671 cmp -s conftest.out conftest.nl || break
5672 # 10000 chars as input seems more than enough
5673 test $lt_ac_count -gt 10 && break
5674 lt_ac_count=`expr $lt_ac_count + 1`
5675 if test $lt_ac_count -gt $lt_ac_max; then
5676 lt_ac_max=$lt_ac_count
5677 lt_cv_path_SED=$lt_ac_sed
5678 fi
5679 done
5680 done
5681
5682 fi
5683
5684 SED=$lt_cv_path_SED
5685
5686 echo "$as_me:$LINENO: result: $SED" >&5
5687 echo "${ECHO_T}$SED" >&6
5688
5689 test -z "$SED" && SED=sed
5690 Xsed="$SED -e 1s/^X//"
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702 echo "$as_me:$LINENO: checking for egrep" >&5
5703 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5704 if test "${ac_cv_prog_egrep+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5708 then ac_cv_prog_egrep='grep -E'
5709 else ac_cv_prog_egrep='egrep'
5710 fi
5711 fi
5712 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5713 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5714 EGREP=$ac_cv_prog_egrep
5715
5716
5717 echo "$as_me:$LINENO: checking for fgrep" >&5
5718 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5719 if test "${ac_cv_prog_fgrep+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5723 then ac_cv_prog_fgrep='grep -F'
5724 else ac_cv_prog_fgrep='fgrep'
5725 fi
5726 fi
5727 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5728 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5729 FGREP=$ac_cv_prog_fgrep
5730
5731
5732 test -z "$GREP" && GREP=grep
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5753 if test "${with_gnu_ld+set}" = set; then
5754 withval="$with_gnu_ld"
5755 test "$withval" = no || with_gnu_ld=yes
5756 else
5757 with_gnu_ld=no
5758 fi;
5759 ac_prog=ld
5760 if test "$GCC" = yes; then
5761 # Check if gcc -print-prog-name=ld gives a path.
5762 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5763 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5764 case $host in
5765 *-*-mingw*)
5766 # gcc leaves a trailing carriage return which upsets mingw
5767 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5768 *)
5769 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5770 esac
5771 case $ac_prog in
5772 # Accept absolute paths.
5773 [\\/]* | ?:[\\/]*)
5774 re_direlt='/[^/][^/]*/\.\./'
5775 # Canonicalize the pathname of ld
5776 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5777 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5778 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5779 done
5780 test -z "$LD" && LD="$ac_prog"
5781 ;;
5782 "")
5783 # If it fails, then pretend we aren't using GCC.
5784 ac_prog=ld
5785 ;;
5786 *)
5787 # If it is relative, then search for the first ld in PATH.
5788 with_gnu_ld=unknown
5789 ;;
5790 esac
5791 elif test "$with_gnu_ld" = yes; then
5792 echo "$as_me:$LINENO: checking for GNU ld" >&5
5793 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5794 else
5795 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5796 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5797 fi
5798 if test "${lt_cv_path_LD+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801 if test -z "$LD"; then
5802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5803 for ac_dir in $PATH; do
5804 IFS="$lt_save_ifs"
5805 test -z "$ac_dir" && ac_dir=.
5806 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5807 lt_cv_path_LD="$ac_dir/$ac_prog"
5808 # Check to see if the program is GNU ld. I'd rather use --version,
5809 # but apparently some variants of GNU ld only accept -v.
5810 # Break only if it was the GNU/non-GNU ld that we prefer.
5811 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5812 *GNU* | *'with BFD'*)
5813 test "$with_gnu_ld" != no && break
5814 ;;
5815 *)
5816 test "$with_gnu_ld" != yes && break
5817 ;;
5818 esac
5819 fi
5820 done
5821 IFS="$lt_save_ifs"
5822 else
5823 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5824 fi
5825 fi
5826
5827 LD="$lt_cv_path_LD"
5828 if test -n "$LD"; then
5829 echo "$as_me:$LINENO: result: $LD" >&5
5830 echo "${ECHO_T}$LD" >&6
5831 else
5832 echo "$as_me:$LINENO: result: no" >&5
5833 echo "${ECHO_T}no" >&6
5834 fi
5835 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5836 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5837 { (exit 1); exit 1; }; }
5838 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5839 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5840 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5844 case `$LD -v 2>&1 </dev/null` in
5845 *GNU* | *'with BFD'*)
5846 lt_cv_prog_gnu_ld=yes
5847 ;;
5848 *)
5849 lt_cv_prog_gnu_ld=no
5850 ;;
5851 esac
5852 fi
5853 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5854 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5855 with_gnu_ld=$lt_cv_prog_gnu_ld
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5867 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5868 if test "${lt_cv_path_NM+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871 if test -n "$NM"; then
5872 # Let the user override the test.
5873 lt_cv_path_NM="$NM"
5874 else
5875 lt_nm_to_check="${ac_tool_prefix}nm"
5876 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5877 lt_nm_to_check="$lt_nm_to_check nm"
5878 fi
5879 for lt_tmp_nm in $lt_nm_to_check; do
5880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5881 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5882 IFS="$lt_save_ifs"
5883 test -z "$ac_dir" && ac_dir=.
5884 tmp_nm="$ac_dir/$lt_tmp_nm"
5885 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5886 # Check to see if the nm accepts a BSD-compat flag.
5887 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5888 # nm: unknown option "B" ignored
5889 # Tru64's nm complains that /dev/null is an invalid object file
5890 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5891 */dev/null* | *'Invalid file or object type'*)
5892 lt_cv_path_NM="$tmp_nm -B"
5893 break
5894 ;;
5895 *)
5896 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5897 */dev/null*)
5898 lt_cv_path_NM="$tmp_nm -p"
5899 break
5900 ;;
5901 *)
5902 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5903 continue # so that we can try to find one that supports BSD flags
5904 ;;
5905 esac
5906 ;;
5907 esac
5908 fi
5909 done
5910 IFS="$lt_save_ifs"
5911 done
5912 : ${lt_cv_path_NM=no}
5913 fi
5914 fi
5915 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5916 echo "${ECHO_T}$lt_cv_path_NM" >&6
5917 if test "$lt_cv_path_NM" != "no"; then
5918 NM="$lt_cv_path_NM"
5919 else
5920 # Didn't find any BSD compatible name lister, look for dumpbin.
5921 if test -n "$ac_tool_prefix"; then
5922 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5923 do
5924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5926 echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 if test -n "$DUMPBIN"; then
5932 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945 done
5946 done
5947
5948 fi
5949 fi
5950 DUMPBIN=$ac_cv_prog_DUMPBIN
5951 if test -n "$DUMPBIN"; then
5952 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5953 echo "${ECHO_T}$DUMPBIN" >&6
5954 else
5955 echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5957 fi
5958
5959 test -n "$DUMPBIN" && break
5960 done
5961 fi
5962 if test -z "$DUMPBIN"; then
5963 ac_ct_DUMPBIN=$DUMPBIN
5964 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5965 do
5966 # Extract the first word of "$ac_prog", so it can be a program name with args.
5967 set dummy $ac_prog; ac_word=$2
5968 echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5970 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973 if test -n "$ac_ct_DUMPBIN"; then
5974 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987 done
5988 done
5989
5990 fi
5991 fi
5992 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5993 if test -n "$ac_ct_DUMPBIN"; then
5994 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5995 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5996 else
5997 echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6
5999 fi
6000
6001 test -n "$ac_ct_DUMPBIN" && break
6002 done
6003 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
6004
6005 DUMPBIN=$ac_ct_DUMPBIN
6006 fi
6007
6008
6009 if test "$DUMPBIN" != ":"; then
6010 NM="$DUMPBIN"
6011 fi
6012 fi
6013 test -z "$NM" && NM=nm
6014
6015
6016
6017
6018
6019
6020 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6021 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
6022 if test "${lt_cv_nm_interface+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 lt_cv_nm_interface="BSD nm"
6026 echo "int some_variable = 0;" > conftest.$ac_ext
6027 (eval echo "\"\$as_me:6027: $ac_compile\"" >&5)
6028 (eval "$ac_compile" 2>conftest.err)
6029 cat conftest.err >&5
6030 (eval echo "\"\$as_me:6030: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6031 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6032 cat conftest.err >&5
6033 (eval echo "\"\$as_me:6033: output\"" >&5)
6034 cat conftest.out >&5
6035 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6036 lt_cv_nm_interface="MS dumpbin"
6037 fi
6038 rm -f conftest*
6039 fi
6040 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6041 echo "${ECHO_T}$lt_cv_nm_interface" >&6
6042
6043 # find the maximum length of command line arguments
6044 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6045 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6046 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 i=0
6050 teststring="ABCD"
6051
6052 case $build_os in
6053 msdosdjgpp*)
6054 # On DJGPP, this test can blow up pretty badly due to problems in libc
6055 # (any single argument exceeding 2000 bytes causes a buffer overrun
6056 # during glob expansion). Even if it were fixed, the result of this
6057 # check would be larger than it should be.
6058 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6059 ;;
6060
6061 gnu*)
6062 # Under GNU Hurd, this test is not required because there is
6063 # no limit to the length of command line arguments.
6064 # Libtool will interpret -1 as no limit whatsoever
6065 lt_cv_sys_max_cmd_len=-1;
6066 ;;
6067
6068 cygwin* | mingw*)
6069 # On Win9x/ME, this test blows up -- it succeeds, but takes
6070 # about 5 minutes as the teststring grows exponentially.
6071 # Worse, since 9x/ME are not pre-emptively multitasking,
6072 # you end up with a "frozen" computer, even though with patience
6073 # the test eventually succeeds (with a max line length of 256k).
6074 # Instead, let's just punt: use the minimum linelength reported by
6075 # all of the supported platforms: 8192 (on NT/2K/XP).
6076 lt_cv_sys_max_cmd_len=8192;
6077 ;;
6078
6079 amigaos*)
6080 # On AmigaOS with pdksh, this test takes hours, literally.
6081 # So we just punt and use a minimum line length of 8192.
6082 lt_cv_sys_max_cmd_len=8192;
6083 ;;
6084
6085 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6086 # This has been around since 386BSD, at least. Likely further.
6087 if test -x /sbin/sysctl; then
6088 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6089 elif test -x /usr/sbin/sysctl; then
6090 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6091 else
6092 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6093 fi
6094 # And add a safety zone
6095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6097 ;;
6098
6099 interix*)
6100 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6101 lt_cv_sys_max_cmd_len=196608
6102 ;;
6103
6104 osf*)
6105 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6106 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6107 # nice to cause kernel panics so lets avoid the loop below.
6108 # First set a reasonable default.
6109 lt_cv_sys_max_cmd_len=16384
6110 #
6111 if test -x /sbin/sysconfig; then
6112 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6113 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6114 esac
6115 fi
6116 ;;
6117 sco3.2v5*)
6118 lt_cv_sys_max_cmd_len=102400
6119 ;;
6120 sysv5* | sco5v6* | sysv4.2uw2*)
6121 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6122 if test -n "$kargmax"; then
6123 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6124 else
6125 lt_cv_sys_max_cmd_len=32768
6126 fi
6127 ;;
6128 *)
6129 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
6130 if test -n $lt_cv_sys_max_cmd_len; then
6131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6133 else
6134 # Make teststring a little bigger before we do anything with it.
6135 # a 1K string should be a reasonable start.
6136 for i in 1 2 3 4 5 6 7 8 ; do
6137 teststring=$teststring$teststring
6138 done
6139 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6140 # If test is not a shell built-in, we'll probably end up computing a
6141 # maximum length that is only half of the actual maximum length, but
6142 # we can't tell.
6143 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6144 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6145 test $i != 17 # 1/2 MB should be enough
6146 do
6147 i=`expr $i + 1`
6148 teststring=$teststring$teststring
6149 done
6150 # Only check the string length outside the loop.
6151 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6152 teststring=
6153 # Add a significant safety factor because C++ compilers can tack on
6154 # massive amounts of additional arguments before passing them to the
6155 # linker. It appears as though 1/2 is a usable value.
6156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6157 fi
6158 ;;
6159 esac
6160
6161 fi
6162
6163 if test -n $lt_cv_sys_max_cmd_len ; then
6164 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6165 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6166 else
6167 echo "$as_me:$LINENO: result: none" >&5
6168 echo "${ECHO_T}none" >&6
6169 fi
6170 max_cmd_len=$lt_cv_sys_max_cmd_len
6171
6172
6173
6174
6175
6176
6177 : ${CP="cp -f"}
6178 : ${MV="mv -f"}
6179 : ${RM="rm -f"}
6180
6181 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6182 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6183 # Try some XSI features
6184 xsi_shell=no
6185 ( _lt_dummy="a/b/c"
6186 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6187 = c,a/b,, ) >/dev/null 2>&1 \
6188 && xsi_shell=yes
6189 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6190 echo "${ECHO_T}$xsi_shell" >&6
6191
6192
6193 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6194 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6195 lt_shell_append=no
6196 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6197 >/dev/null 2>&1 \
6198 && lt_shell_append=yes
6199 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6200 echo "${ECHO_T}$lt_shell_append" >&6
6201
6202
6203 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6204 lt_unset=unset
6205 else
6206 lt_unset=false
6207 fi
6208
6209
6210
6211
6212
6213 # test EBCDIC or ASCII
6214 case `echo X|tr X '\101'` in
6215 A) # ASCII based system
6216 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6217 lt_SP2NL='tr \040 \012'
6218 lt_NL2SP='tr \015\012 \040\040'
6219 ;;
6220 *) # EBCDIC based system
6221 lt_SP2NL='tr \100 \n'
6222 lt_NL2SP='tr \r\n \100\100'
6223 ;;
6224 esac
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6235 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6236 if test "${lt_cv_ld_reload_flag+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239 lt_cv_ld_reload_flag='-r'
6240 fi
6241 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6242 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6243 reload_flag=$lt_cv_ld_reload_flag
6244 case $reload_flag in
6245 "" | " "*) ;;
6246 *) reload_flag=" $reload_flag" ;;
6247 esac
6248 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6249 case $host_os in
6250 darwin*)
6251 if test "$GCC" = yes; then
6252 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6253 else
6254 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6255 fi
6256 ;;
6257 esac
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6269 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6270 if test "${lt_cv_deplibs_check_method+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273 lt_cv_file_magic_cmd='$MAGIC_CMD'
6274 lt_cv_file_magic_test_file=
6275 lt_cv_deplibs_check_method='unknown'
6276 # Need to set the preceding variable on all platforms that support
6277 # interlibrary dependencies.
6278 # 'none' -- dependencies not supported.
6279 # `unknown' -- same as none, but documents that we really don't know.
6280 # 'pass_all' -- all dependencies passed with no checks.
6281 # 'test_compile' -- check by making test program.
6282 # 'file_magic [[regex]]' -- check by looking for files in library path
6283 # which responds to the $file_magic_cmd with a given extended regex.
6284 # If you have `file' or equivalent on your system and you're not sure
6285 # whether `pass_all' will *always* work, you probably want this one.
6286
6287 case $host_os in
6288 aix[4-9]*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
6291
6292 beos*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295
6296 bsdi[45]*)
6297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6298 lt_cv_file_magic_cmd='/usr/bin/file -L'
6299 lt_cv_file_magic_test_file=/shlib/libc.so
6300 ;;
6301
6302 cygwin*)
6303 # func_win32_libid is a shell function defined in ltmain.sh
6304 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6305 lt_cv_file_magic_cmd='func_win32_libid'
6306 ;;
6307
6308 mingw* | pw32*)
6309 # Base MSYS/MinGW do not provide the 'file' command needed by
6310 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6311 # unless we find 'file', for example because we are cross-compiling.
6312 if ( file / ) >/dev/null 2>&1; then
6313 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6314 lt_cv_file_magic_cmd='func_win32_libid'
6315 else
6316 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6317 lt_cv_file_magic_cmd='$OBJDUMP -f'
6318 fi
6319 ;;
6320
6321 darwin* | rhapsody*)
6322 lt_cv_deplibs_check_method=pass_all
6323 ;;
6324
6325 freebsd* | dragonfly*)
6326 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6327 case $host_cpu in
6328 i*86 )
6329 # Not sure whether the presence of OpenBSD here was a mistake.
6330 # Let's accept both of them until this is cleared up.
6331 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6332 lt_cv_file_magic_cmd=/usr/bin/file
6333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6334 ;;
6335 esac
6336 else
6337 lt_cv_deplibs_check_method=pass_all
6338 fi
6339 ;;
6340
6341 gnu*)
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
6344
6345 hpux10.20* | hpux11*)
6346 lt_cv_file_magic_cmd=/usr/bin/file
6347 case $host_cpu in
6348 ia64*)
6349 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6350 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6351 ;;
6352 hppa*64*)
6353 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]'
6354 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6355 ;;
6356 *)
6357 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6358 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6359 ;;
6360 esac
6361 ;;
6362
6363 interix[3-9]*)
6364 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6366 ;;
6367
6368 irix5* | irix6* | nonstopux*)
6369 case $LD in
6370 *-32|*"-32 ") libmagic=32-bit;;
6371 *-n32|*"-n32 ") libmagic=N32;;
6372 *-64|*"-64 ") libmagic=64-bit;;
6373 *) libmagic=never-match;;
6374 esac
6375 lt_cv_deplibs_check_method=pass_all
6376 ;;
6377
6378 # This must be Linux ELF.
6379 linux* | k*bsd*-gnu)
6380 lt_cv_deplibs_check_method=pass_all
6381 ;;
6382
6383 netbsd*)
6384 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6386 else
6387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6388 fi
6389 ;;
6390
6391 newos6*)
6392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6393 lt_cv_file_magic_cmd=/usr/bin/file
6394 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6395 ;;
6396
6397 *nto* | *qnx*)
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401 openbsd*)
6402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6404 else
6405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6406 fi
6407 ;;
6408
6409 osf3* | osf4* | osf5*)
6410 lt_cv_deplibs_check_method=pass_all
6411 ;;
6412
6413 rdos*)
6414 lt_cv_deplibs_check_method=pass_all
6415 ;;
6416
6417 solaris*)
6418 lt_cv_deplibs_check_method=pass_all
6419 ;;
6420
6421 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6422 lt_cv_deplibs_check_method=pass_all
6423 ;;
6424
6425 sysv4 | sysv4.3*)
6426 case $host_vendor in
6427 motorola)
6428 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]'
6429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6430 ;;
6431 ncr)
6432 lt_cv_deplibs_check_method=pass_all
6433 ;;
6434 sequent)
6435 lt_cv_file_magic_cmd='/bin/file'
6436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6437 ;;
6438 sni)
6439 lt_cv_file_magic_cmd='/bin/file'
6440 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6441 lt_cv_file_magic_test_file=/lib/libc.so
6442 ;;
6443 siemens)
6444 lt_cv_deplibs_check_method=pass_all
6445 ;;
6446 pc)
6447 lt_cv_deplibs_check_method=pass_all
6448 ;;
6449 esac
6450 ;;
6451
6452 tpf*)
6453 lt_cv_deplibs_check_method=pass_all
6454 ;;
6455 esac
6456
6457 fi
6458 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6459 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6460 file_magic_cmd=$lt_cv_file_magic_cmd
6461 deplibs_check_method=$lt_cv_deplibs_check_method
6462 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475 if test -n "$ac_tool_prefix"; then
6476 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6477 set dummy ${ac_tool_prefix}ar; ac_word=$2
6478 echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6480 if test "${ac_cv_prog_AR+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483 if test -n "$AR"; then
6484 ac_cv_prog_AR="$AR" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_prog_AR="${ac_tool_prefix}ar"
6494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499
6500 fi
6501 fi
6502 AR=$ac_cv_prog_AR
6503 if test -n "$AR"; then
6504 echo "$as_me:$LINENO: result: $AR" >&5
6505 echo "${ECHO_T}$AR" >&6
6506 else
6507 echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6
6509 fi
6510
6511 fi
6512 if test -z "$ac_cv_prog_AR"; then
6513 ac_ct_AR=$AR
6514 # Extract the first word of "ar", so it can be a program name with args.
6515 set dummy ar; ac_word=$2
6516 echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6518 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 if test -n "$ac_ct_AR"; then
6522 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_ac_ct_AR="ar"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535 done
6536 done
6537
6538 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6539 fi
6540 fi
6541 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6542 if test -n "$ac_ct_AR"; then
6543 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6544 echo "${ECHO_T}$ac_ct_AR" >&6
6545 else
6546 echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6
6548 fi
6549
6550 AR=$ac_ct_AR
6551 else
6552 AR="$ac_cv_prog_AR"
6553 fi
6554
6555 test -z "$AR" && AR=ar
6556 test -z "$AR_FLAGS" && AR_FLAGS=cru
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 if test -n "$ac_tool_prefix"; then
6569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}strip; ac_word=$2
6571 echo "$as_me:$LINENO: checking for $ac_word" >&5
6572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6573 if test "${ac_cv_prog_STRIP+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576 if test -n "$STRIP"; then
6577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590 done
6591 done
6592
6593 fi
6594 fi
6595 STRIP=$ac_cv_prog_STRIP
6596 if test -n "$STRIP"; then
6597 echo "$as_me:$LINENO: result: $STRIP" >&5
6598 echo "${ECHO_T}$STRIP" >&6
6599 else
6600 echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6
6602 fi
6603
6604 fi
6605 if test -z "$ac_cv_prog_STRIP"; then
6606 ac_ct_STRIP=$STRIP
6607 # Extract the first word of "strip", so it can be a program name with args.
6608 set dummy strip; ac_word=$2
6609 echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6611 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614 if test -n "$ac_ct_STRIP"; then
6615 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_ac_ct_STRIP="strip"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628 done
6629 done
6630
6631 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6632 fi
6633 fi
6634 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6635 if test -n "$ac_ct_STRIP"; then
6636 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6637 echo "${ECHO_T}$ac_ct_STRIP" >&6
6638 else
6639 echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6
6641 fi
6642
6643 STRIP=$ac_ct_STRIP
6644 else
6645 STRIP="$ac_cv_prog_STRIP"
6646 fi
6647
6648 test -z "$STRIP" && STRIP=:
6649
6650
6651
6652
6653
6654
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6658 echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6660 if test "${ac_cv_prog_RANLIB+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 if test -n "$RANLIB"; then
6664 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677 done
6678 done
6679
6680 fi
6681 fi
6682 RANLIB=$ac_cv_prog_RANLIB
6683 if test -n "$RANLIB"; then
6684 echo "$as_me:$LINENO: result: $RANLIB" >&5
6685 echo "${ECHO_T}$RANLIB" >&6
6686 else
6687 echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6
6689 fi
6690
6691 fi
6692 if test -z "$ac_cv_prog_RANLIB"; then
6693 ac_ct_RANLIB=$RANLIB
6694 # Extract the first word of "ranlib", so it can be a program name with args.
6695 set dummy ranlib; ac_word=$2
6696 echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6698 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 if test -n "$ac_ct_RANLIB"; then
6702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_ac_ct_RANLIB="ranlib"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715 done
6716 done
6717
6718 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6719 fi
6720 fi
6721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6722 if test -n "$ac_ct_RANLIB"; then
6723 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6724 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6725 else
6726 echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6
6728 fi
6729
6730 RANLIB=$ac_ct_RANLIB
6731 else
6732 RANLIB="$ac_cv_prog_RANLIB"
6733 fi
6734
6735 test -z "$RANLIB" && RANLIB=:
6736
6737
6738
6739
6740
6741
6742 # Determine commands to create old-style static archives.
6743 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6744 old_postinstall_cmds='chmod 644 $oldlib'
6745 old_postuninstall_cmds=
6746
6747 if test -n "$RANLIB"; then
6748 case $host_os in
6749 openbsd*)
6750 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6751 ;;
6752 *)
6753 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6754 ;;
6755 esac
6756 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6757 fi
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792 # If no C compiler was specified, use CC.
6793 LTCC=${LTCC-"$CC"}
6794
6795 # If no C compiler flags were specified, use CFLAGS.
6796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6797
6798 # Allow CC to be a program name with arguments.
6799 compiler=$CC
6800
6801
6802 # Check for command to grab the raw symbol name followed by C symbol from nm.
6803 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6804 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6805 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808
6809 # These are sane defaults that work on at least a few old systems.
6810 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6811
6812 # Character class describing NM global symbol codes.
6813 symcode='[BCDEGRST]'
6814
6815 # Regexp to match symbols that can be accessed directly from C.
6816 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6817
6818 # Define system-specific variables.
6819 case $host_os in
6820 aix*)
6821 symcode='[BCDT]'
6822 ;;
6823 cygwin* | mingw* | pw32*)
6824 symcode='[ABCDGISTW]'
6825 ;;
6826 hpux*)
6827 if test "$host_cpu" = ia64; then
6828 symcode='[ABCDEGRST]'
6829 fi
6830 ;;
6831 irix* | nonstopux*)
6832 symcode='[BCDEGRST]'
6833 ;;
6834 osf*)
6835 symcode='[BCDEGQRST]'
6836 ;;
6837 solaris*)
6838 symcode='[BDRT]'
6839 ;;
6840 sco3.2v5*)
6841 symcode='[DT]'
6842 ;;
6843 sysv4.2uw2*)
6844 symcode='[DT]'
6845 ;;
6846 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6847 symcode='[ABDT]'
6848 ;;
6849 sysv4)
6850 symcode='[DFNSTU]'
6851 ;;
6852 esac
6853
6854 # If we're using GNU nm, then use its standard symbol codes.
6855 case `$NM -V 2>&1` in
6856 *GNU* | *'with BFD'*)
6857 symcode='[ABCDGIRSTW]' ;;
6858 esac
6859
6860 # Transform an extracted symbol line into a proper C declaration.
6861 # Some systems (esp. on ia64) link data and code symbols differently,
6862 # so use this general approach.
6863 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6864
6865 # Transform an extracted symbol line into symbol name and symbol address
6866 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6867
6868 # Handle CRLF in mingw tool chain
6869 opt_cr=
6870 case $build_os in
6871 mingw*)
6872 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6873 ;;
6874 esac
6875
6876 # Try without a prefix underscore, then with it.
6877 for ac_symprfx in "" "_"; do
6878
6879 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6880 symxfrm="\\1 $ac_symprfx\\2 \\2"
6881
6882 # Write the raw and C identifiers.
6883 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6884 # Fake it for dumpbin and say T for any non-static function
6885 # and D for any global variable.
6886 # Also find C++ and __fastcall symbols from MSVC++,
6887 # which start with @ or ?.
6888 lt_cv_sys_global_symbol_pipe="$AWK '"\
6889 " {last_section=section; section=\$ 3};"\
6890 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6891 " \$ 0!~/External *\|/{next};"\
6892 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6893 " {if(hide[section]) next};"\
6894 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6895 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6896 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6897 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6898 " ' prfx=^$ac_symprfx"
6899 else
6900 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6901 fi
6902
6903 # Check to see that the pipe works correctly.
6904 pipe_works=no
6905
6906 rm -f conftest*
6907 cat > conftest.$ac_ext <<_LT_EOF
6908 #ifdef __cplusplus
6909 extern "C" {
6910 #endif
6911 char nm_test_var;
6912 void nm_test_func(void);
6913 void nm_test_func(void){}
6914 #ifdef __cplusplus
6915 }
6916 #endif
6917 int main(){nm_test_var='a';nm_test_func();return(0);}
6918 _LT_EOF
6919
6920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921 (eval $ac_compile) 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; then
6925 # Now try to grab the symbols.
6926 nlist=conftest.nm
6927 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6928 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } && test -s "$nlist"; then
6932 # Try sorting and uniquifying the output.
6933 if sort "$nlist" | uniq > "$nlist"T; then
6934 mv -f "$nlist"T "$nlist"
6935 else
6936 rm -f "$nlist"T
6937 fi
6938
6939 # Make sure that we snagged all the symbols we need.
6940 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6941 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6942 cat <<_LT_EOF > conftest.$ac_ext
6943 #ifdef __cplusplus
6944 extern "C" {
6945 #endif
6946
6947 _LT_EOF
6948 # Now generate the symbol file.
6949 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6950
6951 cat <<_LT_EOF >> conftest.$ac_ext
6952
6953 /* The mapping between symbol names and symbols. */
6954 const struct {
6955 const char *name;
6956 void *address;
6957 }
6958 lt__PROGRAM__LTX_preloaded_symbols[] =
6959 {
6960 { "@PROGRAM@", (void *) 0 },
6961 _LT_EOF
6962 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6963 cat <<\_LT_EOF >> conftest.$ac_ext
6964 {0, (void *) 0}
6965 };
6966
6967 /* This works around a problem in FreeBSD linker */
6968 #ifdef FREEBSD_WORKAROUND
6969 static const void *lt_preloaded_setup() {
6970 return lt__PROGRAM__LTX_preloaded_symbols;
6971 }
6972 #endif
6973
6974 #ifdef __cplusplus
6975 }
6976 #endif
6977 _LT_EOF
6978 # Now try linking the two files.
6979 mv conftest.$ac_objext conftstm.$ac_objext
6980 lt_save_LIBS="$LIBS"
6981 lt_save_CFLAGS="$CFLAGS"
6982 LIBS="conftstm.$ac_objext"
6983 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6985 (eval $ac_link) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6989 pipe_works=yes
6990 fi
6991 LIBS="$lt_save_LIBS"
6992 CFLAGS="$lt_save_CFLAGS"
6993 else
6994 echo "cannot find nm_test_func in $nlist" >&5
6995 fi
6996 else
6997 echo "cannot find nm_test_var in $nlist" >&5
6998 fi
6999 else
7000 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7001 fi
7002 else
7003 echo "$progname: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7005 fi
7006 rm -f conftest* conftst*
7007
7008 # Do not use the global_symbol_pipe unless it works.
7009 if test "$pipe_works" = yes; then
7010 break
7011 else
7012 lt_cv_sys_global_symbol_pipe=
7013 fi
7014 done
7015
7016 fi
7017
7018 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7019 lt_cv_sys_global_symbol_to_cdecl=
7020 fi
7021 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7022 echo "$as_me:$LINENO: result: failed" >&5
7023 echo "${ECHO_T}failed" >&6
7024 else
7025 echo "$as_me:$LINENO: result: ok" >&5
7026 echo "${ECHO_T}ok" >&6
7027 fi
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7047 if test "${enable_libtool_lock+set}" = set; then
7048 enableval="$enable_libtool_lock"
7049
7050 fi;
7051 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7052
7053 # Some flags need to be propagated to the compiler or linker for good
7054 # libtool support.
7055 case $host in
7056 ia64-*-hpux*)
7057 # Find out which ABI we are using.
7058 echo 'int i;' > conftest.$ac_ext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7060 (eval $ac_compile) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; then
7064 case `/usr/bin/file conftest.$ac_objext` in
7065 *ELF-32*)
7066 HPUX_IA64_MODE="32"
7067 ;;
7068 *ELF-64*)
7069 HPUX_IA64_MODE="64"
7070 ;;
7071 esac
7072 fi
7073 rm -rf conftest*
7074 ;;
7075 *-*-irix6*)
7076 # Find out which ABI we are using.
7077 echo '#line 7077 "configure"' > conftest.$ac_ext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079 (eval $ac_compile) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; then
7083 if test "$lt_cv_prog_gnu_ld" = yes; then
7084 case `/usr/bin/file conftest.$ac_objext` in
7085 *32-bit*)
7086 LD="${LD-ld} -melf32bsmip"
7087 ;;
7088 *N32*)
7089 LD="${LD-ld} -melf32bmipn32"
7090 ;;
7091 *64-bit*)
7092 LD="${LD-ld} -melf64bmip"
7093 ;;
7094 esac
7095 else
7096 case `/usr/bin/file conftest.$ac_objext` in
7097 *32-bit*)
7098 LD="${LD-ld} -32"
7099 ;;
7100 *N32*)
7101 LD="${LD-ld} -n32"
7102 ;;
7103 *64-bit*)
7104 LD="${LD-ld} -64"
7105 ;;
7106 esac
7107 fi
7108 fi
7109 rm -rf conftest*
7110 ;;
7111
7112 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7113 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7114 # Find out which ABI we are using.
7115 echo 'int i;' > conftest.$ac_ext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; then
7121 case `/usr/bin/file conftest.o` in
7122 *32-bit*)
7123 case $host in
7124 x86_64-*kfreebsd*-gnu)
7125 LD="${LD-ld} -m elf_i386_fbsd"
7126 ;;
7127 x86_64-*linux*)
7128 LD="${LD-ld} -m elf_i386"
7129 ;;
7130 ppc64-*linux*|powerpc64-*linux*)
7131 LD="${LD-ld} -m elf32ppclinux"
7132 ;;
7133 s390x-*linux*)
7134 LD="${LD-ld} -m elf_s390"
7135 ;;
7136 sparc64-*linux*)
7137 LD="${LD-ld} -m elf32_sparc"
7138 ;;
7139 esac
7140 ;;
7141 *64-bit*)
7142 case $host in
7143 x86_64-*kfreebsd*-gnu)
7144 LD="${LD-ld} -m elf_x86_64_fbsd"
7145 ;;
7146 x86_64-*linux*)
7147 LD="${LD-ld} -m elf_x86_64"
7148 ;;
7149 ppc*-*linux*|powerpc*-*linux*)
7150 LD="${LD-ld} -m elf64ppc"
7151 ;;
7152 s390*-*linux*|s390*-*tpf*)
7153 LD="${LD-ld} -m elf64_s390"
7154 ;;
7155 sparc*-*linux*)
7156 LD="${LD-ld} -m elf64_sparc"
7157 ;;
7158 esac
7159 ;;
7160 esac
7161 fi
7162 rm -rf conftest*
7163 ;;
7164
7165 *-*-sco3.2v5*)
7166 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7167 SAVE_CFLAGS="$CFLAGS"
7168 CFLAGS="$CFLAGS -belf"
7169 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7170 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7171 if test "${lt_cv_cc_needs_belf+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174 ac_ext=c
7175 ac_cpp='$CPP $CPPFLAGS'
7176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7179
7180 if test x$gcc_no_link = xyes; then
7181 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7182 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7183 { (exit 1); exit 1; }; }
7184 fi
7185 cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h. */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191
7192 int
7193 main ()
7194 {
7195
7196 ;
7197 return 0;
7198 }
7199 _ACEOF
7200 rm -f conftest.$ac_objext conftest$ac_exeext
7201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7202 (eval $ac_link) 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -z "$ac_c_werror_flag"
7210 || test ! -s conftest.err'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; } &&
7216 { ac_try='test -s conftest$ac_exeext'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 lt_cv_cc_needs_belf=yes
7223 else
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7226
7227 lt_cv_cc_needs_belf=no
7228 fi
7229 rm -f conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7231 ac_ext=c
7232 ac_cpp='$CPP $CPPFLAGS'
7233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7236
7237 fi
7238 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7239 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7240 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7241 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7242 CFLAGS="$SAVE_CFLAGS"
7243 fi
7244 ;;
7245 sparc*-*solaris*)
7246 # Find out which ABI we are using.
7247 echo 'int i;' > conftest.$ac_ext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7249 (eval $ac_compile) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; then
7253 case `/usr/bin/file conftest.o` in
7254 *64-bit*)
7255 case $lt_cv_prog_gnu_ld in
7256 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7257 *) LD="${LD-ld} -64" ;;
7258 esac
7259 ;;
7260 esac
7261 fi
7262 rm -rf conftest*
7263 ;;
7264 esac
7265
7266 need_locks="$enable_libtool_lock"
7267
7268 ac_ext=c
7269 ac_cpp='$CPP $CPPFLAGS'
7270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7273 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7274 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7275 # On Suns, sometimes $CPP names a directory.
7276 if test -n "$CPP" && test -d "$CPP"; then
7277 CPP=
7278 fi
7279 if test -z "$CPP"; then
7280 if test "${ac_cv_prog_CPP+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 # Double quotes because CPP needs to be expanded
7284 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7285 do
7286 ac_preproc_ok=false
7287 for ac_c_preproc_warn_flag in '' yes
7288 do
7289 # Use a header file that comes with gcc, so configuring glibc
7290 # with a fresh cross-compiler works.
7291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7292 # <limits.h> exists even on freestanding compilers.
7293 # On the NeXT, cc -E runs the code through the compiler's parser,
7294 # not just through cpp. "Syntax error" is here to catch this case.
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h. */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 #ifdef __STDC__
7302 # include <limits.h>
7303 #else
7304 # include <assert.h>
7305 #endif
7306 Syntax error
7307 _ACEOF
7308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } >/dev/null; then
7316 if test -s conftest.err; then
7317 ac_cpp_err=$ac_c_preproc_warn_flag
7318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7319 else
7320 ac_cpp_err=
7321 fi
7322 else
7323 ac_cpp_err=yes
7324 fi
7325 if test -z "$ac_cpp_err"; then
7326 :
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7330
7331 # Broken: fails on valid input.
7332 continue
7333 fi
7334 rm -f conftest.err conftest.$ac_ext
7335
7336 # OK, works on sane cases. Now check whether non-existent headers
7337 # can be detected and how.
7338 cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h. */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 #include <ac_nonexistent.h>
7345 _ACEOF
7346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } >/dev/null; then
7354 if test -s conftest.err; then
7355 ac_cpp_err=$ac_c_preproc_warn_flag
7356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7357 else
7358 ac_cpp_err=
7359 fi
7360 else
7361 ac_cpp_err=yes
7362 fi
7363 if test -z "$ac_cpp_err"; then
7364 # Broken: success on invalid input.
7365 continue
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 # Passes both tests.
7371 ac_preproc_ok=:
7372 break
7373 fi
7374 rm -f conftest.err conftest.$ac_ext
7375
7376 done
7377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7378 rm -f conftest.err conftest.$ac_ext
7379 if $ac_preproc_ok; then
7380 break
7381 fi
7382
7383 done
7384 ac_cv_prog_CPP=$CPP
7385
7386 fi
7387 CPP=$ac_cv_prog_CPP
7388 else
7389 ac_cv_prog_CPP=$CPP
7390 fi
7391 echo "$as_me:$LINENO: result: $CPP" >&5
7392 echo "${ECHO_T}$CPP" >&6
7393 ac_preproc_ok=false
7394 for ac_c_preproc_warn_flag in '' yes
7395 do
7396 # Use a header file that comes with gcc, so configuring glibc
7397 # with a fresh cross-compiler works.
7398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399 # <limits.h> exists even on freestanding compilers.
7400 # On the NeXT, cc -E runs the code through the compiler's parser,
7401 # not just through cpp. "Syntax error" is here to catch this case.
7402 cat >conftest.$ac_ext <<_ACEOF
7403 /* confdefs.h. */
7404 _ACEOF
7405 cat confdefs.h >>conftest.$ac_ext
7406 cat >>conftest.$ac_ext <<_ACEOF
7407 /* end confdefs.h. */
7408 #ifdef __STDC__
7409 # include <limits.h>
7410 #else
7411 # include <assert.h>
7412 #endif
7413 Syntax error
7414 _ACEOF
7415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } >/dev/null; then
7423 if test -s conftest.err; then
7424 ac_cpp_err=$ac_c_preproc_warn_flag
7425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7426 else
7427 ac_cpp_err=
7428 fi
7429 else
7430 ac_cpp_err=yes
7431 fi
7432 if test -z "$ac_cpp_err"; then
7433 :
7434 else
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7437
7438 # Broken: fails on valid input.
7439 continue
7440 fi
7441 rm -f conftest.err conftest.$ac_ext
7442
7443 # OK, works on sane cases. Now check whether non-existent headers
7444 # can be detected and how.
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h. */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 #include <ac_nonexistent.h>
7452 _ACEOF
7453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } >/dev/null; then
7461 if test -s conftest.err; then
7462 ac_cpp_err=$ac_c_preproc_warn_flag
7463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7464 else
7465 ac_cpp_err=
7466 fi
7467 else
7468 ac_cpp_err=yes
7469 fi
7470 if test -z "$ac_cpp_err"; then
7471 # Broken: success on invalid input.
7472 continue
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477 # Passes both tests.
7478 ac_preproc_ok=:
7479 break
7480 fi
7481 rm -f conftest.err conftest.$ac_ext
7482
7483 done
7484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7485 rm -f conftest.err conftest.$ac_ext
7486 if $ac_preproc_ok; then
7487 :
7488 else
7489 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7490 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7491 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7492 See \`config.log' for more details." >&5
7493 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7494 See \`config.log' for more details." >&2;}
7495 { (exit 1); exit 1; }; }; }
7496 fi
7497
7498 ac_ext=c
7499 ac_cpp='$CPP $CPPFLAGS'
7500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503
7504
7505 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7506 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7507 if test "${ac_cv_header_stdc+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 cat >conftest.$ac_ext <<_ACEOF
7511 /* confdefs.h. */
7512 _ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 #include <stdlib.h>
7517 #include <stdarg.h>
7518 #include <string.h>
7519 #include <float.h>
7520
7521 int
7522 main ()
7523 {
7524
7525 ;
7526 return 0;
7527 }
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7531 (eval $ac_compile) 2>conftest.er1
7532 ac_status=$?
7533 grep -v '^ *+' conftest.er1 >conftest.err
7534 rm -f conftest.er1
7535 cat conftest.err >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } &&
7538 { ac_try='test -z "$ac_c_werror_flag"
7539 || test ! -s conftest.err'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 (eval $ac_try) 2>&5
7542 ac_status=$?
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; } &&
7545 { ac_try='test -s conftest.$ac_objext'
7546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 (eval $ac_try) 2>&5
7548 ac_status=$?
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; }; then
7551 ac_cv_header_stdc=yes
7552 else
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7555
7556 ac_cv_header_stdc=no
7557 fi
7558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7559
7560 if test $ac_cv_header_stdc = yes; then
7561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <string.h>
7569
7570 _ACEOF
7571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7572 $EGREP "memchr" >/dev/null 2>&1; then
7573 :
7574 else
7575 ac_cv_header_stdc=no
7576 fi
7577 rm -f conftest*
7578
7579 fi
7580
7581 if test $ac_cv_header_stdc = yes; then
7582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7583 cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 #include <stdlib.h>
7590
7591 _ACEOF
7592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7593 $EGREP "free" >/dev/null 2>&1; then
7594 :
7595 else
7596 ac_cv_header_stdc=no
7597 fi
7598 rm -f conftest*
7599
7600 fi
7601
7602 if test $ac_cv_header_stdc = yes; then
7603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7604 if test "$cross_compiling" = yes; then
7605 :
7606 else
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 #include <ctype.h>
7614 #if ((' ' & 0x0FF) == 0x020)
7615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7617 #else
7618 # define ISLOWER(c) \
7619 (('a' <= (c) && (c) <= 'i') \
7620 || ('j' <= (c) && (c) <= 'r') \
7621 || ('s' <= (c) && (c) <= 'z'))
7622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7623 #endif
7624
7625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7626 int
7627 main ()
7628 {
7629 int i;
7630 for (i = 0; i < 256; i++)
7631 if (XOR (islower (i), ISLOWER (i))
7632 || toupper (i) != TOUPPER (i))
7633 exit(2);
7634 exit (0);
7635 }
7636 _ACEOF
7637 rm -f conftest$ac_exeext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7639 (eval $ac_link) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 :
7649 else
7650 echo "$as_me: program exited with status $ac_status" >&5
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7653
7654 ( exit $ac_status )
7655 ac_cv_header_stdc=no
7656 fi
7657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7658 fi
7659 fi
7660 fi
7661 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7662 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7663 if test $ac_cv_header_stdc = yes; then
7664
7665 cat >>confdefs.h <<\_ACEOF
7666 #define STDC_HEADERS 1
7667 _ACEOF
7668
7669 fi
7670
7671 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7682 inttypes.h stdint.h unistd.h
7683 do
7684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7685 echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 $ac_includes_default
7697
7698 #include <$ac_header>
7699 _ACEOF
7700 rm -f conftest.$ac_objext
7701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7702 (eval $ac_compile) 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } &&
7709 { ac_try='test -z "$ac_c_werror_flag"
7710 || test ! -s conftest.err'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 (eval $ac_try) 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; } &&
7716 { ac_try='test -s conftest.$ac_objext'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 (eval $ac_try) 2>&5
7719 ac_status=$?
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; }; then
7722 eval "$as_ac_Header=yes"
7723 else
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7726
7727 eval "$as_ac_Header=no"
7728 fi
7729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7730 fi
7731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7734 cat >>confdefs.h <<_ACEOF
7735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 _ACEOF
7737
7738 fi
7739
7740 done
7741
7742
7743
7744 for ac_header in dlfcn.h
7745 do
7746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7747 echo "$as_me:$LINENO: checking for $ac_header" >&5
7748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 $ac_includes_default
7759
7760 #include <$ac_header>
7761 _ACEOF
7762 rm -f conftest.$ac_objext
7763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7764 (eval $ac_compile) 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } &&
7771 { ac_try='test -z "$ac_c_werror_flag"
7772 || test ! -s conftest.err'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; } &&
7778 { ac_try='test -s conftest.$ac_objext'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; }; then
7784 eval "$as_ac_Header=yes"
7785 else
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7788
7789 eval "$as_ac_Header=no"
7790 fi
7791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7792 fi
7793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7796 cat >>confdefs.h <<_ACEOF
7797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7798 _ACEOF
7799
7800 fi
7801
7802 done
7803
7804
7805
7806 ac_ext=cc
7807 ac_cpp='$CXXCPP $CPPFLAGS'
7808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7811 if test -n "$ac_tool_prefix"; then
7812 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7813 do
7814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7816 echo "$as_me:$LINENO: checking for $ac_word" >&5
7817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7818 if test "${ac_cv_prog_CXX+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821 if test -n "$CXX"; then
7822 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835 done
7836 done
7837
7838 fi
7839 fi
7840 CXX=$ac_cv_prog_CXX
7841 if test -n "$CXX"; then
7842 echo "$as_me:$LINENO: result: $CXX" >&5
7843 echo "${ECHO_T}$CXX" >&6
7844 else
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7847 fi
7848
7849 test -n "$CXX" && break
7850 done
7851 fi
7852 if test -z "$CXX"; then
7853 ac_ct_CXX=$CXX
7854 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7855 do
7856 # Extract the first word of "$ac_prog", so it can be a program name with args.
7857 set dummy $ac_prog; ac_word=$2
7858 echo "$as_me:$LINENO: checking for $ac_word" >&5
7859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7860 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863 if test -n "$ac_ct_CXX"; then
7864 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_ac_ct_CXX="$ac_prog"
7874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877 done
7878 done
7879
7880 fi
7881 fi
7882 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7883 if test -n "$ac_ct_CXX"; then
7884 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7885 echo "${ECHO_T}$ac_ct_CXX" >&6
7886 else
7887 echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6
7889 fi
7890
7891 test -n "$ac_ct_CXX" && break
7892 done
7893 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7894
7895 CXX=$ac_ct_CXX
7896 fi
7897
7898
7899 # Provide some information about the compiler.
7900 echo "$as_me:$LINENO:" \
7901 "checking for C++ compiler version" >&5
7902 ac_compiler=`set X $ac_compile; echo $2`
7903 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7904 (eval $ac_compiler --version </dev/null >&5) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }
7908 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7909 (eval $ac_compiler -v </dev/null >&5) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }
7913 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7914 (eval $ac_compiler -V </dev/null >&5) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }
7918
7919 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7920 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7921 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h. */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930
7931 int
7932 main ()
7933 {
7934 #ifndef __GNUC__
7935 choke me
7936 #endif
7937
7938 ;
7939 return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest.$ac_objext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944 (eval $ac_compile) 2>conftest.er1
7945 ac_status=$?
7946 grep -v '^ *+' conftest.er1 >conftest.err
7947 rm -f conftest.er1
7948 cat conftest.err >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } &&
7951 { ac_try='test -z "$ac_cxx_werror_flag"
7952 || test ! -s conftest.err'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 (eval $ac_try) 2>&5
7955 ac_status=$?
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; } &&
7958 { ac_try='test -s conftest.$ac_objext'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 ac_compiler_gnu=yes
7965 else
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7968
7969 ac_compiler_gnu=no
7970 fi
7971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7972 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7973
7974 fi
7975 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7976 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7977 GXX=`test $ac_compiler_gnu = yes && echo yes`
7978 ac_test_CXXFLAGS=${CXXFLAGS+set}
7979 ac_save_CXXFLAGS=$CXXFLAGS
7980 CXXFLAGS="-g"
7981 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7982 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7983 if test "${ac_cv_prog_cxx_g+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7992
7993 int
7994 main ()
7995 {
7996
7997 ;
7998 return 0;
7999 }
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003 (eval $ac_compile) 2>conftest.er1
8004 ac_status=$?
8005 grep -v '^ *+' conftest.er1 >conftest.err
8006 rm -f conftest.er1
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -z "$ac_cxx_werror_flag"
8011 || test ! -s conftest.err'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; } &&
8017 { ac_try='test -s conftest.$ac_objext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 (eval $ac_try) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 ac_cv_prog_cxx_g=yes
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 ac_cv_prog_cxx_g=no
8029 fi
8030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8031 fi
8032 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8033 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8034 if test "$ac_test_CXXFLAGS" = set; then
8035 CXXFLAGS=$ac_save_CXXFLAGS
8036 elif test $ac_cv_prog_cxx_g = yes; then
8037 if test "$GXX" = yes; then
8038 CXXFLAGS="-g -O2"
8039 else
8040 CXXFLAGS="-g"
8041 fi
8042 else
8043 if test "$GXX" = yes; then
8044 CXXFLAGS="-O2"
8045 else
8046 CXXFLAGS=
8047 fi
8048 fi
8049 for ac_declaration in \
8050 '' \
8051 'extern "C" void std::exit (int) throw (); using std::exit;' \
8052 'extern "C" void std::exit (int); using std::exit;' \
8053 'extern "C" void exit (int) throw ();' \
8054 'extern "C" void exit (int);' \
8055 'void exit (int);'
8056 do
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h. */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 $ac_declaration
8064 #include <stdlib.h>
8065 int
8066 main ()
8067 {
8068 exit (42);
8069 ;
8070 return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest.$ac_objext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8075 (eval $ac_compile) 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -z "$ac_cxx_werror_flag"
8083 || test ! -s conftest.err'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; } &&
8089 { ac_try='test -s conftest.$ac_objext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 :
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8099
8100 continue
8101 fi
8102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8103 cat >conftest.$ac_ext <<_ACEOF
8104 /* confdefs.h. */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 $ac_declaration
8110 int
8111 main ()
8112 {
8113 exit (42);
8114 ;
8115 return 0;
8116 }
8117 _ACEOF
8118 rm -f conftest.$ac_objext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8120 (eval $ac_compile) 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -z "$ac_cxx_werror_flag"
8128 || test ! -s conftest.err'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 break
8141 else
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 fi
8146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8147 done
8148 rm -f conftest*
8149 if test -n "$ac_declaration"; then
8150 echo '#ifdef __cplusplus' >>confdefs.h
8151 echo $ac_declaration >>confdefs.h
8152 echo '#endif' >>confdefs.h
8153 fi
8154
8155 ac_ext=c
8156 ac_cpp='$CPP $CPPFLAGS'
8157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8160
8161 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8162 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8163 (test "X$CXX" != "Xg++"))) ; then
8164 ac_ext=cc
8165 ac_cpp='$CXXCPP $CPPFLAGS'
8166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8169 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8170 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8171 if test -z "$CXXCPP"; then
8172 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 # Double quotes because CXXCPP needs to be expanded
8176 for CXXCPP in "$CXX -E" "/lib/cpp"
8177 do
8178 ac_preproc_ok=false
8179 for ac_cxx_preproc_warn_flag in '' yes
8180 do
8181 # Use a header file that comes with gcc, so configuring glibc
8182 # with a fresh cross-compiler works.
8183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8184 # <limits.h> exists even on freestanding compilers.
8185 # On the NeXT, cc -E runs the code through the compiler's parser,
8186 # not just through cpp. "Syntax error" is here to catch this case.
8187 cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h. */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193 #ifdef __STDC__
8194 # include <limits.h>
8195 #else
8196 # include <assert.h>
8197 #endif
8198 Syntax error
8199 _ACEOF
8200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } >/dev/null; then
8208 if test -s conftest.err; then
8209 ac_cpp_err=$ac_cxx_preproc_warn_flag
8210 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8211 else
8212 ac_cpp_err=
8213 fi
8214 else
8215 ac_cpp_err=yes
8216 fi
8217 if test -z "$ac_cpp_err"; then
8218 :
8219 else
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8222
8223 # Broken: fails on valid input.
8224 continue
8225 fi
8226 rm -f conftest.err conftest.$ac_ext
8227
8228 # OK, works on sane cases. Now check whether non-existent headers
8229 # can be detected and how.
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 #include <ac_nonexistent.h>
8237 _ACEOF
8238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8240 ac_status=$?
8241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } >/dev/null; then
8246 if test -s conftest.err; then
8247 ac_cpp_err=$ac_cxx_preproc_warn_flag
8248 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8249 else
8250 ac_cpp_err=
8251 fi
8252 else
8253 ac_cpp_err=yes
8254 fi
8255 if test -z "$ac_cpp_err"; then
8256 # Broken: success on invalid input.
8257 continue
8258 else
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8261
8262 # Passes both tests.
8263 ac_preproc_ok=:
8264 break
8265 fi
8266 rm -f conftest.err conftest.$ac_ext
8267
8268 done
8269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8270 rm -f conftest.err conftest.$ac_ext
8271 if $ac_preproc_ok; then
8272 break
8273 fi
8274
8275 done
8276 ac_cv_prog_CXXCPP=$CXXCPP
8277
8278 fi
8279 CXXCPP=$ac_cv_prog_CXXCPP
8280 else
8281 ac_cv_prog_CXXCPP=$CXXCPP
8282 fi
8283 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8284 echo "${ECHO_T}$CXXCPP" >&6
8285 ac_preproc_ok=false
8286 for ac_cxx_preproc_warn_flag in '' yes
8287 do
8288 # Use a header file that comes with gcc, so configuring glibc
8289 # with a fresh cross-compiler works.
8290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8291 # <limits.h> exists even on freestanding compilers.
8292 # On the NeXT, cc -E runs the code through the compiler's parser,
8293 # not just through cpp. "Syntax error" is here to catch this case.
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h. */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 #ifdef __STDC__
8301 # include <limits.h>
8302 #else
8303 # include <assert.h>
8304 #endif
8305 Syntax error
8306 _ACEOF
8307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } >/dev/null; then
8315 if test -s conftest.err; then
8316 ac_cpp_err=$ac_cxx_preproc_warn_flag
8317 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8318 else
8319 ac_cpp_err=
8320 fi
8321 else
8322 ac_cpp_err=yes
8323 fi
8324 if test -z "$ac_cpp_err"; then
8325 :
8326 else
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330 # Broken: fails on valid input.
8331 continue
8332 fi
8333 rm -f conftest.err conftest.$ac_ext
8334
8335 # OK, works on sane cases. Now check whether non-existent headers
8336 # can be detected and how.
8337 cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h. */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 #include <ac_nonexistent.h>
8344 _ACEOF
8345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8347 ac_status=$?
8348 grep -v '^ *+' conftest.er1 >conftest.err
8349 rm -f conftest.er1
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } >/dev/null; then
8353 if test -s conftest.err; then
8354 ac_cpp_err=$ac_cxx_preproc_warn_flag
8355 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8356 else
8357 ac_cpp_err=
8358 fi
8359 else
8360 ac_cpp_err=yes
8361 fi
8362 if test -z "$ac_cpp_err"; then
8363 # Broken: success on invalid input.
8364 continue
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 # Passes both tests.
8370 ac_preproc_ok=:
8371 break
8372 fi
8373 rm -f conftest.err conftest.$ac_ext
8374
8375 done
8376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8377 rm -f conftest.err conftest.$ac_ext
8378 if $ac_preproc_ok; then
8379 :
8380 else
8381 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8382 echo "$as_me: error: in \`$ac_pwd':" >&2;}
8383 _lt_caught_CXX_error=yes; }
8384 fi
8385
8386 ac_ext=c
8387 ac_cpp='$CPP $CPPFLAGS'
8388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8391
8392 else
8393 _lt_caught_CXX_error=yes
8394 fi
8395
8396
8397
8398
8399
8400 # This can be used to rebuild libtool when needed
8401 LIBTOOL_DEPS="$ltmain"
8402
8403 # Always use our own libtool.
8404 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430 test -z "$LN_S" && LN_S="ln -s"
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445 if test -n "${ZSH_VERSION+set}" ; then
8446 setopt NO_GLOB_SUBST
8447 fi
8448
8449 echo "$as_me:$LINENO: checking for objdir" >&5
8450 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8451 if test "${lt_cv_objdir+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454 rm -f .libs 2>/dev/null
8455 mkdir .libs 2>/dev/null
8456 if test -d .libs; then
8457 lt_cv_objdir=.libs
8458 else
8459 # MS-DOS does not allow filenames that begin with a dot.
8460 lt_cv_objdir=_libs
8461 fi
8462 rmdir .libs 2>/dev/null
8463 fi
8464 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8465 echo "${ECHO_T}$lt_cv_objdir" >&6
8466 objdir=$lt_cv_objdir
8467
8468
8469
8470
8471
8472 cat >>confdefs.h <<_ACEOF
8473 #define LT_OBJDIR "$lt_cv_objdir/"
8474 _ACEOF
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492 case $host_os in
8493 aix3*)
8494 # AIX sometimes has problems with the GCC collect2 program. For some
8495 # reason, if we set the COLLECT_NAMES environment variable, the problems
8496 # vanish in a puff of smoke.
8497 if test "X${COLLECT_NAMES+set}" != Xset; then
8498 COLLECT_NAMES=
8499 export COLLECT_NAMES
8500 fi
8501 ;;
8502 esac
8503
8504 # Sed substitution that helps us do robust quoting. It backslashifies
8505 # metacharacters that are still active within double-quoted strings.
8506 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8507
8508 # Same as above, but do not quote variable references.
8509 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8510
8511 # Sed substitution to delay expansion of an escaped shell variable in a
8512 # double_quote_subst'ed string.
8513 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8514
8515 # Sed substitution to delay expansion of an escaped single quote.
8516 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8517
8518 # Sed substitution to avoid accidental globbing in evaled expressions
8519 no_glob_subst='s/\*/\\\*/g'
8520
8521 # Global variables:
8522 ofile=libtool
8523 can_build_shared=yes
8524
8525 # All known linkers require a `.a' archive for static linking (except MSVC,
8526 # which needs '.lib').
8527 libext=a
8528
8529 with_gnu_ld="$lt_cv_prog_gnu_ld"
8530
8531 old_CC="$CC"
8532 old_CFLAGS="$CFLAGS"
8533
8534 # Set sane defaults for various variables
8535 test -z "$CC" && CC=cc
8536 test -z "$LTCC" && LTCC=$CC
8537 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8538 test -z "$LD" && LD=ld
8539 test -z "$ac_objext" && ac_objext=o
8540
8541 for cc_temp in $compiler""; do
8542 case $cc_temp in
8543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8545 \-*) ;;
8546 *) break;;
8547 esac
8548 done
8549 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8550
8551
8552 # Only perform the check for file, if the check method requires it
8553 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8554 case $deplibs_check_method in
8555 file_magic*)
8556 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8557 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8558 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 case $MAGIC_CMD in
8563 [\\/*] | ?:[\\/]*)
8564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8565 ;;
8566 *)
8567 lt_save_MAGIC_CMD="$MAGIC_CMD"
8568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8570 for ac_dir in $ac_dummy; do
8571 IFS="$lt_save_ifs"
8572 test -z "$ac_dir" && ac_dir=.
8573 if test -f $ac_dir/${ac_tool_prefix}file; then
8574 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8575 if test -n "$file_magic_test_file"; then
8576 case $deplibs_check_method in
8577 "file_magic "*)
8578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8581 $EGREP "$file_magic_regex" > /dev/null; then
8582 :
8583 else
8584 cat <<_LT_EOF 1>&2
8585
8586 *** Warning: the command libtool uses to detect shared libraries,
8587 *** $file_magic_cmd, produces output that libtool cannot recognize.
8588 *** The result is that libtool may fail to recognize shared libraries
8589 *** as such. This will affect the creation of libtool libraries that
8590 *** depend on shared libraries, but programs linked with such libtool
8591 *** libraries will work regardless of this problem. Nevertheless, you
8592 *** may want to report the problem to your system manager and/or to
8593 *** bug-libtool@gnu.org
8594
8595 _LT_EOF
8596 fi ;;
8597 esac
8598 fi
8599 break
8600 fi
8601 done
8602 IFS="$lt_save_ifs"
8603 MAGIC_CMD="$lt_save_MAGIC_CMD"
8604 ;;
8605 esac
8606 fi
8607
8608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609 if test -n "$MAGIC_CMD"; then
8610 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8611 echo "${ECHO_T}$MAGIC_CMD" >&6
8612 else
8613 echo "$as_me:$LINENO: result: no" >&5
8614 echo "${ECHO_T}no" >&6
8615 fi
8616
8617
8618
8619
8620
8621 if test -z "$lt_cv_path_MAGIC_CMD"; then
8622 if test -n "$ac_tool_prefix"; then
8623 echo "$as_me:$LINENO: checking for file" >&5
8624 echo $ECHO_N "checking for file... $ECHO_C" >&6
8625 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628 case $MAGIC_CMD in
8629 [\\/*] | ?:[\\/]*)
8630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8631 ;;
8632 *)
8633 lt_save_MAGIC_CMD="$MAGIC_CMD"
8634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8636 for ac_dir in $ac_dummy; do
8637 IFS="$lt_save_ifs"
8638 test -z "$ac_dir" && ac_dir=.
8639 if test -f $ac_dir/file; then
8640 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8641 if test -n "$file_magic_test_file"; then
8642 case $deplibs_check_method in
8643 "file_magic "*)
8644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8647 $EGREP "$file_magic_regex" > /dev/null; then
8648 :
8649 else
8650 cat <<_LT_EOF 1>&2
8651
8652 *** Warning: the command libtool uses to detect shared libraries,
8653 *** $file_magic_cmd, produces output that libtool cannot recognize.
8654 *** The result is that libtool may fail to recognize shared libraries
8655 *** as such. This will affect the creation of libtool libraries that
8656 *** depend on shared libraries, but programs linked with such libtool
8657 *** libraries will work regardless of this problem. Nevertheless, you
8658 *** may want to report the problem to your system manager and/or to
8659 *** bug-libtool@gnu.org
8660
8661 _LT_EOF
8662 fi ;;
8663 esac
8664 fi
8665 break
8666 fi
8667 done
8668 IFS="$lt_save_ifs"
8669 MAGIC_CMD="$lt_save_MAGIC_CMD"
8670 ;;
8671 esac
8672 fi
8673
8674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8675 if test -n "$MAGIC_CMD"; then
8676 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8677 echo "${ECHO_T}$MAGIC_CMD" >&6
8678 else
8679 echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6
8681 fi
8682
8683
8684 else
8685 MAGIC_CMD=:
8686 fi
8687 fi
8688
8689 fi
8690 ;;
8691 esac
8692
8693 # Use C for the default configuration in the libtool script
8694
8695 lt_save_CC="$CC"
8696 ac_ext=c
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702
8703 # Source file extension for C test sources.
8704 ac_ext=c
8705
8706 # Object file extension for compiled C test sources.
8707 objext=o
8708 objext=$objext
8709
8710 # Code to be used in simple compile tests
8711 lt_simple_compile_test_code="int some_variable = 0;"
8712
8713 # Code to be used in simple link tests
8714 lt_simple_link_test_code='int main(){return(0);}'
8715
8716
8717
8718
8719
8720
8721
8722 # If no C compiler was specified, use CC.
8723 LTCC=${LTCC-"$CC"}
8724
8725 # If no C compiler flags were specified, use CFLAGS.
8726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8727
8728 # Allow CC to be a program name with arguments.
8729 compiler=$CC
8730
8731 # Save the default compiler, since it gets overwritten when the other
8732 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8733 compiler_DEFAULT=$CC
8734
8735 # save warnings/boilerplate of simple test code
8736 ac_outfile=conftest.$ac_objext
8737 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8738 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8739 _lt_compiler_boilerplate=`cat conftest.err`
8740 $RM conftest*
8741
8742 ac_outfile=conftest.$ac_objext
8743 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8744 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8745 _lt_linker_boilerplate=`cat conftest.err`
8746 $RM conftest*
8747
8748
8749 ## CAVEAT EMPTOR:
8750 ## There is no encapsulation within the following macros, do not change
8751 ## the running order or otherwise move them around unless you know exactly
8752 ## what you are doing...
8753 if test -n "$compiler"; then
8754
8755 lt_prog_compiler_no_builtin_flag=
8756
8757 if test "$GCC" = yes; then
8758 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8759
8760 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8761 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8762 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 lt_cv_prog_compiler_rtti_exceptions=no
8766 ac_outfile=conftest.$ac_objext
8767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8768 lt_compiler_flag="-fno-rtti -fno-exceptions"
8769 # Insert the option either (1) after the last *FLAGS variable, or
8770 # (2) before a word containing "conftest.", or (3) at the end.
8771 # Note that $ac_compile itself does not contain backslashes and begins
8772 # with a dollar sign (not a hyphen), so the echo should work correctly.
8773 # The option is referenced via a variable to avoid confusing sed.
8774 lt_compile=`echo "$ac_compile" | $SED \
8775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8777 -e 's:$: $lt_compiler_flag:'`
8778 (eval echo "\"\$as_me:8778: $lt_compile\"" >&5)
8779 (eval "$lt_compile" 2>conftest.err)
8780 ac_status=$?
8781 cat conftest.err >&5
8782 echo "$as_me:8782: \$? = $ac_status" >&5
8783 if (exit $ac_status) && test -s "$ac_outfile"; then
8784 # The compiler can only warn and ignore the option if not recognized
8785 # So say no if there are warnings other than the usual output.
8786 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8789 lt_cv_prog_compiler_rtti_exceptions=yes
8790 fi
8791 fi
8792 $RM conftest*
8793
8794 fi
8795 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8796 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8797
8798 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8799 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8800 else
8801 :
8802 fi
8803
8804 fi
8805
8806
8807
8808
8809
8810
8811 lt_prog_compiler_wl=
8812 lt_prog_compiler_pic=
8813 lt_prog_compiler_static=
8814
8815 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8816 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8817
8818 if test "$GCC" = yes; then
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_static='-static'
8821
8822 case $host_os in
8823 aix*)
8824 # All AIX code is PIC.
8825 if test "$host_cpu" = ia64; then
8826 # AIX 5 now supports IA64 processor
8827 lt_prog_compiler_static='-Bstatic'
8828 fi
8829 ;;
8830
8831 amigaos*)
8832 if test "$host_cpu" = m68k; then
8833 # FIXME: we need at least 68020 code to build shared libraries, but
8834 # adding the `-m68020' flag to GCC prevents building anything better,
8835 # like `-m68040'.
8836 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8837 fi
8838 ;;
8839
8840 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8841 # PIC is the default for these OSes.
8842 ;;
8843
8844 mingw* | cygwin* | pw32* | os2*)
8845 # This hack is so that the source file can tell whether it is being
8846 # built for inclusion in a dll (and should export symbols for example).
8847 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8848 # (--disable-auto-import) libraries
8849 lt_prog_compiler_pic='-DDLL_EXPORT'
8850 ;;
8851
8852 darwin* | rhapsody*)
8853 # PIC is the default on this platform
8854 # Common symbols not allowed in MH_DYLIB files
8855 lt_prog_compiler_pic='-fno-common'
8856 ;;
8857
8858 hpux*)
8859 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8860 # not for PA HP-UX.
8861 case $host_cpu in
8862 hppa*64*|ia64*)
8863 # +Z the default
8864 ;;
8865 *)
8866 lt_prog_compiler_pic='-fPIC'
8867 ;;
8868 esac
8869 ;;
8870
8871 interix[3-9]*)
8872 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8873 # Instead, we relocate shared libraries at runtime.
8874 ;;
8875
8876 msdosdjgpp*)
8877 # Just because we use GCC doesn't mean we suddenly get shared libraries
8878 # on systems that don't support them.
8879 lt_prog_compiler_can_build_shared=no
8880 enable_shared=no
8881 ;;
8882
8883 *nto* | *qnx*)
8884 # QNX uses GNU C++, but need to define -shared option too, otherwise
8885 # it will coredump.
8886 lt_prog_compiler_pic='-fPIC -shared'
8887 ;;
8888
8889 sysv4*MP*)
8890 if test -d /usr/nec; then
8891 lt_prog_compiler_pic=-Kconform_pic
8892 fi
8893 ;;
8894
8895 *)
8896 lt_prog_compiler_pic='-fPIC'
8897 ;;
8898 esac
8899 else
8900 # PORTME Check for flag to pass linker flags through the system compiler.
8901 case $host_os in
8902 aix*)
8903 lt_prog_compiler_wl='-Wl,'
8904 if test "$host_cpu" = ia64; then
8905 # AIX 5 now supports IA64 processor
8906 lt_prog_compiler_static='-Bstatic'
8907 else
8908 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8909 fi
8910 ;;
8911 darwin*)
8912 # PIC is the default on this platform
8913 # Common symbols not allowed in MH_DYLIB files
8914 case $cc_basename in
8915 xlc*)
8916 lt_prog_compiler_pic='-qnocommon'
8917 lt_prog_compiler_wl='-Wl,'
8918 ;;
8919 esac
8920 ;;
8921
8922 mingw* | cygwin* | pw32* | os2*)
8923 # This hack is so that the source file can tell whether it is being
8924 # built for inclusion in a dll (and should export symbols for example).
8925 lt_prog_compiler_pic='-DDLL_EXPORT'
8926 ;;
8927
8928 hpux9* | hpux10* | hpux11*)
8929 lt_prog_compiler_wl='-Wl,'
8930 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8931 # not for PA HP-UX.
8932 case $host_cpu in
8933 hppa*64*|ia64*)
8934 # +Z the default
8935 ;;
8936 *)
8937 lt_prog_compiler_pic='+Z'
8938 ;;
8939 esac
8940 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8941 lt_prog_compiler_static='${wl}-a ${wl}archive'
8942 ;;
8943
8944 irix5* | irix6* | nonstopux*)
8945 lt_prog_compiler_wl='-Wl,'
8946 # PIC (with -KPIC) is the default.
8947 lt_prog_compiler_static='-non_shared'
8948 ;;
8949
8950 linux* | k*bsd*-gnu)
8951 case $cc_basename in
8952 icc* | ecc*)
8953 lt_prog_compiler_wl='-Wl,'
8954 lt_prog_compiler_pic='-KPIC'
8955 lt_prog_compiler_static='-static'
8956 ;;
8957 pgcc* | pgf77* | pgf90* | pgf95*)
8958 # Portland Group compilers (*not* the Pentium gcc compiler,
8959 # which looks to be a dead project)
8960 lt_prog_compiler_wl='-Wl,'
8961 lt_prog_compiler_pic='-fpic'
8962 lt_prog_compiler_static='-Bstatic'
8963 ;;
8964 ccc*)
8965 lt_prog_compiler_wl='-Wl,'
8966 # All Alpha code is PIC.
8967 lt_prog_compiler_static='-non_shared'
8968 ;;
8969 *)
8970 case `$CC -V 2>&1 | sed 5q` in
8971 *Sun\ C*)
8972 # Sun C 5.9
8973 lt_prog_compiler_pic='-KPIC'
8974 lt_prog_compiler_static='-Bstatic'
8975 lt_prog_compiler_wl='-Wl,'
8976 ;;
8977 *Sun\ F*)
8978 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8979 lt_prog_compiler_pic='-KPIC'
8980 lt_prog_compiler_static='-Bstatic'
8981 lt_prog_compiler_wl=''
8982 ;;
8983 esac
8984 ;;
8985 esac
8986 ;;
8987
8988 newsos6)
8989 lt_prog_compiler_pic='-KPIC'
8990 lt_prog_compiler_static='-Bstatic'
8991 ;;
8992
8993 *nto* | *qnx*)
8994 # QNX uses GNU C++, but need to define -shared option too, otherwise
8995 # it will coredump.
8996 lt_prog_compiler_pic='-fPIC -shared'
8997 ;;
8998
8999 osf3* | osf4* | osf5*)
9000 lt_prog_compiler_wl='-Wl,'
9001 # All OSF/1 code is PIC.
9002 lt_prog_compiler_static='-non_shared'
9003 ;;
9004
9005 rdos*)
9006 lt_prog_compiler_static='-non_shared'
9007 ;;
9008
9009 solaris*)
9010 lt_prog_compiler_pic='-KPIC'
9011 lt_prog_compiler_static='-Bstatic'
9012 case $cc_basename in
9013 f77* | f90* | f95*)
9014 lt_prog_compiler_wl='-Qoption ld ';;
9015 *)
9016 lt_prog_compiler_wl='-Wl,';;
9017 esac
9018 ;;
9019
9020 sunos4*)
9021 lt_prog_compiler_wl='-Qoption ld '
9022 lt_prog_compiler_pic='-PIC'
9023 lt_prog_compiler_static='-Bstatic'
9024 ;;
9025
9026 sysv4 | sysv4.2uw2* | sysv4.3*)
9027 lt_prog_compiler_wl='-Wl,'
9028 lt_prog_compiler_pic='-KPIC'
9029 lt_prog_compiler_static='-Bstatic'
9030 ;;
9031
9032 sysv4*MP*)
9033 if test -d /usr/nec ;then
9034 lt_prog_compiler_pic='-Kconform_pic'
9035 lt_prog_compiler_static='-Bstatic'
9036 fi
9037 ;;
9038
9039 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9040 lt_prog_compiler_wl='-Wl,'
9041 lt_prog_compiler_pic='-KPIC'
9042 lt_prog_compiler_static='-Bstatic'
9043 ;;
9044
9045 unicos*)
9046 lt_prog_compiler_wl='-Wl,'
9047 lt_prog_compiler_can_build_shared=no
9048 ;;
9049
9050 uts4*)
9051 lt_prog_compiler_pic='-pic'
9052 lt_prog_compiler_static='-Bstatic'
9053 ;;
9054
9055 *)
9056 lt_prog_compiler_can_build_shared=no
9057 ;;
9058 esac
9059 fi
9060
9061 case $host_os in
9062 # For platforms which do not support PIC, -DPIC is meaningless:
9063 *djgpp*)
9064 lt_prog_compiler_pic=
9065 ;;
9066 *)
9067 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9068 ;;
9069 esac
9070 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9071 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9072
9073
9074
9075
9076
9077
9078 #
9079 # Check to make sure the PIC flag actually works.
9080 #
9081 if test -n "$lt_prog_compiler_pic"; then
9082 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9083 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9084 if test "${lt_prog_compiler_pic_works+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 lt_prog_compiler_pic_works=no
9088 ac_outfile=conftest.$ac_objext
9089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9090 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9091 # Insert the option either (1) after the last *FLAGS variable, or
9092 # (2) before a word containing "conftest.", or (3) at the end.
9093 # Note that $ac_compile itself does not contain backslashes and begins
9094 # with a dollar sign (not a hyphen), so the echo should work correctly.
9095 # The option is referenced via a variable to avoid confusing sed.
9096 lt_compile=`echo "$ac_compile" | $SED \
9097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9099 -e 's:$: $lt_compiler_flag:'`
9100 (eval echo "\"\$as_me:9100: $lt_compile\"" >&5)
9101 (eval "$lt_compile" 2>conftest.err)
9102 ac_status=$?
9103 cat conftest.err >&5
9104 echo "$as_me:9104: \$? = $ac_status" >&5
9105 if (exit $ac_status) && test -s "$ac_outfile"; then
9106 # The compiler can only warn and ignore the option if not recognized
9107 # So say no if there are warnings other than the usual output.
9108 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9111 lt_prog_compiler_pic_works=yes
9112 fi
9113 fi
9114 $RM conftest*
9115
9116 fi
9117 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9118 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9119
9120 if test x"$lt_prog_compiler_pic_works" = xyes; then
9121 case $lt_prog_compiler_pic in
9122 "" | " "*) ;;
9123 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9124 esac
9125 else
9126 lt_prog_compiler_pic=
9127 lt_prog_compiler_can_build_shared=no
9128 fi
9129
9130 fi
9131
9132
9133
9134
9135
9136
9137 #
9138 # Check to make sure the static flag actually works.
9139 #
9140 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9141 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9142 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9143 if test "${lt_prog_compiler_static_works+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146 lt_prog_compiler_static_works=no
9147 save_LDFLAGS="$LDFLAGS"
9148 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9149 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9151 # The linker can only warn and ignore the option if not recognized
9152 # So say no if there are warnings
9153 if test -s conftest.err; then
9154 # Append any errors to the config.log.
9155 cat conftest.err 1>&5
9156 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9158 if diff conftest.exp conftest.er2 >/dev/null; then
9159 lt_prog_compiler_static_works=yes
9160 fi
9161 else
9162 lt_prog_compiler_static_works=yes
9163 fi
9164 fi
9165 $RM conftest*
9166 LDFLAGS="$save_LDFLAGS"
9167
9168 fi
9169 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9170 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9171
9172 if test x"$lt_prog_compiler_static_works" = xyes; then
9173 :
9174 else
9175 lt_prog_compiler_static=
9176 fi
9177
9178
9179
9180
9181
9182
9183
9184 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9185 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9186 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189 lt_cv_prog_compiler_c_o=no
9190 $RM -r conftest 2>/dev/null
9191 mkdir conftest
9192 cd conftest
9193 mkdir out
9194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9195
9196 lt_compiler_flag="-o out/conftest2.$ac_objext"
9197 # Insert the option either (1) after the last *FLAGS variable, or
9198 # (2) before a word containing "conftest.", or (3) at the end.
9199 # Note that $ac_compile itself does not contain backslashes and begins
9200 # with a dollar sign (not a hyphen), so the echo should work correctly.
9201 lt_compile=`echo "$ac_compile" | $SED \
9202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9204 -e 's:$: $lt_compiler_flag:'`
9205 (eval echo "\"\$as_me:9205: $lt_compile\"" >&5)
9206 (eval "$lt_compile" 2>out/conftest.err)
9207 ac_status=$?
9208 cat out/conftest.err >&5
9209 echo "$as_me:9209: \$? = $ac_status" >&5
9210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9211 then
9212 # The compiler can only warn and ignore the option if not recognized
9213 # So say no if there are warnings
9214 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9217 lt_cv_prog_compiler_c_o=yes
9218 fi
9219 fi
9220 chmod u+w . 2>&5
9221 $RM conftest*
9222 # SGI C++ compiler will create directory out/ii_files/ for
9223 # template instantiation
9224 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9225 $RM out/* && rmdir out
9226 cd ..
9227 $RM -r conftest
9228 $RM conftest*
9229
9230 fi
9231 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9232 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9233
9234
9235
9236
9237
9238
9239 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9240 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9241 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244 lt_cv_prog_compiler_c_o=no
9245 $RM -r conftest 2>/dev/null
9246 mkdir conftest
9247 cd conftest
9248 mkdir out
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250
9251 lt_compiler_flag="-o out/conftest2.$ac_objext"
9252 # Insert the option either (1) after the last *FLAGS variable, or
9253 # (2) before a word containing "conftest.", or (3) at the end.
9254 # Note that $ac_compile itself does not contain backslashes and begins
9255 # with a dollar sign (not a hyphen), so the echo should work correctly.
9256 lt_compile=`echo "$ac_compile" | $SED \
9257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9259 -e 's:$: $lt_compiler_flag:'`
9260 (eval echo "\"\$as_me:9260: $lt_compile\"" >&5)
9261 (eval "$lt_compile" 2>out/conftest.err)
9262 ac_status=$?
9263 cat out/conftest.err >&5
9264 echo "$as_me:9264: \$? = $ac_status" >&5
9265 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9266 then
9267 # The compiler can only warn and ignore the option if not recognized
9268 # So say no if there are warnings
9269 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9270 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9271 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9272 lt_cv_prog_compiler_c_o=yes
9273 fi
9274 fi
9275 chmod u+w . 2>&5
9276 $RM conftest*
9277 # SGI C++ compiler will create directory out/ii_files/ for
9278 # template instantiation
9279 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9280 $RM out/* && rmdir out
9281 cd ..
9282 $RM -r conftest
9283 $RM conftest*
9284
9285 fi
9286 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9287 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9288
9289
9290
9291
9292 hard_links="nottested"
9293 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9294 # do not overwrite the value of need_locks provided by the user
9295 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9296 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9297 hard_links=yes
9298 $RM conftest*
9299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9300 touch conftest.a
9301 ln conftest.a conftest.b 2>&5 || hard_links=no
9302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9303 echo "$as_me:$LINENO: result: $hard_links" >&5
9304 echo "${ECHO_T}$hard_links" >&6
9305 if test "$hard_links" = no; then
9306 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9307 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9308 need_locks=warn
9309 fi
9310 else
9311 need_locks=no
9312 fi
9313
9314
9315
9316
9317
9318
9319 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9320 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9321
9322 runpath_var=
9323 allow_undefined_flag=
9324 always_export_symbols=no
9325 archive_cmds=
9326 archive_expsym_cmds=
9327 compiler_needs_object=no
9328 enable_shared_with_static_runtimes=no
9329 export_dynamic_flag_spec=
9330 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9331 hardcode_automatic=no
9332 hardcode_direct=no
9333 hardcode_direct_absolute=no
9334 hardcode_libdir_flag_spec=
9335 hardcode_libdir_flag_spec_ld=
9336 hardcode_libdir_separator=
9337 hardcode_minus_L=no
9338 hardcode_shlibpath_var=unsupported
9339 inherit_rpath=no
9340 link_all_deplibs=unknown
9341 module_cmds=
9342 module_expsym_cmds=
9343 old_archive_from_new_cmds=
9344 old_archive_from_expsyms_cmds=
9345 thread_safe_flag_spec=
9346 whole_archive_flag_spec=
9347 # include_expsyms should be a list of space-separated symbols to be *always*
9348 # included in the symbol list
9349 include_expsyms=
9350 # exclude_expsyms can be an extended regexp of symbols to exclude
9351 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9352 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9353 # as well as any symbol that contains `d'.
9354 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9355 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9356 # platforms (ab)use it in PIC code, but their linkers get confused if
9357 # the symbol is explicitly referenced. Since portable code cannot
9358 # rely on this symbol name, it's probably fine to never include it in
9359 # preloaded symbol tables.
9360 extract_expsyms_cmds=
9361
9362 case $host_os in
9363 cygwin* | mingw* | pw32*)
9364 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9365 # When not using gcc, we currently assume that we are using
9366 # Microsoft Visual C++.
9367 if test "$GCC" != yes; then
9368 with_gnu_ld=no
9369 fi
9370 ;;
9371 interix*)
9372 # we just hope/assume this is gcc and not c89 (= MSVC++)
9373 with_gnu_ld=yes
9374 ;;
9375 openbsd*)
9376 with_gnu_ld=no
9377 ;;
9378 esac
9379
9380 ld_shlibs=yes
9381 if test "$with_gnu_ld" = yes; then
9382 # If archive_cmds runs LD, not CC, wlarc should be empty
9383 wlarc='${wl}'
9384
9385 # Set some defaults for GNU ld with shared library support. These
9386 # are reset later if shared libraries are not supported. Putting them
9387 # here allows them to be overridden if necessary.
9388 runpath_var=LD_RUN_PATH
9389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9390 export_dynamic_flag_spec='${wl}--export-dynamic'
9391 # ancient GNU ld didn't support --whole-archive et. al.
9392 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9393 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9394 else
9395 whole_archive_flag_spec=
9396 fi
9397 supports_anon_versioning=no
9398 case `$LD -v 2>&1` in
9399 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9400 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9401 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9402 *\ 2.11.*) ;; # other 2.11 versions
9403 *) supports_anon_versioning=yes ;;
9404 esac
9405
9406 # See if GNU ld supports shared libraries.
9407 case $host_os in
9408 aix[3-9]*)
9409 # On AIX/PPC, the GNU linker is very broken
9410 if test "$host_cpu" != ia64; then
9411 ld_shlibs=no
9412 cat <<_LT_EOF 1>&2
9413
9414 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9415 *** to be unable to reliably create shared libraries on AIX.
9416 *** Therefore, libtool is disabling shared libraries support. If you
9417 *** really care for shared libraries, you may want to modify your PATH
9418 *** so that a non-GNU linker is found, and then restart.
9419
9420 _LT_EOF
9421 fi
9422 ;;
9423
9424 amigaos*)
9425 if test "$host_cpu" = m68k; then
9426 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)'
9427 hardcode_libdir_flag_spec='-L$libdir'
9428 hardcode_minus_L=yes
9429 fi
9430
9431 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9432 # that the semantics of dynamic libraries on AmigaOS, at least up
9433 # to version 4, is to share data among multiple programs linked
9434 # with the same dynamic library. Since this doesn't match the
9435 # behavior of shared libraries on other platforms, we can't use
9436 # them.
9437 ld_shlibs=no
9438 ;;
9439
9440 beos*)
9441 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442 allow_undefined_flag=unsupported
9443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9444 # support --undefined. This deserves some investigation. FIXME
9445 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446 else
9447 ld_shlibs=no
9448 fi
9449 ;;
9450
9451 cygwin* | mingw* | pw32*)
9452 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9453 # as there is no search path for DLLs.
9454 hardcode_libdir_flag_spec='-L$libdir'
9455 allow_undefined_flag=unsupported
9456 always_export_symbols=no
9457 enable_shared_with_static_runtimes=yes
9458 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9459
9460 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9462 # If the export-symbols file already is a .def file (1st line
9463 # is EXPORTS), use it as is; otherwise, prepend...
9464 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9465 cp $export_symbols $output_objdir/$soname.def;
9466 else
9467 echo EXPORTS > $output_objdir/$soname.def;
9468 cat $export_symbols >> $output_objdir/$soname.def;
9469 fi~
9470 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9471 else
9472 ld_shlibs=no
9473 fi
9474 ;;
9475
9476 interix[3-9]*)
9477 hardcode_direct=no
9478 hardcode_shlibpath_var=no
9479 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9480 export_dynamic_flag_spec='${wl}-E'
9481 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9482 # Instead, shared libraries are loaded at an image base (0x10000000 by
9483 # default) and relocated if they conflict, which is a slow very memory
9484 # consuming and fragmenting process. To avoid this, we pick a random,
9485 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9486 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9487 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9488 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'
9489 ;;
9490
9491 gnu* | linux* | tpf* | k*bsd*-gnu)
9492 tmp_diet=no
9493 if test "$host_os" = linux-dietlibc; then
9494 case $cc_basename in
9495 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9496 esac
9497 fi
9498 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9499 && test "$tmp_diet" = no
9500 then
9501 tmp_addflag=
9502 case $cc_basename,$host_cpu in
9503 pgcc*) # Portland Group C compiler
9504 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'
9505 tmp_addflag=' $pic_flag'
9506 ;;
9507 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9508 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'
9509 tmp_addflag=' $pic_flag -Mnomain' ;;
9510 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9511 tmp_addflag=' -i_dynamic' ;;
9512 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9513 tmp_addflag=' -i_dynamic -nofor_main' ;;
9514 ifc* | ifort*) # Intel Fortran compiler
9515 tmp_addflag=' -nofor_main' ;;
9516 esac
9517 case `$CC -V 2>&1 | sed 5q` in
9518 *Sun\ C*) # Sun C 5.9
9519 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'
9520 compiler_needs_object=yes
9521 tmp_sharedflag='-G' ;;
9522 *Sun\ F*) # Sun Fortran 8.3
9523 tmp_sharedflag='-G' ;;
9524 *)
9525 tmp_sharedflag='-shared' ;;
9526 esac
9527 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9528
9529 if test "x$supports_anon_versioning" = xyes; then
9530 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9532 echo "local: *; };" >> $output_objdir/$libname.ver~
9533 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9534 fi
9535 else
9536 ld_shlibs=no
9537 fi
9538 ;;
9539
9540 netbsd*)
9541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9542 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9543 wlarc=
9544 else
9545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9547 fi
9548 ;;
9549
9550 solaris*)
9551 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9552 ld_shlibs=no
9553 cat <<_LT_EOF 1>&2
9554
9555 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9556 *** create shared libraries on Solaris systems. Therefore, libtool
9557 *** is disabling shared libraries support. We urge you to upgrade GNU
9558 *** binutils to release 2.9.1 or newer. Another option is to modify
9559 *** your PATH or compiler configuration so that the native linker is
9560 *** used, and then restart.
9561
9562 _LT_EOF
9563 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9566 else
9567 ld_shlibs=no
9568 fi
9569 ;;
9570
9571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9572 case `$LD -v 2>&1` in
9573 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9574 ld_shlibs=no
9575 cat <<_LT_EOF 1>&2
9576
9577 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9578 *** reliably create shared libraries on SCO systems. Therefore, libtool
9579 *** is disabling shared libraries support. We urge you to upgrade GNU
9580 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9581 *** your PATH or compiler configuration so that the native linker is
9582 *** used, and then restart.
9583
9584 _LT_EOF
9585 ;;
9586 *)
9587 # For security reasons, it is highly recommended that you always
9588 # use absolute paths for naming shared libraries, and exclude the
9589 # DT_RUNPATH tag from executables and libraries. But doing so
9590 # requires that you compile everything twice, which is a pain.
9591 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9595 else
9596 ld_shlibs=no
9597 fi
9598 ;;
9599 esac
9600 ;;
9601
9602 sunos4*)
9603 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9604 wlarc=
9605 hardcode_direct=yes
9606 hardcode_shlibpath_var=no
9607 ;;
9608
9609 *)
9610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9613 else
9614 ld_shlibs=no
9615 fi
9616 ;;
9617 esac
9618
9619 if test "$ld_shlibs" = no; then
9620 runpath_var=
9621 hardcode_libdir_flag_spec=
9622 export_dynamic_flag_spec=
9623 whole_archive_flag_spec=
9624 fi
9625 else
9626 # PORTME fill in a description of your system's linker (not GNU ld)
9627 case $host_os in
9628 aix3*)
9629 allow_undefined_flag=unsupported
9630 always_export_symbols=yes
9631 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'
9632 # Note: this linker hardcodes the directories in LIBPATH if there
9633 # are no directories specified by -L.
9634 hardcode_minus_L=yes
9635 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9636 # Neither direct hardcoding nor static linking is supported with a
9637 # broken collect2.
9638 hardcode_direct=unsupported
9639 fi
9640 ;;
9641
9642 aix[4-9]*)
9643 if test "$host_cpu" = ia64; then
9644 # On IA64, the linker does run time linking by default, so we don't
9645 # have to do anything special.
9646 aix_use_runtimelinking=no
9647 exp_sym_flag='-Bexport'
9648 no_entry_flag=""
9649 else
9650 # If we're using GNU nm, then we don't want the "-C" option.
9651 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9652 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9653 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'
9654 else
9655 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'
9656 fi
9657 aix_use_runtimelinking=no
9658
9659 # Test if we are trying to use run time linking or normal
9660 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9661 # need to do runtime linking.
9662 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9663 for ld_flag in $LDFLAGS; do
9664 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9665 aix_use_runtimelinking=yes
9666 break
9667 fi
9668 done
9669 ;;
9670 esac
9671
9672 exp_sym_flag='-bexport'
9673 no_entry_flag='-bnoentry'
9674 fi
9675
9676 # When large executables or shared objects are built, AIX ld can
9677 # have problems creating the table of contents. If linking a library
9678 # or program results in "error TOC overflow" add -mminimal-toc to
9679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9681
9682 archive_cmds=''
9683 hardcode_direct=yes
9684 hardcode_direct_absolute=yes
9685 hardcode_libdir_separator=':'
9686 link_all_deplibs=yes
9687 file_list_spec='${wl}-f,'
9688
9689 if test "$GCC" = yes; then
9690 case $host_os in aix4.[012]|aix4.[012].*)
9691 # We only want to do this on AIX 4.2 and lower, the check
9692 # below for broken collect2 doesn't work under 4.3+
9693 collect2name=`${CC} -print-prog-name=collect2`
9694 if test -f "$collect2name" &&
9695 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9696 then
9697 # We have reworked collect2
9698 :
9699 else
9700 # We have old collect2
9701 hardcode_direct=unsupported
9702 # It fails to find uninstalled libraries when the uninstalled
9703 # path is not listed in the libpath. Setting hardcode_minus_L
9704 # to unsupported forces relinking
9705 hardcode_minus_L=yes
9706 hardcode_libdir_flag_spec='-L$libdir'
9707 hardcode_libdir_separator=
9708 fi
9709 ;;
9710 esac
9711 shared_flag='-shared'
9712 if test "$aix_use_runtimelinking" = yes; then
9713 shared_flag="$shared_flag "'${wl}-G'
9714 fi
9715 else
9716 # not using gcc
9717 if test "$host_cpu" = ia64; then
9718 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9719 # chokes on -Wl,-G. The following line is correct:
9720 shared_flag='-G'
9721 else
9722 if test "$aix_use_runtimelinking" = yes; then
9723 shared_flag='${wl}-G'
9724 else
9725 shared_flag='${wl}-bM:SRE'
9726 fi
9727 fi
9728 fi
9729
9730 # It seems that -bexpall does not export symbols beginning with
9731 # underscore (_), so it is better to generate a list of symbols to export.
9732 always_export_symbols=yes
9733 if test "$aix_use_runtimelinking" = yes; then
9734 # Warning - without using the other runtime loading flags (-brtl),
9735 # -berok will link without error, but may produce a broken library.
9736 allow_undefined_flag='-berok'
9737 # Determine the default libpath from the value encoded in an
9738 # empty executable.
9739 if test x$gcc_no_link = xyes; then
9740 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9741 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9742 { (exit 1); exit 1; }; }
9743 fi
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750
9751 int
9752 main ()
9753 {
9754
9755 ;
9756 return 0;
9757 }
9758 _ACEOF
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761 (eval $ac_link) 2>conftest.er1
9762 ac_status=$?
9763 grep -v '^ *+' conftest.er1 >conftest.err
9764 rm -f conftest.er1
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try='test -z "$ac_c_werror_flag"
9769 || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest$ac_exeext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781
9782 lt_aix_libpath_sed='
9783 /Import File Strings/,/^$/ {
9784 /^0/ {
9785 s/^0 *\(.*\)$/\1/
9786 p
9787 }
9788 }'
9789 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9790 # Check for a 64-bit object if we didn't find anything.
9791 if test -z "$aix_libpath"; then
9792 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9793 fi
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 fi
9799 rm -f conftest.err conftest.$ac_objext \
9800 conftest$ac_exeext conftest.$ac_ext
9801 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9802
9803 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9804 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"
9805 else
9806 if test "$host_cpu" = ia64; then
9807 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9808 allow_undefined_flag="-z nodefs"
9809 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"
9810 else
9811 # Determine the default libpath from the value encoded in an
9812 # empty executable.
9813 if test x$gcc_no_link = xyes; then
9814 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9815 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9816 { (exit 1); exit 1; }; }
9817 fi
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824
9825 int
9826 main ()
9827 {
9828
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9835 (eval $ac_link) 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } &&
9842 { ac_try='test -z "$ac_c_werror_flag"
9843 || test ! -s conftest.err'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 (eval $ac_try) 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; } &&
9849 { ac_try='test -s conftest$ac_exeext'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855
9856 lt_aix_libpath_sed='
9857 /Import File Strings/,/^$/ {
9858 /^0/ {
9859 s/^0 *\(.*\)$/\1/
9860 p
9861 }
9862 }'
9863 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9864 # Check for a 64-bit object if we didn't find anything.
9865 if test -z "$aix_libpath"; then
9866 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9867 fi
9868 else
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 fi
9873 rm -f conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9876
9877 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9878 # Warning - without using the other run time loading flags,
9879 # -berok will link without error, but may produce a broken library.
9880 no_undefined_flag=' ${wl}-bernotok'
9881 allow_undefined_flag=' ${wl}-berok'
9882 # Exported symbols can be pulled into shared objects from archives
9883 whole_archive_flag_spec='$convenience'
9884 archive_cmds_need_lc=yes
9885 # This is similar to how AIX traditionally builds its shared libraries.
9886 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'
9887 fi
9888 fi
9889 ;;
9890
9891 amigaos*)
9892 if test "$host_cpu" = m68k; then
9893 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)'
9894 hardcode_libdir_flag_spec='-L$libdir'
9895 hardcode_minus_L=yes
9896 fi
9897 # see comment about different semantics on the GNU ld section
9898 ld_shlibs=no
9899 ;;
9900
9901 bsdi[45]*)
9902 export_dynamic_flag_spec=-rdynamic
9903 ;;
9904
9905 cygwin* | mingw* | pw32*)
9906 # When not using gcc, we currently assume that we are using
9907 # Microsoft Visual C++.
9908 # hardcode_libdir_flag_spec is actually meaningless, as there is
9909 # no search path for DLLs.
9910 hardcode_libdir_flag_spec=' '
9911 allow_undefined_flag=unsupported
9912 # Tell ltmain to make .lib files, not .a files.
9913 libext=lib
9914 # Tell ltmain to make .dll files, not .so files.
9915 shrext_cmds=".dll"
9916 # FIXME: Setting linknames here is a bad hack.
9917 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9918 # The linker will automatically build a .lib file if we build a DLL.
9919 old_archive_from_new_cmds='true'
9920 # FIXME: Should let the user specify the lib program.
9921 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9922 fix_srcfile_path='`cygpath -w "$srcfile"`'
9923 enable_shared_with_static_runtimes=yes
9924 ;;
9925
9926 darwin* | rhapsody*)
9927 case $host_os in
9928 rhapsody* | darwin1.[012])
9929 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9930 ;;
9931 *) # Darwin 1.3 on
9932 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9933 10.[012])
9934 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9935 ;;
9936 10.*)
9937 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9938 ;;
9939 esac
9940 ;;
9941 esac
9942 archive_cmds_need_lc=no
9943 hardcode_direct=no
9944 hardcode_automatic=yes
9945 hardcode_shlibpath_var=unsupported
9946 whole_archive_flag_spec=''
9947 link_all_deplibs=yes
9948 if test "$GCC" = yes ; then
9949 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 else
9952 lt_cv_apple_cc_single_mod=no
9953 if test -z "${LT_MULTI_MODULE}"; then
9954 # By default we will add the -single_module flag. You can override
9955 # by either setting the environment variable LT_MULTI_MODULE
9956 # non-empty at configure time, or by adding -multi-module to the
9957 # link flags.
9958 echo "int foo(void){return 1;}" > conftest.c
9959 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9960 -dynamiclib ${wl}-single_module conftest.c
9961 if test -f libconftest.dylib; then
9962 lt_cv_apple_cc_single_mod=yes
9963 rm libconftest.dylib
9964 fi
9965 rm conftest.$ac_ext
9966 fi
9967 fi
9968
9969 output_verbose_link_cmd=echo
9970 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
9971 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9972 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9973 else
9974 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9975 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9976 fi
9977 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9978 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9979 else
9980 case $cc_basename in
9981 xlc*)
9982 output_verbose_link_cmd=echo
9983 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9984 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9985 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9986 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9987 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9988 ;;
9989 *)
9990 ld_shlibs=no
9991 ;;
9992 esac
9993 fi
9994 ;;
9995
9996 dgux*)
9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998 hardcode_libdir_flag_spec='-L$libdir'
9999 hardcode_shlibpath_var=no
10000 ;;
10001
10002 freebsd1*)
10003 ld_shlibs=no
10004 ;;
10005
10006 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10007 # support. Future versions do this automatically, but an explicit c++rt0.o
10008 # does not break anything, and helps significantly (at the cost of a little
10009 # extra space).
10010 freebsd2.2*)
10011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10012 hardcode_libdir_flag_spec='-R$libdir'
10013 hardcode_direct=yes
10014 hardcode_shlibpath_var=no
10015 ;;
10016
10017 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10018 freebsd2*)
10019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10020 hardcode_direct=yes
10021 hardcode_minus_L=yes
10022 hardcode_shlibpath_var=no
10023 ;;
10024
10025 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10026 freebsd* | dragonfly*)
10027 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10028 hardcode_libdir_flag_spec='-R$libdir'
10029 hardcode_direct=yes
10030 hardcode_shlibpath_var=no
10031 ;;
10032
10033 hpux9*)
10034 if test "$GCC" = yes; then
10035 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'
10036 else
10037 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'
10038 fi
10039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10040 hardcode_libdir_separator=:
10041 hardcode_direct=yes
10042
10043 # hardcode_minus_L: Not really in the search PATH,
10044 # but as the default location of the library.
10045 hardcode_minus_L=yes
10046 export_dynamic_flag_spec='${wl}-E'
10047 ;;
10048
10049 hpux10*)
10050 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10051 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10052 else
10053 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10054 fi
10055 if test "$with_gnu_ld" = no; then
10056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10057 hardcode_libdir_flag_spec_ld='+b $libdir'
10058 hardcode_libdir_separator=:
10059 hardcode_direct=yes
10060 hardcode_direct_absolute=yes
10061 export_dynamic_flag_spec='${wl}-E'
10062 # hardcode_minus_L: Not really in the search PATH,
10063 # but as the default location of the library.
10064 hardcode_minus_L=yes
10065 fi
10066 ;;
10067
10068 hpux11*)
10069 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10070 case $host_cpu in
10071 hppa*64*)
10072 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10073 ;;
10074 ia64*)
10075 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10076 ;;
10077 *)
10078 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10079 ;;
10080 esac
10081 else
10082 case $host_cpu in
10083 hppa*64*)
10084 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 ;;
10086 ia64*)
10087 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10088 ;;
10089 *)
10090 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10091 ;;
10092 esac
10093 fi
10094 if test "$with_gnu_ld" = no; then
10095 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10096 hardcode_libdir_separator=:
10097
10098 case $host_cpu in
10099 hppa*64*|ia64*)
10100 hardcode_direct=no
10101 hardcode_shlibpath_var=no
10102 ;;
10103 *)
10104 hardcode_direct=yes
10105 hardcode_direct_absolute=yes
10106 export_dynamic_flag_spec='${wl}-E'
10107
10108 # hardcode_minus_L: Not really in the search PATH,
10109 # but as the default location of the library.
10110 hardcode_minus_L=yes
10111 ;;
10112 esac
10113 fi
10114 ;;
10115
10116 irix5* | irix6* | nonstopux*)
10117 if test "$GCC" = yes; then
10118 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'
10119 # Try to use the -exported_symbol ld option, if it does not
10120 # work, assume that -exports_file does not work either and
10121 # implicitly export all symbols.
10122 save_LDFLAGS="$LDFLAGS"
10123 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10124 if test x$gcc_no_link = xyes; then
10125 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10126 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10127 { (exit 1); exit 1; }; }
10128 fi
10129 cat >conftest.$ac_ext <<_ACEOF
10130 int foo(void) {}
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 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'
10155
10156 else
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10159
10160 fi
10161 rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 LDFLAGS="$save_LDFLAGS"
10164 else
10165 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'
10166 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'
10167 fi
10168 archive_cmds_need_lc='no'
10169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10170 hardcode_libdir_separator=:
10171 inherit_rpath=yes
10172 link_all_deplibs=yes
10173 ;;
10174
10175 netbsd*)
10176 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10177 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10178 else
10179 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10180 fi
10181 hardcode_libdir_flag_spec='-R$libdir'
10182 hardcode_direct=yes
10183 hardcode_shlibpath_var=no
10184 ;;
10185
10186 newsos6)
10187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_direct=yes
10189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10190 hardcode_libdir_separator=:
10191 hardcode_shlibpath_var=no
10192 ;;
10193
10194 *nto* | *qnx*)
10195 ;;
10196
10197 openbsd*)
10198 hardcode_direct=yes
10199 hardcode_shlibpath_var=no
10200 hardcode_direct_absolute=yes
10201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10203 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10205 export_dynamic_flag_spec='${wl}-E'
10206 else
10207 case $host_os in
10208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10210 hardcode_libdir_flag_spec='-R$libdir'
10211 ;;
10212 *)
10213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10215 ;;
10216 esac
10217 fi
10218 ;;
10219
10220 os2*)
10221 hardcode_libdir_flag_spec='-L$libdir'
10222 hardcode_minus_L=yes
10223 allow_undefined_flag=unsupported
10224 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'
10225 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10226 ;;
10227
10228 osf3*)
10229 if test "$GCC" = yes; then
10230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10231 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'
10232 else
10233 allow_undefined_flag=' -expect_unresolved \*'
10234 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'
10235 fi
10236 archive_cmds_need_lc='no'
10237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10238 hardcode_libdir_separator=:
10239 ;;
10240
10241 osf4* | osf5*) # as osf3* with the addition of -msym flag
10242 if test "$GCC" = yes; then
10243 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10244 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'
10245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10246 else
10247 allow_undefined_flag=' -expect_unresolved \*'
10248 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'
10249 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~
10250 $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'
10251
10252 # Both c and cxx compiler support -rpath directly
10253 hardcode_libdir_flag_spec='-rpath $libdir'
10254 fi
10255 archive_cmds_need_lc='no'
10256 hardcode_libdir_separator=:
10257 ;;
10258
10259 solaris*)
10260 no_undefined_flag=' -z defs'
10261 if test "$GCC" = yes; then
10262 wlarc='${wl}'
10263 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10265 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10266 else
10267 case `$CC -V 2>&1` in
10268 *"Compilers 5.0"*)
10269 wlarc=''
10270 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10273 ;;
10274 *)
10275 wlarc='${wl}'
10276 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10278 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10279 ;;
10280 esac
10281 fi
10282 hardcode_libdir_flag_spec='-R$libdir'
10283 hardcode_shlibpath_var=no
10284 case $host_os in
10285 solaris2.[0-5] | solaris2.[0-5].*) ;;
10286 *)
10287 # The compiler driver will combine and reorder linker options,
10288 # but understands `-z linker_flag'. GCC discards it without `$wl',
10289 # but is careful enough not to reorder.
10290 # Supported since Solaris 2.6 (maybe 2.5.1?)
10291 if test "$GCC" = yes; then
10292 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10293 else
10294 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10295 fi
10296 ;;
10297 esac
10298 link_all_deplibs=yes
10299 ;;
10300
10301 sunos4*)
10302 if test "x$host_vendor" = xsequent; then
10303 # Use $CC to link under sequent, because it throws in some extra .o
10304 # files that make .init and .fini sections work.
10305 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10306 else
10307 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10308 fi
10309 hardcode_libdir_flag_spec='-L$libdir'
10310 hardcode_direct=yes
10311 hardcode_minus_L=yes
10312 hardcode_shlibpath_var=no
10313 ;;
10314
10315 sysv4)
10316 case $host_vendor in
10317 sni)
10318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319 hardcode_direct=yes # is this really true???
10320 ;;
10321 siemens)
10322 ## LD is ld it makes a PLAMLIB
10323 ## CC just makes a GrossModule.
10324 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10325 reload_cmds='$CC -r -o $output$reload_objs'
10326 hardcode_direct=no
10327 ;;
10328 motorola)
10329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10330 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10331 ;;
10332 esac
10333 runpath_var='LD_RUN_PATH'
10334 hardcode_shlibpath_var=no
10335 ;;
10336
10337 sysv4.3*)
10338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_shlibpath_var=no
10340 export_dynamic_flag_spec='-Bexport'
10341 ;;
10342
10343 sysv4*MP*)
10344 if test -d /usr/nec; then
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_shlibpath_var=no
10347 runpath_var=LD_RUN_PATH
10348 hardcode_runpath_var=yes
10349 ld_shlibs=yes
10350 fi
10351 ;;
10352
10353 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10354 no_undefined_flag='${wl}-z,text'
10355 archive_cmds_need_lc=no
10356 hardcode_shlibpath_var=no
10357 runpath_var='LD_RUN_PATH'
10358
10359 if test "$GCC" = yes; then
10360 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 else
10363 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10365 fi
10366 ;;
10367
10368 sysv5* | sco3.2v5* | sco5v6*)
10369 # Note: We can NOT use -z defs as we might desire, because we do not
10370 # link with -lc, and that would cause any symbols used from libc to
10371 # always be unresolved, which means just about no library would
10372 # ever link correctly. If we're not using GNU ld we use -z text
10373 # though, which does catch some bad symbols but isn't as heavy-handed
10374 # as -z defs.
10375 no_undefined_flag='${wl}-z,text'
10376 allow_undefined_flag='${wl}-z,nodefs'
10377 archive_cmds_need_lc=no
10378 hardcode_shlibpath_var=no
10379 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10380 hardcode_libdir_separator=':'
10381 link_all_deplibs=yes
10382 export_dynamic_flag_spec='${wl}-Bexport'
10383 runpath_var='LD_RUN_PATH'
10384
10385 if test "$GCC" = yes; then
10386 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388 else
10389 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10390 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 fi
10392 ;;
10393
10394 uts4*)
10395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396 hardcode_libdir_flag_spec='-L$libdir'
10397 hardcode_shlibpath_var=no
10398 ;;
10399
10400 *)
10401 ld_shlibs=no
10402 ;;
10403 esac
10404
10405 if test x$host_vendor = xsni; then
10406 case $host in
10407 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10408 export_dynamic_flag_spec='${wl}-Blargedynsym'
10409 ;;
10410 esac
10411 fi
10412 fi
10413
10414 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10415 echo "${ECHO_T}$ld_shlibs" >&6
10416 test "$ld_shlibs" = no && can_build_shared=no
10417
10418 with_gnu_ld=$with_gnu_ld
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434 #
10435 # Do we need to explicitly link libc?
10436 #
10437 case "x$archive_cmds_need_lc" in
10438 x|xyes)
10439 # Assume -lc should be added
10440 archive_cmds_need_lc=yes
10441
10442 if test "$enable_shared" = yes && test "$GCC" = yes; then
10443 case $archive_cmds in
10444 *'~'*)
10445 # FIXME: we may have to deal with multi-command sequences.
10446 ;;
10447 '$CC '*)
10448 # Test whether the compiler implicitly links with -lc since on some
10449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10450 # to ld, don't add -lc before -lgcc.
10451 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10452 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10453 $RM conftest*
10454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10455
10456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10457 (eval $ac_compile) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } 2>conftest.err; then
10461 soname=conftest
10462 lib=conftest
10463 libobjs=conftest.$ac_objext
10464 deplibs=
10465 wl=$lt_prog_compiler_wl
10466 pic_flag=$lt_prog_compiler_pic
10467 compiler_flags=-v
10468 linker_flags=-v
10469 verstring=
10470 output_objdir=.
10471 libname=conftest
10472 lt_save_allow_undefined_flag=$allow_undefined_flag
10473 allow_undefined_flag=
10474 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10475 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }
10479 then
10480 archive_cmds_need_lc=no
10481 else
10482 archive_cmds_need_lc=yes
10483 fi
10484 allow_undefined_flag=$lt_save_allow_undefined_flag
10485 else
10486 cat conftest.err 1>&5
10487 fi
10488 $RM conftest*
10489 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10490 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10491 ;;
10492 esac
10493 fi
10494 ;;
10495 esac
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10654 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10655 withGCC=$GCC
10656 if test "$withGCC" = yes; then
10657 case $host_os in
10658 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10659 *) lt_awk_arg="/^libraries:/" ;;
10660 esac
10661 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10662 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10663 # if the path contains ";" then we assume it to be the separator
10664 # otherwise default to the standard path separator (i.e. ":") - it is
10665 # assumed that no part of a normal pathname contains ";" but that should
10666 # okay in the real world where ";" in dirpaths is itself problematic.
10667 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10668 else
10669 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10670 fi
10671 # Ok, now we have the path, separated by spaces, we can step through it
10672 # and add multilib dir if necessary.
10673 lt_tmp_lt_search_path_spec=
10674 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10675 for lt_sys_path in $lt_search_path_spec; do
10676 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10677 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10678 else
10679 test -d "$lt_sys_path" && \
10680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10681 fi
10682 done
10683 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10684 BEGIN {RS=" "; FS="/|\n";} {
10685 lt_foo="";
10686 lt_count=0;
10687 for (lt_i = NF; lt_i > 0; lt_i--) {
10688 if ($lt_i != "" && $lt_i != ".") {
10689 if ($lt_i == "..") {
10690 lt_count++;
10691 } else {
10692 if (lt_count == 0) {
10693 lt_foo="/" $lt_i lt_foo;
10694 } else {
10695 lt_count--;
10696 }
10697 }
10698 }
10699 }
10700 if (lt_foo != "") { lt_freq[lt_foo]++; }
10701 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10702 }'`
10703 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10704 else
10705 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10706 fi
10707 library_names_spec=
10708 libname_spec='lib$name'
10709 soname_spec=
10710 shrext_cmds=".so"
10711 postinstall_cmds=
10712 postuninstall_cmds=
10713 finish_cmds=
10714 finish_eval=
10715 shlibpath_var=
10716 shlibpath_overrides_runpath=unknown
10717 version_type=none
10718 dynamic_linker="$host_os ld.so"
10719 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10720 need_lib_prefix=unknown
10721 hardcode_into_libs=no
10722
10723 # when you set need_version to no, make sure it does not cause -set_version
10724 # flags to be left without arguments
10725 need_version=unknown
10726
10727 case $host_os in
10728 aix3*)
10729 version_type=linux
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10731 shlibpath_var=LIBPATH
10732
10733 # AIX 3 has no versioning support, so we append a major version to the name.
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 ;;
10736
10737 aix[4-9]*)
10738 version_type=linux
10739 need_lib_prefix=no
10740 need_version=no
10741 hardcode_into_libs=yes
10742 if test "$host_cpu" = ia64; then
10743 # AIX 5 supports IA64
10744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10745 shlibpath_var=LD_LIBRARY_PATH
10746 else
10747 # With GCC up to 2.95.x, collect2 would create an import file
10748 # for dependence libraries. The import file would start with
10749 # the line `#! .'. This would cause the generated library to
10750 # depend on `.', always an invalid library. This was fixed in
10751 # development snapshots of GCC prior to 3.0.
10752 case $host_os in
10753 aix4 | aix4.[01] | aix4.[01].*)
10754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10755 echo ' yes '
10756 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10757 :
10758 else
10759 can_build_shared=no
10760 fi
10761 ;;
10762 esac
10763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10764 # soname into executable. Probably we can add versioning support to
10765 # collect2, so additional links can be useful in future.
10766 if test "$aix_use_runtimelinking" = yes; then
10767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10768 # instead of lib<name>.a to let people know that these are not
10769 # typical AIX shared libraries.
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771 else
10772 # We preserve .a as extension for shared libraries through AIX4.2
10773 # and later when we are not doing run time linking.
10774 library_names_spec='${libname}${release}.a $libname.a'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 fi
10777 shlibpath_var=LIBPATH
10778 fi
10779 ;;
10780
10781 amigaos*)
10782 if test "$host_cpu" = m68k; then
10783 library_names_spec='$libname.ixlibrary $libname.a'
10784 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10785 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'
10786 else
10787 dynamic_linker=no
10788 fi
10789 ;;
10790
10791 beos*)
10792 library_names_spec='${libname}${shared_ext}'
10793 dynamic_linker="$host_os ld.so"
10794 shlibpath_var=LIBRARY_PATH
10795 ;;
10796
10797 bsdi[45]*)
10798 version_type=linux
10799 need_version=no
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10803 shlibpath_var=LD_LIBRARY_PATH
10804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10806 # the default ld.so.conf also contains /usr/contrib/lib and
10807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10808 # libtool to hard-code these into programs
10809 ;;
10810
10811 cygwin* | mingw* | pw32*)
10812 version_type=windows
10813 shrext_cmds=".dll"
10814 need_version=no
10815 need_lib_prefix=no
10816
10817 case $withGCC,$host_os in
10818 yes,cygwin* | yes,mingw* | yes,pw32*)
10819 library_names_spec='$libname.dll.a'
10820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10821 postinstall_cmds='base_file=`basename \${file}`~
10822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10823 dldir=$destdir/`dirname \$dlpath`~
10824 test -d \$dldir || mkdir -p \$dldir~
10825 $install_prog $dir/$dlname \$dldir/$dlname~
10826 chmod a+x \$dldir/$dlname~
10827 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10828 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10829 fi'
10830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10831 dlpath=$dir/\$dldll~
10832 $RM \$dlpath'
10833 shlibpath_overrides_runpath=yes
10834
10835 case $host_os in
10836 cygwin*)
10837 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10838 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10839 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10840 ;;
10841 mingw*)
10842 # MinGW DLLs use traditional 'lib' prefix
10843 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10844 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10845 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10846 # It is most probably a Windows format PATH printed by
10847 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10848 # path with ; separators, and with drive letters. We can handle the
10849 # drive letters (cygwin fileutils understands them), so leave them,
10850 # especially as we might pass files found there to a mingw objdump,
10851 # which wouldn't understand a cygwinified path. Ahh.
10852 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10853 else
10854 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10855 fi
10856 ;;
10857 pw32*)
10858 # pw32 DLLs use 'pw' prefix rather than 'lib'
10859 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10860 ;;
10861 esac
10862 ;;
10863
10864 *)
10865 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10866 ;;
10867 esac
10868 dynamic_linker='Win32 ld.exe'
10869 # FIXME: first we should search . and the directory the executable is in
10870 shlibpath_var=PATH
10871 ;;
10872
10873 darwin* | rhapsody*)
10874 dynamic_linker="$host_os dyld"
10875 version_type=darwin
10876 need_lib_prefix=no
10877 need_version=no
10878 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10879 soname_spec='${libname}${release}${major}$shared_ext'
10880 shlibpath_overrides_runpath=yes
10881 shlibpath_var=DYLD_LIBRARY_PATH
10882 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10883
10884 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10885 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10886 ;;
10887
10888 dgux*)
10889 version_type=linux
10890 need_lib_prefix=no
10891 need_version=no
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 shlibpath_var=LD_LIBRARY_PATH
10895 ;;
10896
10897 freebsd1*)
10898 dynamic_linker=no
10899 ;;
10900
10901 freebsd* | dragonfly*)
10902 # DragonFly does not have aout. When/if they implement a new
10903 # versioning mechanism, adjust this.
10904 if test -x /usr/bin/objformat; then
10905 objformat=`/usr/bin/objformat`
10906 else
10907 case $host_os in
10908 freebsd[123]*) objformat=aout ;;
10909 *) objformat=elf ;;
10910 esac
10911 fi
10912 version_type=freebsd-$objformat
10913 case $version_type in
10914 freebsd-elf*)
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10916 need_version=no
10917 need_lib_prefix=no
10918 ;;
10919 freebsd-*)
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10921 need_version=yes
10922 ;;
10923 esac
10924 shlibpath_var=LD_LIBRARY_PATH
10925 case $host_os in
10926 freebsd2*)
10927 shlibpath_overrides_runpath=yes
10928 ;;
10929 freebsd3.[01]* | freebsdelf3.[01]*)
10930 shlibpath_overrides_runpath=yes
10931 hardcode_into_libs=yes
10932 ;;
10933 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10934 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10935 shlibpath_overrides_runpath=no
10936 hardcode_into_libs=yes
10937 ;;
10938 *) # from 4.6 on, and DragonFly
10939 shlibpath_overrides_runpath=yes
10940 hardcode_into_libs=yes
10941 ;;
10942 esac
10943 ;;
10944
10945 gnu*)
10946 version_type=linux
10947 need_lib_prefix=no
10948 need_version=no
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 hardcode_into_libs=yes
10953 ;;
10954
10955 hpux9* | hpux10* | hpux11*)
10956 # Give a soname corresponding to the major version so that dld.sl refuses to
10957 # link against other versions.
10958 version_type=sunos
10959 need_lib_prefix=no
10960 need_version=no
10961 case $host_cpu in
10962 ia64*)
10963 shrext_cmds='.so'
10964 hardcode_into_libs=yes
10965 dynamic_linker="$host_os dld.so"
10966 shlibpath_var=LD_LIBRARY_PATH
10967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 if test "X$HPUX_IA64_MODE" = X32; then
10971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10972 else
10973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10974 fi
10975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10976 ;;
10977 hppa*64*)
10978 shrext_cmds='.sl'
10979 hardcode_into_libs=yes
10980 dynamic_linker="$host_os dld.sl"
10981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10987 ;;
10988 *)
10989 shrext_cmds='.sl'
10990 dynamic_linker="$host_os dld.sl"
10991 shlibpath_var=SHLIB_PATH
10992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 ;;
10996 esac
10997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10998 postinstall_cmds='chmod 555 $lib'
10999 ;;
11000
11001 interix[3-9]*)
11002 version_type=linux
11003 need_lib_prefix=no
11004 need_version=no
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=no
11010 hardcode_into_libs=yes
11011 ;;
11012
11013 irix5* | irix6* | nonstopux*)
11014 case $host_os in
11015 nonstopux*) version_type=nonstopux ;;
11016 *)
11017 if test "$lt_cv_prog_gnu_ld" = yes; then
11018 version_type=linux
11019 else
11020 version_type=irix
11021 fi ;;
11022 esac
11023 need_lib_prefix=no
11024 need_version=no
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11027 case $host_os in
11028 irix5* | nonstopux*)
11029 libsuff= shlibsuff=
11030 ;;
11031 *)
11032 case $LD in # libtool.m4 will add one of these switches to LD
11033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11034 libsuff= shlibsuff= libmagic=32-bit;;
11035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11036 libsuff=32 shlibsuff=N32 libmagic=N32;;
11037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11038 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11039 *) libsuff= shlibsuff= libmagic=never-match;;
11040 esac
11041 ;;
11042 esac
11043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11044 shlibpath_overrides_runpath=no
11045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11047 hardcode_into_libs=yes
11048 ;;
11049
11050 # No shared lib support for Linux oldld, aout, or coff.
11051 linux*oldld* | linux*aout* | linux*coff*)
11052 dynamic_linker=no
11053 ;;
11054
11055 # This must be Linux ELF.
11056 linux* | k*bsd*-gnu)
11057 version_type=linux
11058 need_lib_prefix=no
11059 need_version=no
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=no
11065 # Some binutils ld are patched to set DT_RUNPATH
11066 save_LDFLAGS=$LDFLAGS
11067 save_libdir=$libdir
11068 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11069 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11070 if test x$gcc_no_link = xyes; then
11071 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11072 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11073 { (exit 1); exit 1; }; }
11074 fi
11075 cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h. */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11081
11082 int
11083 main ()
11084 {
11085
11086 ;
11087 return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092 (eval $ac_link) 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag"
11100 || test ! -s conftest.err'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try='test -s conftest$ac_exeext'
11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
11113 shlibpath_overrides_runpath=yes
11114 fi
11115
11116 else
11117 echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11119
11120 fi
11121 rm -f conftest.err conftest.$ac_objext \
11122 conftest$ac_exeext conftest.$ac_ext
11123 LDFLAGS=$save_LDFLAGS
11124 libdir=$save_libdir
11125
11126 # This implies no fast_install, which is unacceptable.
11127 # Some rework will be needed to allow for fast_install
11128 # before this can be enabled.
11129 hardcode_into_libs=yes
11130
11131 # Append ld.so.conf contents to the search path
11132 if test -f /etc/ld.so.conf; then
11133 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11135 fi
11136
11137 # We used to test for /lib/ld.so.1 and disable shared libraries on
11138 # powerpc, because MkLinux only supported shared libraries with the
11139 # GNU dynamic linker. Since this was broken with cross compilers,
11140 # most powerpc-linux boxes support dynamic linking these days and
11141 # people can always --disable-shared, the test was removed, and we
11142 # assume the GNU/Linux dynamic linker is in use.
11143 dynamic_linker='GNU/Linux ld.so'
11144 ;;
11145
11146 netbsd*)
11147 version_type=sunos
11148 need_lib_prefix=no
11149 need_version=no
11150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11153 dynamic_linker='NetBSD (a.out) ld.so'
11154 else
11155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11156 soname_spec='${libname}${release}${shared_ext}$major'
11157 dynamic_linker='NetBSD ld.elf_so'
11158 fi
11159 shlibpath_var=LD_LIBRARY_PATH
11160 shlibpath_overrides_runpath=yes
11161 hardcode_into_libs=yes
11162 ;;
11163
11164 newsos6)
11165 version_type=linux
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath=yes
11169 ;;
11170
11171 *nto* | *qnx*)
11172 version_type=qnx
11173 need_lib_prefix=no
11174 need_version=no
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=no
11179 hardcode_into_libs=yes
11180 dynamic_linker='ldqnx.so'
11181 ;;
11182
11183 openbsd*)
11184 version_type=sunos
11185 sys_lib_dlsearch_path_spec="/usr/lib"
11186 need_lib_prefix=no
11187 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11188 case $host_os in
11189 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11190 *) need_version=no ;;
11191 esac
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11196 case $host_os in
11197 openbsd2.[89] | openbsd2.[89].*)
11198 shlibpath_overrides_runpath=no
11199 ;;
11200 *)
11201 shlibpath_overrides_runpath=yes
11202 ;;
11203 esac
11204 else
11205 shlibpath_overrides_runpath=yes
11206 fi
11207 ;;
11208
11209 os2*)
11210 libname_spec='$name'
11211 shrext_cmds=".dll"
11212 need_lib_prefix=no
11213 library_names_spec='$libname${shared_ext} $libname.a'
11214 dynamic_linker='OS/2 ld.exe'
11215 shlibpath_var=LIBPATH
11216 ;;
11217
11218 osf3* | osf4* | osf5*)
11219 version_type=osf
11220 need_lib_prefix=no
11221 need_version=no
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11226 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11227 ;;
11228
11229 rdos*)
11230 dynamic_linker=no
11231 ;;
11232
11233 solaris*)
11234 version_type=linux
11235 need_lib_prefix=no
11236 need_version=no
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238 soname_spec='${libname}${release}${shared_ext}$major'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=yes
11241 hardcode_into_libs=yes
11242 # ldd complains unless libraries are executable
11243 postinstall_cmds='chmod +x $lib'
11244 ;;
11245
11246 sunos4*)
11247 version_type=sunos
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11249 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11250 shlibpath_var=LD_LIBRARY_PATH
11251 shlibpath_overrides_runpath=yes
11252 if test "$with_gnu_ld" = yes; then
11253 need_lib_prefix=no
11254 fi
11255 need_version=yes
11256 ;;
11257
11258 sysv4 | sysv4.3*)
11259 version_type=linux
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261 soname_spec='${libname}${release}${shared_ext}$major'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 case $host_vendor in
11264 sni)
11265 shlibpath_overrides_runpath=no
11266 need_lib_prefix=no
11267 runpath_var=LD_RUN_PATH
11268 ;;
11269 siemens)
11270 need_lib_prefix=no
11271 ;;
11272 motorola)
11273 need_lib_prefix=no
11274 need_version=no
11275 shlibpath_overrides_runpath=no
11276 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11277 ;;
11278 esac
11279 ;;
11280
11281 sysv4*MP*)
11282 if test -d /usr/nec ;then
11283 version_type=linux
11284 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11285 soname_spec='$libname${shared_ext}.$major'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 fi
11288 ;;
11289
11290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11291 version_type=freebsd-elf
11292 need_lib_prefix=no
11293 need_version=no
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11295 soname_spec='${libname}${release}${shared_ext}$major'
11296 shlibpath_var=LD_LIBRARY_PATH
11297 shlibpath_overrides_runpath=yes
11298 hardcode_into_libs=yes
11299 if test "$with_gnu_ld" = yes; then
11300 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11301 else
11302 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11303 case $host_os in
11304 sco3.2v5*)
11305 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11306 ;;
11307 esac
11308 fi
11309 sys_lib_dlsearch_path_spec='/usr/lib'
11310 ;;
11311
11312 tpf*)
11313 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11314 version_type=linux
11315 need_lib_prefix=no
11316 need_version=no
11317 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 shlibpath_overrides_runpath=no
11320 hardcode_into_libs=yes
11321 ;;
11322
11323 uts4*)
11324 version_type=linux
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 ;;
11329
11330 *)
11331 dynamic_linker=no
11332 ;;
11333 esac
11334 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11335 echo "${ECHO_T}$dynamic_linker" >&6
11336 test "$dynamic_linker" = no && can_build_shared=no
11337
11338 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11339 if test "$GCC" = yes; then
11340 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11341 fi
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11430 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11431 hardcode_action=
11432 if test -n "$hardcode_libdir_flag_spec" ||
11433 test -n "$runpath_var" ||
11434 test "X$hardcode_automatic" = "Xyes" ; then
11435
11436 # We can hardcode non-existent directories.
11437 if test "$hardcode_direct" != no &&
11438 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11439 # have to relink, otherwise we might link with an installed library
11440 # when we should be linking with a yet-to-be-installed one
11441 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11442 test "$hardcode_minus_L" != no; then
11443 # Linking always hardcodes the temporary library directory.
11444 hardcode_action=relink
11445 else
11446 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11447 hardcode_action=immediate
11448 fi
11449 else
11450 # We cannot hardcode anything, or else we can only hardcode existing
11451 # directories.
11452 hardcode_action=unsupported
11453 fi
11454 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11455 echo "${ECHO_T}$hardcode_action" >&6
11456
11457 if test "$hardcode_action" = relink ||
11458 test "$inherit_rpath" = yes; then
11459 # Fast installation is not supported
11460 enable_fast_install=no
11461 elif test "$shlibpath_overrides_runpath" = yes ||
11462 test "$enable_shared" = no; then
11463 # Fast installation is not necessary
11464 enable_fast_install=needless
11465 fi
11466
11467
11468
11469
11470
11471
11472 if test "x$enable_dlopen" != xyes; then
11473 enable_dlopen=unknown
11474 enable_dlopen_self=unknown
11475 enable_dlopen_self_static=unknown
11476 else
11477 lt_cv_dlopen=no
11478 lt_cv_dlopen_libs=
11479
11480 case $host_os in
11481 beos*)
11482 lt_cv_dlopen="load_add_on"
11483 lt_cv_dlopen_libs=
11484 lt_cv_dlopen_self=yes
11485 ;;
11486
11487 mingw* | pw32*)
11488 lt_cv_dlopen="LoadLibrary"
11489 lt_cv_dlopen_libs=
11490 ;;
11491
11492 cygwin*)
11493 lt_cv_dlopen="dlopen"
11494 lt_cv_dlopen_libs=
11495 ;;
11496
11497 darwin*)
11498 # if libdl is installed we need to link against it
11499 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11500 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504 ac_check_lib_save_LIBS=$LIBS
11505 LIBS="-ldl $LIBS"
11506 if test x$gcc_no_link = xyes; then
11507 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11508 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11509 { (exit 1); exit 1; }; }
11510 fi
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h. */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517
11518 /* Override any gcc2 internal prototype to avoid an error. */
11519 #ifdef __cplusplus
11520 extern "C"
11521 #endif
11522 /* We use char because int might match the return type of a gcc2
11523 builtin and then its argument prototype would still apply. */
11524 char dlopen ();
11525 int
11526 main ()
11527 {
11528 dlopen ();
11529 ;
11530 return 0;
11531 }
11532 _ACEOF
11533 rm -f conftest.$ac_objext conftest$ac_exeext
11534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11535 (eval $ac_link) 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } &&
11542 { ac_try='test -z "$ac_c_werror_flag"
11543 || test ! -s conftest.err'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest$ac_exeext'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 ac_cv_lib_dl_dlopen=yes
11556 else
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 ac_cv_lib_dl_dlopen=no
11561 fi
11562 rm -f conftest.err conftest.$ac_objext \
11563 conftest$ac_exeext conftest.$ac_ext
11564 LIBS=$ac_check_lib_save_LIBS
11565 fi
11566 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11567 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11568 if test $ac_cv_lib_dl_dlopen = yes; then
11569 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11570 else
11571
11572 lt_cv_dlopen="dyld"
11573 lt_cv_dlopen_libs=
11574 lt_cv_dlopen_self=yes
11575
11576 fi
11577
11578 ;;
11579
11580 *)
11581 echo "$as_me:$LINENO: checking for shl_load" >&5
11582 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11583 if test "${ac_cv_func_shl_load+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 else
11586 if test x$gcc_no_link = xyes; then
11587 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11588 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11589 { (exit 1); exit 1; }; }
11590 fi
11591 cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h. */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11599 #define shl_load innocuous_shl_load
11600
11601 /* System header to define __stub macros and hopefully few prototypes,
11602 which can conflict with char shl_load (); below.
11603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11604 <limits.h> exists even on freestanding compilers. */
11605
11606 #ifdef __STDC__
11607 # include <limits.h>
11608 #else
11609 # include <assert.h>
11610 #endif
11611
11612 #undef shl_load
11613
11614 /* Override any gcc2 internal prototype to avoid an error. */
11615 #ifdef __cplusplus
11616 extern "C"
11617 {
11618 #endif
11619 /* We use char because int might match the return type of a gcc2
11620 builtin and then its argument prototype would still apply. */
11621 char shl_load ();
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11626 choke me
11627 #else
11628 char (*f) () = shl_load;
11629 #endif
11630 #ifdef __cplusplus
11631 }
11632 #endif
11633
11634 int
11635 main ()
11636 {
11637 return f != shl_load;
11638 ;
11639 return 0;
11640 }
11641 _ACEOF
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644 (eval $ac_link) 2>conftest.er1
11645 ac_status=$?
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -z "$ac_c_werror_flag"
11652 || test ! -s conftest.err'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; } &&
11658 { ac_try='test -s conftest$ac_exeext'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 ac_cv_func_shl_load=yes
11665 else
11666 echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11668
11669 ac_cv_func_shl_load=no
11670 fi
11671 rm -f conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11673 fi
11674 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11675 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11676 if test $ac_cv_func_shl_load = yes; then
11677 lt_cv_dlopen="shl_load"
11678 else
11679 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11680 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11681 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684 ac_check_lib_save_LIBS=$LIBS
11685 LIBS="-ldld $LIBS"
11686 if test x$gcc_no_link = xyes; then
11687 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11689 { (exit 1); exit 1; }; }
11690 fi
11691 cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h. */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11697
11698 /* Override any gcc2 internal prototype to avoid an error. */
11699 #ifdef __cplusplus
11700 extern "C"
11701 #endif
11702 /* We use char because int might match the return type of a gcc2
11703 builtin and then its argument prototype would still apply. */
11704 char shl_load ();
11705 int
11706 main ()
11707 {
11708 shl_load ();
11709 ;
11710 return 0;
11711 }
11712 _ACEOF
11713 rm -f conftest.$ac_objext conftest$ac_exeext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11715 (eval $ac_link) 2>conftest.er1
11716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try='test -z "$ac_c_werror_flag"
11723 || test ! -s conftest.err'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try='test -s conftest$ac_exeext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 ac_cv_lib_dld_shl_load=yes
11736 else
11737 echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11739
11740 ac_cv_lib_dld_shl_load=no
11741 fi
11742 rm -f conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11745 fi
11746 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11747 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11748 if test $ac_cv_lib_dld_shl_load = yes; then
11749 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11750 else
11751 echo "$as_me:$LINENO: checking for dlopen" >&5
11752 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11753 if test "${ac_cv_func_dlopen+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756 if test x$gcc_no_link = xyes; then
11757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11759 { (exit 1); exit 1; }; }
11760 fi
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h. */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11769 #define dlopen innocuous_dlopen
11770
11771 /* System header to define __stub macros and hopefully few prototypes,
11772 which can conflict with char dlopen (); below.
11773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774 <limits.h> exists even on freestanding compilers. */
11775
11776 #ifdef __STDC__
11777 # include <limits.h>
11778 #else
11779 # include <assert.h>
11780 #endif
11781
11782 #undef dlopen
11783
11784 /* Override any gcc2 internal prototype to avoid an error. */
11785 #ifdef __cplusplus
11786 extern "C"
11787 {
11788 #endif
11789 /* We use char because int might match the return type of a gcc2
11790 builtin and then its argument prototype would still apply. */
11791 char dlopen ();
11792 /* The GNU C library defines this for functions which it implements
11793 to always fail with ENOSYS. Some functions are actually named
11794 something starting with __ and the normal name is an alias. */
11795 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11796 choke me
11797 #else
11798 char (*f) () = dlopen;
11799 #endif
11800 #ifdef __cplusplus
11801 }
11802 #endif
11803
11804 int
11805 main ()
11806 {
11807 return f != dlopen;
11808 ;
11809 return 0;
11810 }
11811 _ACEOF
11812 rm -f conftest.$ac_objext conftest$ac_exeext
11813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814 (eval $ac_link) 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag"
11822 || test ! -s conftest.err'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try='test -s conftest$ac_exeext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 ac_cv_func_dlopen=yes
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 ac_cv_func_dlopen=no
11840 fi
11841 rm -f conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 fi
11844 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11845 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11846 if test $ac_cv_func_dlopen = yes; then
11847 lt_cv_dlopen="dlopen"
11848 else
11849 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11850 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854 ac_check_lib_save_LIBS=$LIBS
11855 LIBS="-ldl $LIBS"
11856 if test x$gcc_no_link = xyes; then
11857 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11859 { (exit 1); exit 1; }; }
11860 fi
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867
11868 /* Override any gcc2 internal prototype to avoid an error. */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 /* We use char because int might match the return type of a gcc2
11873 builtin and then its argument prototype would still apply. */
11874 char dlopen ();
11875 int
11876 main ()
11877 {
11878 dlopen ();
11879 ;
11880 return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext conftest$ac_exeext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885 (eval $ac_link) 2>conftest.er1
11886 ac_status=$?
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -z "$ac_c_werror_flag"
11893 || test ! -s conftest.err'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest$ac_exeext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 ac_cv_lib_dl_dlopen=yes
11906 else
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 ac_cv_lib_dl_dlopen=no
11911 fi
11912 rm -f conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914 LIBS=$ac_check_lib_save_LIBS
11915 fi
11916 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11917 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11918 if test $ac_cv_lib_dl_dlopen = yes; then
11919 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11920 else
11921 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11922 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11923 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-lsvld $LIBS"
11928 if test x$gcc_no_link = xyes; then
11929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11931 { (exit 1); exit 1; }; }
11932 fi
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h. */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939
11940 /* Override any gcc2 internal prototype to avoid an error. */
11941 #ifdef __cplusplus
11942 extern "C"
11943 #endif
11944 /* We use char because int might match the return type of a gcc2
11945 builtin and then its argument prototype would still apply. */
11946 char dlopen ();
11947 int
11948 main ()
11949 {
11950 dlopen ();
11951 ;
11952 return 0;
11953 }
11954 _ACEOF
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag"
11965 || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest$ac_exeext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_lib_svld_dlopen=yes
11978 else
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11981
11982 ac_cv_lib_svld_dlopen=no
11983 fi
11984 rm -f conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11987 fi
11988 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11989 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11990 if test $ac_cv_lib_svld_dlopen = yes; then
11991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11992 else
11993 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11994 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11995 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998 ac_check_lib_save_LIBS=$LIBS
11999 LIBS="-ldld $LIBS"
12000 if test x$gcc_no_link = xyes; then
12001 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12003 { (exit 1); exit 1; }; }
12004 fi
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011
12012 /* Override any gcc2 internal prototype to avoid an error. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 /* We use char because int might match the return type of a gcc2
12017 builtin and then its argument prototype would still apply. */
12018 char dld_link ();
12019 int
12020 main ()
12021 {
12022 dld_link ();
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag"
12037 || test ! -s conftest.err'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest$ac_exeext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 ac_cv_lib_dld_dld_link=yes
12050 else
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 ac_cv_lib_dld_dld_link=no
12055 fi
12056 rm -f conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12058 LIBS=$ac_check_lib_save_LIBS
12059 fi
12060 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12061 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12062 if test $ac_cv_lib_dld_dld_link = yes; then
12063 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12064 fi
12065
12066
12067 fi
12068
12069
12070 fi
12071
12072
12073 fi
12074
12075
12076 fi
12077
12078
12079 fi
12080
12081 ;;
12082 esac
12083
12084 if test "x$lt_cv_dlopen" != xno; then
12085 enable_dlopen=yes
12086 else
12087 enable_dlopen=no
12088 fi
12089
12090 case $lt_cv_dlopen in
12091 dlopen)
12092 save_CPPFLAGS="$CPPFLAGS"
12093 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12094
12095 save_LDFLAGS="$LDFLAGS"
12096 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12097
12098 save_LIBS="$LIBS"
12099 LIBS="$lt_cv_dlopen_libs $LIBS"
12100
12101 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12102 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12103 if test "${lt_cv_dlopen_self+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106 if test "$cross_compiling" = yes; then :
12107 lt_cv_dlopen_self=cross
12108 else
12109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12110 lt_status=$lt_dlunknown
12111 cat > conftest.$ac_ext <<_LT_EOF
12112 #line 12112 "configure"
12113 #include "confdefs.h"
12114
12115 #if HAVE_DLFCN_H
12116 #include <dlfcn.h>
12117 #endif
12118
12119 #include <stdio.h>
12120
12121 #ifdef RTLD_GLOBAL
12122 # define LT_DLGLOBAL RTLD_GLOBAL
12123 #else
12124 # ifdef DL_GLOBAL
12125 # define LT_DLGLOBAL DL_GLOBAL
12126 # else
12127 # define LT_DLGLOBAL 0
12128 # endif
12129 #endif
12130
12131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12132 find out it does not work in some platform. */
12133 #ifndef LT_DLLAZY_OR_NOW
12134 # ifdef RTLD_LAZY
12135 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12136 # else
12137 # ifdef DL_LAZY
12138 # define LT_DLLAZY_OR_NOW DL_LAZY
12139 # else
12140 # ifdef RTLD_NOW
12141 # define LT_DLLAZY_OR_NOW RTLD_NOW
12142 # else
12143 # ifdef DL_NOW
12144 # define LT_DLLAZY_OR_NOW DL_NOW
12145 # else
12146 # define LT_DLLAZY_OR_NOW 0
12147 # endif
12148 # endif
12149 # endif
12150 # endif
12151 #endif
12152
12153 #ifdef __cplusplus
12154 extern "C" void exit (int);
12155 #endif
12156
12157 void fnord() { int i=42;}
12158 int main ()
12159 {
12160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12161 int status = $lt_dlunknown;
12162
12163 if (self)
12164 {
12165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12166 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12167 /* dlclose (self); */
12168 }
12169 else
12170 puts (dlerror ());
12171
12172 exit (status);
12173 }
12174 _LT_EOF
12175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12176 (eval $ac_link) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12180 (./conftest; exit; ) >&5 2>/dev/null
12181 lt_status=$?
12182 case x$lt_status in
12183 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12184 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12185 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12186 esac
12187 else :
12188 # compilation failed
12189 lt_cv_dlopen_self=no
12190 fi
12191 fi
12192 rm -fr conftest*
12193
12194
12195 fi
12196 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12197 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12198
12199 if test "x$lt_cv_dlopen_self" = xyes; then
12200 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12201 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12202 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12203 if test "${lt_cv_dlopen_self_static+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206 if test "$cross_compiling" = yes; then :
12207 lt_cv_dlopen_self_static=cross
12208 else
12209 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12210 lt_status=$lt_dlunknown
12211 cat > conftest.$ac_ext <<_LT_EOF
12212 #line 12212 "configure"
12213 #include "confdefs.h"
12214
12215 #if HAVE_DLFCN_H
12216 #include <dlfcn.h>
12217 #endif
12218
12219 #include <stdio.h>
12220
12221 #ifdef RTLD_GLOBAL
12222 # define LT_DLGLOBAL RTLD_GLOBAL
12223 #else
12224 # ifdef DL_GLOBAL
12225 # define LT_DLGLOBAL DL_GLOBAL
12226 # else
12227 # define LT_DLGLOBAL 0
12228 # endif
12229 #endif
12230
12231 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12232 find out it does not work in some platform. */
12233 #ifndef LT_DLLAZY_OR_NOW
12234 # ifdef RTLD_LAZY
12235 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12236 # else
12237 # ifdef DL_LAZY
12238 # define LT_DLLAZY_OR_NOW DL_LAZY
12239 # else
12240 # ifdef RTLD_NOW
12241 # define LT_DLLAZY_OR_NOW RTLD_NOW
12242 # else
12243 # ifdef DL_NOW
12244 # define LT_DLLAZY_OR_NOW DL_NOW
12245 # else
12246 # define LT_DLLAZY_OR_NOW 0
12247 # endif
12248 # endif
12249 # endif
12250 # endif
12251 #endif
12252
12253 #ifdef __cplusplus
12254 extern "C" void exit (int);
12255 #endif
12256
12257 void fnord() { int i=42;}
12258 int main ()
12259 {
12260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12261 int status = $lt_dlunknown;
12262
12263 if (self)
12264 {
12265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12266 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12267 /* dlclose (self); */
12268 }
12269 else
12270 puts (dlerror ());
12271
12272 exit (status);
12273 }
12274 _LT_EOF
12275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12276 (eval $ac_link) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12280 (./conftest; exit; ) >&5 2>/dev/null
12281 lt_status=$?
12282 case x$lt_status in
12283 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12284 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12285 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12286 esac
12287 else :
12288 # compilation failed
12289 lt_cv_dlopen_self_static=no
12290 fi
12291 fi
12292 rm -fr conftest*
12293
12294
12295 fi
12296 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12297 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12298 fi
12299
12300 CPPFLAGS="$save_CPPFLAGS"
12301 LDFLAGS="$save_LDFLAGS"
12302 LIBS="$save_LIBS"
12303 ;;
12304 esac
12305
12306 case $lt_cv_dlopen_self in
12307 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12308 *) enable_dlopen_self=unknown ;;
12309 esac
12310
12311 case $lt_cv_dlopen_self_static in
12312 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12313 *) enable_dlopen_self_static=unknown ;;
12314 esac
12315 fi
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333 striplib=
12334 old_striplib=
12335 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12336 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12337 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12338 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12339 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12340 echo "$as_me:$LINENO: result: yes" >&5
12341 echo "${ECHO_T}yes" >&6
12342 else
12343 # FIXME - insert some real tests, host_os isn't really good enough
12344 case $host_os in
12345 darwin*)
12346 if test -n "$STRIP" ; then
12347 striplib="$STRIP -x"
12348 old_striplib="$STRIP -S"
12349 echo "$as_me:$LINENO: result: yes" >&5
12350 echo "${ECHO_T}yes" >&6
12351 else
12352 echo "$as_me:$LINENO: result: no" >&5
12353 echo "${ECHO_T}no" >&6
12354 fi
12355 ;;
12356 *)
12357 echo "$as_me:$LINENO: result: no" >&5
12358 echo "${ECHO_T}no" >&6
12359 ;;
12360 esac
12361 fi
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374 # Report which library types will actually be built
12375 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12376 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12377 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12378 echo "${ECHO_T}$can_build_shared" >&6
12379
12380 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12381 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12382 test "$can_build_shared" = "no" && enable_shared=no
12383
12384 # On AIX, shared libraries and static libraries use the same namespace, and
12385 # are all built from PIC.
12386 case $host_os in
12387 aix3*)
12388 test "$enable_shared" = yes && enable_static=no
12389 if test -n "$RANLIB"; then
12390 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12391 postinstall_cmds='$RANLIB $lib'
12392 fi
12393 ;;
12394
12395 aix[4-9]*)
12396 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12397 test "$enable_shared" = yes && enable_static=no
12398 fi
12399 ;;
12400 esac
12401 echo "$as_me:$LINENO: result: $enable_shared" >&5
12402 echo "${ECHO_T}$enable_shared" >&6
12403
12404 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12405 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12406 # Make sure either enable_shared or enable_static is yes.
12407 test "$enable_shared" = yes || enable_static=yes
12408 echo "$as_me:$LINENO: result: $enable_static" >&5
12409 echo "${ECHO_T}$enable_static" >&6
12410
12411
12412
12413
12414 fi
12415 ac_ext=c
12416 ac_cpp='$CPP $CPPFLAGS'
12417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12420
12421 CC="$lt_save_CC"
12422
12423
12424 ac_ext=cc
12425 ac_cpp='$CXXCPP $CPPFLAGS'
12426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12429
12430 archive_cmds_need_lc_CXX=no
12431 allow_undefined_flag_CXX=
12432 always_export_symbols_CXX=no
12433 archive_expsym_cmds_CXX=
12434 compiler_needs_object_CXX=no
12435 export_dynamic_flag_spec_CXX=
12436 hardcode_direct_CXX=no
12437 hardcode_direct_absolute_CXX=no
12438 hardcode_libdir_flag_spec_CXX=
12439 hardcode_libdir_flag_spec_ld_CXX=
12440 hardcode_libdir_separator_CXX=
12441 hardcode_minus_L_CXX=no
12442 hardcode_shlibpath_var_CXX=unsupported
12443 hardcode_automatic_CXX=no
12444 inherit_rpath_CXX=no
12445 module_cmds_CXX=
12446 module_expsym_cmds_CXX=
12447 link_all_deplibs_CXX=unknown
12448 old_archive_cmds_CXX=$old_archive_cmds
12449 no_undefined_flag_CXX=
12450 whole_archive_flag_spec_CXX=
12451 enable_shared_with_static_runtimes_CXX=no
12452
12453 # Source file extension for C++ test sources.
12454 ac_ext=cpp
12455
12456 # Object file extension for compiled C++ test sources.
12457 objext=o
12458 objext_CXX=$objext
12459
12460 # No sense in running all these tests if we already determined that
12461 # the CXX compiler isn't working. Some variables (like enable_shared)
12462 # are currently assumed to apply to all compilers on this platform,
12463 # and will be corrupted by setting them based on a non-working compiler.
12464 if test "$_lt_caught_CXX_error" != yes; then
12465 # Code to be used in simple compile tests
12466 lt_simple_compile_test_code="int some_variable = 0;"
12467
12468 # Code to be used in simple link tests
12469 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12470
12471 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12472
12473
12474
12475
12476
12477
12478 # If no C compiler was specified, use CC.
12479 LTCC=${LTCC-"$CC"}
12480
12481 # If no C compiler flags were specified, use CFLAGS.
12482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12483
12484 # Allow CC to be a program name with arguments.
12485 compiler=$CC
12486
12487
12488 # save warnings/boilerplate of simple test code
12489 ac_outfile=conftest.$ac_objext
12490 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12492 _lt_compiler_boilerplate=`cat conftest.err`
12493 $RM conftest*
12494
12495 ac_outfile=conftest.$ac_objext
12496 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12498 _lt_linker_boilerplate=`cat conftest.err`
12499 $RM conftest*
12500
12501
12502 # Allow CC to be a program name with arguments.
12503 lt_save_CC=$CC
12504 lt_save_LD=$LD
12505 lt_save_GCC=$GCC
12506 GCC=$GXX
12507 lt_save_with_gnu_ld=$with_gnu_ld
12508 lt_save_path_LD=$lt_cv_path_LD
12509 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12510 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12511 else
12512 $as_unset lt_cv_prog_gnu_ld
12513 fi
12514 if test -n "${lt_cv_path_LDCXX+set}"; then
12515 lt_cv_path_LD=$lt_cv_path_LDCXX
12516 else
12517 $as_unset lt_cv_path_LD
12518 fi
12519 test -z "${LDCXX+set}" || LD=$LDCXX
12520 CC=${CXX-"c++"}
12521 compiler=$CC
12522 compiler_CXX=$CC
12523 for cc_temp in $compiler""; do
12524 case $cc_temp in
12525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12527 \-*) ;;
12528 *) break;;
12529 esac
12530 done
12531 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12532
12533
12534 if test -n "$compiler"; then
12535 # We don't want -fno-exception when compiling C++ code, so set the
12536 # no_builtin_flag separately
12537 if test "$GXX" = yes; then
12538 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12539 else
12540 lt_prog_compiler_no_builtin_flag_CXX=
12541 fi
12542
12543 if test "$GXX" = yes; then
12544 # Set up default GNU C++ configuration
12545
12546
12547
12548 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12549 if test "${with_gnu_ld+set}" = set; then
12550 withval="$with_gnu_ld"
12551 test "$withval" = no || with_gnu_ld=yes
12552 else
12553 with_gnu_ld=no
12554 fi;
12555 ac_prog=ld
12556 if test "$GCC" = yes; then
12557 # Check if gcc -print-prog-name=ld gives a path.
12558 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12559 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12560 case $host in
12561 *-*-mingw*)
12562 # gcc leaves a trailing carriage return which upsets mingw
12563 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12564 *)
12565 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12566 esac
12567 case $ac_prog in
12568 # Accept absolute paths.
12569 [\\/]* | ?:[\\/]*)
12570 re_direlt='/[^/][^/]*/\.\./'
12571 # Canonicalize the pathname of ld
12572 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12573 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12574 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12575 done
12576 test -z "$LD" && LD="$ac_prog"
12577 ;;
12578 "")
12579 # If it fails, then pretend we aren't using GCC.
12580 ac_prog=ld
12581 ;;
12582 *)
12583 # If it is relative, then search for the first ld in PATH.
12584 with_gnu_ld=unknown
12585 ;;
12586 esac
12587 elif test "$with_gnu_ld" = yes; then
12588 echo "$as_me:$LINENO: checking for GNU ld" >&5
12589 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12590 else
12591 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12592 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12593 fi
12594 if test "${lt_cv_path_LD+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 if test -z "$LD"; then
12598 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12599 for ac_dir in $PATH; do
12600 IFS="$lt_save_ifs"
12601 test -z "$ac_dir" && ac_dir=.
12602 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12603 lt_cv_path_LD="$ac_dir/$ac_prog"
12604 # Check to see if the program is GNU ld. I'd rather use --version,
12605 # but apparently some variants of GNU ld only accept -v.
12606 # Break only if it was the GNU/non-GNU ld that we prefer.
12607 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12608 *GNU* | *'with BFD'*)
12609 test "$with_gnu_ld" != no && break
12610 ;;
12611 *)
12612 test "$with_gnu_ld" != yes && break
12613 ;;
12614 esac
12615 fi
12616 done
12617 IFS="$lt_save_ifs"
12618 else
12619 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12620 fi
12621 fi
12622
12623 LD="$lt_cv_path_LD"
12624 if test -n "$LD"; then
12625 echo "$as_me:$LINENO: result: $LD" >&5
12626 echo "${ECHO_T}$LD" >&6
12627 else
12628 echo "$as_me:$LINENO: result: no" >&5
12629 echo "${ECHO_T}no" >&6
12630 fi
12631 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12632 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12633 { (exit 1); exit 1; }; }
12634 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12635 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12636 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 else
12639 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12640 case `$LD -v 2>&1 </dev/null` in
12641 *GNU* | *'with BFD'*)
12642 lt_cv_prog_gnu_ld=yes
12643 ;;
12644 *)
12645 lt_cv_prog_gnu_ld=no
12646 ;;
12647 esac
12648 fi
12649 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12650 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12651 with_gnu_ld=$lt_cv_prog_gnu_ld
12652
12653
12654
12655
12656
12657
12658
12659 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12660 # archiving commands below assume that GNU ld is being used.
12661 if test "$with_gnu_ld" = yes; then
12662 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12663 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'
12664
12665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12666 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12667
12668 # If archive_cmds runs LD, not CC, wlarc should be empty
12669 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12670 # investigate it a little bit more. (MM)
12671 wlarc='${wl}'
12672
12673 # ancient GNU ld didn't support --whole-archive et. al.
12674 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12675 $GREP 'no-whole-archive' > /dev/null; then
12676 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12677 else
12678 whole_archive_flag_spec_CXX=
12679 fi
12680 else
12681 with_gnu_ld=no
12682 wlarc=
12683
12684 # A generic and very simple default shared library creation
12685 # command for GNU C++ for the case where it uses the native
12686 # linker, instead of GNU ld. If possible, this setting should
12687 # overridden to take advantage of the native linker features on
12688 # the platform it is being used on.
12689 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12690 fi
12691
12692 # Commands to make compiler produce verbose output that lists
12693 # what "hidden" libraries, object files and flags are used when
12694 # linking a shared library.
12695 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12696
12697 else
12698 GXX=no
12699 with_gnu_ld=no
12700 wlarc=
12701 fi
12702
12703 # PORTME: fill in a description of your system's C++ link characteristics
12704 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12705 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12706 ld_shlibs_CXX=yes
12707 case $host_os in
12708 aix3*)
12709 # FIXME: insert proper C++ library support
12710 ld_shlibs_CXX=no
12711 ;;
12712 aix[4-9]*)
12713 if test "$host_cpu" = ia64; then
12714 # On IA64, the linker does run time linking by default, so we don't
12715 # have to do anything special.
12716 aix_use_runtimelinking=no
12717 exp_sym_flag='-Bexport'
12718 no_entry_flag=""
12719 else
12720 aix_use_runtimelinking=no
12721
12722 # Test if we are trying to use run time linking or normal
12723 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12724 # need to do runtime linking.
12725 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12726 for ld_flag in $LDFLAGS; do
12727 case $ld_flag in
12728 *-brtl*)
12729 aix_use_runtimelinking=yes
12730 break
12731 ;;
12732 esac
12733 done
12734 ;;
12735 esac
12736
12737 exp_sym_flag='-bexport'
12738 no_entry_flag='-bnoentry'
12739 fi
12740
12741 # When large executables or shared objects are built, AIX ld can
12742 # have problems creating the table of contents. If linking a library
12743 # or program results in "error TOC overflow" add -mminimal-toc to
12744 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12745 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12746
12747 archive_cmds_CXX=''
12748 hardcode_direct_CXX=yes
12749 hardcode_direct_absolute_CXX=yes
12750 hardcode_libdir_separator_CXX=':'
12751 link_all_deplibs_CXX=yes
12752 file_list_spec_CXX='${wl}-f,'
12753
12754 if test "$GXX" = yes; then
12755 case $host_os in aix4.[012]|aix4.[012].*)
12756 # We only want to do this on AIX 4.2 and lower, the check
12757 # below for broken collect2 doesn't work under 4.3+
12758 collect2name=`${CC} -print-prog-name=collect2`
12759 if test -f "$collect2name" &&
12760 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12761 then
12762 # We have reworked collect2
12763 :
12764 else
12765 # We have old collect2
12766 hardcode_direct_CXX=unsupported
12767 # It fails to find uninstalled libraries when the uninstalled
12768 # path is not listed in the libpath. Setting hardcode_minus_L
12769 # to unsupported forces relinking
12770 hardcode_minus_L_CXX=yes
12771 hardcode_libdir_flag_spec_CXX='-L$libdir'
12772 hardcode_libdir_separator_CXX=
12773 fi
12774 esac
12775 shared_flag='-shared'
12776 if test "$aix_use_runtimelinking" = yes; then
12777 shared_flag="$shared_flag "'${wl}-G'
12778 fi
12779 else
12780 # not using gcc
12781 if test "$host_cpu" = ia64; then
12782 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12783 # chokes on -Wl,-G. The following line is correct:
12784 shared_flag='-G'
12785 else
12786 if test "$aix_use_runtimelinking" = yes; then
12787 shared_flag='${wl}-G'
12788 else
12789 shared_flag='${wl}-bM:SRE'
12790 fi
12791 fi
12792 fi
12793
12794 # It seems that -bexpall does not export symbols beginning with
12795 # underscore (_), so it is better to generate a list of symbols to
12796 # export.
12797 always_export_symbols_CXX=yes
12798 if test "$aix_use_runtimelinking" = yes; then
12799 # Warning - without using the other runtime loading flags (-brtl),
12800 # -berok will link without error, but may produce a broken library.
12801 allow_undefined_flag_CXX='-berok'
12802 # Determine the default libpath from the value encoded in an empty
12803 # executable.
12804 if test x$gcc_no_link = xyes; then
12805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12807 { (exit 1); exit 1; }; }
12808 fi
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815
12816 int
12817 main ()
12818 {
12819
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12826 (eval $ac_link) 2>conftest.er1
12827 ac_status=$?
12828 grep -v '^ *+' conftest.er1 >conftest.err
12829 rm -f conftest.er1
12830 cat conftest.err >&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } &&
12833 { ac_try='test -z "$ac_cxx_werror_flag"
12834 || test ! -s conftest.err'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; } &&
12840 { ac_try='test -s conftest$ac_exeext'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846
12847 lt_aix_libpath_sed='
12848 /Import File Strings/,/^$/ {
12849 /^0/ {
12850 s/^0 *\(.*\)$/\1/
12851 p
12852 }
12853 }'
12854 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12855 # Check for a 64-bit object if we didn't find anything.
12856 if test -z "$aix_libpath"; then
12857 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12858 fi
12859 else
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 fi
12864 rm -f conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext conftest.$ac_ext
12866 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12867
12868 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12869
12870 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"
12871 else
12872 if test "$host_cpu" = ia64; then
12873 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12874 allow_undefined_flag_CXX="-z nodefs"
12875 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"
12876 else
12877 # Determine the default libpath from the value encoded in an
12878 # empty executable.
12879 if test x$gcc_no_link = xyes; then
12880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12882 { (exit 1); exit 1; }; }
12883 fi
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h. */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890
12891 int
12892 main ()
12893 {
12894
12895 ;
12896 return 0;
12897 }
12898 _ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901 (eval $ac_link) 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_cxx_werror_flag"
12909 || test ! -s conftest.err'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest$ac_exeext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921
12922 lt_aix_libpath_sed='
12923 /Import File Strings/,/^$/ {
12924 /^0/ {
12925 s/^0 *\(.*\)$/\1/
12926 p
12927 }
12928 }'
12929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12930 # Check for a 64-bit object if we didn't find anything.
12931 if test -z "$aix_libpath"; then
12932 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12933 fi
12934 else
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12937
12938 fi
12939 rm -f conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12942
12943 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12944 # Warning - without using the other run time loading flags,
12945 # -berok will link without error, but may produce a broken library.
12946 no_undefined_flag_CXX=' ${wl}-bernotok'
12947 allow_undefined_flag_CXX=' ${wl}-berok'
12948 # Exported symbols can be pulled into shared objects from archives
12949 whole_archive_flag_spec_CXX='$convenience'
12950 archive_cmds_need_lc_CXX=yes
12951 # This is similar to how AIX traditionally builds its shared
12952 # libraries.
12953 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'
12954 fi
12955 fi
12956 ;;
12957
12958 beos*)
12959 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12960 allow_undefined_flag_CXX=unsupported
12961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12962 # support --undefined. This deserves some investigation. FIXME
12963 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12964 else
12965 ld_shlibs_CXX=no
12966 fi
12967 ;;
12968
12969 chorus*)
12970 case $cc_basename in
12971 *)
12972 # FIXME: insert proper C++ library support
12973 ld_shlibs_CXX=no
12974 ;;
12975 esac
12976 ;;
12977
12978 cygwin* | mingw* | pw32*)
12979 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12980 # as there is no search path for DLLs.
12981 hardcode_libdir_flag_spec_CXX='-L$libdir'
12982 allow_undefined_flag_CXX=unsupported
12983 always_export_symbols_CXX=no
12984 enable_shared_with_static_runtimes_CXX=yes
12985
12986 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12987 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'
12988 # If the export-symbols file already is a .def file (1st line
12989 # is EXPORTS), use it as is; otherwise, prepend...
12990 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12991 cp $export_symbols $output_objdir/$soname.def;
12992 else
12993 echo EXPORTS > $output_objdir/$soname.def;
12994 cat $export_symbols >> $output_objdir/$soname.def;
12995 fi~
12996 $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'
12997 else
12998 ld_shlibs_CXX=no
12999 fi
13000 ;;
13001 darwin* | rhapsody*)
13002 case $host_os in
13003 rhapsody* | darwin1.[012])
13004 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13005 ;;
13006 *) # Darwin 1.3 on
13007 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
13008 10.[012])
13009 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13010 ;;
13011 10.*)
13012 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13013 ;;
13014 esac
13015 ;;
13016 esac
13017 archive_cmds_need_lc_CXX=no
13018 hardcode_direct_CXX=no
13019 hardcode_automatic_CXX=yes
13020 hardcode_shlibpath_var_CXX=unsupported
13021 whole_archive_flag_spec_CXX=''
13022 link_all_deplibs_CXX=yes
13023
13024 if test "$GXX" = yes ; then
13025 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028 lt_cv_apple_cc_single_mod=no
13029 if test -z "${LT_MULTI_MODULE}"; then
13030 # By default we will add the -single_module flag. You can override
13031 # by either setting the environment variable LT_MULTI_MODULE
13032 # non-empty at configure time, or by adding -multi-module to the
13033 # link flags.
13034 echo "int foo(void){return 1;}" > conftest.c
13035 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13036 -dynamiclib ${wl}-single_module conftest.c
13037 if test -f libconftest.dylib; then
13038 lt_cv_apple_cc_single_mod=yes
13039 rm libconftest.dylib
13040 fi
13041 rm conftest.$ac_ext
13042 fi
13043 fi
13044
13045 output_verbose_link_cmd=echo
13046 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
13047 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13048 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13049 else
13050 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'
13051 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13052 fi
13053 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13054 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13055 else
13056 case $cc_basename in
13057 xlc*)
13058 output_verbose_link_cmd=echo
13059 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
13060 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13061 # Don't fix this by using the ld -exported_symbols_list flag,
13062 # it doesn't exist in older darwin lds
13063 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13064 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13065 ;;
13066 *)
13067 ld_shlibs_CXX=no
13068 ;;
13069 esac
13070 fi
13071 ;;
13072
13073 dgux*)
13074 case $cc_basename in
13075 ec++*)
13076 # FIXME: insert proper C++ library support
13077 ld_shlibs_CXX=no
13078 ;;
13079 ghcx*)
13080 # Green Hills C++ Compiler
13081 # FIXME: insert proper C++ library support
13082 ld_shlibs_CXX=no
13083 ;;
13084 *)
13085 # FIXME: insert proper C++ library support
13086 ld_shlibs_CXX=no
13087 ;;
13088 esac
13089 ;;
13090
13091 freebsd[12]*)
13092 # C++ shared libraries reported to be fairly broken before
13093 # switch to ELF
13094 ld_shlibs_CXX=no
13095 ;;
13096
13097 freebsd-elf*)
13098 archive_cmds_need_lc_CXX=no
13099 ;;
13100
13101 freebsd* | dragonfly*)
13102 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13103 # conventions
13104 ld_shlibs_CXX=yes
13105 ;;
13106
13107 gnu*)
13108 ;;
13109
13110 hpux9*)
13111 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13112 hardcode_libdir_separator_CXX=:
13113 export_dynamic_flag_spec_CXX='${wl}-E'
13114 hardcode_direct_CXX=yes
13115 hardcode_minus_L_CXX=yes # Not in the search PATH,
13116 # but as the default
13117 # location of the library.
13118
13119 case $cc_basename in
13120 CC*)
13121 # FIXME: insert proper C++ library support
13122 ld_shlibs_CXX=no
13123 ;;
13124 aCC*)
13125 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'
13126 # Commands to make compiler produce verbose output that lists
13127 # what "hidden" libraries, object files and flags are used when
13128 # linking a shared library.
13129 #
13130 # There doesn't appear to be a way to prevent this compiler from
13131 # explicitly linking system object files so we need to strip them
13132 # from the output so that they don't get included in the library
13133 # dependencies.
13134 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'
13135 ;;
13136 *)
13137 if test "$GXX" = yes; then
13138 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'
13139 else
13140 # FIXME: insert proper C++ library support
13141 ld_shlibs_CXX=no
13142 fi
13143 ;;
13144 esac
13145 ;;
13146
13147 hpux10*|hpux11*)
13148 if test $with_gnu_ld = no; then
13149 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13150 hardcode_libdir_separator_CXX=:
13151
13152 case $host_cpu in
13153 hppa*64*|ia64*)
13154 ;;
13155 *)
13156 export_dynamic_flag_spec_CXX='${wl}-E'
13157 ;;
13158 esac
13159 fi
13160 case $host_cpu in
13161 hppa*64*|ia64*)
13162 hardcode_direct_CXX=no
13163 hardcode_shlibpath_var_CXX=no
13164 ;;
13165 *)
13166 hardcode_direct_CXX=yes
13167 hardcode_direct_absolute_CXX=yes
13168 hardcode_minus_L_CXX=yes # Not in the search PATH,
13169 # but as the default
13170 # location of the library.
13171 ;;
13172 esac
13173
13174 case $cc_basename in
13175 CC*)
13176 # FIXME: insert proper C++ library support
13177 ld_shlibs_CXX=no
13178 ;;
13179 aCC*)
13180 case $host_cpu in
13181 hppa*64*)
13182 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13183 ;;
13184 ia64*)
13185 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13186 ;;
13187 *)
13188 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13189 ;;
13190 esac
13191 # Commands to make compiler produce verbose output that lists
13192 # what "hidden" libraries, object files and flags are used when
13193 # linking a shared library.
13194 #
13195 # There doesn't appear to be a way to prevent this compiler from
13196 # explicitly linking system object files so we need to strip them
13197 # from the output so that they don't get included in the library
13198 # dependencies.
13199 output_verbose_link_cmd='templist=`($CC -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'
13200 ;;
13201 *)
13202 if test "$GXX" = yes; then
13203 if test $with_gnu_ld = no; then
13204 case $host_cpu in
13205 hppa*64*)
13206 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13207 ;;
13208 ia64*)
13209 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13210 ;;
13211 *)
13212 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'
13213 ;;
13214 esac
13215 fi
13216 else
13217 # FIXME: insert proper C++ library support
13218 ld_shlibs_CXX=no
13219 fi
13220 ;;
13221 esac
13222 ;;
13223
13224 interix[3-9]*)
13225 hardcode_direct_CXX=no
13226 hardcode_shlibpath_var_CXX=no
13227 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13228 export_dynamic_flag_spec_CXX='${wl}-E'
13229 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13230 # Instead, shared libraries are loaded at an image base (0x10000000 by
13231 # default) and relocated if they conflict, which is a slow very memory
13232 # consuming and fragmenting process. To avoid this, we pick a random,
13233 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13234 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13235 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'
13236 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'
13237 ;;
13238 irix5* | irix6*)
13239 case $cc_basename in
13240 CC*)
13241 # SGI C++
13242 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'
13243
13244 # Archives containing C++ object files must be created using
13245 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13246 # necessary to make sure instantiated templates are included
13247 # in the archive.
13248 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13249 ;;
13250 *)
13251 if test "$GXX" = yes; then
13252 if test "$with_gnu_ld" = no; then
13253 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'
13254 else
13255 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'
13256 fi
13257 fi
13258 link_all_deplibs_CXX=yes
13259 ;;
13260 esac
13261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13262 hardcode_libdir_separator_CXX=:
13263 inherit_rpath_CXX=yes
13264 ;;
13265
13266 linux* | k*bsd*-gnu)
13267 case $cc_basename in
13268 KCC*)
13269 # Kuck and Associates, Inc. (KAI) C++ Compiler
13270
13271 # KCC will only create a shared library if the output file
13272 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13273 # to its proper name (with version) after linking.
13274 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'
13275 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'
13276 # Commands to make compiler produce verbose output that lists
13277 # what "hidden" libraries, object files and flags are used when
13278 # linking a shared library.
13279 #
13280 # There doesn't appear to be a way to prevent this compiler from
13281 # explicitly linking system object files so we need to strip them
13282 # from the output so that they don't get included in the library
13283 # dependencies.
13284 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'
13285
13286 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13288
13289 # Archives containing C++ object files must be created using
13290 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13291 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13292 ;;
13293 icpc* | ecpc* )
13294 # Intel C++
13295 with_gnu_ld=yes
13296 # version 8.0 and above of icpc choke on multiply defined symbols
13297 # if we add $predep_objects and $postdep_objects, however 7.1 and
13298 # earlier do not add the objects themselves.
13299 case `$CC -V 2>&1` in
13300 *"Version 7."*)
13301 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13302 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'
13303 ;;
13304 *) # Version 8.0 or newer
13305 tmp_idyn=
13306 case $host_cpu in
13307 ia64*) tmp_idyn=' -i_dynamic';;
13308 esac
13309 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13310 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'
13311 ;;
13312 esac
13313 archive_cmds_need_lc_CXX=no
13314 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13315 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13316 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13317 ;;
13318 pgCC*)
13319 # Portland Group C++ compiler
13320 case `$CC -V` in
13321 *pgCC\ [1-5]*)
13322 prelink_cmds_CXX='tpldir=Template.dir~
13323 rm -rf $tpldir~
13324 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13325 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13326 old_archive_cmds_CXX='tpldir=Template.dir~
13327 rm -rf $tpldir~
13328 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13329 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13330 $RANLIB $oldlib'
13331 archive_cmds_CXX='tpldir=Template.dir~
13332 rm -rf $tpldir~
13333 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13334 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13335 archive_expsym_cmds_CXX='tpldir=Template.dir~
13336 rm -rf $tpldir~
13337 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13338 $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'
13339 ;;
13340 *) # Version 6 will use weak symbols
13341 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13342 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'
13343 ;;
13344 esac
13345
13346 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13347 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13348 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'
13349 ;;
13350 cxx*)
13351 # Compaq C++
13352 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13353 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'
13354
13355 runpath_var=LD_RUN_PATH
13356 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13357 hardcode_libdir_separator_CXX=:
13358
13359 # Commands to make compiler produce verbose output that lists
13360 # what "hidden" libraries, object files and flags are used when
13361 # linking a shared library.
13362 #
13363 # There doesn't appear to be a way to prevent this compiler from
13364 # explicitly linking system object files so we need to strip them
13365 # from the output so that they don't get included in the library
13366 # dependencies.
13367 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'
13368 ;;
13369 *)
13370 case `$CC -V 2>&1 | sed 5q` in
13371 *Sun\ C*)
13372 # Sun C++ 5.9
13373 no_undefined_flag_CXX=' -zdefs'
13374 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13375 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'
13376 hardcode_libdir_flag_spec_CXX='-R$libdir'
13377 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'
13378 compiler_needs_object_CXX=yes
13379
13380 # Not sure whether something based on
13381 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13382 # would be better.
13383 output_verbose_link_cmd='echo'
13384
13385 # Archives containing C++ object files must be created using
13386 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13387 # necessary to make sure instantiated templates are included
13388 # in the archive.
13389 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13390 ;;
13391 esac
13392 ;;
13393 esac
13394 ;;
13395
13396 lynxos*)
13397 # FIXME: insert proper C++ library support
13398 ld_shlibs_CXX=no
13399 ;;
13400
13401 m88k*)
13402 # FIXME: insert proper C++ library support
13403 ld_shlibs_CXX=no
13404 ;;
13405
13406 mvs*)
13407 case $cc_basename in
13408 cxx*)
13409 # FIXME: insert proper C++ library support
13410 ld_shlibs_CXX=no
13411 ;;
13412 *)
13413 # FIXME: insert proper C++ library support
13414 ld_shlibs_CXX=no
13415 ;;
13416 esac
13417 ;;
13418
13419 netbsd*)
13420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13421 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13422 wlarc=
13423 hardcode_libdir_flag_spec_CXX='-R$libdir'
13424 hardcode_direct_CXX=yes
13425 hardcode_shlibpath_var_CXX=no
13426 fi
13427 # Workaround some broken pre-1.5 toolchains
13428 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13429 ;;
13430
13431 *nto* | *qnx*)
13432 ld_shlibs_CXX=yes
13433 ;;
13434
13435 openbsd2*)
13436 # C++ shared libraries are fairly broken
13437 ld_shlibs_CXX=no
13438 ;;
13439
13440 openbsd*)
13441 hardcode_direct_CXX=yes
13442 hardcode_shlibpath_var_CXX=no
13443 hardcode_direct_absolute_CXX=yes
13444 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13445 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13447 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13448 export_dynamic_flag_spec_CXX='${wl}-E'
13449 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13450 fi
13451 output_verbose_link_cmd=echo
13452 ;;
13453
13454 osf3* | osf4* | osf5*)
13455 case $cc_basename in
13456 KCC*)
13457 # Kuck and Associates, Inc. (KAI) C++ Compiler
13458
13459 # KCC will only create a shared library if the output file
13460 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13461 # to its proper name (with version) after linking.
13462 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'
13463
13464 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13465 hardcode_libdir_separator_CXX=:
13466
13467 # Archives containing C++ object files must be created using
13468 # the KAI C++ compiler.
13469 case $host in
13470 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13471 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13472 esac
13473 ;;
13474 RCC*)
13475 # Rational C++ 2.4.1
13476 # FIXME: insert proper C++ library support
13477 ld_shlibs_CXX=no
13478 ;;
13479 cxx*)
13480 case $host in
13481 osf3*)
13482 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13483 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'
13484 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13485 ;;
13486 *)
13487 allow_undefined_flag_CXX=' -expect_unresolved \*'
13488 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'
13489 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13490 echo "-hidden">> $lib.exp~
13491 $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~
13492 $RM $lib.exp'
13493 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13494 ;;
13495 esac
13496
13497 hardcode_libdir_separator_CXX=:
13498
13499 # Commands to make compiler produce verbose output that lists
13500 # what "hidden" libraries, object files and flags are used when
13501 # linking a shared library.
13502 #
13503 # There doesn't appear to be a way to prevent this compiler from
13504 # explicitly linking system object files so we need to strip them
13505 # from the output so that they don't get included in the library
13506 # dependencies.
13507 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'
13508 ;;
13509 *)
13510 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13511 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13512 case $host in
13513 osf3*)
13514 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'
13515 ;;
13516 *)
13517 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'
13518 ;;
13519 esac
13520
13521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13522 hardcode_libdir_separator_CXX=:
13523
13524 # Commands to make compiler produce verbose output that lists
13525 # what "hidden" libraries, object files and flags are used when
13526 # linking a shared library.
13527 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13528
13529 else
13530 # FIXME: insert proper C++ library support
13531 ld_shlibs_CXX=no
13532 fi
13533 ;;
13534 esac
13535 ;;
13536
13537 psos*)
13538 # FIXME: insert proper C++ library support
13539 ld_shlibs_CXX=no
13540 ;;
13541
13542 sunos4*)
13543 case $cc_basename in
13544 CC*)
13545 # Sun C++ 4.x
13546 # FIXME: insert proper C++ library support
13547 ld_shlibs_CXX=no
13548 ;;
13549 lcc*)
13550 # Lucid
13551 # FIXME: insert proper C++ library support
13552 ld_shlibs_CXX=no
13553 ;;
13554 *)
13555 # FIXME: insert proper C++ library support
13556 ld_shlibs_CXX=no
13557 ;;
13558 esac
13559 ;;
13560
13561 solaris*)
13562 case $cc_basename in
13563 CC*)
13564 # Sun C++ 4.2, 5.x and Centerline C++
13565 archive_cmds_need_lc_CXX=yes
13566 no_undefined_flag_CXX=' -zdefs'
13567 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13568 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13569 $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'
13570
13571 hardcode_libdir_flag_spec_CXX='-R$libdir'
13572 hardcode_shlibpath_var_CXX=no
13573 case $host_os in
13574 solaris2.[0-5] | solaris2.[0-5].*) ;;
13575 *)
13576 # The compiler driver will combine and reorder linker options,
13577 # but understands `-z linker_flag'.
13578 # Supported since Solaris 2.6 (maybe 2.5.1?)
13579 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13580 ;;
13581 esac
13582 link_all_deplibs_CXX=yes
13583
13584 output_verbose_link_cmd='echo'
13585
13586 # Archives containing C++ object files must be created using
13587 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13588 # necessary to make sure instantiated templates are included
13589 # in the archive.
13590 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13591 ;;
13592 gcx*)
13593 # Green Hills C++ Compiler
13594 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13595
13596 # The C++ compiler must be used to create the archive.
13597 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13598 ;;
13599 *)
13600 # GNU C++ compiler with Solaris linker
13601 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13602 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13603 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13604 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13605 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13606 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13607
13608 # Commands to make compiler produce verbose output that lists
13609 # what "hidden" libraries, object files and flags are used when
13610 # linking a shared library.
13611 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13612 else
13613 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13614 # platform.
13615 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13616 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13617 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13618
13619 # Commands to make compiler produce verbose output that lists
13620 # what "hidden" libraries, object files and flags are used when
13621 # linking a shared library.
13622 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13623 fi
13624
13625 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13626 case $host_os in
13627 solaris2.[0-5] | solaris2.[0-5].*) ;;
13628 *)
13629 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13630 ;;
13631 esac
13632 fi
13633 ;;
13634 esac
13635 ;;
13636
13637 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13638 no_undefined_flag_CXX='${wl}-z,text'
13639 archive_cmds_need_lc_CXX=no
13640 hardcode_shlibpath_var_CXX=no
13641 runpath_var='LD_RUN_PATH'
13642
13643 case $cc_basename in
13644 CC*)
13645 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 ;;
13648 *)
13649 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 ;;
13652 esac
13653 ;;
13654
13655 sysv5* | sco3.2v5* | sco5v6*)
13656 # Note: We can NOT use -z defs as we might desire, because we do not
13657 # link with -lc, and that would cause any symbols used from libc to
13658 # always be unresolved, which means just about no library would
13659 # ever link correctly. If we're not using GNU ld we use -z text
13660 # though, which does catch some bad symbols but isn't as heavy-handed
13661 # as -z defs.
13662 no_undefined_flag_CXX='${wl}-z,text'
13663 allow_undefined_flag_CXX='${wl}-z,nodefs'
13664 archive_cmds_need_lc_CXX=no
13665 hardcode_shlibpath_var_CXX=no
13666 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13667 hardcode_libdir_separator_CXX=':'
13668 link_all_deplibs_CXX=yes
13669 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13670 runpath_var='LD_RUN_PATH'
13671
13672 case $cc_basename in
13673 CC*)
13674 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 ;;
13677 *)
13678 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 ;;
13681 esac
13682 ;;
13683
13684 tandem*)
13685 case $cc_basename in
13686 NCC*)
13687 # NonStop-UX NCC 3.20
13688 # FIXME: insert proper C++ library support
13689 ld_shlibs_CXX=no
13690 ;;
13691 *)
13692 # FIXME: insert proper C++ library support
13693 ld_shlibs_CXX=no
13694 ;;
13695 esac
13696 ;;
13697
13698 vxworks*)
13699 # FIXME: insert proper C++ library support
13700 ld_shlibs_CXX=no
13701 ;;
13702
13703 *)
13704 # FIXME: insert proper C++ library support
13705 ld_shlibs_CXX=no
13706 ;;
13707 esac
13708
13709 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13710 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13711 test "$ld_shlibs_CXX" = no && can_build_shared=no
13712
13713 GCC_CXX="$GXX"
13714 LD_CXX="$LD"
13715
13716 ## CAVEAT EMPTOR:
13717 ## There is no encapsulation within the following macros, do not change
13718 ## the running order or otherwise move them around unless you know exactly
13719 ## what you are doing...
13720 # Dependencies to place before and after the object being linked:
13721 predep_objects_CXX=
13722 postdep_objects_CXX=
13723 predeps_CXX=
13724 postdeps_CXX=
13725 compiler_lib_search_path_CXX=
13726
13727 cat > conftest.$ac_ext <<_LT_EOF
13728 class Foo
13729 {
13730 public:
13731 Foo (void) { a = 0; }
13732 private:
13733 int a;
13734 };
13735 _LT_EOF
13736
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; then
13742 # Parse the compiler output and extract the necessary
13743 # objects, libraries and library flags.
13744
13745 # Sentinel used to keep track of whether or not we are before
13746 # the conftest object file.
13747 pre_test_object_deps_done=no
13748
13749 # The `*' in the case matches for architectures that use `case' in
13750 # $output_verbose_cmd can trigger glob expansion during the loop
13751 # eval without this substitution.
13752 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13753
13754 for p in `eval $output_verbose_link_cmd`; do
13755 case $p in
13756
13757 -L* | -R* | -l*)
13758 # Some compilers place space between "-{L,R}" and the path.
13759 # Remove the space.
13760 if test $p = "-L" ||
13761 test $p = "-R"; then
13762 prev=$p
13763 continue
13764 else
13765 prev=
13766 fi
13767
13768 if test "$pre_test_object_deps_done" = no; then
13769 case $p in
13770 -L* | -R*)
13771 # Internal compiler library paths should come after those
13772 # provided the user. The postdeps already come after the
13773 # user supplied libs so there is no need to process them.
13774 if test -z "$compiler_lib_search_path_CXX"; then
13775 compiler_lib_search_path_CXX="${prev}${p}"
13776 else
13777 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13778 fi
13779 ;;
13780 # The "-l" case would never come before the object being
13781 # linked, so don't bother handling this case.
13782 esac
13783 else
13784 if test -z "$postdeps_CXX"; then
13785 postdeps_CXX="${prev}${p}"
13786 else
13787 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13788 fi
13789 fi
13790 ;;
13791
13792 *.$objext)
13793 # This assumes that the test object file only shows up
13794 # once in the compiler output.
13795 if test "$p" = "conftest.$objext"; then
13796 pre_test_object_deps_done=yes
13797 continue
13798 fi
13799
13800 if test "$pre_test_object_deps_done" = no; then
13801 if test -z "$predep_objects_CXX"; then
13802 predep_objects_CXX="$p"
13803 else
13804 predep_objects_CXX="$predep_objects_CXX $p"
13805 fi
13806 else
13807 if test -z "$postdep_objects_CXX"; then
13808 postdep_objects_CXX="$p"
13809 else
13810 postdep_objects_CXX="$postdep_objects_CXX $p"
13811 fi
13812 fi
13813 ;;
13814
13815 *) ;; # Ignore the rest.
13816
13817 esac
13818 done
13819
13820 # Clean up.
13821 rm -f a.out a.exe
13822 else
13823 echo "libtool.m4: error: problem compiling CXX test program"
13824 fi
13825
13826 $RM -f confest.$objext
13827
13828 # PORTME: override above test on systems where it is broken
13829 case $host_os in
13830 interix[3-9]*)
13831 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13832 # hack all around it, let's just trust "g++" to DTRT.
13833 predep_objects_CXX=
13834 postdep_objects_CXX=
13835 postdeps_CXX=
13836 ;;
13837
13838 linux*)
13839 case `$CC -V 2>&1 | sed 5q` in
13840 *Sun\ C*)
13841 # Sun C++ 5.9
13842
13843 # The more standards-conforming stlport4 library is
13844 # incompatible with the Cstd library. Avoid specifying
13845 # it if it's in CXXFLAGS. Ignore libCrun as
13846 # -library=stlport4 depends on it.
13847 case " $CXX $CXXFLAGS " in
13848 *" -library=stlport4 "*)
13849 solaris_use_stlport4=yes
13850 ;;
13851 esac
13852
13853 if test "$solaris_use_stlport4" != yes; then
13854 postdeps_CXX='-library=Cstd -library=Crun'
13855 fi
13856 ;;
13857 esac
13858 ;;
13859
13860 solaris*)
13861 case $cc_basename in
13862 CC*)
13863 # The more standards-conforming stlport4 library is
13864 # incompatible with the Cstd library. Avoid specifying
13865 # it if it's in CXXFLAGS. Ignore libCrun as
13866 # -library=stlport4 depends on it.
13867 case " $CXX $CXXFLAGS " in
13868 *" -library=stlport4 "*)
13869 solaris_use_stlport4=yes
13870 ;;
13871 esac
13872
13873 # Adding this requires a known-good setup of shared libraries for
13874 # Sun compiler versions before 5.6, else PIC objects from an old
13875 # archive will be linked into the output, leading to subtle bugs.
13876 if test "$solaris_use_stlport4" != yes; then
13877 postdeps_CXX='-library=Cstd -library=Crun'
13878 fi
13879 ;;
13880 esac
13881 ;;
13882 esac
13883
13884
13885 case " $postdeps_CXX " in
13886 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13887 esac
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914 lt_prog_compiler_wl_CXX=
13915 lt_prog_compiler_pic_CXX=
13916 lt_prog_compiler_static_CXX=
13917
13918 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13919 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13920
13921 # C++ specific cases for pic, static, wl, etc.
13922 if test "$GXX" = yes; then
13923 lt_prog_compiler_wl_CXX='-Wl,'
13924 lt_prog_compiler_static_CXX='-static'
13925
13926 case $host_os in
13927 aix*)
13928 # All AIX code is PIC.
13929 if test "$host_cpu" = ia64; then
13930 # AIX 5 now supports IA64 processor
13931 lt_prog_compiler_static_CXX='-Bstatic'
13932 fi
13933 ;;
13934 amigaos*)
13935 if test "$host_cpu" = m68k; then
13936 # FIXME: we need at least 68020 code to build shared libraries, but
13937 # adding the `-m68020' flag to GCC prevents building anything better,
13938 # like `-m68040'.
13939 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13940 fi
13941 ;;
13942 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13943 # PIC is the default for these OSes.
13944 ;;
13945 mingw* | cygwin* | os2* | pw32*)
13946 # This hack is so that the source file can tell whether it is being
13947 # built for inclusion in a dll (and should export symbols for example).
13948 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13949 # (--disable-auto-import) libraries
13950 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13951 ;;
13952 darwin* | rhapsody*)
13953 # PIC is the default on this platform
13954 # Common symbols not allowed in MH_DYLIB files
13955 lt_prog_compiler_pic_CXX='-fno-common'
13956 ;;
13957 *djgpp*)
13958 # DJGPP does not support shared libraries at all
13959 lt_prog_compiler_pic_CXX=
13960 ;;
13961 interix[3-9]*)
13962 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13963 # Instead, we relocate shared libraries at runtime.
13964 ;;
13965 sysv4*MP*)
13966 if test -d /usr/nec; then
13967 lt_prog_compiler_pic_CXX=-Kconform_pic
13968 fi
13969 ;;
13970 hpux*)
13971 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13972 # not for PA HP-UX.
13973 case $host_cpu in
13974 hppa*64*|ia64*)
13975 ;;
13976 *)
13977 lt_prog_compiler_pic_CXX='-fPIC'
13978 ;;
13979 esac
13980 ;;
13981 *qnx* | *nto*)
13982 # QNX uses GNU C++, but need to define -shared option too, otherwise
13983 # it will coredump.
13984 lt_prog_compiler_pic_CXX='-fPIC -shared'
13985 ;;
13986 *)
13987 lt_prog_compiler_pic_CXX='-fPIC'
13988 ;;
13989 esac
13990 else
13991 case $host_os in
13992 aix[4-9]*)
13993 # All AIX code is PIC.
13994 if test "$host_cpu" = ia64; then
13995 # AIX 5 now supports IA64 processor
13996 lt_prog_compiler_static_CXX='-Bstatic'
13997 else
13998 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13999 fi
14000 ;;
14001 chorus*)
14002 case $cc_basename in
14003 cxch68*)
14004 # Green Hills C++ Compiler
14005 # _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"
14006 ;;
14007 esac
14008 ;;
14009 darwin*)
14010 # PIC is the default on this platform
14011 # Common symbols not allowed in MH_DYLIB files
14012 case $cc_basename in
14013 xlc*)
14014 lt_prog_compiler_pic_CXX='-qnocommon'
14015 lt_prog_compiler_wl_CXX='-Wl,'
14016 ;;
14017 esac
14018 ;;
14019 dgux*)
14020 case $cc_basename in
14021 ec++*)
14022 lt_prog_compiler_pic_CXX='-KPIC'
14023 ;;
14024 ghcx*)
14025 # Green Hills C++ Compiler
14026 lt_prog_compiler_pic_CXX='-pic'
14027 ;;
14028 *)
14029 ;;
14030 esac
14031 ;;
14032 freebsd* | dragonfly*)
14033 # FreeBSD uses GNU C++
14034 ;;
14035 hpux9* | hpux10* | hpux11*)
14036 case $cc_basename in
14037 CC*)
14038 lt_prog_compiler_wl_CXX='-Wl,'
14039 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14040 if test "$host_cpu" != ia64; then
14041 lt_prog_compiler_pic_CXX='+Z'
14042 fi
14043 ;;
14044 aCC*)
14045 lt_prog_compiler_wl_CXX='-Wl,'
14046 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14047 case $host_cpu in
14048 hppa*64*|ia64*)
14049 # +Z the default
14050 ;;
14051 *)
14052 lt_prog_compiler_pic_CXX='+Z'
14053 ;;
14054 esac
14055 ;;
14056 *)
14057 ;;
14058 esac
14059 ;;
14060 interix*)
14061 # This is c89, which is MS Visual C++ (no shared libs)
14062 # Anyone wants to do a port?
14063 ;;
14064 irix5* | irix6* | nonstopux*)
14065 case $cc_basename in
14066 CC*)
14067 lt_prog_compiler_wl_CXX='-Wl,'
14068 lt_prog_compiler_static_CXX='-non_shared'
14069 # CC pic flag -KPIC is the default.
14070 ;;
14071 *)
14072 ;;
14073 esac
14074 ;;
14075 linux* | k*bsd*-gnu)
14076 case $cc_basename in
14077 KCC*)
14078 # KAI C++ Compiler
14079 lt_prog_compiler_wl_CXX='--backend -Wl,'
14080 lt_prog_compiler_pic_CXX='-fPIC'
14081 ;;
14082 icpc* | ecpc* )
14083 # Intel C++
14084 lt_prog_compiler_wl_CXX='-Wl,'
14085 lt_prog_compiler_pic_CXX='-KPIC'
14086 lt_prog_compiler_static_CXX='-static'
14087 ;;
14088 pgCC*)
14089 # Portland Group C++ compiler
14090 lt_prog_compiler_wl_CXX='-Wl,'
14091 lt_prog_compiler_pic_CXX='-fpic'
14092 lt_prog_compiler_static_CXX='-Bstatic'
14093 ;;
14094 cxx*)
14095 # Compaq C++
14096 # Make sure the PIC flag is empty. It appears that all Alpha
14097 # Linux and Compaq Tru64 Unix objects are PIC.
14098 lt_prog_compiler_pic_CXX=
14099 lt_prog_compiler_static_CXX='-non_shared'
14100 ;;
14101 *)
14102 case `$CC -V 2>&1 | sed 5q` in
14103 *Sun\ C*)
14104 # Sun C++ 5.9
14105 lt_prog_compiler_pic_CXX='-KPIC'
14106 lt_prog_compiler_static_CXX='-Bstatic'
14107 lt_prog_compiler_wl_CXX='-Qoption ld '
14108 ;;
14109 esac
14110 ;;
14111 esac
14112 ;;
14113 lynxos*)
14114 ;;
14115 m88k*)
14116 ;;
14117 mvs*)
14118 case $cc_basename in
14119 cxx*)
14120 lt_prog_compiler_pic_CXX='-W c,exportall'
14121 ;;
14122 *)
14123 ;;
14124 esac
14125 ;;
14126 netbsd*)
14127 ;;
14128 *qnx* | *nto*)
14129 # QNX uses GNU C++, but need to define -shared option too, otherwise
14130 # it will coredump.
14131 lt_prog_compiler_pic_CXX='-fPIC -shared'
14132 ;;
14133 osf3* | osf4* | osf5*)
14134 case $cc_basename in
14135 KCC*)
14136 lt_prog_compiler_wl_CXX='--backend -Wl,'
14137 ;;
14138 RCC*)
14139 # Rational C++ 2.4.1
14140 lt_prog_compiler_pic_CXX='-pic'
14141 ;;
14142 cxx*)
14143 # Digital/Compaq C++
14144 lt_prog_compiler_wl_CXX='-Wl,'
14145 # Make sure the PIC flag is empty. It appears that all Alpha
14146 # Linux and Compaq Tru64 Unix objects are PIC.
14147 lt_prog_compiler_pic_CXX=
14148 lt_prog_compiler_static_CXX='-non_shared'
14149 ;;
14150 *)
14151 ;;
14152 esac
14153 ;;
14154 psos*)
14155 ;;
14156 solaris*)
14157 case $cc_basename in
14158 CC*)
14159 # Sun C++ 4.2, 5.x and Centerline C++
14160 lt_prog_compiler_pic_CXX='-KPIC'
14161 lt_prog_compiler_static_CXX='-Bstatic'
14162 lt_prog_compiler_wl_CXX='-Qoption ld '
14163 ;;
14164 gcx*)
14165 # Green Hills C++ Compiler
14166 lt_prog_compiler_pic_CXX='-PIC'
14167 ;;
14168 *)
14169 ;;
14170 esac
14171 ;;
14172 sunos4*)
14173 case $cc_basename in
14174 CC*)
14175 # Sun C++ 4.x
14176 lt_prog_compiler_pic_CXX='-pic'
14177 lt_prog_compiler_static_CXX='-Bstatic'
14178 ;;
14179 lcc*)
14180 # Lucid
14181 lt_prog_compiler_pic_CXX='-pic'
14182 ;;
14183 *)
14184 ;;
14185 esac
14186 ;;
14187 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14188 case $cc_basename in
14189 CC*)
14190 lt_prog_compiler_wl_CXX='-Wl,'
14191 lt_prog_compiler_pic_CXX='-KPIC'
14192 lt_prog_compiler_static_CXX='-Bstatic'
14193 ;;
14194 esac
14195 ;;
14196 tandem*)
14197 case $cc_basename in
14198 NCC*)
14199 # NonStop-UX NCC 3.20
14200 lt_prog_compiler_pic_CXX='-KPIC'
14201 ;;
14202 *)
14203 ;;
14204 esac
14205 ;;
14206 vxworks*)
14207 ;;
14208 *)
14209 lt_prog_compiler_can_build_shared_CXX=no
14210 ;;
14211 esac
14212 fi
14213
14214 case $host_os in
14215 # For platforms which do not support PIC, -DPIC is meaningless:
14216 *djgpp*)
14217 lt_prog_compiler_pic_CXX=
14218 ;;
14219 *)
14220 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14221 ;;
14222 esac
14223 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14224 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14225
14226
14227
14228 #
14229 # Check to make sure the PIC flag actually works.
14230 #
14231 if test -n "$lt_prog_compiler_pic_CXX"; then
14232 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14233 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14234 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237 lt_prog_compiler_pic_works_CXX=no
14238 ac_outfile=conftest.$ac_objext
14239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14240 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14241 # Insert the option either (1) after the last *FLAGS variable, or
14242 # (2) before a word containing "conftest.", or (3) at the end.
14243 # Note that $ac_compile itself does not contain backslashes and begins
14244 # with a dollar sign (not a hyphen), so the echo should work correctly.
14245 # The option is referenced via a variable to avoid confusing sed.
14246 lt_compile=`echo "$ac_compile" | $SED \
14247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14249 -e 's:$: $lt_compiler_flag:'`
14250 (eval echo "\"\$as_me:14250: $lt_compile\"" >&5)
14251 (eval "$lt_compile" 2>conftest.err)
14252 ac_status=$?
14253 cat conftest.err >&5
14254 echo "$as_me:14254: \$? = $ac_status" >&5
14255 if (exit $ac_status) && test -s "$ac_outfile"; then
14256 # The compiler can only warn and ignore the option if not recognized
14257 # So say no if there are warnings other than the usual output.
14258 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14260 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14261 lt_prog_compiler_pic_works_CXX=yes
14262 fi
14263 fi
14264 $RM conftest*
14265
14266 fi
14267 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14268 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14269
14270 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14271 case $lt_prog_compiler_pic_CXX in
14272 "" | " "*) ;;
14273 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14274 esac
14275 else
14276 lt_prog_compiler_pic_CXX=
14277 lt_prog_compiler_can_build_shared_CXX=no
14278 fi
14279
14280 fi
14281
14282
14283
14284 #
14285 # Check to make sure the static flag actually works.
14286 #
14287 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14288 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14289 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14290 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293 lt_prog_compiler_static_works_CXX=no
14294 save_LDFLAGS="$LDFLAGS"
14295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14298 # The linker can only warn and ignore the option if not recognized
14299 # So say no if there are warnings
14300 if test -s conftest.err; then
14301 # Append any errors to the config.log.
14302 cat conftest.err 1>&5
14303 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14305 if diff conftest.exp conftest.er2 >/dev/null; then
14306 lt_prog_compiler_static_works_CXX=yes
14307 fi
14308 else
14309 lt_prog_compiler_static_works_CXX=yes
14310 fi
14311 fi
14312 $RM conftest*
14313 LDFLAGS="$save_LDFLAGS"
14314
14315 fi
14316 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14317 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14318
14319 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14320 :
14321 else
14322 lt_prog_compiler_static_CXX=
14323 fi
14324
14325
14326
14327
14328 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14329 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14330 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333 lt_cv_prog_compiler_c_o_CXX=no
14334 $RM -r conftest 2>/dev/null
14335 mkdir conftest
14336 cd conftest
14337 mkdir out
14338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14339
14340 lt_compiler_flag="-o out/conftest2.$ac_objext"
14341 # Insert the option either (1) after the last *FLAGS variable, or
14342 # (2) before a word containing "conftest.", or (3) at the end.
14343 # Note that $ac_compile itself does not contain backslashes and begins
14344 # with a dollar sign (not a hyphen), so the echo should work correctly.
14345 lt_compile=`echo "$ac_compile" | $SED \
14346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14348 -e 's:$: $lt_compiler_flag:'`
14349 (eval echo "\"\$as_me:14349: $lt_compile\"" >&5)
14350 (eval "$lt_compile" 2>out/conftest.err)
14351 ac_status=$?
14352 cat out/conftest.err >&5
14353 echo "$as_me:14353: \$? = $ac_status" >&5
14354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14355 then
14356 # The compiler can only warn and ignore the option if not recognized
14357 # So say no if there are warnings
14358 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14361 lt_cv_prog_compiler_c_o_CXX=yes
14362 fi
14363 fi
14364 chmod u+w . 2>&5
14365 $RM conftest*
14366 # SGI C++ compiler will create directory out/ii_files/ for
14367 # template instantiation
14368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14369 $RM out/* && rmdir out
14370 cd ..
14371 $RM -r conftest
14372 $RM conftest*
14373
14374 fi
14375 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14376 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14377
14378
14379
14380 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14381 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14382 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14385 lt_cv_prog_compiler_c_o_CXX=no
14386 $RM -r conftest 2>/dev/null
14387 mkdir conftest
14388 cd conftest
14389 mkdir out
14390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14391
14392 lt_compiler_flag="-o out/conftest2.$ac_objext"
14393 # Insert the option either (1) after the last *FLAGS variable, or
14394 # (2) before a word containing "conftest.", or (3) at the end.
14395 # Note that $ac_compile itself does not contain backslashes and begins
14396 # with a dollar sign (not a hyphen), so the echo should work correctly.
14397 lt_compile=`echo "$ac_compile" | $SED \
14398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14400 -e 's:$: $lt_compiler_flag:'`
14401 (eval echo "\"\$as_me:14401: $lt_compile\"" >&5)
14402 (eval "$lt_compile" 2>out/conftest.err)
14403 ac_status=$?
14404 cat out/conftest.err >&5
14405 echo "$as_me:14405: \$? = $ac_status" >&5
14406 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14407 then
14408 # The compiler can only warn and ignore the option if not recognized
14409 # So say no if there are warnings
14410 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14411 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14412 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14413 lt_cv_prog_compiler_c_o_CXX=yes
14414 fi
14415 fi
14416 chmod u+w . 2>&5
14417 $RM conftest*
14418 # SGI C++ compiler will create directory out/ii_files/ for
14419 # template instantiation
14420 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14421 $RM out/* && rmdir out
14422 cd ..
14423 $RM -r conftest
14424 $RM conftest*
14425
14426 fi
14427 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14428 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14429
14430
14431
14432
14433 hard_links="nottested"
14434 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14435 # do not overwrite the value of need_locks provided by the user
14436 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14437 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14438 hard_links=yes
14439 $RM conftest*
14440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14441 touch conftest.a
14442 ln conftest.a conftest.b 2>&5 || hard_links=no
14443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14444 echo "$as_me:$LINENO: result: $hard_links" >&5
14445 echo "${ECHO_T}$hard_links" >&6
14446 if test "$hard_links" = no; then
14447 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14448 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14449 need_locks=warn
14450 fi
14451 else
14452 need_locks=no
14453 fi
14454
14455
14456
14457 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14458 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14459
14460 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14461 case $host_os in
14462 aix[4-9]*)
14463 # If we're using GNU nm, then we don't want the "-C" option.
14464 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14465 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14466 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'
14467 else
14468 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'
14469 fi
14470 ;;
14471 pw32*)
14472 export_symbols_cmds_CXX="$ltdll_cmds"
14473 ;;
14474 cygwin* | mingw*)
14475 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'
14476 ;;
14477 *)
14478 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14479 ;;
14480 esac
14481
14482 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14483 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14484 test "$ld_shlibs_CXX" = no && can_build_shared=no
14485
14486 with_gnu_ld_CXX=$with_gnu_ld
14487
14488
14489
14490
14491
14492
14493 #
14494 # Do we need to explicitly link libc?
14495 #
14496 case "x$archive_cmds_need_lc_CXX" in
14497 x|xyes)
14498 # Assume -lc should be added
14499 archive_cmds_need_lc_CXX=yes
14500
14501 if test "$enable_shared" = yes && test "$GCC" = yes; then
14502 case $archive_cmds_CXX in
14503 *'~'*)
14504 # FIXME: we may have to deal with multi-command sequences.
14505 ;;
14506 '$CC '*)
14507 # Test whether the compiler implicitly links with -lc since on some
14508 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14509 # to ld, don't add -lc before -lgcc.
14510 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14511 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14512 $RM conftest*
14513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14514
14515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14516 (eval $ac_compile) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } 2>conftest.err; then
14520 soname=conftest
14521 lib=conftest
14522 libobjs=conftest.$ac_objext
14523 deplibs=
14524 wl=$lt_prog_compiler_wl_CXX
14525 pic_flag=$lt_prog_compiler_pic_CXX
14526 compiler_flags=-v
14527 linker_flags=-v
14528 verstring=
14529 output_objdir=.
14530 libname=conftest
14531 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14532 allow_undefined_flag_CXX=
14533 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14534 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }
14538 then
14539 archive_cmds_need_lc_CXX=no
14540 else
14541 archive_cmds_need_lc_CXX=yes
14542 fi
14543 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14544 else
14545 cat conftest.err 1>&5
14546 fi
14547 $RM conftest*
14548 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14549 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14550 ;;
14551 esac
14552 fi
14553 ;;
14554 esac
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14620 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14621 withGCC=$GXX
14622 library_names_spec=
14623 libname_spec='lib$name'
14624 soname_spec=
14625 shrext_cmds=".so"
14626 postinstall_cmds=
14627 postuninstall_cmds=
14628 finish_cmds=
14629 finish_eval=
14630 shlibpath_var=
14631 shlibpath_overrides_runpath=unknown
14632 version_type=none
14633 dynamic_linker="$host_os ld.so"
14634 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14635 need_lib_prefix=unknown
14636 hardcode_into_libs=no
14637
14638 # when you set need_version to no, make sure it does not cause -set_version
14639 # flags to be left without arguments
14640 need_version=unknown
14641
14642 case $host_os in
14643 aix3*)
14644 version_type=linux
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14646 shlibpath_var=LIBPATH
14647
14648 # AIX 3 has no versioning support, so we append a major version to the name.
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 ;;
14651
14652 aix[4-9]*)
14653 version_type=linux
14654 need_lib_prefix=no
14655 need_version=no
14656 hardcode_into_libs=yes
14657 if test "$host_cpu" = ia64; then
14658 # AIX 5 supports IA64
14659 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 else
14662 # With GCC up to 2.95.x, collect2 would create an import file
14663 # for dependence libraries. The import file would start with
14664 # the line `#! .'. This would cause the generated library to
14665 # depend on `.', always an invalid library. This was fixed in
14666 # development snapshots of GCC prior to 3.0.
14667 case $host_os in
14668 aix4 | aix4.[01] | aix4.[01].*)
14669 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14670 echo ' yes '
14671 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14672 :
14673 else
14674 can_build_shared=no
14675 fi
14676 ;;
14677 esac
14678 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14679 # soname into executable. Probably we can add versioning support to
14680 # collect2, so additional links can be useful in future.
14681 if test "$aix_use_runtimelinking" = yes; then
14682 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14683 # instead of lib<name>.a to let people know that these are not
14684 # typical AIX shared libraries.
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 else
14687 # We preserve .a as extension for shared libraries through AIX4.2
14688 # and later when we are not doing run time linking.
14689 library_names_spec='${libname}${release}.a $libname.a'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 fi
14692 shlibpath_var=LIBPATH
14693 fi
14694 ;;
14695
14696 amigaos*)
14697 if test "$host_cpu" = m68k; then
14698 library_names_spec='$libname.ixlibrary $libname.a'
14699 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14700 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'
14701 else
14702 dynamic_linker=no
14703 fi
14704 ;;
14705
14706 beos*)
14707 library_names_spec='${libname}${shared_ext}'
14708 dynamic_linker="$host_os ld.so"
14709 shlibpath_var=LIBRARY_PATH
14710 ;;
14711
14712 bsdi[45]*)
14713 version_type=linux
14714 need_version=no
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14720 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14721 # the default ld.so.conf also contains /usr/contrib/lib and
14722 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14723 # libtool to hard-code these into programs
14724 ;;
14725
14726 cygwin* | mingw* | pw32*)
14727 version_type=windows
14728 shrext_cmds=".dll"
14729 need_version=no
14730 need_lib_prefix=no
14731
14732 case $withGCC,$host_os in
14733 yes,cygwin* | yes,mingw* | yes,pw32*)
14734 library_names_spec='$libname.dll.a'
14735 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14736 postinstall_cmds='base_file=`basename \${file}`~
14737 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14738 dldir=$destdir/`dirname \$dlpath`~
14739 test -d \$dldir || mkdir -p \$dldir~
14740 $install_prog $dir/$dlname \$dldir/$dlname~
14741 chmod a+x \$dldir/$dlname~
14742 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14743 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14744 fi'
14745 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14746 dlpath=$dir/\$dldll~
14747 $RM \$dlpath'
14748 shlibpath_overrides_runpath=yes
14749
14750 case $host_os in
14751 cygwin*)
14752 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14753 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14754 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14755 ;;
14756 mingw*)
14757 # MinGW DLLs use traditional 'lib' prefix
14758 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14759 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14760 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14761 # It is most probably a Windows format PATH printed by
14762 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14763 # path with ; separators, and with drive letters. We can handle the
14764 # drive letters (cygwin fileutils understands them), so leave them,
14765 # especially as we might pass files found there to a mingw objdump,
14766 # which wouldn't understand a cygwinified path. Ahh.
14767 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14768 else
14769 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14770 fi
14771 ;;
14772 pw32*)
14773 # pw32 DLLs use 'pw' prefix rather than 'lib'
14774 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14775 ;;
14776 esac
14777 ;;
14778
14779 *)
14780 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14781 ;;
14782 esac
14783 dynamic_linker='Win32 ld.exe'
14784 # FIXME: first we should search . and the directory the executable is in
14785 shlibpath_var=PATH
14786 ;;
14787
14788 darwin* | rhapsody*)
14789 dynamic_linker="$host_os dyld"
14790 version_type=darwin
14791 need_lib_prefix=no
14792 need_version=no
14793 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14794 soname_spec='${libname}${release}${major}$shared_ext'
14795 shlibpath_overrides_runpath=yes
14796 shlibpath_var=DYLD_LIBRARY_PATH
14797 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14798
14799 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14800 ;;
14801
14802 dgux*)
14803 version_type=linux
14804 need_lib_prefix=no
14805 need_version=no
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14807 soname_spec='${libname}${release}${shared_ext}$major'
14808 shlibpath_var=LD_LIBRARY_PATH
14809 ;;
14810
14811 freebsd1*)
14812 dynamic_linker=no
14813 ;;
14814
14815 freebsd* | dragonfly*)
14816 # DragonFly does not have aout. When/if they implement a new
14817 # versioning mechanism, adjust this.
14818 if test -x /usr/bin/objformat; then
14819 objformat=`/usr/bin/objformat`
14820 else
14821 case $host_os in
14822 freebsd[123]*) objformat=aout ;;
14823 *) objformat=elf ;;
14824 esac
14825 fi
14826 version_type=freebsd-$objformat
14827 case $version_type in
14828 freebsd-elf*)
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14830 need_version=no
14831 need_lib_prefix=no
14832 ;;
14833 freebsd-*)
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14835 need_version=yes
14836 ;;
14837 esac
14838 shlibpath_var=LD_LIBRARY_PATH
14839 case $host_os in
14840 freebsd2*)
14841 shlibpath_overrides_runpath=yes
14842 ;;
14843 freebsd3.[01]* | freebsdelf3.[01]*)
14844 shlibpath_overrides_runpath=yes
14845 hardcode_into_libs=yes
14846 ;;
14847 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14848 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14849 shlibpath_overrides_runpath=no
14850 hardcode_into_libs=yes
14851 ;;
14852 *) # from 4.6 on, and DragonFly
14853 shlibpath_overrides_runpath=yes
14854 hardcode_into_libs=yes
14855 ;;
14856 esac
14857 ;;
14858
14859 gnu*)
14860 version_type=linux
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 hardcode_into_libs=yes
14867 ;;
14868
14869 hpux9* | hpux10* | hpux11*)
14870 # Give a soname corresponding to the major version so that dld.sl refuses to
14871 # link against other versions.
14872 version_type=sunos
14873 need_lib_prefix=no
14874 need_version=no
14875 case $host_cpu in
14876 ia64*)
14877 shrext_cmds='.so'
14878 hardcode_into_libs=yes
14879 dynamic_linker="$host_os dld.so"
14880 shlibpath_var=LD_LIBRARY_PATH
14881 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883 soname_spec='${libname}${release}${shared_ext}$major'
14884 if test "X$HPUX_IA64_MODE" = X32; then
14885 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14886 else
14887 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14888 fi
14889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14890 ;;
14891 hppa*64*)
14892 shrext_cmds='.sl'
14893 hardcode_into_libs=yes
14894 dynamic_linker="$host_os dld.sl"
14895 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 soname_spec='${libname}${release}${shared_ext}$major'
14899 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14901 ;;
14902 *)
14903 shrext_cmds='.sl'
14904 dynamic_linker="$host_os dld.sl"
14905 shlibpath_var=SHLIB_PATH
14906 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908 soname_spec='${libname}${release}${shared_ext}$major'
14909 ;;
14910 esac
14911 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14912 postinstall_cmds='chmod 555 $lib'
14913 ;;
14914
14915 interix[3-9]*)
14916 version_type=linux
14917 need_lib_prefix=no
14918 need_version=no
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 shlibpath_overrides_runpath=no
14924 hardcode_into_libs=yes
14925 ;;
14926
14927 irix5* | irix6* | nonstopux*)
14928 case $host_os in
14929 nonstopux*) version_type=nonstopux ;;
14930 *)
14931 if test "$lt_cv_prog_gnu_ld" = yes; then
14932 version_type=linux
14933 else
14934 version_type=irix
14935 fi ;;
14936 esac
14937 need_lib_prefix=no
14938 need_version=no
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14941 case $host_os in
14942 irix5* | nonstopux*)
14943 libsuff= shlibsuff=
14944 ;;
14945 *)
14946 case $LD in # libtool.m4 will add one of these switches to LD
14947 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14948 libsuff= shlibsuff= libmagic=32-bit;;
14949 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14950 libsuff=32 shlibsuff=N32 libmagic=N32;;
14951 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14952 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14953 *) libsuff= shlibsuff= libmagic=never-match;;
14954 esac
14955 ;;
14956 esac
14957 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14958 shlibpath_overrides_runpath=no
14959 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14960 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14961 hardcode_into_libs=yes
14962 ;;
14963
14964 # No shared lib support for Linux oldld, aout, or coff.
14965 linux*oldld* | linux*aout* | linux*coff*)
14966 dynamic_linker=no
14967 ;;
14968
14969 # This must be Linux ELF.
14970 linux* | k*bsd*-gnu)
14971 version_type=linux
14972 need_lib_prefix=no
14973 need_version=no
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14975 soname_spec='${libname}${release}${shared_ext}$major'
14976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14977 shlibpath_var=LD_LIBRARY_PATH
14978 shlibpath_overrides_runpath=no
14979 # Some binutils ld are patched to set DT_RUNPATH
14980 save_LDFLAGS=$LDFLAGS
14981 save_libdir=$libdir
14982 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14983 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14984 if test x$gcc_no_link = xyes; then
14985 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14986 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14987 { (exit 1); exit 1; }; }
14988 fi
14989 cat >conftest.$ac_ext <<_ACEOF
14990 /* confdefs.h. */
14991 _ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14995
14996 int
14997 main ()
14998 {
14999
15000 ;
15001 return 0;
15002 }
15003 _ACEOF
15004 rm -f conftest.$ac_objext conftest$ac_exeext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15006 (eval $ac_link) 2>conftest.er1
15007 ac_status=$?
15008 grep -v '^ *+' conftest.er1 >conftest.err
15009 rm -f conftest.er1
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -z "$ac_cxx_werror_flag"
15014 || test ! -s conftest.err'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; } &&
15020 { ac_try='test -s conftest$ac_exeext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
15027 shlibpath_overrides_runpath=yes
15028 fi
15029
15030 else
15031 echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15033
15034 fi
15035 rm -f conftest.err conftest.$ac_objext \
15036 conftest$ac_exeext conftest.$ac_ext
15037 LDFLAGS=$save_LDFLAGS
15038 libdir=$save_libdir
15039
15040 # This implies no fast_install, which is unacceptable.
15041 # Some rework will be needed to allow for fast_install
15042 # before this can be enabled.
15043 hardcode_into_libs=yes
15044
15045 # Append ld.so.conf contents to the search path
15046 if test -f /etc/ld.so.conf; then
15047 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15048 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15049 fi
15050
15051 # We used to test for /lib/ld.so.1 and disable shared libraries on
15052 # powerpc, because MkLinux only supported shared libraries with the
15053 # GNU dynamic linker. Since this was broken with cross compilers,
15054 # most powerpc-linux boxes support dynamic linking these days and
15055 # people can always --disable-shared, the test was removed, and we
15056 # assume the GNU/Linux dynamic linker is in use.
15057 dynamic_linker='GNU/Linux ld.so'
15058 ;;
15059
15060 netbsd*)
15061 version_type=sunos
15062 need_lib_prefix=no
15063 need_version=no
15064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15067 dynamic_linker='NetBSD (a.out) ld.so'
15068 else
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 dynamic_linker='NetBSD ld.elf_so'
15072 fi
15073 shlibpath_var=LD_LIBRARY_PATH
15074 shlibpath_overrides_runpath=yes
15075 hardcode_into_libs=yes
15076 ;;
15077
15078 newsos6)
15079 version_type=linux
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081 shlibpath_var=LD_LIBRARY_PATH
15082 shlibpath_overrides_runpath=yes
15083 ;;
15084
15085 *nto* | *qnx*)
15086 version_type=qnx
15087 need_lib_prefix=no
15088 need_version=no
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 shlibpath_overrides_runpath=no
15093 hardcode_into_libs=yes
15094 dynamic_linker='ldqnx.so'
15095 ;;
15096
15097 openbsd*)
15098 version_type=sunos
15099 sys_lib_dlsearch_path_spec="/usr/lib"
15100 need_lib_prefix=no
15101 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15102 case $host_os in
15103 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15104 *) need_version=no ;;
15105 esac
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15110 case $host_os in
15111 openbsd2.[89] | openbsd2.[89].*)
15112 shlibpath_overrides_runpath=no
15113 ;;
15114 *)
15115 shlibpath_overrides_runpath=yes
15116 ;;
15117 esac
15118 else
15119 shlibpath_overrides_runpath=yes
15120 fi
15121 ;;
15122
15123 os2*)
15124 libname_spec='$name'
15125 shrext_cmds=".dll"
15126 need_lib_prefix=no
15127 library_names_spec='$libname${shared_ext} $libname.a'
15128 dynamic_linker='OS/2 ld.exe'
15129 shlibpath_var=LIBPATH
15130 ;;
15131
15132 osf3* | osf4* | osf5*)
15133 version_type=osf
15134 need_lib_prefix=no
15135 need_version=no
15136 soname_spec='${libname}${release}${shared_ext}$major'
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138 shlibpath_var=LD_LIBRARY_PATH
15139 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15140 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15141 ;;
15142
15143 rdos*)
15144 dynamic_linker=no
15145 ;;
15146
15147 solaris*)
15148 version_type=linux
15149 need_lib_prefix=no
15150 need_version=no
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 shlibpath_var=LD_LIBRARY_PATH
15154 shlibpath_overrides_runpath=yes
15155 hardcode_into_libs=yes
15156 # ldd complains unless libraries are executable
15157 postinstall_cmds='chmod +x $lib'
15158 ;;
15159
15160 sunos4*)
15161 version_type=sunos
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 shlibpath_overrides_runpath=yes
15166 if test "$with_gnu_ld" = yes; then
15167 need_lib_prefix=no
15168 fi
15169 need_version=yes
15170 ;;
15171
15172 sysv4 | sysv4.3*)
15173 version_type=linux
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 case $host_vendor in
15178 sni)
15179 shlibpath_overrides_runpath=no
15180 need_lib_prefix=no
15181 runpath_var=LD_RUN_PATH
15182 ;;
15183 siemens)
15184 need_lib_prefix=no
15185 ;;
15186 motorola)
15187 need_lib_prefix=no
15188 need_version=no
15189 shlibpath_overrides_runpath=no
15190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15191 ;;
15192 esac
15193 ;;
15194
15195 sysv4*MP*)
15196 if test -d /usr/nec ;then
15197 version_type=linux
15198 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15199 soname_spec='$libname${shared_ext}.$major'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 fi
15202 ;;
15203
15204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15205 version_type=freebsd-elf
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=yes
15212 hardcode_into_libs=yes
15213 if test "$with_gnu_ld" = yes; then
15214 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15215 else
15216 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15217 case $host_os in
15218 sco3.2v5*)
15219 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15220 ;;
15221 esac
15222 fi
15223 sys_lib_dlsearch_path_spec='/usr/lib'
15224 ;;
15225
15226 tpf*)
15227 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15228 version_type=linux
15229 need_lib_prefix=no
15230 need_version=no
15231 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 shlibpath_overrides_runpath=no
15234 hardcode_into_libs=yes
15235 ;;
15236
15237 uts4*)
15238 version_type=linux
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 ;;
15243
15244 *)
15245 dynamic_linker=no
15246 ;;
15247 esac
15248 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15249 echo "${ECHO_T}$dynamic_linker" >&6
15250 test "$dynamic_linker" = no && can_build_shared=no
15251
15252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15253 if test "$GCC" = yes; then
15254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15255 fi
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15293 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15294 hardcode_action_CXX=
15295 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15296 test -n "$runpath_var_CXX" ||
15297 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15298
15299 # We can hardcode non-existent directories.
15300 if test "$hardcode_direct_CXX" != no &&
15301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15302 # have to relink, otherwise we might link with an installed library
15303 # when we should be linking with a yet-to-be-installed one
15304 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15305 test "$hardcode_minus_L_CXX" != no; then
15306 # Linking always hardcodes the temporary library directory.
15307 hardcode_action_CXX=relink
15308 else
15309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15310 hardcode_action_CXX=immediate
15311 fi
15312 else
15313 # We cannot hardcode anything, or else we can only hardcode existing
15314 # directories.
15315 hardcode_action_CXX=unsupported
15316 fi
15317 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15318 echo "${ECHO_T}$hardcode_action_CXX" >&6
15319
15320 if test "$hardcode_action_CXX" = relink ||
15321 test "$inherit_rpath_CXX" = yes; then
15322 # Fast installation is not supported
15323 enable_fast_install=no
15324 elif test "$shlibpath_overrides_runpath" = yes ||
15325 test "$enable_shared" = no; then
15326 # Fast installation is not necessary
15327 enable_fast_install=needless
15328 fi
15329
15330
15331
15332
15333
15334
15335
15336 fi # test -n "$compiler"
15337
15338 CC=$lt_save_CC
15339 LDCXX=$LD
15340 LD=$lt_save_LD
15341 GCC=$lt_save_GCC
15342 with_gnu_ld=$lt_save_with_gnu_ld
15343 lt_cv_path_LDCXX=$lt_cv_path_LD
15344 lt_cv_path_LD=$lt_save_path_LD
15345 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15346 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15347 fi # test "$_lt_caught_CXX_error" != yes
15348
15349 ac_ext=c
15350 ac_cpp='$CPP $CPPFLAGS'
15351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367 ac_config_commands="$ac_config_commands libtool"
15368
15369
15370
15371
15372 # Only expand once:
15373
15374
15375
15376 for ac_prog in gcj
15377 do
15378 # Extract the first word of "$ac_prog", so it can be a program name with args.
15379 set dummy $ac_prog; ac_word=$2
15380 echo "$as_me:$LINENO: checking for $ac_word" >&5
15381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15382 if test "${ac_cv_prog_GCJ+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385 if test -n "$GCJ"; then
15386 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15387 else
15388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15389 for as_dir in $PATH
15390 do
15391 IFS=$as_save_IFS
15392 test -z "$as_dir" && as_dir=.
15393 for ac_exec_ext in '' $ac_executable_extensions; do
15394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15395 ac_cv_prog_GCJ="$ac_prog"
15396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15397 break 2
15398 fi
15399 done
15400 done
15401
15402 fi
15403 fi
15404 GCJ=$ac_cv_prog_GCJ
15405 if test -n "$GCJ"; then
15406 echo "$as_me:$LINENO: result: $GCJ" >&5
15407 echo "${ECHO_T}$GCJ" >&6
15408 else
15409 echo "$as_me:$LINENO: result: no" >&5
15410 echo "${ECHO_T}no" >&6
15411 fi
15412
15413 test -n "$GCJ" && break
15414 done
15415 test -n "$GCJ" || GCJ="gcj"
15416
15417 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15418 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15419 { (exit 1); exit 1; }; }
15420 if test "x${GCJFLAGS-unset}" = xunset; then
15421 GCJFLAGS="-g -O2"
15422 fi
15423
15424
15425 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15426
15427 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15428 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15429 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15433 # We make a subdir and do the tests there. Otherwise we can end up
15434 # making bogus files that we don't know about and never remove. For
15435 # instance it was reported that on HP-UX the gcc test will end up
15436 # making a dummy file named `D' -- because `-MD' means `put the output
15437 # in D'.
15438 mkdir conftest.dir
15439 # Copy depcomp to subdir because otherwise we won't find it if we're
15440 # using a relative directory.
15441 cp "$am_depcomp" conftest.dir
15442 cd conftest.dir
15443 # We will build objects and dependencies in a subdirectory because
15444 # it helps to detect inapplicable dependency modes. For instance
15445 # both Tru64's cc and ICC support -MD to output dependencies as a
15446 # side effect of compilation, but ICC will put the dependencies in
15447 # the current directory while Tru64 will put them in the object
15448 # directory.
15449 mkdir sub
15450
15451 am_cv_GCJ_dependencies_compiler_type=none
15452 if test "$am_compiler_list" = ""; then
15453 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15454 fi
15455 for depmode in $am_compiler_list; do
15456 # Setup a source with many dependencies, because some compilers
15457 # like to wrap large dependency lists on column 80 (with \), and
15458 # we should not choose a depcomp mode which is confused by this.
15459 #
15460 # We need to recreate these files for each test, as the compiler may
15461 # overwrite some of them when testing with obscure command lines.
15462 # This happens at least with the AIX C compiler.
15463 : > sub/conftest.c
15464 for i in 1 2 3 4 5 6; do
15465 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15466 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15467 # Solaris 8's {/usr,}/bin/sh.
15468 touch sub/conftst$i.h
15469 done
15470 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15471
15472 case $depmode in
15473 nosideeffect)
15474 # after this tag, mechanisms are not by side-effect, so they'll
15475 # only be used when explicitly requested
15476 if test "x$enable_dependency_tracking" = xyes; then
15477 continue
15478 else
15479 break
15480 fi
15481 ;;
15482 none) break ;;
15483 esac
15484 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15485 # mode. It turns out that the SunPro C++ compiler does not properly
15486 # handle `-M -o', and we need to detect this.
15487 if depmode=$depmode \
15488 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15489 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15490 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15491 >/dev/null 2>conftest.err &&
15492 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15493 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15494 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15495 # icc doesn't choke on unknown options, it will just issue warnings
15496 # or remarks (even with -Werror). So we grep stderr for any message
15497 # that says an option was ignored or not supported.
15498 # When given -MP, icc 7.0 and 7.1 complain thusly:
15499 # icc: Command line warning: ignoring option '-M'; no argument required
15500 # The diagnosis changed in icc 8.0:
15501 # icc: Command line remark: option '-MP' not supported
15502 if (grep 'ignoring option' conftest.err ||
15503 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15504 am_cv_GCJ_dependencies_compiler_type=$depmode
15505 break
15506 fi
15507 fi
15508 done
15509
15510 cd ..
15511 rm -rf conftest.dir
15512 else
15513 am_cv_GCJ_dependencies_compiler_type=none
15514 fi
15515
15516 fi
15517 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15518 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15519 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15520
15521
15522
15523 if
15524 test "x$enable_dependency_tracking" != xno \
15525 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15526 am__fastdepGCJ_TRUE=
15527 am__fastdepGCJ_FALSE='#'
15528 else
15529 am__fastdepGCJ_TRUE='#'
15530 am__fastdepGCJ_FALSE=
15531 fi
15532
15533
15534
15535 for ac_prog in gcj
15536 do
15537 # Extract the first word of "$ac_prog", so it can be a program name with args.
15538 set dummy $ac_prog; ac_word=$2
15539 echo "$as_me:$LINENO: checking for $ac_word" >&5
15540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15541 if test "${ac_cv_prog_GCJ+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 else
15544 if test -n "$GCJ"; then
15545 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15546 else
15547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15548 for as_dir in $PATH
15549 do
15550 IFS=$as_save_IFS
15551 test -z "$as_dir" && as_dir=.
15552 for ac_exec_ext in '' $ac_executable_extensions; do
15553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15554 ac_cv_prog_GCJ="$ac_prog"
15555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15556 break 2
15557 fi
15558 done
15559 done
15560
15561 fi
15562 fi
15563 GCJ=$ac_cv_prog_GCJ
15564 if test -n "$GCJ"; then
15565 echo "$as_me:$LINENO: result: $GCJ" >&5
15566 echo "${ECHO_T}$GCJ" >&6
15567 else
15568 echo "$as_me:$LINENO: result: no" >&5
15569 echo "${ECHO_T}no" >&6
15570 fi
15571
15572 test -n "$GCJ" && break
15573 done
15574 test -n "$GCJ" || GCJ="gcj"
15575
15576 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15577 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15578 { (exit 1); exit 1; }; }
15579 if test "x${GCJFLAGS-unset}" = xunset; then
15580 GCJFLAGS="-g -O2"
15581 fi
15582
15583
15584 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15585
15586 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15587 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15588 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 else
15591 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15592 # We make a subdir and do the tests there. Otherwise we can end up
15593 # making bogus files that we don't know about and never remove. For
15594 # instance it was reported that on HP-UX the gcc test will end up
15595 # making a dummy file named `D' -- because `-MD' means `put the output
15596 # in D'.
15597 mkdir conftest.dir
15598 # Copy depcomp to subdir because otherwise we won't find it if we're
15599 # using a relative directory.
15600 cp "$am_depcomp" conftest.dir
15601 cd conftest.dir
15602 # We will build objects and dependencies in a subdirectory because
15603 # it helps to detect inapplicable dependency modes. For instance
15604 # both Tru64's cc and ICC support -MD to output dependencies as a
15605 # side effect of compilation, but ICC will put the dependencies in
15606 # the current directory while Tru64 will put them in the object
15607 # directory.
15608 mkdir sub
15609
15610 am_cv_GCJ_dependencies_compiler_type=none
15611 if test "$am_compiler_list" = ""; then
15612 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15613 fi
15614 for depmode in $am_compiler_list; do
15615 # Setup a source with many dependencies, because some compilers
15616 # like to wrap large dependency lists on column 80 (with \), and
15617 # we should not choose a depcomp mode which is confused by this.
15618 #
15619 # We need to recreate these files for each test, as the compiler may
15620 # overwrite some of them when testing with obscure command lines.
15621 # This happens at least with the AIX C compiler.
15622 : > sub/conftest.c
15623 for i in 1 2 3 4 5 6; do
15624 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15625 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15626 # Solaris 8's {/usr,}/bin/sh.
15627 touch sub/conftst$i.h
15628 done
15629 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15630
15631 case $depmode in
15632 nosideeffect)
15633 # after this tag, mechanisms are not by side-effect, so they'll
15634 # only be used when explicitly requested
15635 if test "x$enable_dependency_tracking" = xyes; then
15636 continue
15637 else
15638 break
15639 fi
15640 ;;
15641 none) break ;;
15642 esac
15643 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15644 # mode. It turns out that the SunPro C++ compiler does not properly
15645 # handle `-M -o', and we need to detect this.
15646 if depmode=$depmode \
15647 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15648 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15649 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15650 >/dev/null 2>conftest.err &&
15651 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15652 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15653 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15654 # icc doesn't choke on unknown options, it will just issue warnings
15655 # or remarks (even with -Werror). So we grep stderr for any message
15656 # that says an option was ignored or not supported.
15657 # When given -MP, icc 7.0 and 7.1 complain thusly:
15658 # icc: Command line warning: ignoring option '-M'; no argument required
15659 # The diagnosis changed in icc 8.0:
15660 # icc: Command line remark: option '-MP' not supported
15661 if (grep 'ignoring option' conftest.err ||
15662 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15663 am_cv_GCJ_dependencies_compiler_type=$depmode
15664 break
15665 fi
15666 fi
15667 done
15668
15669 cd ..
15670 rm -rf conftest.dir
15671 else
15672 am_cv_GCJ_dependencies_compiler_type=none
15673 fi
15674
15675 fi
15676 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15677 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15678 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15679
15680
15681
15682 if
15683 test "x$enable_dependency_tracking" != xno \
15684 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15685 am__fastdepGCJ_TRUE=
15686 am__fastdepGCJ_FALSE='#'
15687 else
15688 am__fastdepGCJ_TRUE='#'
15689 am__fastdepGCJ_FALSE=
15690 fi
15691
15692
15693
15694
15695
15696
15697 # Source file extension for Java test sources.
15698 ac_ext=c
15699
15700 # Object file extension for compiled Java test sources.
15701 objext=o
15702 objext_GCJ=$objext
15703
15704 # Code to be used in simple compile tests
15705 lt_simple_compile_test_code="int some_variable = 0;"
15706
15707 # Code to be used in simple link tests
15708 lt_simple_link_test_code='int main(){return(0);}'
15709
15710 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15711
15712
15713
15714
15715
15716
15717 # If no C compiler was specified, use CC.
15718 LTCC=${LTCC-"$CC"}
15719
15720 # If no C compiler flags were specified, use CFLAGS.
15721 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15722
15723 # Allow CC to be a program name with arguments.
15724 compiler=$CC
15725
15726
15727 # save warnings/boilerplate of simple test code
15728 ac_outfile=conftest.$ac_objext
15729 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15730 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15731 _lt_compiler_boilerplate=`cat conftest.err`
15732 $RM conftest*
15733
15734 ac_outfile=conftest.$ac_objext
15735 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15736 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15737 _lt_linker_boilerplate=`cat conftest.err`
15738 $RM conftest*
15739
15740
15741 # Allow CC to be a program name with arguments.
15742 compiler=$CC
15743 compiler_GCJ=$CC
15744 for cc_temp in $compiler""; do
15745 case $cc_temp in
15746 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15747 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15748 \-*) ;;
15749 *) break;;
15750 esac
15751 done
15752 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15753
15754
15755 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15756 archive_cmds_need_lc_GCJ=no
15757
15758 old_archive_cmds_GCJ=$old_archive_cmds
15759
15760 ## CAVEAT EMPTOR:
15761 ## There is no encapsulation within the following macros, do not change
15762 ## the running order or otherwise move them around unless you know exactly
15763 ## what you are doing...
15764 if test -n "$compiler"; then
15765
15766 lt_prog_compiler_no_builtin_flag_GCJ=
15767
15768 if test "$GCC" = yes; then
15769 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15770
15771 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15772 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15773 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 else
15776 lt_cv_prog_compiler_rtti_exceptions=no
15777 ac_outfile=conftest.$ac_objext
15778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15779 lt_compiler_flag="-fno-rtti -fno-exceptions"
15780 # Insert the option either (1) after the last *FLAGS variable, or
15781 # (2) before a word containing "conftest.", or (3) at the end.
15782 # Note that $ac_compile itself does not contain backslashes and begins
15783 # with a dollar sign (not a hyphen), so the echo should work correctly.
15784 # The option is referenced via a variable to avoid confusing sed.
15785 lt_compile=`echo "$ac_compile" | $SED \
15786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15788 -e 's:$: $lt_compiler_flag:'`
15789 (eval echo "\"\$as_me:15789: $lt_compile\"" >&5)
15790 (eval "$lt_compile" 2>conftest.err)
15791 ac_status=$?
15792 cat conftest.err >&5
15793 echo "$as_me:15793: \$? = $ac_status" >&5
15794 if (exit $ac_status) && test -s "$ac_outfile"; then
15795 # The compiler can only warn and ignore the option if not recognized
15796 # So say no if there are warnings other than the usual output.
15797 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15799 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15800 lt_cv_prog_compiler_rtti_exceptions=yes
15801 fi
15802 fi
15803 $RM conftest*
15804
15805 fi
15806 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15807 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15808
15809 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15810 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15811 else
15812 :
15813 fi
15814
15815 fi
15816
15817
15818
15819 lt_prog_compiler_wl_GCJ=
15820 lt_prog_compiler_pic_GCJ=
15821 lt_prog_compiler_static_GCJ=
15822
15823 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15824 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15825
15826 if test "$GCC" = yes; then
15827 lt_prog_compiler_wl_GCJ='-Wl,'
15828 lt_prog_compiler_static_GCJ='-static'
15829
15830 case $host_os in
15831 aix*)
15832 # All AIX code is PIC.
15833 if test "$host_cpu" = ia64; then
15834 # AIX 5 now supports IA64 processor
15835 lt_prog_compiler_static_GCJ='-Bstatic'
15836 fi
15837 ;;
15838
15839 amigaos*)
15840 if test "$host_cpu" = m68k; then
15841 # FIXME: we need at least 68020 code to build shared libraries, but
15842 # adding the `-m68020' flag to GCC prevents building anything better,
15843 # like `-m68040'.
15844 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15845 fi
15846 ;;
15847
15848 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15849 # PIC is the default for these OSes.
15850 ;;
15851
15852 mingw* | cygwin* | pw32* | os2*)
15853 # This hack is so that the source file can tell whether it is being
15854 # built for inclusion in a dll (and should export symbols for example).
15855 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15856 # (--disable-auto-import) libraries
15857
15858 ;;
15859
15860 darwin* | rhapsody*)
15861 # PIC is the default on this platform
15862 # Common symbols not allowed in MH_DYLIB files
15863 lt_prog_compiler_pic_GCJ='-fno-common'
15864 ;;
15865
15866 hpux*)
15867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15868 # not for PA HP-UX.
15869 case $host_cpu in
15870 hppa*64*|ia64*)
15871 # +Z the default
15872 ;;
15873 *)
15874 lt_prog_compiler_pic_GCJ='-fPIC'
15875 ;;
15876 esac
15877 ;;
15878
15879 interix[3-9]*)
15880 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15881 # Instead, we relocate shared libraries at runtime.
15882 ;;
15883
15884 msdosdjgpp*)
15885 # Just because we use GCC doesn't mean we suddenly get shared libraries
15886 # on systems that don't support them.
15887 lt_prog_compiler_can_build_shared_GCJ=no
15888 enable_shared=no
15889 ;;
15890
15891 *nto* | *qnx*)
15892 # QNX uses GNU C++, but need to define -shared option too, otherwise
15893 # it will coredump.
15894 lt_prog_compiler_pic_GCJ='-fPIC -shared'
15895 ;;
15896
15897 sysv4*MP*)
15898 if test -d /usr/nec; then
15899 lt_prog_compiler_pic_GCJ=-Kconform_pic
15900 fi
15901 ;;
15902
15903 *)
15904 lt_prog_compiler_pic_GCJ='-fPIC'
15905 ;;
15906 esac
15907 else
15908 # PORTME Check for flag to pass linker flags through the system compiler.
15909 case $host_os in
15910 aix*)
15911 lt_prog_compiler_wl_GCJ='-Wl,'
15912 if test "$host_cpu" = ia64; then
15913 # AIX 5 now supports IA64 processor
15914 lt_prog_compiler_static_GCJ='-Bstatic'
15915 else
15916 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15917 fi
15918 ;;
15919 darwin*)
15920 # PIC is the default on this platform
15921 # Common symbols not allowed in MH_DYLIB files
15922 case $cc_basename in
15923 xlc*)
15924 lt_prog_compiler_pic_GCJ='-qnocommon'
15925 lt_prog_compiler_wl_GCJ='-Wl,'
15926 ;;
15927 esac
15928 ;;
15929
15930 mingw* | cygwin* | pw32* | os2*)
15931 # This hack is so that the source file can tell whether it is being
15932 # built for inclusion in a dll (and should export symbols for example).
15933
15934 ;;
15935
15936 hpux9* | hpux10* | hpux11*)
15937 lt_prog_compiler_wl_GCJ='-Wl,'
15938 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15939 # not for PA HP-UX.
15940 case $host_cpu in
15941 hppa*64*|ia64*)
15942 # +Z the default
15943 ;;
15944 *)
15945 lt_prog_compiler_pic_GCJ='+Z'
15946 ;;
15947 esac
15948 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15949 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15950 ;;
15951
15952 irix5* | irix6* | nonstopux*)
15953 lt_prog_compiler_wl_GCJ='-Wl,'
15954 # PIC (with -KPIC) is the default.
15955 lt_prog_compiler_static_GCJ='-non_shared'
15956 ;;
15957
15958 linux* | k*bsd*-gnu)
15959 case $cc_basename in
15960 icc* | ecc*)
15961 lt_prog_compiler_wl_GCJ='-Wl,'
15962 lt_prog_compiler_pic_GCJ='-KPIC'
15963 lt_prog_compiler_static_GCJ='-static'
15964 ;;
15965 pgcc* | pgf77* | pgf90* | pgf95*)
15966 # Portland Group compilers (*not* the Pentium gcc compiler,
15967 # which looks to be a dead project)
15968 lt_prog_compiler_wl_GCJ='-Wl,'
15969 lt_prog_compiler_pic_GCJ='-fpic'
15970 lt_prog_compiler_static_GCJ='-Bstatic'
15971 ;;
15972 ccc*)
15973 lt_prog_compiler_wl_GCJ='-Wl,'
15974 # All Alpha code is PIC.
15975 lt_prog_compiler_static_GCJ='-non_shared'
15976 ;;
15977 *)
15978 case `$CC -V 2>&1 | sed 5q` in
15979 *Sun\ C*)
15980 # Sun C 5.9
15981 lt_prog_compiler_pic_GCJ='-KPIC'
15982 lt_prog_compiler_static_GCJ='-Bstatic'
15983 lt_prog_compiler_wl_GCJ='-Wl,'
15984 ;;
15985 *Sun\ F*)
15986 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15987 lt_prog_compiler_pic_GCJ='-KPIC'
15988 lt_prog_compiler_static_GCJ='-Bstatic'
15989 lt_prog_compiler_wl_GCJ=''
15990 ;;
15991 esac
15992 ;;
15993 esac
15994 ;;
15995
15996 newsos6)
15997 lt_prog_compiler_pic_GCJ='-KPIC'
15998 lt_prog_compiler_static_GCJ='-Bstatic'
15999 ;;
16000
16001 *nto* | *qnx*)
16002 # QNX uses GNU C++, but need to define -shared option too, otherwise
16003 # it will coredump.
16004 lt_prog_compiler_pic_GCJ='-fPIC -shared'
16005 ;;
16006
16007 osf3* | osf4* | osf5*)
16008 lt_prog_compiler_wl_GCJ='-Wl,'
16009 # All OSF/1 code is PIC.
16010 lt_prog_compiler_static_GCJ='-non_shared'
16011 ;;
16012
16013 rdos*)
16014 lt_prog_compiler_static_GCJ='-non_shared'
16015 ;;
16016
16017 solaris*)
16018 lt_prog_compiler_pic_GCJ='-KPIC'
16019 lt_prog_compiler_static_GCJ='-Bstatic'
16020 case $cc_basename in
16021 f77* | f90* | f95*)
16022 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16023 *)
16024 lt_prog_compiler_wl_GCJ='-Wl,';;
16025 esac
16026 ;;
16027
16028 sunos4*)
16029 lt_prog_compiler_wl_GCJ='-Qoption ld '
16030 lt_prog_compiler_pic_GCJ='-PIC'
16031 lt_prog_compiler_static_GCJ='-Bstatic'
16032 ;;
16033
16034 sysv4 | sysv4.2uw2* | sysv4.3*)
16035 lt_prog_compiler_wl_GCJ='-Wl,'
16036 lt_prog_compiler_pic_GCJ='-KPIC'
16037 lt_prog_compiler_static_GCJ='-Bstatic'
16038 ;;
16039
16040 sysv4*MP*)
16041 if test -d /usr/nec ;then
16042 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16043 lt_prog_compiler_static_GCJ='-Bstatic'
16044 fi
16045 ;;
16046
16047 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16048 lt_prog_compiler_wl_GCJ='-Wl,'
16049 lt_prog_compiler_pic_GCJ='-KPIC'
16050 lt_prog_compiler_static_GCJ='-Bstatic'
16051 ;;
16052
16053 unicos*)
16054 lt_prog_compiler_wl_GCJ='-Wl,'
16055 lt_prog_compiler_can_build_shared_GCJ=no
16056 ;;
16057
16058 uts4*)
16059 lt_prog_compiler_pic_GCJ='-pic'
16060 lt_prog_compiler_static_GCJ='-Bstatic'
16061 ;;
16062
16063 *)
16064 lt_prog_compiler_can_build_shared_GCJ=no
16065 ;;
16066 esac
16067 fi
16068
16069 case $host_os in
16070 # For platforms which do not support PIC, -DPIC is meaningless:
16071 *djgpp*)
16072 lt_prog_compiler_pic_GCJ=
16073 ;;
16074 *)
16075 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16076 ;;
16077 esac
16078 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16079 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16080
16081
16082
16083 #
16084 # Check to make sure the PIC flag actually works.
16085 #
16086 if test -n "$lt_prog_compiler_pic_GCJ"; then
16087 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16089 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092 lt_prog_compiler_pic_works_GCJ=no
16093 ac_outfile=conftest.$ac_objext
16094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16095 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16096 # Insert the option either (1) after the last *FLAGS variable, or
16097 # (2) before a word containing "conftest.", or (3) at the end.
16098 # Note that $ac_compile itself does not contain backslashes and begins
16099 # with a dollar sign (not a hyphen), so the echo should work correctly.
16100 # The option is referenced via a variable to avoid confusing sed.
16101 lt_compile=`echo "$ac_compile" | $SED \
16102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16104 -e 's:$: $lt_compiler_flag:'`
16105 (eval echo "\"\$as_me:16105: $lt_compile\"" >&5)
16106 (eval "$lt_compile" 2>conftest.err)
16107 ac_status=$?
16108 cat conftest.err >&5
16109 echo "$as_me:16109: \$? = $ac_status" >&5
16110 if (exit $ac_status) && test -s "$ac_outfile"; then
16111 # The compiler can only warn and ignore the option if not recognized
16112 # So say no if there are warnings other than the usual output.
16113 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16116 lt_prog_compiler_pic_works_GCJ=yes
16117 fi
16118 fi
16119 $RM conftest*
16120
16121 fi
16122 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16123 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16124
16125 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16126 case $lt_prog_compiler_pic_GCJ in
16127 "" | " "*) ;;
16128 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16129 esac
16130 else
16131 lt_prog_compiler_pic_GCJ=
16132 lt_prog_compiler_can_build_shared_GCJ=no
16133 fi
16134
16135 fi
16136
16137
16138
16139 #
16140 # Check to make sure the static flag actually works.
16141 #
16142 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16143 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16144 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16145 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 else
16148 lt_prog_compiler_static_works_GCJ=no
16149 save_LDFLAGS="$LDFLAGS"
16150 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16151 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16152 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16153 # The linker can only warn and ignore the option if not recognized
16154 # So say no if there are warnings
16155 if test -s conftest.err; then
16156 # Append any errors to the config.log.
16157 cat conftest.err 1>&5
16158 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16160 if diff conftest.exp conftest.er2 >/dev/null; then
16161 lt_prog_compiler_static_works_GCJ=yes
16162 fi
16163 else
16164 lt_prog_compiler_static_works_GCJ=yes
16165 fi
16166 fi
16167 $RM conftest*
16168 LDFLAGS="$save_LDFLAGS"
16169
16170 fi
16171 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16172 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16173
16174 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16175 :
16176 else
16177 lt_prog_compiler_static_GCJ=
16178 fi
16179
16180
16181
16182
16183 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16184 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16185 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188 lt_cv_prog_compiler_c_o_GCJ=no
16189 $RM -r conftest 2>/dev/null
16190 mkdir conftest
16191 cd conftest
16192 mkdir out
16193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16194
16195 lt_compiler_flag="-o out/conftest2.$ac_objext"
16196 # Insert the option either (1) after the last *FLAGS variable, or
16197 # (2) before a word containing "conftest.", or (3) at the end.
16198 # Note that $ac_compile itself does not contain backslashes and begins
16199 # with a dollar sign (not a hyphen), so the echo should work correctly.
16200 lt_compile=`echo "$ac_compile" | $SED \
16201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16203 -e 's:$: $lt_compiler_flag:'`
16204 (eval echo "\"\$as_me:16204: $lt_compile\"" >&5)
16205 (eval "$lt_compile" 2>out/conftest.err)
16206 ac_status=$?
16207 cat out/conftest.err >&5
16208 echo "$as_me:16208: \$? = $ac_status" >&5
16209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16210 then
16211 # The compiler can only warn and ignore the option if not recognized
16212 # So say no if there are warnings
16213 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16216 lt_cv_prog_compiler_c_o_GCJ=yes
16217 fi
16218 fi
16219 chmod u+w . 2>&5
16220 $RM conftest*
16221 # SGI C++ compiler will create directory out/ii_files/ for
16222 # template instantiation
16223 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16224 $RM out/* && rmdir out
16225 cd ..
16226 $RM -r conftest
16227 $RM conftest*
16228
16229 fi
16230 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16231 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16232
16233
16234
16235 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16236 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16237 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240 lt_cv_prog_compiler_c_o_GCJ=no
16241 $RM -r conftest 2>/dev/null
16242 mkdir conftest
16243 cd conftest
16244 mkdir out
16245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16246
16247 lt_compiler_flag="-o out/conftest2.$ac_objext"
16248 # Insert the option either (1) after the last *FLAGS variable, or
16249 # (2) before a word containing "conftest.", or (3) at the end.
16250 # Note that $ac_compile itself does not contain backslashes and begins
16251 # with a dollar sign (not a hyphen), so the echo should work correctly.
16252 lt_compile=`echo "$ac_compile" | $SED \
16253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16255 -e 's:$: $lt_compiler_flag:'`
16256 (eval echo "\"\$as_me:16256: $lt_compile\"" >&5)
16257 (eval "$lt_compile" 2>out/conftest.err)
16258 ac_status=$?
16259 cat out/conftest.err >&5
16260 echo "$as_me:16260: \$? = $ac_status" >&5
16261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16262 then
16263 # The compiler can only warn and ignore the option if not recognized
16264 # So say no if there are warnings
16265 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16268 lt_cv_prog_compiler_c_o_GCJ=yes
16269 fi
16270 fi
16271 chmod u+w . 2>&5
16272 $RM conftest*
16273 # SGI C++ compiler will create directory out/ii_files/ for
16274 # template instantiation
16275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16276 $RM out/* && rmdir out
16277 cd ..
16278 $RM -r conftest
16279 $RM conftest*
16280
16281 fi
16282 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16283 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16284
16285
16286
16287
16288 hard_links="nottested"
16289 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16290 # do not overwrite the value of need_locks provided by the user
16291 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16292 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16293 hard_links=yes
16294 $RM conftest*
16295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16296 touch conftest.a
16297 ln conftest.a conftest.b 2>&5 || hard_links=no
16298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16299 echo "$as_me:$LINENO: result: $hard_links" >&5
16300 echo "${ECHO_T}$hard_links" >&6
16301 if test "$hard_links" = no; then
16302 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16303 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16304 need_locks=warn
16305 fi
16306 else
16307 need_locks=no
16308 fi
16309
16310
16311
16312 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16313 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16314
16315 runpath_var=
16316 allow_undefined_flag_GCJ=
16317 always_export_symbols_GCJ=no
16318 archive_cmds_GCJ=
16319 archive_expsym_cmds_GCJ=
16320 compiler_needs_object_GCJ=no
16321 enable_shared_with_static_runtimes_GCJ=no
16322 export_dynamic_flag_spec_GCJ=
16323 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16324 hardcode_automatic_GCJ=no
16325 hardcode_direct_GCJ=no
16326 hardcode_direct_absolute_GCJ=no
16327 hardcode_libdir_flag_spec_GCJ=
16328 hardcode_libdir_flag_spec_ld_GCJ=
16329 hardcode_libdir_separator_GCJ=
16330 hardcode_minus_L_GCJ=no
16331 hardcode_shlibpath_var_GCJ=unsupported
16332 inherit_rpath_GCJ=no
16333 link_all_deplibs_GCJ=unknown
16334 module_cmds_GCJ=
16335 module_expsym_cmds_GCJ=
16336 old_archive_from_new_cmds_GCJ=
16337 old_archive_from_expsyms_cmds_GCJ=
16338 thread_safe_flag_spec_GCJ=
16339 whole_archive_flag_spec_GCJ=
16340 # include_expsyms should be a list of space-separated symbols to be *always*
16341 # included in the symbol list
16342 include_expsyms_GCJ=
16343 # exclude_expsyms can be an extended regexp of symbols to exclude
16344 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16345 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16346 # as well as any symbol that contains `d'.
16347 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16348 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16349 # platforms (ab)use it in PIC code, but their linkers get confused if
16350 # the symbol is explicitly referenced. Since portable code cannot
16351 # rely on this symbol name, it's probably fine to never include it in
16352 # preloaded symbol tables.
16353 extract_expsyms_cmds=
16354
16355 case $host_os in
16356 cygwin* | mingw* | pw32*)
16357 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16358 # When not using gcc, we currently assume that we are using
16359 # Microsoft Visual C++.
16360 if test "$GCC" != yes; then
16361 with_gnu_ld=no
16362 fi
16363 ;;
16364 interix*)
16365 # we just hope/assume this is gcc and not c89 (= MSVC++)
16366 with_gnu_ld=yes
16367 ;;
16368 openbsd*)
16369 with_gnu_ld=no
16370 ;;
16371 esac
16372
16373 ld_shlibs_GCJ=yes
16374 if test "$with_gnu_ld" = yes; then
16375 # If archive_cmds runs LD, not CC, wlarc should be empty
16376 wlarc='${wl}'
16377
16378 # Set some defaults for GNU ld with shared library support. These
16379 # are reset later if shared libraries are not supported. Putting them
16380 # here allows them to be overridden if necessary.
16381 runpath_var=LD_RUN_PATH
16382 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16383 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16384 # ancient GNU ld didn't support --whole-archive et. al.
16385 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16386 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16387 else
16388 whole_archive_flag_spec_GCJ=
16389 fi
16390 supports_anon_versioning=no
16391 case `$LD -v 2>&1` in
16392 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16393 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16394 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16395 *\ 2.11.*) ;; # other 2.11 versions
16396 *) supports_anon_versioning=yes ;;
16397 esac
16398
16399 # See if GNU ld supports shared libraries.
16400 case $host_os in
16401 aix[3-9]*)
16402 # On AIX/PPC, the GNU linker is very broken
16403 if test "$host_cpu" != ia64; then
16404 ld_shlibs_GCJ=no
16405 cat <<_LT_EOF 1>&2
16406
16407 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16408 *** to be unable to reliably create shared libraries on AIX.
16409 *** Therefore, libtool is disabling shared libraries support. If you
16410 *** really care for shared libraries, you may want to modify your PATH
16411 *** so that a non-GNU linker is found, and then restart.
16412
16413 _LT_EOF
16414 fi
16415 ;;
16416
16417 amigaos*)
16418 if test "$host_cpu" = m68k; then
16419 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)'
16420 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16421 hardcode_minus_L_GCJ=yes
16422 fi
16423
16424 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16425 # that the semantics of dynamic libraries on AmigaOS, at least up
16426 # to version 4, is to share data among multiple programs linked
16427 # with the same dynamic library. Since this doesn't match the
16428 # behavior of shared libraries on other platforms, we can't use
16429 # them.
16430 ld_shlibs_GCJ=no
16431 ;;
16432
16433 beos*)
16434 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16435 allow_undefined_flag_GCJ=unsupported
16436 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16437 # support --undefined. This deserves some investigation. FIXME
16438 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16439 else
16440 ld_shlibs_GCJ=no
16441 fi
16442 ;;
16443
16444 cygwin* | mingw* | pw32*)
16445 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16446 # as there is no search path for DLLs.
16447 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16448 allow_undefined_flag_GCJ=unsupported
16449 always_export_symbols_GCJ=no
16450 enable_shared_with_static_runtimes_GCJ=yes
16451 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16452
16453 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16454 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16455 # If the export-symbols file already is a .def file (1st line
16456 # is EXPORTS), use it as is; otherwise, prepend...
16457 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16458 cp $export_symbols $output_objdir/$soname.def;
16459 else
16460 echo EXPORTS > $output_objdir/$soname.def;
16461 cat $export_symbols >> $output_objdir/$soname.def;
16462 fi~
16463 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16464 else
16465 ld_shlibs_GCJ=no
16466 fi
16467 ;;
16468
16469 interix[3-9]*)
16470 hardcode_direct_GCJ=no
16471 hardcode_shlibpath_var_GCJ=no
16472 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16473 export_dynamic_flag_spec_GCJ='${wl}-E'
16474 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16475 # Instead, shared libraries are loaded at an image base (0x10000000 by
16476 # default) and relocated if they conflict, which is a slow very memory
16477 # consuming and fragmenting process. To avoid this, we pick a random,
16478 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16479 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16480 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'
16481 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'
16482 ;;
16483
16484 gnu* | linux* | tpf* | k*bsd*-gnu)
16485 tmp_diet=no
16486 if test "$host_os" = linux-dietlibc; then
16487 case $cc_basename in
16488 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16489 esac
16490 fi
16491 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16492 && test "$tmp_diet" = no
16493 then
16494 tmp_addflag=
16495 case $cc_basename,$host_cpu in
16496 pgcc*) # Portland Group C compiler
16497 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'
16498 tmp_addflag=' $pic_flag'
16499 ;;
16500 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16501 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'
16502 tmp_addflag=' $pic_flag -Mnomain' ;;
16503 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16504 tmp_addflag=' -i_dynamic' ;;
16505 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16506 tmp_addflag=' -i_dynamic -nofor_main' ;;
16507 ifc* | ifort*) # Intel Fortran compiler
16508 tmp_addflag=' -nofor_main' ;;
16509 esac
16510 case `$CC -V 2>&1 | sed 5q` in
16511 *Sun\ C*) # Sun C 5.9
16512 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'
16513 compiler_needs_object_GCJ=yes
16514 tmp_sharedflag='-G' ;;
16515 *Sun\ F*) # Sun Fortran 8.3
16516 tmp_sharedflag='-G' ;;
16517 *)
16518 tmp_sharedflag='-shared' ;;
16519 esac
16520 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16521
16522 if test "x$supports_anon_versioning" = xyes; then
16523 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
16524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16525 echo "local: *; };" >> $output_objdir/$libname.ver~
16526 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16527 fi
16528 else
16529 ld_shlibs_GCJ=no
16530 fi
16531 ;;
16532
16533 netbsd*)
16534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16535 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16536 wlarc=
16537 else
16538 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16539 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16540 fi
16541 ;;
16542
16543 solaris*)
16544 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16545 ld_shlibs_GCJ=no
16546 cat <<_LT_EOF 1>&2
16547
16548 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16549 *** create shared libraries on Solaris systems. Therefore, libtool
16550 *** is disabling shared libraries support. We urge you to upgrade GNU
16551 *** binutils to release 2.9.1 or newer. Another option is to modify
16552 *** your PATH or compiler configuration so that the native linker is
16553 *** used, and then restart.
16554
16555 _LT_EOF
16556 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16557 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16558 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16559 else
16560 ld_shlibs_GCJ=no
16561 fi
16562 ;;
16563
16564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16565 case `$LD -v 2>&1` in
16566 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16567 ld_shlibs_GCJ=no
16568 cat <<_LT_EOF 1>&2
16569
16570 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16571 *** reliably create shared libraries on SCO systems. Therefore, libtool
16572 *** is disabling shared libraries support. We urge you to upgrade GNU
16573 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16574 *** your PATH or compiler configuration so that the native linker is
16575 *** used, and then restart.
16576
16577 _LT_EOF
16578 ;;
16579 *)
16580 # For security reasons, it is highly recommended that you always
16581 # use absolute paths for naming shared libraries, and exclude the
16582 # DT_RUNPATH tag from executables and libraries. But doing so
16583 # requires that you compile everything twice, which is a pain.
16584 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16586 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16587 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16588 else
16589 ld_shlibs_GCJ=no
16590 fi
16591 ;;
16592 esac
16593 ;;
16594
16595 sunos4*)
16596 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16597 wlarc=
16598 hardcode_direct_GCJ=yes
16599 hardcode_shlibpath_var_GCJ=no
16600 ;;
16601
16602 *)
16603 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16604 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16605 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16606 else
16607 ld_shlibs_GCJ=no
16608 fi
16609 ;;
16610 esac
16611
16612 if test "$ld_shlibs_GCJ" = no; then
16613 runpath_var=
16614 hardcode_libdir_flag_spec_GCJ=
16615 export_dynamic_flag_spec_GCJ=
16616 whole_archive_flag_spec_GCJ=
16617 fi
16618 else
16619 # PORTME fill in a description of your system's linker (not GNU ld)
16620 case $host_os in
16621 aix3*)
16622 allow_undefined_flag_GCJ=unsupported
16623 always_export_symbols_GCJ=yes
16624 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'
16625 # Note: this linker hardcodes the directories in LIBPATH if there
16626 # are no directories specified by -L.
16627 hardcode_minus_L_GCJ=yes
16628 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16629 # Neither direct hardcoding nor static linking is supported with a
16630 # broken collect2.
16631 hardcode_direct_GCJ=unsupported
16632 fi
16633 ;;
16634
16635 aix[4-9]*)
16636 if test "$host_cpu" = ia64; then
16637 # On IA64, the linker does run time linking by default, so we don't
16638 # have to do anything special.
16639 aix_use_runtimelinking=no
16640 exp_sym_flag='-Bexport'
16641 no_entry_flag=""
16642 else
16643 # If we're using GNU nm, then we don't want the "-C" option.
16644 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16645 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16646 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'
16647 else
16648 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'
16649 fi
16650 aix_use_runtimelinking=no
16651
16652 # Test if we are trying to use run time linking or normal
16653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16654 # need to do runtime linking.
16655 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16656 for ld_flag in $LDFLAGS; do
16657 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16658 aix_use_runtimelinking=yes
16659 break
16660 fi
16661 done
16662 ;;
16663 esac
16664
16665 exp_sym_flag='-bexport'
16666 no_entry_flag='-bnoentry'
16667 fi
16668
16669 # When large executables or shared objects are built, AIX ld can
16670 # have problems creating the table of contents. If linking a library
16671 # or program results in "error TOC overflow" add -mminimal-toc to
16672 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16673 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16674
16675 archive_cmds_GCJ=''
16676 hardcode_direct_GCJ=yes
16677 hardcode_direct_absolute_GCJ=yes
16678 hardcode_libdir_separator_GCJ=':'
16679 link_all_deplibs_GCJ=yes
16680 file_list_spec_GCJ='${wl}-f,'
16681
16682 if test "$GCC" = yes; then
16683 case $host_os in aix4.[012]|aix4.[012].*)
16684 # We only want to do this on AIX 4.2 and lower, the check
16685 # below for broken collect2 doesn't work under 4.3+
16686 collect2name=`${CC} -print-prog-name=collect2`
16687 if test -f "$collect2name" &&
16688 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16689 then
16690 # We have reworked collect2
16691 :
16692 else
16693 # We have old collect2
16694 hardcode_direct_GCJ=unsupported
16695 # It fails to find uninstalled libraries when the uninstalled
16696 # path is not listed in the libpath. Setting hardcode_minus_L
16697 # to unsupported forces relinking
16698 hardcode_minus_L_GCJ=yes
16699 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16700 hardcode_libdir_separator_GCJ=
16701 fi
16702 ;;
16703 esac
16704 shared_flag='-shared'
16705 if test "$aix_use_runtimelinking" = yes; then
16706 shared_flag="$shared_flag "'${wl}-G'
16707 fi
16708 else
16709 # not using gcc
16710 if test "$host_cpu" = ia64; then
16711 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16712 # chokes on -Wl,-G. The following line is correct:
16713 shared_flag='-G'
16714 else
16715 if test "$aix_use_runtimelinking" = yes; then
16716 shared_flag='${wl}-G'
16717 else
16718 shared_flag='${wl}-bM:SRE'
16719 fi
16720 fi
16721 fi
16722
16723 # It seems that -bexpall does not export symbols beginning with
16724 # underscore (_), so it is better to generate a list of symbols to export.
16725 always_export_symbols_GCJ=yes
16726 if test "$aix_use_runtimelinking" = yes; then
16727 # Warning - without using the other runtime loading flags (-brtl),
16728 # -berok will link without error, but may produce a broken library.
16729 allow_undefined_flag_GCJ='-berok'
16730 # Determine the default libpath from the value encoded in an
16731 # empty executable.
16732 if test x$gcc_no_link = xyes; then
16733 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16734 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16735 { (exit 1); exit 1; }; }
16736 fi
16737 cat >conftest.$ac_ext <<_ACEOF
16738 /* confdefs.h. */
16739 _ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16743
16744 int
16745 main ()
16746 {
16747
16748 ;
16749 return 0;
16750 }
16751 _ACEOF
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16754 (eval $ac_link) 2>conftest.er1
16755 ac_status=$?
16756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try='test -z "$ac_c_werror_flag"
16762 || test ! -s conftest.err'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; } &&
16768 { ac_try='test -s conftest$ac_exeext'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774
16775 lt_aix_libpath_sed='
16776 /Import File Strings/,/^$/ {
16777 /^0/ {
16778 s/^0 *\(.*\)$/\1/
16779 p
16780 }
16781 }'
16782 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16783 # Check for a 64-bit object if we didn't find anything.
16784 if test -z "$aix_libpath"; then
16785 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16786 fi
16787 else
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791 fi
16792 rm -f conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16794 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16795
16796 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16797 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"
16798 else
16799 if test "$host_cpu" = ia64; then
16800 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16801 allow_undefined_flag_GCJ="-z nodefs"
16802 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"
16803 else
16804 # Determine the default libpath from the value encoded in an
16805 # empty executable.
16806 if test x$gcc_no_link = xyes; then
16807 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16808 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16809 { (exit 1); exit 1; }; }
16810 fi
16811 cat >conftest.$ac_ext <<_ACEOF
16812 /* confdefs.h. */
16813 _ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16817
16818 int
16819 main ()
16820 {
16821
16822 ;
16823 return 0;
16824 }
16825 _ACEOF
16826 rm -f conftest.$ac_objext conftest$ac_exeext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16828 (eval $ac_link) 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest$ac_exeext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848
16849 lt_aix_libpath_sed='
16850 /Import File Strings/,/^$/ {
16851 /^0/ {
16852 s/^0 *\(.*\)$/\1/
16853 p
16854 }
16855 }'
16856 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16857 # Check for a 64-bit object if we didn't find anything.
16858 if test -z "$aix_libpath"; then
16859 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16860 fi
16861 else
16862 echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16864
16865 fi
16866 rm -f conftest.err conftest.$ac_objext \
16867 conftest$ac_exeext conftest.$ac_ext
16868 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16869
16870 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16871 # Warning - without using the other run time loading flags,
16872 # -berok will link without error, but may produce a broken library.
16873 no_undefined_flag_GCJ=' ${wl}-bernotok'
16874 allow_undefined_flag_GCJ=' ${wl}-berok'
16875 # Exported symbols can be pulled into shared objects from archives
16876 whole_archive_flag_spec_GCJ='$convenience'
16877 archive_cmds_need_lc_GCJ=yes
16878 # This is similar to how AIX traditionally builds its shared libraries.
16879 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'
16880 fi
16881 fi
16882 ;;
16883
16884 amigaos*)
16885 if test "$host_cpu" = m68k; then
16886 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)'
16887 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16888 hardcode_minus_L_GCJ=yes
16889 fi
16890 # see comment about different semantics on the GNU ld section
16891 ld_shlibs_GCJ=no
16892 ;;
16893
16894 bsdi[45]*)
16895 export_dynamic_flag_spec_GCJ=-rdynamic
16896 ;;
16897
16898 cygwin* | mingw* | pw32*)
16899 # When not using gcc, we currently assume that we are using
16900 # Microsoft Visual C++.
16901 # hardcode_libdir_flag_spec is actually meaningless, as there is
16902 # no search path for DLLs.
16903 hardcode_libdir_flag_spec_GCJ=' '
16904 allow_undefined_flag_GCJ=unsupported
16905 # Tell ltmain to make .lib files, not .a files.
16906 libext=lib
16907 # Tell ltmain to make .dll files, not .so files.
16908 shrext_cmds=".dll"
16909 # FIXME: Setting linknames here is a bad hack.
16910 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16911 # The linker will automatically build a .lib file if we build a DLL.
16912 old_archive_from_new_cmds_GCJ='true'
16913 # FIXME: Should let the user specify the lib program.
16914 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16915 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16916 enable_shared_with_static_runtimes_GCJ=yes
16917 ;;
16918
16919 darwin* | rhapsody*)
16920 case $host_os in
16921 rhapsody* | darwin1.[012])
16922 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16923 ;;
16924 *) # Darwin 1.3 on
16925 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
16926 10.[012])
16927 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16928 ;;
16929 10.*)
16930 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16931 ;;
16932 esac
16933 ;;
16934 esac
16935 archive_cmds_need_lc_GCJ=no
16936 hardcode_direct_GCJ=no
16937 hardcode_automatic_GCJ=yes
16938 hardcode_shlibpath_var_GCJ=unsupported
16939 whole_archive_flag_spec_GCJ=''
16940 link_all_deplibs_GCJ=yes
16941 if test "$GCC" = yes ; then
16942 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16943 echo $ECHO_N "(cached) $ECHO_C" >&6
16944 else
16945 lt_cv_apple_cc_single_mod=no
16946 if test -z "${LT_MULTI_MODULE}"; then
16947 # By default we will add the -single_module flag. You can override
16948 # by either setting the environment variable LT_MULTI_MODULE
16949 # non-empty at configure time, or by adding -multi-module to the
16950 # link flags.
16951 echo "int foo(void){return 1;}" > conftest.c
16952 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16953 -dynamiclib ${wl}-single_module conftest.c
16954 if test -f libconftest.dylib; then
16955 lt_cv_apple_cc_single_mod=yes
16956 rm libconftest.dylib
16957 fi
16958 rm conftest.$ac_ext
16959 fi
16960 fi
16961
16962 output_verbose_link_cmd=echo
16963 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
16964 archive_cmds_GCJ='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16965 archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16966 else
16967 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16968 archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16969 fi
16970 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16971 module_expsym_cmds_GCJ='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16972 else
16973 case $cc_basename in
16974 xlc*)
16975 output_verbose_link_cmd=echo
16976 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
16977 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16978 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16979 archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16980 module_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16981 ;;
16982 *)
16983 ld_shlibs_GCJ=no
16984 ;;
16985 esac
16986 fi
16987 ;;
16988
16989 dgux*)
16990 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16992 hardcode_shlibpath_var_GCJ=no
16993 ;;
16994
16995 freebsd1*)
16996 ld_shlibs_GCJ=no
16997 ;;
16998
16999 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17000 # support. Future versions do this automatically, but an explicit c++rt0.o
17001 # does not break anything, and helps significantly (at the cost of a little
17002 # extra space).
17003 freebsd2.2*)
17004 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17005 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17006 hardcode_direct_GCJ=yes
17007 hardcode_shlibpath_var_GCJ=no
17008 ;;
17009
17010 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17011 freebsd2*)
17012 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_direct_GCJ=yes
17014 hardcode_minus_L_GCJ=yes
17015 hardcode_shlibpath_var_GCJ=no
17016 ;;
17017
17018 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17019 freebsd* | dragonfly*)
17020 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17021 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17022 hardcode_direct_GCJ=yes
17023 hardcode_shlibpath_var_GCJ=no
17024 ;;
17025
17026 hpux9*)
17027 if test "$GCC" = yes; then
17028 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'
17029 else
17030 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'
17031 fi
17032 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17033 hardcode_libdir_separator_GCJ=:
17034 hardcode_direct_GCJ=yes
17035
17036 # hardcode_minus_L: Not really in the search PATH,
17037 # but as the default location of the library.
17038 hardcode_minus_L_GCJ=yes
17039 export_dynamic_flag_spec_GCJ='${wl}-E'
17040 ;;
17041
17042 hpux10*)
17043 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17044 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17045 else
17046 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17047 fi
17048 if test "$with_gnu_ld" = no; then
17049 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17050 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17051 hardcode_libdir_separator_GCJ=:
17052 hardcode_direct_GCJ=yes
17053 hardcode_direct_absolute_GCJ=yes
17054 export_dynamic_flag_spec_GCJ='${wl}-E'
17055 # hardcode_minus_L: Not really in the search PATH,
17056 # but as the default location of the library.
17057 hardcode_minus_L_GCJ=yes
17058 fi
17059 ;;
17060
17061 hpux11*)
17062 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17063 case $host_cpu in
17064 hppa*64*)
17065 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17066 ;;
17067 ia64*)
17068 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17069 ;;
17070 *)
17071 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17072 ;;
17073 esac
17074 else
17075 case $host_cpu in
17076 hppa*64*)
17077 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17078 ;;
17079 ia64*)
17080 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17081 ;;
17082 *)
17083 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17084 ;;
17085 esac
17086 fi
17087 if test "$with_gnu_ld" = no; then
17088 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17089 hardcode_libdir_separator_GCJ=:
17090
17091 case $host_cpu in
17092 hppa*64*|ia64*)
17093 hardcode_direct_GCJ=no
17094 hardcode_shlibpath_var_GCJ=no
17095 ;;
17096 *)
17097 hardcode_direct_GCJ=yes
17098 hardcode_direct_absolute_GCJ=yes
17099 export_dynamic_flag_spec_GCJ='${wl}-E'
17100
17101 # hardcode_minus_L: Not really in the search PATH,
17102 # but as the default location of the library.
17103 hardcode_minus_L_GCJ=yes
17104 ;;
17105 esac
17106 fi
17107 ;;
17108
17109 irix5* | irix6* | nonstopux*)
17110 if test "$GCC" = yes; then
17111 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'
17112 # Try to use the -exported_symbol ld option, if it does not
17113 # work, assume that -exports_file does not work either and
17114 # implicitly export all symbols.
17115 save_LDFLAGS="$LDFLAGS"
17116 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17117 if test x$gcc_no_link = xyes; then
17118 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17119 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17120 { (exit 1); exit 1; }; }
17121 fi
17122 cat >conftest.$ac_ext <<_ACEOF
17123 int foo(void) {}
17124 _ACEOF
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127 (eval $ac_link) 2>conftest.er1
17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest$ac_exeext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 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'
17148
17149 else
17150 echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17152
17153 fi
17154 rm -f conftest.err conftest.$ac_objext \
17155 conftest$ac_exeext conftest.$ac_ext
17156 LDFLAGS="$save_LDFLAGS"
17157 else
17158 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'
17159 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'
17160 fi
17161 archive_cmds_need_lc_GCJ='no'
17162 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17163 hardcode_libdir_separator_GCJ=:
17164 inherit_rpath_GCJ=yes
17165 link_all_deplibs_GCJ=yes
17166 ;;
17167
17168 netbsd*)
17169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17170 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17171 else
17172 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17173 fi
17174 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17175 hardcode_direct_GCJ=yes
17176 hardcode_shlibpath_var_GCJ=no
17177 ;;
17178
17179 newsos6)
17180 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17181 hardcode_direct_GCJ=yes
17182 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17183 hardcode_libdir_separator_GCJ=:
17184 hardcode_shlibpath_var_GCJ=no
17185 ;;
17186
17187 *nto* | *qnx*)
17188 ;;
17189
17190 openbsd*)
17191 hardcode_direct_GCJ=yes
17192 hardcode_shlibpath_var_GCJ=no
17193 hardcode_direct_absolute_GCJ=yes
17194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17195 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17196 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17197 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17198 export_dynamic_flag_spec_GCJ='${wl}-E'
17199 else
17200 case $host_os in
17201 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17202 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17203 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17204 ;;
17205 *)
17206 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17207 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17208 ;;
17209 esac
17210 fi
17211 ;;
17212
17213 os2*)
17214 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17215 hardcode_minus_L_GCJ=yes
17216 allow_undefined_flag_GCJ=unsupported
17217 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'
17218 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17219 ;;
17220
17221 osf3*)
17222 if test "$GCC" = yes; then
17223 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17224 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'
17225 else
17226 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17227 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'
17228 fi
17229 archive_cmds_need_lc_GCJ='no'
17230 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17231 hardcode_libdir_separator_GCJ=:
17232 ;;
17233
17234 osf4* | osf5*) # as osf3* with the addition of -msym flag
17235 if test "$GCC" = yes; then
17236 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17237 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'
17238 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17239 else
17240 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17241 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'
17242 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~
17243 $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'
17244
17245 # Both c and cxx compiler support -rpath directly
17246 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17247 fi
17248 archive_cmds_need_lc_GCJ='no'
17249 hardcode_libdir_separator_GCJ=:
17250 ;;
17251
17252 solaris*)
17253 no_undefined_flag_GCJ=' -z defs'
17254 if test "$GCC" = yes; then
17255 wlarc='${wl}'
17256 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17257 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17258 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17259 else
17260 case `$CC -V 2>&1` in
17261 *"Compilers 5.0"*)
17262 wlarc=''
17263 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17264 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17265 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17266 ;;
17267 *)
17268 wlarc='${wl}'
17269 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17270 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17271 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17272 ;;
17273 esac
17274 fi
17275 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17276 hardcode_shlibpath_var_GCJ=no
17277 case $host_os in
17278 solaris2.[0-5] | solaris2.[0-5].*) ;;
17279 *)
17280 # The compiler driver will combine and reorder linker options,
17281 # but understands `-z linker_flag'. GCC discards it without `$wl',
17282 # but is careful enough not to reorder.
17283 # Supported since Solaris 2.6 (maybe 2.5.1?)
17284 if test "$GCC" = yes; then
17285 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17286 else
17287 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17288 fi
17289 ;;
17290 esac
17291 link_all_deplibs_GCJ=yes
17292 ;;
17293
17294 sunos4*)
17295 if test "x$host_vendor" = xsequent; then
17296 # Use $CC to link under sequent, because it throws in some extra .o
17297 # files that make .init and .fini sections work.
17298 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17299 else
17300 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17301 fi
17302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17303 hardcode_direct_GCJ=yes
17304 hardcode_minus_L_GCJ=yes
17305 hardcode_shlibpath_var_GCJ=no
17306 ;;
17307
17308 sysv4)
17309 case $host_vendor in
17310 sni)
17311 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17312 hardcode_direct_GCJ=yes # is this really true???
17313 ;;
17314 siemens)
17315 ## LD is ld it makes a PLAMLIB
17316 ## CC just makes a GrossModule.
17317 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17318 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17319 hardcode_direct_GCJ=no
17320 ;;
17321 motorola)
17322 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17323 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17324 ;;
17325 esac
17326 runpath_var='LD_RUN_PATH'
17327 hardcode_shlibpath_var_GCJ=no
17328 ;;
17329
17330 sysv4.3*)
17331 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17332 hardcode_shlibpath_var_GCJ=no
17333 export_dynamic_flag_spec_GCJ='-Bexport'
17334 ;;
17335
17336 sysv4*MP*)
17337 if test -d /usr/nec; then
17338 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17339 hardcode_shlibpath_var_GCJ=no
17340 runpath_var=LD_RUN_PATH
17341 hardcode_runpath_var=yes
17342 ld_shlibs_GCJ=yes
17343 fi
17344 ;;
17345
17346 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17347 no_undefined_flag_GCJ='${wl}-z,text'
17348 archive_cmds_need_lc_GCJ=no
17349 hardcode_shlibpath_var_GCJ=no
17350 runpath_var='LD_RUN_PATH'
17351
17352 if test "$GCC" = yes; then
17353 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17354 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17355 else
17356 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17357 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17358 fi
17359 ;;
17360
17361 sysv5* | sco3.2v5* | sco5v6*)
17362 # Note: We can NOT use -z defs as we might desire, because we do not
17363 # link with -lc, and that would cause any symbols used from libc to
17364 # always be unresolved, which means just about no library would
17365 # ever link correctly. If we're not using GNU ld we use -z text
17366 # though, which does catch some bad symbols but isn't as heavy-handed
17367 # as -z defs.
17368 no_undefined_flag_GCJ='${wl}-z,text'
17369 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17370 archive_cmds_need_lc_GCJ=no
17371 hardcode_shlibpath_var_GCJ=no
17372 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
17373 hardcode_libdir_separator_GCJ=':'
17374 link_all_deplibs_GCJ=yes
17375 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17376 runpath_var='LD_RUN_PATH'
17377
17378 if test "$GCC" = yes; then
17379 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17380 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17381 else
17382 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17383 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17384 fi
17385 ;;
17386
17387 uts4*)
17388 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17389 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17390 hardcode_shlibpath_var_GCJ=no
17391 ;;
17392
17393 *)
17394 ld_shlibs_GCJ=no
17395 ;;
17396 esac
17397
17398 if test x$host_vendor = xsni; then
17399 case $host in
17400 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17401 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
17402 ;;
17403 esac
17404 fi
17405 fi
17406
17407 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17408 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17409 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17410
17411 with_gnu_ld_GCJ=$with_gnu_ld
17412
17413
17414
17415
17416
17417
17418 #
17419 # Do we need to explicitly link libc?
17420 #
17421 case "x$archive_cmds_need_lc_GCJ" in
17422 x|xyes)
17423 # Assume -lc should be added
17424 archive_cmds_need_lc_GCJ=yes
17425
17426 if test "$enable_shared" = yes && test "$GCC" = yes; then
17427 case $archive_cmds_GCJ in
17428 *'~'*)
17429 # FIXME: we may have to deal with multi-command sequences.
17430 ;;
17431 '$CC '*)
17432 # Test whether the compiler implicitly links with -lc since on some
17433 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17434 # to ld, don't add -lc before -lgcc.
17435 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17436 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17437 $RM conftest*
17438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17439
17440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17441 (eval $ac_compile) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } 2>conftest.err; then
17445 soname=conftest
17446 lib=conftest
17447 libobjs=conftest.$ac_objext
17448 deplibs=
17449 wl=$lt_prog_compiler_wl_GCJ
17450 pic_flag=$lt_prog_compiler_pic_GCJ
17451 compiler_flags=-v
17452 linker_flags=-v
17453 verstring=
17454 output_objdir=.
17455 libname=conftest
17456 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17457 allow_undefined_flag_GCJ=
17458 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17459 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }
17463 then
17464 archive_cmds_need_lc_GCJ=no
17465 else
17466 archive_cmds_need_lc_GCJ=yes
17467 fi
17468 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17469 else
17470 cat conftest.err 1>&5
17471 fi
17472 $RM conftest*
17473 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17474 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17475 ;;
17476 esac
17477 fi
17478 ;;
17479 esac
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17546 withGCC=$GCC
17547 library_names_spec=
17548 libname_spec='lib$name'
17549 soname_spec=
17550 shrext_cmds=".so"
17551 postinstall_cmds=
17552 postuninstall_cmds=
17553 finish_cmds=
17554 finish_eval=
17555 shlibpath_var=
17556 shlibpath_overrides_runpath=unknown
17557 version_type=none
17558 dynamic_linker="$host_os ld.so"
17559 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17560 need_lib_prefix=unknown
17561 hardcode_into_libs=no
17562
17563 # when you set need_version to no, make sure it does not cause -set_version
17564 # flags to be left without arguments
17565 need_version=unknown
17566
17567 case $host_os in
17568 aix3*)
17569 version_type=linux
17570 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17571 shlibpath_var=LIBPATH
17572
17573 # AIX 3 has no versioning support, so we append a major version to the name.
17574 soname_spec='${libname}${release}${shared_ext}$major'
17575 ;;
17576
17577 aix[4-9]*)
17578 version_type=linux
17579 need_lib_prefix=no
17580 need_version=no
17581 hardcode_into_libs=yes
17582 if test "$host_cpu" = ia64; then
17583 # AIX 5 supports IA64
17584 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17585 shlibpath_var=LD_LIBRARY_PATH
17586 else
17587 # With GCC up to 2.95.x, collect2 would create an import file
17588 # for dependence libraries. The import file would start with
17589 # the line `#! .'. This would cause the generated library to
17590 # depend on `.', always an invalid library. This was fixed in
17591 # development snapshots of GCC prior to 3.0.
17592 case $host_os in
17593 aix4 | aix4.[01] | aix4.[01].*)
17594 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17595 echo ' yes '
17596 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17597 :
17598 else
17599 can_build_shared=no
17600 fi
17601 ;;
17602 esac
17603 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17604 # soname into executable. Probably we can add versioning support to
17605 # collect2, so additional links can be useful in future.
17606 if test "$aix_use_runtimelinking" = yes; then
17607 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17608 # instead of lib<name>.a to let people know that these are not
17609 # typical AIX shared libraries.
17610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17611 else
17612 # We preserve .a as extension for shared libraries through AIX4.2
17613 # and later when we are not doing run time linking.
17614 library_names_spec='${libname}${release}.a $libname.a'
17615 soname_spec='${libname}${release}${shared_ext}$major'
17616 fi
17617 shlibpath_var=LIBPATH
17618 fi
17619 ;;
17620
17621 amigaos*)
17622 if test "$host_cpu" = m68k; then
17623 library_names_spec='$libname.ixlibrary $libname.a'
17624 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17625 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'
17626 else
17627 dynamic_linker=no
17628 fi
17629 ;;
17630
17631 beos*)
17632 library_names_spec='${libname}${shared_ext}'
17633 dynamic_linker="$host_os ld.so"
17634 shlibpath_var=LIBRARY_PATH
17635 ;;
17636
17637 bsdi[45]*)
17638 version_type=linux
17639 need_version=no
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17643 shlibpath_var=LD_LIBRARY_PATH
17644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17646 # the default ld.so.conf also contains /usr/contrib/lib and
17647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17648 # libtool to hard-code these into programs
17649 ;;
17650
17651 cygwin* | mingw* | pw32*)
17652 version_type=windows
17653 shrext_cmds=".dll"
17654 need_version=no
17655 need_lib_prefix=no
17656
17657 case $withGCC,$host_os in
17658 yes,cygwin* | yes,mingw* | yes,pw32*)
17659 library_names_spec='$libname.dll.a'
17660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17661 postinstall_cmds='base_file=`basename \${file}`~
17662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17663 dldir=$destdir/`dirname \$dlpath`~
17664 test -d \$dldir || mkdir -p \$dldir~
17665 $install_prog $dir/$dlname \$dldir/$dlname~
17666 chmod a+x \$dldir/$dlname~
17667 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17668 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17669 fi'
17670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17671 dlpath=$dir/\$dldll~
17672 $RM \$dlpath'
17673 shlibpath_overrides_runpath=yes
17674
17675 case $host_os in
17676 cygwin*)
17677 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17678 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17679 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17680 ;;
17681 mingw*)
17682 # MinGW DLLs use traditional 'lib' prefix
17683 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17684 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17685 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17686 # It is most probably a Windows format PATH printed by
17687 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17688 # path with ; separators, and with drive letters. We can handle the
17689 # drive letters (cygwin fileutils understands them), so leave them,
17690 # especially as we might pass files found there to a mingw objdump,
17691 # which wouldn't understand a cygwinified path. Ahh.
17692 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17693 else
17694 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17695 fi
17696 ;;
17697 pw32*)
17698 # pw32 DLLs use 'pw' prefix rather than 'lib'
17699 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17700 ;;
17701 esac
17702 ;;
17703
17704 *)
17705 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17706 ;;
17707 esac
17708 dynamic_linker='Win32 ld.exe'
17709 # FIXME: first we should search . and the directory the executable is in
17710 shlibpath_var=PATH
17711 ;;
17712
17713 darwin* | rhapsody*)
17714 dynamic_linker="$host_os dyld"
17715 version_type=darwin
17716 need_lib_prefix=no
17717 need_version=no
17718 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17719 soname_spec='${libname}${release}${major}$shared_ext'
17720 shlibpath_overrides_runpath=yes
17721 shlibpath_var=DYLD_LIBRARY_PATH
17722 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17723
17724 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17725 ;;
17726
17727 dgux*)
17728 version_type=linux
17729 need_lib_prefix=no
17730 need_version=no
17731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17732 soname_spec='${libname}${release}${shared_ext}$major'
17733 shlibpath_var=LD_LIBRARY_PATH
17734 ;;
17735
17736 freebsd1*)
17737 dynamic_linker=no
17738 ;;
17739
17740 freebsd* | dragonfly*)
17741 # DragonFly does not have aout. When/if they implement a new
17742 # versioning mechanism, adjust this.
17743 if test -x /usr/bin/objformat; then
17744 objformat=`/usr/bin/objformat`
17745 else
17746 case $host_os in
17747 freebsd[123]*) objformat=aout ;;
17748 *) objformat=elf ;;
17749 esac
17750 fi
17751 version_type=freebsd-$objformat
17752 case $version_type in
17753 freebsd-elf*)
17754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17755 need_version=no
17756 need_lib_prefix=no
17757 ;;
17758 freebsd-*)
17759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17760 need_version=yes
17761 ;;
17762 esac
17763 shlibpath_var=LD_LIBRARY_PATH
17764 case $host_os in
17765 freebsd2*)
17766 shlibpath_overrides_runpath=yes
17767 ;;
17768 freebsd3.[01]* | freebsdelf3.[01]*)
17769 shlibpath_overrides_runpath=yes
17770 hardcode_into_libs=yes
17771 ;;
17772 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17773 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17774 shlibpath_overrides_runpath=no
17775 hardcode_into_libs=yes
17776 ;;
17777 *) # from 4.6 on, and DragonFly
17778 shlibpath_overrides_runpath=yes
17779 hardcode_into_libs=yes
17780 ;;
17781 esac
17782 ;;
17783
17784 gnu*)
17785 version_type=linux
17786 need_lib_prefix=no
17787 need_version=no
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17789 soname_spec='${libname}${release}${shared_ext}$major'
17790 shlibpath_var=LD_LIBRARY_PATH
17791 hardcode_into_libs=yes
17792 ;;
17793
17794 hpux9* | hpux10* | hpux11*)
17795 # Give a soname corresponding to the major version so that dld.sl refuses to
17796 # link against other versions.
17797 version_type=sunos
17798 need_lib_prefix=no
17799 need_version=no
17800 case $host_cpu in
17801 ia64*)
17802 shrext_cmds='.so'
17803 hardcode_into_libs=yes
17804 dynamic_linker="$host_os dld.so"
17805 shlibpath_var=LD_LIBRARY_PATH
17806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808 soname_spec='${libname}${release}${shared_ext}$major'
17809 if test "X$HPUX_IA64_MODE" = X32; then
17810 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17811 else
17812 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17813 fi
17814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17815 ;;
17816 hppa*64*)
17817 shrext_cmds='.sl'
17818 hardcode_into_libs=yes
17819 dynamic_linker="$host_os dld.sl"
17820 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17823 soname_spec='${libname}${release}${shared_ext}$major'
17824 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17826 ;;
17827 *)
17828 shrext_cmds='.sl'
17829 dynamic_linker="$host_os dld.sl"
17830 shlibpath_var=SHLIB_PATH
17831 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17833 soname_spec='${libname}${release}${shared_ext}$major'
17834 ;;
17835 esac
17836 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17837 postinstall_cmds='chmod 555 $lib'
17838 ;;
17839
17840 interix[3-9]*)
17841 version_type=linux
17842 need_lib_prefix=no
17843 need_version=no
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17845 soname_spec='${libname}${release}${shared_ext}$major'
17846 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17847 shlibpath_var=LD_LIBRARY_PATH
17848 shlibpath_overrides_runpath=no
17849 hardcode_into_libs=yes
17850 ;;
17851
17852 irix5* | irix6* | nonstopux*)
17853 case $host_os in
17854 nonstopux*) version_type=nonstopux ;;
17855 *)
17856 if test "$lt_cv_prog_gnu_ld" = yes; then
17857 version_type=linux
17858 else
17859 version_type=irix
17860 fi ;;
17861 esac
17862 need_lib_prefix=no
17863 need_version=no
17864 soname_spec='${libname}${release}${shared_ext}$major'
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17866 case $host_os in
17867 irix5* | nonstopux*)
17868 libsuff= shlibsuff=
17869 ;;
17870 *)
17871 case $LD in # libtool.m4 will add one of these switches to LD
17872 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17873 libsuff= shlibsuff= libmagic=32-bit;;
17874 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17875 libsuff=32 shlibsuff=N32 libmagic=N32;;
17876 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17877 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17878 *) libsuff= shlibsuff= libmagic=never-match;;
17879 esac
17880 ;;
17881 esac
17882 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17883 shlibpath_overrides_runpath=no
17884 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17885 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17886 hardcode_into_libs=yes
17887 ;;
17888
17889 # No shared lib support for Linux oldld, aout, or coff.
17890 linux*oldld* | linux*aout* | linux*coff*)
17891 dynamic_linker=no
17892 ;;
17893
17894 # This must be Linux ELF.
17895 linux* | k*bsd*-gnu)
17896 version_type=linux
17897 need_lib_prefix=no
17898 need_version=no
17899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17900 soname_spec='${libname}${release}${shared_ext}$major'
17901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17902 shlibpath_var=LD_LIBRARY_PATH
17903 shlibpath_overrides_runpath=no
17904 # Some binutils ld are patched to set DT_RUNPATH
17905 save_LDFLAGS=$LDFLAGS
17906 save_libdir=$libdir
17907 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_GCJ\"; \
17908 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_GCJ\""
17909 if test x$gcc_no_link = xyes; then
17910 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17911 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17912 { (exit 1); exit 1; }; }
17913 fi
17914 cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h. */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17920
17921 int
17922 main ()
17923 {
17924
17925 ;
17926 return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931 (eval $ac_link) 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag"
17939 || test ! -s conftest.err'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try='test -s conftest$ac_exeext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
17952 shlibpath_overrides_runpath=yes
17953 fi
17954
17955 else
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 fi
17960 rm -f conftest.err conftest.$ac_objext \
17961 conftest$ac_exeext conftest.$ac_ext
17962 LDFLAGS=$save_LDFLAGS
17963 libdir=$save_libdir
17964
17965 # This implies no fast_install, which is unacceptable.
17966 # Some rework will be needed to allow for fast_install
17967 # before this can be enabled.
17968 hardcode_into_libs=yes
17969
17970 # Append ld.so.conf contents to the search path
17971 if test -f /etc/ld.so.conf; then
17972 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17973 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17974 fi
17975
17976 # We used to test for /lib/ld.so.1 and disable shared libraries on
17977 # powerpc, because MkLinux only supported shared libraries with the
17978 # GNU dynamic linker. Since this was broken with cross compilers,
17979 # most powerpc-linux boxes support dynamic linking these days and
17980 # people can always --disable-shared, the test was removed, and we
17981 # assume the GNU/Linux dynamic linker is in use.
17982 dynamic_linker='GNU/Linux ld.so'
17983 ;;
17984
17985 netbsd*)
17986 version_type=sunos
17987 need_lib_prefix=no
17988 need_version=no
17989 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17992 dynamic_linker='NetBSD (a.out) ld.so'
17993 else
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17995 soname_spec='${libname}${release}${shared_ext}$major'
17996 dynamic_linker='NetBSD ld.elf_so'
17997 fi
17998 shlibpath_var=LD_LIBRARY_PATH
17999 shlibpath_overrides_runpath=yes
18000 hardcode_into_libs=yes
18001 ;;
18002
18003 newsos6)
18004 version_type=linux
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18006 shlibpath_var=LD_LIBRARY_PATH
18007 shlibpath_overrides_runpath=yes
18008 ;;
18009
18010 *nto* | *qnx*)
18011 version_type=qnx
18012 need_lib_prefix=no
18013 need_version=no
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 soname_spec='${libname}${release}${shared_ext}$major'
18016 shlibpath_var=LD_LIBRARY_PATH
18017 shlibpath_overrides_runpath=no
18018 hardcode_into_libs=yes
18019 dynamic_linker='ldqnx.so'
18020 ;;
18021
18022 openbsd*)
18023 version_type=sunos
18024 sys_lib_dlsearch_path_spec="/usr/lib"
18025 need_lib_prefix=no
18026 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18027 case $host_os in
18028 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18029 *) need_version=no ;;
18030 esac
18031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18033 shlibpath_var=LD_LIBRARY_PATH
18034 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18035 case $host_os in
18036 openbsd2.[89] | openbsd2.[89].*)
18037 shlibpath_overrides_runpath=no
18038 ;;
18039 *)
18040 shlibpath_overrides_runpath=yes
18041 ;;
18042 esac
18043 else
18044 shlibpath_overrides_runpath=yes
18045 fi
18046 ;;
18047
18048 os2*)
18049 libname_spec='$name'
18050 shrext_cmds=".dll"
18051 need_lib_prefix=no
18052 library_names_spec='$libname${shared_ext} $libname.a'
18053 dynamic_linker='OS/2 ld.exe'
18054 shlibpath_var=LIBPATH
18055 ;;
18056
18057 osf3* | osf4* | osf5*)
18058 version_type=osf
18059 need_lib_prefix=no
18060 need_version=no
18061 soname_spec='${libname}${release}${shared_ext}$major'
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063 shlibpath_var=LD_LIBRARY_PATH
18064 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18065 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18066 ;;
18067
18068 rdos*)
18069 dynamic_linker=no
18070 ;;
18071
18072 solaris*)
18073 version_type=linux
18074 need_lib_prefix=no
18075 need_version=no
18076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18077 soname_spec='${libname}${release}${shared_ext}$major'
18078 shlibpath_var=LD_LIBRARY_PATH
18079 shlibpath_overrides_runpath=yes
18080 hardcode_into_libs=yes
18081 # ldd complains unless libraries are executable
18082 postinstall_cmds='chmod +x $lib'
18083 ;;
18084
18085 sunos4*)
18086 version_type=sunos
18087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18088 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18089 shlibpath_var=LD_LIBRARY_PATH
18090 shlibpath_overrides_runpath=yes
18091 if test "$with_gnu_ld" = yes; then
18092 need_lib_prefix=no
18093 fi
18094 need_version=yes
18095 ;;
18096
18097 sysv4 | sysv4.3*)
18098 version_type=linux
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18101 shlibpath_var=LD_LIBRARY_PATH
18102 case $host_vendor in
18103 sni)
18104 shlibpath_overrides_runpath=no
18105 need_lib_prefix=no
18106 runpath_var=LD_RUN_PATH
18107 ;;
18108 siemens)
18109 need_lib_prefix=no
18110 ;;
18111 motorola)
18112 need_lib_prefix=no
18113 need_version=no
18114 shlibpath_overrides_runpath=no
18115 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18116 ;;
18117 esac
18118 ;;
18119
18120 sysv4*MP*)
18121 if test -d /usr/nec ;then
18122 version_type=linux
18123 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18124 soname_spec='$libname${shared_ext}.$major'
18125 shlibpath_var=LD_LIBRARY_PATH
18126 fi
18127 ;;
18128
18129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18130 version_type=freebsd-elf
18131 need_lib_prefix=no
18132 need_version=no
18133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18134 soname_spec='${libname}${release}${shared_ext}$major'
18135 shlibpath_var=LD_LIBRARY_PATH
18136 shlibpath_overrides_runpath=yes
18137 hardcode_into_libs=yes
18138 if test "$with_gnu_ld" = yes; then
18139 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18140 else
18141 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18142 case $host_os in
18143 sco3.2v5*)
18144 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18145 ;;
18146 esac
18147 fi
18148 sys_lib_dlsearch_path_spec='/usr/lib'
18149 ;;
18150
18151 tpf*)
18152 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18153 version_type=linux
18154 need_lib_prefix=no
18155 need_version=no
18156 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157 shlibpath_var=LD_LIBRARY_PATH
18158 shlibpath_overrides_runpath=no
18159 hardcode_into_libs=yes
18160 ;;
18161
18162 uts4*)
18163 version_type=linux
18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18165 soname_spec='${libname}${release}${shared_ext}$major'
18166 shlibpath_var=LD_LIBRARY_PATH
18167 ;;
18168
18169 *)
18170 dynamic_linker=no
18171 ;;
18172 esac
18173 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18174 echo "${ECHO_T}$dynamic_linker" >&6
18175 test "$dynamic_linker" = no && can_build_shared=no
18176
18177 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18178 if test "$GCC" = yes; then
18179 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18180 fi
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18218 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18219 hardcode_action_GCJ=
18220 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18221 test -n "$runpath_var_GCJ" ||
18222 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18223
18224 # We can hardcode non-existent directories.
18225 if test "$hardcode_direct_GCJ" != no &&
18226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18227 # have to relink, otherwise we might link with an installed library
18228 # when we should be linking with a yet-to-be-installed one
18229 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18230 test "$hardcode_minus_L_GCJ" != no; then
18231 # Linking always hardcodes the temporary library directory.
18232 hardcode_action_GCJ=relink
18233 else
18234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18235 hardcode_action_GCJ=immediate
18236 fi
18237 else
18238 # We cannot hardcode anything, or else we can only hardcode existing
18239 # directories.
18240 hardcode_action_GCJ=unsupported
18241 fi
18242 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18243 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18244
18245 if test "$hardcode_action_GCJ" = relink ||
18246 test "$inherit_rpath_GCJ" = yes; then
18247 # Fast installation is not supported
18248 enable_fast_install=no
18249 elif test "$shlibpath_overrides_runpath" = yes ||
18250 test "$enable_shared" = no; then
18251 # Fast installation is not necessary
18252 enable_fast_install=needless
18253 fi
18254
18255
18256
18257
18258
18259
18260
18261 fi
18262
18263 compiler_GCJ=${GCJ-gcj}
18264 ac_ext=c
18265 ac_cpp='$CPP $CPPFLAGS'
18266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18269
18270
18271 if test "x$CC" != xcc; then
18272 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18273 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18274 else
18275 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18276 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18277 fi
18278 set dummy $CC; ac_cc=`echo $2 |
18279 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18280 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 else
18283 cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h. */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18289
18290 int
18291 main ()
18292 {
18293
18294 ;
18295 return 0;
18296 }
18297 _ACEOF
18298 # Make sure it works both with $CC and with simple cc.
18299 # We do the test twice because some compilers refuse to overwrite an
18300 # existing .o file with -o, though they will create one.
18301 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18302 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
18307 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); };
18312 then
18313 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18314 if test "x$CC" != xcc; then
18315 # Test first that cc exists at all.
18316 if { ac_try='cc -c conftest.$ac_ext >&5'
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18323 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
18328 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); };
18333 then
18334 # cc works too.
18335 :
18336 else
18337 # cc exists but doesn't like -o.
18338 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18339 fi
18340 fi
18341 fi
18342 else
18343 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18344 fi
18345 rm -f conftest*
18346
18347 fi
18348 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18349 echo "$as_me:$LINENO: result: yes" >&5
18350 echo "${ECHO_T}yes" >&6
18351 else
18352 echo "$as_me:$LINENO: result: no" >&5
18353 echo "${ECHO_T}no" >&6
18354
18355 cat >>confdefs.h <<\_ACEOF
18356 #define NO_MINUS_C_MINUS_O 1
18357 _ACEOF
18358
18359 fi
18360
18361 # FIXME: we rely on the cache variable name because
18362 # there is no other way.
18363 set dummy $CC
18364 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18365 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18366 # Losing compiler, so override with the script.
18367 # FIXME: It is wrong to rewrite CC.
18368 # But if we don't then we get into trouble of one sort or another.
18369 # A longer-term fix would be to have automake use am__CC in this case,
18370 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18371 CC="$am_aux_dir/compile $CC"
18372 fi
18373
18374
18375
18376
18377 subdirs="$subdirs classpath libltdl"
18378
18379
18380 # The -no-testsuite modules omit the test subdir.
18381
18382
18383 if test -d $srcdir/testsuite; then
18384 TESTSUBDIR_TRUE=
18385 TESTSUBDIR_FALSE='#'
18386 else
18387 TESTSUBDIR_TRUE='#'
18388 TESTSUBDIR_FALSE=
18389 fi
18390
18391
18392 # Should the runtime set system properties by examining the
18393 # environment variable GCJ_PROPERTIES?
18394 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18395 if test "${enable_getenv_properties+set}" = set; then
18396 enableval="$enable_getenv_properties"
18397
18398 fi;
18399
18400 # Whether GCJ_PROPERTIES is used depends on the target.
18401 if test -z "$enable_getenv_properties"; then
18402 enable_getenv_properties=${enable_getenv_properties_default-yes}
18403 fi
18404 if test "$enable_getenv_properties" = no; then
18405
18406 cat >>confdefs.h <<\_ACEOF
18407 #define DISABLE_GETENV_PROPERTIES 1
18408 _ACEOF
18409
18410 fi
18411
18412 # Whether we should use arguments to main()
18413 if test -z "$enable_main_args"; then
18414 enable_main_args=${enable_main_args_default-yes}
18415 fi
18416 if test "$enable_main_args" = no; then
18417
18418 cat >>confdefs.h <<\_ACEOF
18419 #define DISABLE_MAIN_ARGS 1
18420 _ACEOF
18421
18422 fi
18423
18424
18425 # Should we use hashtable-based synchronization?
18426 # Currently works only for Linux X86/ia64
18427 # Typically faster and more space-efficient
18428 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18429 if test "${enable_hash_synchronization+set}" = set; then
18430 enableval="$enable_hash_synchronization"
18431
18432 fi;
18433
18434 if test -z "$enable_hash_synchronization"; then
18435 enable_hash_synchronization=$enable_hash_synchronization_default
18436 fi
18437
18438
18439 install_ecj_jar=no
18440 ECJ_BUILD_JAR=
18441 ECJ_JAR=
18442
18443 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18444 if test "${with_ecj_jar+set}" = set; then
18445 withval="$with_ecj_jar"
18446 ECJ_JAR=$withval
18447 else
18448 if test -f $multi_basedir/ecj.jar; then
18449 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18450 ECJ_JAR='$(jardir)/ecj.jar'
18451 install_ecj_jar=yes
18452 fi
18453 fi;
18454
18455
18456
18457
18458 if test "$ECJ_JAR" != ""; then
18459 BUILD_ECJ1_TRUE=
18460 BUILD_ECJ1_FALSE='#'
18461 else
18462 BUILD_ECJ1_TRUE='#'
18463 BUILD_ECJ1_FALSE=
18464 fi
18465
18466
18467
18468 if test $install_ecj_jar = yes; then
18469 INSTALL_ECJ_JAR_TRUE=
18470 INSTALL_ECJ_JAR_FALSE='#'
18471 else
18472 INSTALL_ECJ_JAR_TRUE='#'
18473 INSTALL_ECJ_JAR_FALSE=
18474 fi
18475
18476
18477
18478 # Check whether --with-java-home or --without-java-home was given.
18479 if test "${with_java_home+set}" = set; then
18480 withval="$with_java_home"
18481 JAVA_HOME="${withval}"
18482 else
18483 JAVA_HOME=""
18484 fi;
18485
18486
18487 if test ! -z "$JAVA_HOME"; then
18488 JAVA_HOME_SET_TRUE=
18489 JAVA_HOME_SET_FALSE='#'
18490 else
18491 JAVA_HOME_SET_TRUE='#'
18492 JAVA_HOME_SET_FALSE=
18493 fi
18494
18495
18496
18497 suppress_libgcj_bc=no
18498 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18499 if test "${enable_libgcj_bc+set}" = set; then
18500 enableval="$enable_libgcj_bc"
18501 if test "$enable_libgcj_bc" = "no"; then
18502 suppress_libgcj_bc=yes
18503 fi
18504 fi;
18505
18506
18507 if test "$suppress_libgcj_bc" = "yes"; then
18508 SUPPRESS_LIBGCJ_BC_TRUE=
18509 SUPPRESS_LIBGCJ_BC_FALSE='#'
18510 else
18511 SUPPRESS_LIBGCJ_BC_TRUE='#'
18512 SUPPRESS_LIBGCJ_BC_FALSE=
18513 fi
18514
18515
18516 build_libgcj_reduced_reflection=no
18517 # Check whether --enable-reduced-reflection or --disable-reduced-reflection was given.
18518 if test "${enable_reduced_reflection+set}" = set; then
18519 enableval="$enable_reduced_reflection"
18520 if test "$enable_reduced_reflection" = "yes"; then
18521 build_libgcj_reduced_reflection=yes
18522 fi
18523 fi;
18524
18525
18526 if test "$build_libgcj_reduced_reflection" = "yes"; then
18527 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
18528 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
18529 else
18530 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
18531 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
18532 fi
18533
18534
18535 # What is the native OS API for MinGW?
18536
18537 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18538 if test "${with_win32_nlsapi+set}" = set; then
18539 withval="$with_win32_nlsapi"
18540 case "${withval}" in
18541 ansi) with_win32_nlsapi=ansi ;;
18542 unicows) with_win32_nlsapi=unicows ;;
18543 unicode) with_win32_nlsapi=unicode ;;
18544 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18545 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18546 { (exit 1); exit 1; }; } ;;
18547 esac
18548 else
18549 with_win32_nlsapi=ansi
18550 fi;
18551
18552 case "${with_win32_nlsapi}" in
18553 unicows | unicode)
18554
18555 cat >>confdefs.h <<\_ACEOF
18556 #define MINGW_LIBGCJ_UNICODE 1
18557 _ACEOF
18558
18559 ;;
18560 esac
18561
18562 # configure.host sets slow_pthread_self if the synchronization code should
18563 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18564 if test "${slow_pthread_self}" = "yes"; then
18565
18566 cat >>confdefs.h <<\_ACEOF
18567 #define SLOW_PTHREAD_SELF 1
18568 _ACEOF
18569
18570 fi
18571
18572 # Check for gc debugging. This option is handled both here and in the GC.
18573 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18574 if test "${enable_gc_debug+set}" = set; then
18575 enableval="$enable_gc_debug"
18576 if test "$enable_gc_debug" = "yes"; then
18577
18578 cat >>confdefs.h <<\_ACEOF
18579 #define LIBGCJ_GC_DEBUG 1
18580 _ACEOF
18581
18582 fi
18583 fi;
18584
18585 # See if the user has the interpreter included.
18586 # Check whether --enable-interpreter or --disable-interpreter was given.
18587 if test "${enable_interpreter+set}" = set; then
18588 enableval="$enable_interpreter"
18589 if test "$enable_interpreter" = yes; then
18590 # This can also be set in configure.host.
18591 libgcj_interpreter=yes
18592 elif test "$enable_interpreter" = no; then
18593 libgcj_interpreter=no
18594 fi
18595 fi;
18596
18597 if test "$libgcj_interpreter" = yes; then
18598
18599 cat >>confdefs.h <<\_ACEOF
18600 #define INTERPRETER 1
18601 _ACEOF
18602
18603 fi
18604 INTERPRETER="$libgcj_interpreter"
18605
18606
18607
18608 if test "$libgcj_interpreter" = yes; then
18609 INTERPRETER_TRUE=
18610 INTERPRETER_FALSE='#'
18611 else
18612 INTERPRETER_TRUE='#'
18613 INTERPRETER_FALSE=
18614 fi
18615
18616
18617 echo "$as_me:$LINENO: checking for exception model to use" >&5
18618 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18619 ac_ext=cc
18620 ac_cpp='$CXXCPP $CPPFLAGS'
18621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18624
18625 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18626 if test "${enable_sjlj_exceptions+set}" = set; then
18627 enableval="$enable_sjlj_exceptions"
18628 :
18629 else
18630 cat > conftest.$ac_ext << EOF
18631 #line 18631 "configure"
18632 struct S { ~S(); };
18633 void bar();
18634 void foo()
18635 {
18636 S s;
18637 bar();
18638 }
18639 EOF
18640 old_CXXFLAGS="$CXXFLAGS"
18641 CXXFLAGS=-S
18642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18643 (eval $ac_compile) 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; then
18647 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18648 enable_sjlj_exceptions=yes
18649 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18650 enable_sjlj_exceptions=no
18651 fi
18652 fi
18653 CXXFLAGS="$old_CXXFLAGS"
18654 rm -f conftest*
18655 fi;
18656 if test x$enable_sjlj_exceptions = xyes; then
18657
18658 cat >>confdefs.h <<\_ACEOF
18659 #define SJLJ_EXCEPTIONS 1
18660 _ACEOF
18661
18662 ac_exception_model_name=sjlj
18663 elif test x$enable_sjlj_exceptions = xno; then
18664 ac_exception_model_name="call frame"
18665 else
18666 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18667 echo "$as_me: error: unable to detect exception model" >&2;}
18668 { (exit 1); exit 1; }; }
18669 fi
18670 ac_ext=c
18671 ac_cpp='$CPP $CPPFLAGS'
18672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18675
18676 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18677 echo "${ECHO_T}$ac_exception_model_name" >&6
18678
18679 # If we are non using SJLJ exceptions, and this host does not have support
18680 # for unwinding from a signal handler, enable checked dereferences and divides.
18681 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18682 CHECKREFSPEC=-fcheck-references
18683 DIVIDESPEC=-fuse-divide-subroutine
18684 EXCEPTIONSPEC=
18685 fi
18686
18687 # See if the user wants to disable java.net. This is the mildly
18688 # ugly way that we admit that target-side configuration sucks.
18689 # Check whether --enable-java-net or --disable-java-net was given.
18690 if test "${enable_java_net+set}" = set; then
18691 enableval="$enable_java_net"
18692
18693 fi;
18694
18695 # Whether java.net is built by default can depend on the target.
18696 if test -z "$enable_java_net"; then
18697 enable_java_net=${enable_java_net_default-yes}
18698 fi
18699 if test "$enable_java_net" = no; then
18700
18701 cat >>confdefs.h <<\_ACEOF
18702 #define DISABLE_JAVA_NET 1
18703 _ACEOF
18704
18705 fi
18706
18707 # See if the user wants to configure without libffi. Some
18708 # architectures don't support it, and default values are set in
18709 # configure.host.
18710
18711 # Check whether --with-libffi or --without-libffi was given.
18712 if test "${with_libffi+set}" = set; then
18713 withval="$with_libffi"
18714 :
18715 else
18716 with_libffi=${with_libffi_default-yes}
18717 fi;
18718
18719 LIBFFI=
18720 LIBFFIINCS=
18721 if test "$with_libffi" != no; then
18722
18723 cat >>confdefs.h <<\_ACEOF
18724 #define USE_LIBFFI 1
18725 _ACEOF
18726
18727 LIBFFI=../libffi/libffi_convenience.la
18728 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18729 fi
18730
18731
18732
18733 # See if the user wants to disable JVMPI support.
18734 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18735 if test "${enable_jvmpi+set}" = set; then
18736 enableval="$enable_jvmpi"
18737
18738 fi;
18739
18740 if test "$enable_jvmpi" != no; then
18741
18742 cat >>confdefs.h <<\_ACEOF
18743 #define ENABLE_JVMPI 1
18744 _ACEOF
18745
18746 fi
18747
18748 # If the target is an eCos system, use the appropriate eCos
18749 # I/O routines.
18750 # FIXME: this should not be a local option but a global target
18751 # system; at present there is no eCos target.
18752 TARGET_ECOS=${PROCESS-"no"}
18753
18754 # Check whether --with-ecos or --without-ecos was given.
18755 if test "${with_ecos+set}" = set; then
18756 withval="$with_ecos"
18757 TARGET_ECOS="$with_ecos"
18758
18759 fi;
18760
18761 case "$TARGET_ECOS" in
18762 no) case "$host" in
18763 *mingw*)
18764 PLATFORM=Win32
18765 PLATFORMNET=Win32
18766 PLATFORMH=win32.h
18767
18768 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18769 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18770 LD_PROG=`$CC --print-prog-name=ld`
18771 LD_VERSION=`$LD_PROG --version`
18772 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18773 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18774 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18775 LD_OK="ok"
18776 else
18777 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18778 LD_OK="ok"
18779 fi
18780 fi
18781 if test "x$LD_OK" != x; then
18782 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18783 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18784 else
18785 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18786 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18787 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18788 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18789
18790 cat >>confdefs.h <<\_ACEOF
18791 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18792 _ACEOF
18793
18794 fi
18795 ;;
18796 *)
18797 PLATFORM=Posix
18798 PLATFORMNET=Posix
18799 PLATFORMH=posix.h
18800 ;;
18801 esac
18802 ;;
18803 *)
18804 PLATFORM=Ecos
18805 PLATFORMNET=NoNet
18806
18807 cat >>confdefs.h <<\_ACEOF
18808 #define ECOS 1
18809 _ACEOF
18810
18811 PLATFORMH=posix.h
18812 ;;
18813 esac
18814
18815 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18816
18817
18818 cat >conftest.$ac_ext <<_ACEOF
18819 /* confdefs.h. */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h. */
18824 #include <stdint.h>
18825
18826 _ACEOF
18827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18828 $EGREP "uint32_t" >/dev/null 2>&1; then
18829
18830 cat >>confdefs.h <<\_ACEOF
18831 #define HAVE_INT32_DEFINED 1
18832 _ACEOF
18833
18834 fi
18835 rm -f conftest*
18836
18837 cat >conftest.$ac_ext <<_ACEOF
18838 /* confdefs.h. */
18839 _ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h. */
18843 #include <inttypes.h>
18844
18845 _ACEOF
18846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18847 $EGREP "uint32_t" >/dev/null 2>&1; then
18848
18849 cat >>confdefs.h <<\_ACEOF
18850 #define HAVE_INT32_DEFINED 1
18851 _ACEOF
18852
18853 fi
18854 rm -f conftest*
18855
18856 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h. */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18862 #include <sys/types.h>
18863
18864 _ACEOF
18865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18866 $EGREP "u_int32_t" >/dev/null 2>&1; then
18867
18868 cat >>confdefs.h <<\_ACEOF
18869 #define HAVE_BSD_INT32_DEFINED 1
18870 _ACEOF
18871
18872 fi
18873 rm -f conftest*
18874
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h. */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881 #include <sys/config.h>
18882
18883 _ACEOF
18884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18885 $EGREP "u_int32_t" >/dev/null 2>&1; then
18886
18887 cat >>confdefs.h <<\_ACEOF
18888 #define HAVE_BSD_INT32_DEFINED 1
18889 _ACEOF
18890
18891 fi
18892 rm -f conftest*
18893
18894
18895
18896
18897 if test "$PLATFORM" = Win32; then
18898 USING_WIN32_PLATFORM_TRUE=
18899 USING_WIN32_PLATFORM_FALSE='#'
18900 else
18901 USING_WIN32_PLATFORM_TRUE='#'
18902 USING_WIN32_PLATFORM_FALSE=
18903 fi
18904
18905
18906
18907 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
18908 USING_POSIX_PLATFORM_TRUE=
18909 USING_POSIX_PLATFORM_FALSE='#'
18910 else
18911 USING_POSIX_PLATFORM_TRUE='#'
18912 USING_POSIX_PLATFORM_FALSE=
18913 fi
18914
18915
18916 case "$host" in
18917 *-darwin*) DARWIN_CRT=true ;;
18918 *) DARWIN_CRT=false ;;
18919 esac
18920
18921
18922 if $DARWIN_CRT; then
18923 USING_DARWIN_CRT_TRUE=
18924 USING_DARWIN_CRT_FALSE='#'
18925 else
18926 USING_DARWIN_CRT_TRUE='#'
18927 USING_DARWIN_CRT_FALSE=
18928 fi
18929
18930
18931 # This may not be defined in a non-ANS conformant embedded system.
18932 # FIXME: Should these case a runtime exception in that case?
18933 cat >conftest.$ac_ext <<_ACEOF
18934 /* confdefs.h. */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18939 #include <time.h>
18940
18941 _ACEOF
18942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18943 $EGREP "localtime" >/dev/null 2>&1; then
18944
18945 cat >>confdefs.h <<\_ACEOF
18946 #define HAVE_LOCALTIME 1
18947 _ACEOF
18948
18949 fi
18950 rm -f conftest*
18951
18952
18953 # Create the subdirectory for natFile.cc, or the attempt
18954 # to create the link will fail.
18955 test -d java || mkdir java
18956 test -d java/io || mkdir java/io
18957 test -d gnu || mkdir gnu
18958 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
18959
18960
18961 # Likewise for natConcreteProcess.cc.
18962 test -d java/lang || mkdir java/lang
18963 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
18964
18965
18966 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
18967 test -d java/net || mkdir java/net
18968 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
18969
18970 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
18971
18972
18973 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
18974 test -d gnu/java || mkdir gnu/java
18975 test -d gnu/java/net || mkdir gnu/java/net
18976 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
18977
18978 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
18979
18980
18981 # Likewise for natVMPipe.cc and natVMSelector.cc.
18982 test -d gnu/java/nio || mkdir gnu/java/nio
18983 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
18984
18985 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
18986
18987
18988 # Likewise for natFileChannelImpl.cc
18989 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
18990 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
18991
18992
18993 case "${host}" in
18994 *mingw*)
18995 SYSTEMSPEC="-lgdi32 -lws2_32"
18996 if test "${with_win32_nlsapi}" = "unicows"; then
18997 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
18998 fi
18999 ;;
19000 *)
19001 SYSTEMSPEC=
19002 ;;
19003 esac
19004
19005
19006
19007 # Check whether --with-system-zlib or --without-system-zlib was given.
19008 if test "${with_system_zlib+set}" = set; then
19009 withval="$with_system_zlib"
19010
19011 fi;
19012 ZLIBSPEC=
19013
19014 ZLIBTESTSPEC=
19015
19016
19017 echo "$as_me:$LINENO: checking for X" >&5
19018 echo $ECHO_N "checking for X... $ECHO_C" >&6
19019
19020
19021 # Check whether --with-x or --without-x was given.
19022 if test "${with_x+set}" = set; then
19023 withval="$with_x"
19024
19025 fi;
19026 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19027 if test "x$with_x" = xno; then
19028 # The user explicitly disabled X.
19029 have_x=disabled
19030 else
19031 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19032 # Both variables are already set.
19033 have_x=yes
19034 else
19035 if test "${ac_cv_have_x+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 else
19038 # One or both of the vars are not set, and there is no cached value.
19039 ac_x_includes=no ac_x_libraries=no
19040 rm -fr conftest.dir
19041 if mkdir conftest.dir; then
19042 cd conftest.dir
19043 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19044 cat >Imakefile <<'_ACEOF'
19045 acfindx:
19046 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19047 _ACEOF
19048 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19049 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19050 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19051 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19052 for ac_extension in a so sl; do
19053 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19054 test -f $ac_im_libdir/libX11.$ac_extension; then
19055 ac_im_usrlibdir=$ac_im_libdir; break
19056 fi
19057 done
19058 # Screen out bogus values from the imake configuration. They are
19059 # bogus both because they are the default anyway, and because
19060 # using them would break gcc on systems where it needs fixed includes.
19061 case $ac_im_incroot in
19062 /usr/include) ;;
19063 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19064 esac
19065 case $ac_im_usrlibdir in
19066 /usr/lib | /lib) ;;
19067 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19068 esac
19069 fi
19070 cd ..
19071 rm -fr conftest.dir
19072 fi
19073
19074 # Standard set of common directories for X headers.
19075 # Check X11 before X11Rn because it is often a symlink to the current release.
19076 ac_x_header_dirs='
19077 /usr/X11/include
19078 /usr/X11R6/include
19079 /usr/X11R5/include
19080 /usr/X11R4/include
19081
19082 /usr/include/X11
19083 /usr/include/X11R6
19084 /usr/include/X11R5
19085 /usr/include/X11R4
19086
19087 /usr/local/X11/include
19088 /usr/local/X11R6/include
19089 /usr/local/X11R5/include
19090 /usr/local/X11R4/include
19091
19092 /usr/local/include/X11
19093 /usr/local/include/X11R6
19094 /usr/local/include/X11R5
19095 /usr/local/include/X11R4
19096
19097 /usr/X386/include
19098 /usr/x386/include
19099 /usr/XFree86/include/X11
19100
19101 /usr/include
19102 /usr/local/include
19103 /usr/unsupported/include
19104 /usr/athena/include
19105 /usr/local/x11r5/include
19106 /usr/lpp/Xamples/include
19107
19108 /usr/openwin/include
19109 /usr/openwin/share/include'
19110
19111 if test "$ac_x_includes" = no; then
19112 # Guess where to find include files, by looking for Intrinsic.h.
19113 # First, try using that file with no special directory specified.
19114 cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h. */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120 #include <X11/Intrinsic.h>
19121 _ACEOF
19122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } >/dev/null; then
19130 if test -s conftest.err; then
19131 ac_cpp_err=$ac_c_preproc_warn_flag
19132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19133 else
19134 ac_cpp_err=
19135 fi
19136 else
19137 ac_cpp_err=yes
19138 fi
19139 if test -z "$ac_cpp_err"; then
19140 # We can compile using X headers with no special include directory.
19141 ac_x_includes=
19142 else
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19145
19146 for ac_dir in $ac_x_header_dirs; do
19147 if test -r "$ac_dir/X11/Intrinsic.h"; then
19148 ac_x_includes=$ac_dir
19149 break
19150 fi
19151 done
19152 fi
19153 rm -f conftest.err conftest.$ac_ext
19154 fi # $ac_x_includes = no
19155
19156 if test "$ac_x_libraries" = no; then
19157 # Check for the libraries.
19158 # See if we find them without any special options.
19159 # Don't add to $LIBS permanently.
19160 ac_save_LIBS=$LIBS
19161 LIBS="-lXt $LIBS"
19162 if test x$gcc_no_link = xyes; then
19163 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19164 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19165 { (exit 1); exit 1; }; }
19166 fi
19167 cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h. */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19173 #include <X11/Intrinsic.h>
19174 int
19175 main ()
19176 {
19177 XtMalloc (0)
19178 ;
19179 return 0;
19180 }
19181 _ACEOF
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19184 (eval $ac_link) 2>conftest.er1
19185 ac_status=$?
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } &&
19191 { ac_try='test -z "$ac_c_werror_flag"
19192 || test ! -s conftest.err'
19193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19194 (eval $ac_try) 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest$ac_exeext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 LIBS=$ac_save_LIBS
19205 # We can link X programs with no special library path.
19206 ac_x_libraries=
19207 else
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 LIBS=$ac_save_LIBS
19212 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19213 do
19214 # Don't even attempt the hair of trying to link an X program!
19215 for ac_extension in a so sl; do
19216 if test -r $ac_dir/libXt.$ac_extension; then
19217 ac_x_libraries=$ac_dir
19218 break 2
19219 fi
19220 done
19221 done
19222 fi
19223 rm -f conftest.err conftest.$ac_objext \
19224 conftest$ac_exeext conftest.$ac_ext
19225 fi # $ac_x_libraries = no
19226
19227 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19228 # Didn't find X anywhere. Cache the known absence of X.
19229 ac_cv_have_x="have_x=no"
19230 else
19231 # Record where we found X for the cache.
19232 ac_cv_have_x="have_x=yes \
19233 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19234 fi
19235 fi
19236
19237 fi
19238 eval "$ac_cv_have_x"
19239 fi # $with_x != no
19240
19241 if test "$have_x" != yes; then
19242 echo "$as_me:$LINENO: result: $have_x" >&5
19243 echo "${ECHO_T}$have_x" >&6
19244 no_x=yes
19245 else
19246 # If each of the values was on the command line, it overrides each guess.
19247 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19248 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19249 # Update the cache value to reflect the command line values.
19250 ac_cv_have_x="have_x=yes \
19251 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19252 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19253 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19254 fi
19255
19256 if test "$no_x" = yes; then
19257 # Not all programs may use this symbol, but it does not hurt to define it.
19258
19259 cat >>confdefs.h <<\_ACEOF
19260 #define X_DISPLAY_MISSING 1
19261 _ACEOF
19262
19263 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19264 else
19265 if test -n "$x_includes"; then
19266 X_CFLAGS="$X_CFLAGS -I$x_includes"
19267 fi
19268
19269 # It would also be nice to do this for all -L options, not just this one.
19270 if test -n "$x_libraries"; then
19271 X_LIBS="$X_LIBS -L$x_libraries"
19272 # For Solaris; some versions of Sun CC require a space after -R and
19273 # others require no space. Words are not sufficient . . . .
19274 case `(uname -sr) 2>/dev/null` in
19275 "SunOS 5"*)
19276 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19277 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19278 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19279 if test x$gcc_no_link = xyes; then
19280 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19281 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19282 { (exit 1); exit 1; }; }
19283 fi
19284 cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h. */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290
19291 int
19292 main ()
19293 {
19294
19295 ;
19296 return 0;
19297 }
19298 _ACEOF
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19301 (eval $ac_link) 2>conftest.er1
19302 ac_status=$?
19303 grep -v '^ *+' conftest.er1 >conftest.err
19304 rm -f conftest.er1
19305 cat conftest.err >&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } &&
19308 { ac_try='test -z "$ac_c_werror_flag"
19309 || test ! -s conftest.err'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; } &&
19315 { ac_try='test -s conftest$ac_exeext'
19316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19318 ac_status=$?
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; }; then
19321 ac_R_nospace=yes
19322 else
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19325
19326 ac_R_nospace=no
19327 fi
19328 rm -f conftest.err conftest.$ac_objext \
19329 conftest$ac_exeext conftest.$ac_ext
19330 if test $ac_R_nospace = yes; then
19331 echo "$as_me:$LINENO: result: no" >&5
19332 echo "${ECHO_T}no" >&6
19333 X_LIBS="$X_LIBS -R$x_libraries"
19334 else
19335 LIBS="$ac_xsave_LIBS -R $x_libraries"
19336 if test x$gcc_no_link = xyes; then
19337 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19339 { (exit 1); exit 1; }; }
19340 fi
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h. */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19347
19348 int
19349 main ()
19350 {
19351
19352 ;
19353 return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358 (eval $ac_link) 2>conftest.er1
19359 ac_status=$?
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try='test -z "$ac_c_werror_flag"
19366 || test ! -s conftest.err'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try='test -s conftest$ac_exeext'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_R_space=yes
19379 else
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383 ac_R_space=no
19384 fi
19385 rm -f conftest.err conftest.$ac_objext \
19386 conftest$ac_exeext conftest.$ac_ext
19387 if test $ac_R_space = yes; then
19388 echo "$as_me:$LINENO: result: yes" >&5
19389 echo "${ECHO_T}yes" >&6
19390 X_LIBS="$X_LIBS -R $x_libraries"
19391 else
19392 echo "$as_me:$LINENO: result: neither works" >&5
19393 echo "${ECHO_T}neither works" >&6
19394 fi
19395 fi
19396 LIBS=$ac_xsave_LIBS
19397 esac
19398 fi
19399
19400 # Check for system-dependent libraries X programs must link with.
19401 # Do this before checking for the system-independent R6 libraries
19402 # (-lICE), since we may need -lsocket or whatever for X linking.
19403
19404 if test "$ISC" = yes; then
19405 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19406 else
19407 # Martyn Johnson says this is needed for Ultrix, if the X
19408 # libraries were built with DECnet support. And Karl Berry says
19409 # the Alpha needs dnet_stub (dnet does not exist).
19410 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19411 if test x$gcc_no_link = xyes; then
19412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19414 { (exit 1); exit 1; }; }
19415 fi
19416 cat >conftest.$ac_ext <<_ACEOF
19417 /* confdefs.h. */
19418 _ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19422
19423 /* Override any gcc2 internal prototype to avoid an error. */
19424 #ifdef __cplusplus
19425 extern "C"
19426 #endif
19427 /* We use char because int might match the return type of a gcc2
19428 builtin and then its argument prototype would still apply. */
19429 char XOpenDisplay ();
19430 int
19431 main ()
19432 {
19433 XOpenDisplay ();
19434 ;
19435 return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext conftest$ac_exeext
19439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19440 (eval $ac_link) 2>conftest.er1
19441 ac_status=$?
19442 grep -v '^ *+' conftest.er1 >conftest.err
19443 rm -f conftest.er1
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -z "$ac_c_werror_flag"
19448 || test ! -s conftest.err'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest$ac_exeext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 :
19461 else
19462 echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19464
19465 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19466 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19467 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470 ac_check_lib_save_LIBS=$LIBS
19471 LIBS="-ldnet $LIBS"
19472 if test x$gcc_no_link = xyes; then
19473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19475 { (exit 1); exit 1; }; }
19476 fi
19477 cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h. */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19483
19484 /* Override any gcc2 internal prototype to avoid an error. */
19485 #ifdef __cplusplus
19486 extern "C"
19487 #endif
19488 /* We use char because int might match the return type of a gcc2
19489 builtin and then its argument prototype would still apply. */
19490 char dnet_ntoa ();
19491 int
19492 main ()
19493 {
19494 dnet_ntoa ();
19495 ;
19496 return 0;
19497 }
19498 _ACEOF
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19501 (eval $ac_link) 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try='test -z "$ac_c_werror_flag"
19509 || test ! -s conftest.err'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest$ac_exeext'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 ac_cv_lib_dnet_dnet_ntoa=yes
19522 else
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526 ac_cv_lib_dnet_dnet_ntoa=no
19527 fi
19528 rm -f conftest.err conftest.$ac_objext \
19529 conftest$ac_exeext conftest.$ac_ext
19530 LIBS=$ac_check_lib_save_LIBS
19531 fi
19532 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19533 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19534 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19535 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19536 fi
19537
19538 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19539 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19540 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19541 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 else
19544 ac_check_lib_save_LIBS=$LIBS
19545 LIBS="-ldnet_stub $LIBS"
19546 if test x$gcc_no_link = xyes; then
19547 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19549 { (exit 1); exit 1; }; }
19550 fi
19551 cat >conftest.$ac_ext <<_ACEOF
19552 /* confdefs.h. */
19553 _ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557
19558 /* Override any gcc2 internal prototype to avoid an error. */
19559 #ifdef __cplusplus
19560 extern "C"
19561 #endif
19562 /* We use char because int might match the return type of a gcc2
19563 builtin and then its argument prototype would still apply. */
19564 char dnet_ntoa ();
19565 int
19566 main ()
19567 {
19568 dnet_ntoa ();
19569 ;
19570 return 0;
19571 }
19572 _ACEOF
19573 rm -f conftest.$ac_objext conftest$ac_exeext
19574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19575 (eval $ac_link) 2>conftest.er1
19576 ac_status=$?
19577 grep -v '^ *+' conftest.er1 >conftest.err
19578 rm -f conftest.er1
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
19582 { ac_try='test -z "$ac_c_werror_flag"
19583 || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest$ac_exeext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19596 else
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19599
19600 ac_cv_lib_dnet_stub_dnet_ntoa=no
19601 fi
19602 rm -f conftest.err conftest.$ac_objext \
19603 conftest$ac_exeext conftest.$ac_ext
19604 LIBS=$ac_check_lib_save_LIBS
19605 fi
19606 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19607 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19608 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19609 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19610 fi
19611
19612 fi
19613 fi
19614 rm -f conftest.err conftest.$ac_objext \
19615 conftest$ac_exeext conftest.$ac_ext
19616 LIBS="$ac_xsave_LIBS"
19617
19618 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19619 # to get the SysV transport functions.
19620 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19621 # needs -lnsl.
19622 # The nsl library prevents programs from opening the X display
19623 # on Irix 5.2, according to T.E. Dickey.
19624 # The functions gethostbyname, getservbyname, and inet_addr are
19625 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19626 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19627 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19628 if test "${ac_cv_func_gethostbyname+set}" = set; then
19629 echo $ECHO_N "(cached) $ECHO_C" >&6
19630 else
19631 if test x$gcc_no_link = xyes; then
19632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19634 { (exit 1); exit 1; }; }
19635 fi
19636 cat >conftest.$ac_ext <<_ACEOF
19637 /* confdefs.h. */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19642 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19644 #define gethostbyname innocuous_gethostbyname
19645
19646 /* System header to define __stub macros and hopefully few prototypes,
19647 which can conflict with char gethostbyname (); below.
19648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19649 <limits.h> exists even on freestanding compilers. */
19650
19651 #ifdef __STDC__
19652 # include <limits.h>
19653 #else
19654 # include <assert.h>
19655 #endif
19656
19657 #undef gethostbyname
19658
19659 /* Override any gcc2 internal prototype to avoid an error. */
19660 #ifdef __cplusplus
19661 extern "C"
19662 {
19663 #endif
19664 /* We use char because int might match the return type of a gcc2
19665 builtin and then its argument prototype would still apply. */
19666 char gethostbyname ();
19667 /* The GNU C library defines this for functions which it implements
19668 to always fail with ENOSYS. Some functions are actually named
19669 something starting with __ and the normal name is an alias. */
19670 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19671 choke me
19672 #else
19673 char (*f) () = gethostbyname;
19674 #endif
19675 #ifdef __cplusplus
19676 }
19677 #endif
19678
19679 int
19680 main ()
19681 {
19682 return f != gethostbyname;
19683 ;
19684 return 0;
19685 }
19686 _ACEOF
19687 rm -f conftest.$ac_objext conftest$ac_exeext
19688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19689 (eval $ac_link) 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -z "$ac_c_werror_flag"
19697 || test ! -s conftest.err'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try='test -s conftest$ac_exeext'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709 ac_cv_func_gethostbyname=yes
19710 else
19711 echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19713
19714 ac_cv_func_gethostbyname=no
19715 fi
19716 rm -f conftest.err conftest.$ac_objext \
19717 conftest$ac_exeext conftest.$ac_ext
19718 fi
19719 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19720 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19721
19722 if test $ac_cv_func_gethostbyname = no; then
19723 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19724 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19725 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 else
19728 ac_check_lib_save_LIBS=$LIBS
19729 LIBS="-lnsl $LIBS"
19730 if test x$gcc_no_link = xyes; then
19731 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19732 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19733 { (exit 1); exit 1; }; }
19734 fi
19735 cat >conftest.$ac_ext <<_ACEOF
19736 /* confdefs.h. */
19737 _ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h. */
19741
19742 /* Override any gcc2 internal prototype to avoid an error. */
19743 #ifdef __cplusplus
19744 extern "C"
19745 #endif
19746 /* We use char because int might match the return type of a gcc2
19747 builtin and then its argument prototype would still apply. */
19748 char gethostbyname ();
19749 int
19750 main ()
19751 {
19752 gethostbyname ();
19753 ;
19754 return 0;
19755 }
19756 _ACEOF
19757 rm -f conftest.$ac_objext conftest$ac_exeext
19758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19759 (eval $ac_link) 2>conftest.er1
19760 ac_status=$?
19761 grep -v '^ *+' conftest.er1 >conftest.err
19762 rm -f conftest.er1
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } &&
19766 { ac_try='test -z "$ac_c_werror_flag"
19767 || test ! -s conftest.err'
19768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769 (eval $ac_try) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; } &&
19773 { ac_try='test -s conftest$ac_exeext'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_cv_lib_nsl_gethostbyname=yes
19780 else
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19783
19784 ac_cv_lib_nsl_gethostbyname=no
19785 fi
19786 rm -f conftest.err conftest.$ac_objext \
19787 conftest$ac_exeext conftest.$ac_ext
19788 LIBS=$ac_check_lib_save_LIBS
19789 fi
19790 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19791 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19792 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19793 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19794 fi
19795
19796 if test $ac_cv_lib_nsl_gethostbyname = no; then
19797 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19798 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19799 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 else
19802 ac_check_lib_save_LIBS=$LIBS
19803 LIBS="-lbsd $LIBS"
19804 if test x$gcc_no_link = xyes; then
19805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19807 { (exit 1); exit 1; }; }
19808 fi
19809 cat >conftest.$ac_ext <<_ACEOF
19810 /* confdefs.h. */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h. */
19815
19816 /* Override any gcc2 internal prototype to avoid an error. */
19817 #ifdef __cplusplus
19818 extern "C"
19819 #endif
19820 /* We use char because int might match the return type of a gcc2
19821 builtin and then its argument prototype would still apply. */
19822 char gethostbyname ();
19823 int
19824 main ()
19825 {
19826 gethostbyname ();
19827 ;
19828 return 0;
19829 }
19830 _ACEOF
19831 rm -f conftest.$ac_objext conftest$ac_exeext
19832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19833 (eval $ac_link) 2>conftest.er1
19834 ac_status=$?
19835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } &&
19840 { ac_try='test -z "$ac_c_werror_flag"
19841 || test ! -s conftest.err'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; } &&
19847 { ac_try='test -s conftest$ac_exeext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_cv_lib_bsd_gethostbyname=yes
19854 else
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19857
19858 ac_cv_lib_bsd_gethostbyname=no
19859 fi
19860 rm -f conftest.err conftest.$ac_objext \
19861 conftest$ac_exeext conftest.$ac_ext
19862 LIBS=$ac_check_lib_save_LIBS
19863 fi
19864 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19865 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19866 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19868 fi
19869
19870 fi
19871 fi
19872
19873 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19874 # socket/setsockopt and other routines are undefined under SCO ODT
19875 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19876 # on later versions), says Simon Leinen: it contains gethostby*
19877 # variants that don't use the name server (or something). -lsocket
19878 # must be given before -lnsl if both are needed. We assume that
19879 # if connect needs -lnsl, so does gethostbyname.
19880 echo "$as_me:$LINENO: checking for connect" >&5
19881 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19882 if test "${ac_cv_func_connect+set}" = set; then
19883 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 else
19885 if test x$gcc_no_link = xyes; then
19886 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19888 { (exit 1); exit 1; }; }
19889 fi
19890 cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h. */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19896 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19898 #define connect innocuous_connect
19899
19900 /* System header to define __stub macros and hopefully few prototypes,
19901 which can conflict with char connect (); below.
19902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19903 <limits.h> exists even on freestanding compilers. */
19904
19905 #ifdef __STDC__
19906 # include <limits.h>
19907 #else
19908 # include <assert.h>
19909 #endif
19910
19911 #undef connect
19912
19913 /* Override any gcc2 internal prototype to avoid an error. */
19914 #ifdef __cplusplus
19915 extern "C"
19916 {
19917 #endif
19918 /* We use char because int might match the return type of a gcc2
19919 builtin and then its argument prototype would still apply. */
19920 char connect ();
19921 /* The GNU C library defines this for functions which it implements
19922 to always fail with ENOSYS. Some functions are actually named
19923 something starting with __ and the normal name is an alias. */
19924 #if defined (__stub_connect) || defined (__stub___connect)
19925 choke me
19926 #else
19927 char (*f) () = connect;
19928 #endif
19929 #ifdef __cplusplus
19930 }
19931 #endif
19932
19933 int
19934 main ()
19935 {
19936 return f != connect;
19937 ;
19938 return 0;
19939 }
19940 _ACEOF
19941 rm -f conftest.$ac_objext conftest$ac_exeext
19942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19943 (eval $ac_link) 2>conftest.er1
19944 ac_status=$?
19945 grep -v '^ *+' conftest.er1 >conftest.err
19946 rm -f conftest.er1
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_c_werror_flag"
19951 || test ! -s conftest.err'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest$ac_exeext'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 ac_cv_func_connect=yes
19964 else
19965 echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19967
19968 ac_cv_func_connect=no
19969 fi
19970 rm -f conftest.err conftest.$ac_objext \
19971 conftest$ac_exeext conftest.$ac_ext
19972 fi
19973 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19974 echo "${ECHO_T}$ac_cv_func_connect" >&6
19975
19976 if test $ac_cv_func_connect = no; then
19977 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19978 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19979 if test "${ac_cv_lib_socket_connect+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19981 else
19982 ac_check_lib_save_LIBS=$LIBS
19983 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19984 if test x$gcc_no_link = xyes; then
19985 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19986 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19987 { (exit 1); exit 1; }; }
19988 fi
19989 cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h. */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19995
19996 /* Override any gcc2 internal prototype to avoid an error. */
19997 #ifdef __cplusplus
19998 extern "C"
19999 #endif
20000 /* We use char because int might match the return type of a gcc2
20001 builtin and then its argument prototype would still apply. */
20002 char connect ();
20003 int
20004 main ()
20005 {
20006 connect ();
20007 ;
20008 return 0;
20009 }
20010 _ACEOF
20011 rm -f conftest.$ac_objext conftest$ac_exeext
20012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20013 (eval $ac_link) 2>conftest.er1
20014 ac_status=$?
20015 grep -v '^ *+' conftest.er1 >conftest.err
20016 rm -f conftest.er1
20017 cat conftest.err >&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } &&
20020 { ac_try='test -z "$ac_c_werror_flag"
20021 || test ! -s conftest.err'
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; } &&
20027 { ac_try='test -s conftest$ac_exeext'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; }; then
20033 ac_cv_lib_socket_connect=yes
20034 else
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038 ac_cv_lib_socket_connect=no
20039 fi
20040 rm -f conftest.err conftest.$ac_objext \
20041 conftest$ac_exeext conftest.$ac_ext
20042 LIBS=$ac_check_lib_save_LIBS
20043 fi
20044 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20045 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20046 if test $ac_cv_lib_socket_connect = yes; then
20047 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20048 fi
20049
20050 fi
20051
20052 # Guillermo Gomez says -lposix is necessary on A/UX.
20053 echo "$as_me:$LINENO: checking for remove" >&5
20054 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20055 if test "${ac_cv_func_remove+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058 if test x$gcc_no_link = xyes; then
20059 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20060 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20061 { (exit 1); exit 1; }; }
20062 fi
20063 cat >conftest.$ac_ext <<_ACEOF
20064 /* confdefs.h. */
20065 _ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h. */
20069 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20071 #define remove innocuous_remove
20072
20073 /* System header to define __stub macros and hopefully few prototypes,
20074 which can conflict with char remove (); below.
20075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20076 <limits.h> exists even on freestanding compilers. */
20077
20078 #ifdef __STDC__
20079 # include <limits.h>
20080 #else
20081 # include <assert.h>
20082 #endif
20083
20084 #undef remove
20085
20086 /* Override any gcc2 internal prototype to avoid an error. */
20087 #ifdef __cplusplus
20088 extern "C"
20089 {
20090 #endif
20091 /* We use char because int might match the return type of a gcc2
20092 builtin and then its argument prototype would still apply. */
20093 char remove ();
20094 /* The GNU C library defines this for functions which it implements
20095 to always fail with ENOSYS. Some functions are actually named
20096 something starting with __ and the normal name is an alias. */
20097 #if defined (__stub_remove) || defined (__stub___remove)
20098 choke me
20099 #else
20100 char (*f) () = remove;
20101 #endif
20102 #ifdef __cplusplus
20103 }
20104 #endif
20105
20106 int
20107 main ()
20108 {
20109 return f != remove;
20110 ;
20111 return 0;
20112 }
20113 _ACEOF
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116 (eval $ac_link) 2>conftest.er1
20117 ac_status=$?
20118 grep -v '^ *+' conftest.er1 >conftest.err
20119 rm -f conftest.er1
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
20123 { ac_try='test -z "$ac_c_werror_flag"
20124 || test ! -s conftest.err'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; } &&
20130 { ac_try='test -s conftest$ac_exeext'
20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132 (eval $ac_try) 2>&5
20133 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
20136 ac_cv_func_remove=yes
20137 else
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141 ac_cv_func_remove=no
20142 fi
20143 rm -f conftest.err conftest.$ac_objext \
20144 conftest$ac_exeext conftest.$ac_ext
20145 fi
20146 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20147 echo "${ECHO_T}$ac_cv_func_remove" >&6
20148
20149 if test $ac_cv_func_remove = no; then
20150 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20151 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20152 if test "${ac_cv_lib_posix_remove+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 else
20155 ac_check_lib_save_LIBS=$LIBS
20156 LIBS="-lposix $LIBS"
20157 if test x$gcc_no_link = xyes; then
20158 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20159 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20160 { (exit 1); exit 1; }; }
20161 fi
20162 cat >conftest.$ac_ext <<_ACEOF
20163 /* confdefs.h. */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20168
20169 /* Override any gcc2 internal prototype to avoid an error. */
20170 #ifdef __cplusplus
20171 extern "C"
20172 #endif
20173 /* We use char because int might match the return type of a gcc2
20174 builtin and then its argument prototype would still apply. */
20175 char remove ();
20176 int
20177 main ()
20178 {
20179 remove ();
20180 ;
20181 return 0;
20182 }
20183 _ACEOF
20184 rm -f conftest.$ac_objext conftest$ac_exeext
20185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20186 (eval $ac_link) 2>conftest.er1
20187 ac_status=$?
20188 grep -v '^ *+' conftest.er1 >conftest.err
20189 rm -f conftest.er1
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } &&
20193 { ac_try='test -z "$ac_c_werror_flag"
20194 || test ! -s conftest.err'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20197 ac_status=$?
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; } &&
20200 { ac_try='test -s conftest$ac_exeext'
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; }; then
20206 ac_cv_lib_posix_remove=yes
20207 else
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20210
20211 ac_cv_lib_posix_remove=no
20212 fi
20213 rm -f conftest.err conftest.$ac_objext \
20214 conftest$ac_exeext conftest.$ac_ext
20215 LIBS=$ac_check_lib_save_LIBS
20216 fi
20217 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20218 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20219 if test $ac_cv_lib_posix_remove = yes; then
20220 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20221 fi
20222
20223 fi
20224
20225 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20226 echo "$as_me:$LINENO: checking for shmat" >&5
20227 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20228 if test "${ac_cv_func_shmat+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 else
20231 if test x$gcc_no_link = xyes; then
20232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20234 { (exit 1); exit 1; }; }
20235 fi
20236 cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h. */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20244 #define shmat innocuous_shmat
20245
20246 /* System header to define __stub macros and hopefully few prototypes,
20247 which can conflict with char shmat (); below.
20248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20249 <limits.h> exists even on freestanding compilers. */
20250
20251 #ifdef __STDC__
20252 # include <limits.h>
20253 #else
20254 # include <assert.h>
20255 #endif
20256
20257 #undef shmat
20258
20259 /* Override any gcc2 internal prototype to avoid an error. */
20260 #ifdef __cplusplus
20261 extern "C"
20262 {
20263 #endif
20264 /* We use char because int might match the return type of a gcc2
20265 builtin and then its argument prototype would still apply. */
20266 char shmat ();
20267 /* The GNU C library defines this for functions which it implements
20268 to always fail with ENOSYS. Some functions are actually named
20269 something starting with __ and the normal name is an alias. */
20270 #if defined (__stub_shmat) || defined (__stub___shmat)
20271 choke me
20272 #else
20273 char (*f) () = shmat;
20274 #endif
20275 #ifdef __cplusplus
20276 }
20277 #endif
20278
20279 int
20280 main ()
20281 {
20282 return f != shmat;
20283 ;
20284 return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest.$ac_objext conftest$ac_exeext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20289 (eval $ac_link) 2>conftest.er1
20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest$ac_exeext'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 ac_cv_func_shmat=yes
20310 else
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 ac_cv_func_shmat=no
20315 fi
20316 rm -f conftest.err conftest.$ac_objext \
20317 conftest$ac_exeext conftest.$ac_ext
20318 fi
20319 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20320 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20321
20322 if test $ac_cv_func_shmat = no; then
20323 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20324 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20325 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328 ac_check_lib_save_LIBS=$LIBS
20329 LIBS="-lipc $LIBS"
20330 if test x$gcc_no_link = xyes; then
20331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20333 { (exit 1); exit 1; }; }
20334 fi
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341
20342 /* Override any gcc2 internal prototype to avoid an error. */
20343 #ifdef __cplusplus
20344 extern "C"
20345 #endif
20346 /* We use char because int might match the return type of a gcc2
20347 builtin and then its argument prototype would still apply. */
20348 char shmat ();
20349 int
20350 main ()
20351 {
20352 shmat ();
20353 ;
20354 return 0;
20355 }
20356 _ACEOF
20357 rm -f conftest.$ac_objext conftest$ac_exeext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20359 (eval $ac_link) 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try='test -z "$ac_c_werror_flag"
20367 || test ! -s conftest.err'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest$ac_exeext'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 ac_cv_lib_ipc_shmat=yes
20380 else
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 ac_cv_lib_ipc_shmat=no
20385 fi
20386 rm -f conftest.err conftest.$ac_objext \
20387 conftest$ac_exeext conftest.$ac_ext
20388 LIBS=$ac_check_lib_save_LIBS
20389 fi
20390 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20391 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20392 if test $ac_cv_lib_ipc_shmat = yes; then
20393 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20394 fi
20395
20396 fi
20397 fi
20398
20399 # Check for libraries that X11R6 Xt/Xaw programs need.
20400 ac_save_LDFLAGS=$LDFLAGS
20401 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20402 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20403 # check for ICE first), but we must link in the order -lSM -lICE or
20404 # we get undefined symbols. So assume we have SM if we have ICE.
20405 # These have to be linked with before -lX11, unlike the other
20406 # libraries we check for below, so use a different variable.
20407 # John Interrante, Karl Berry
20408 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20409 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20410 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413 ac_check_lib_save_LIBS=$LIBS
20414 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20415 if test x$gcc_no_link = xyes; then
20416 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20417 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20418 { (exit 1); exit 1; }; }
20419 fi
20420 cat >conftest.$ac_ext <<_ACEOF
20421 /* confdefs.h. */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20426
20427 /* Override any gcc2 internal prototype to avoid an error. */
20428 #ifdef __cplusplus
20429 extern "C"
20430 #endif
20431 /* We use char because int might match the return type of a gcc2
20432 builtin and then its argument prototype would still apply. */
20433 char IceConnectionNumber ();
20434 int
20435 main ()
20436 {
20437 IceConnectionNumber ();
20438 ;
20439 return 0;
20440 }
20441 _ACEOF
20442 rm -f conftest.$ac_objext conftest$ac_exeext
20443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20444 (eval $ac_link) 2>conftest.er1
20445 ac_status=$?
20446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } &&
20451 { ac_try='test -z "$ac_c_werror_flag"
20452 || test ! -s conftest.err'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } &&
20458 { ac_try='test -s conftest$ac_exeext'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
20464 ac_cv_lib_ICE_IceConnectionNumber=yes
20465 else
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20468
20469 ac_cv_lib_ICE_IceConnectionNumber=no
20470 fi
20471 rm -f conftest.err conftest.$ac_objext \
20472 conftest$ac_exeext conftest.$ac_ext
20473 LIBS=$ac_check_lib_save_LIBS
20474 fi
20475 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20476 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20477 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20478 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20479 fi
20480
20481 LDFLAGS=$ac_save_LDFLAGS
20482
20483 fi
20484
20485
20486 # FIXME: this should be _libs on some hosts.
20487 libsubdir=.libs
20488
20489 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20490
20491 LIBSTDCXXSPEC=
20492 # extra LD Flags which are required for targets
20493 case "${host}" in
20494 *-*-darwin[0-7].*)
20495 # For now we have to disable it on darwin[8-9] because it slows down
20496 # the linking phase. A possible bug in ld?
20497 # on Darwin -single_module speeds up loading of the dynamic libraries.
20498 extra_ldflags_libjava=-Wl,-single_module
20499 ;;
20500 *-*-darwin[9]*)
20501 extra_gij_ldflags=-Wl,-allow_stack_execute
20502 ;;
20503 arm*linux*eabi)
20504 # Some of the ARM unwinder code is actually in libstdc++. We
20505 # could in principle replicate it in libgcj, but it's better to
20506 # have a dependency on libstdc++.
20507 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20508 LIBSTDCXXSPEC=-lstdc++
20509 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20510 ;;
20511 esac
20512
20513
20514
20515
20516
20517
20518
20519 # Allow the GC to be disabled. Can be useful when debugging.
20520 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20521 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20522 # Check whether --enable-java-gc or --disable-java-gc was given.
20523 if test "${enable_java_gc+set}" = set; then
20524 enableval="$enable_java_gc"
20525 GC=$enableval
20526 else
20527 GC=boehm
20528 fi;
20529 GCLIBS=
20530 GCINCS=
20531 GCDEPS=
20532 GCSPEC=
20533 JC1GCSPEC=
20534 GCTESTSPEC=
20535 case "$GC" in
20536 boehm)
20537 echo "$as_me:$LINENO: result: boehm" >&5
20538 echo "${ECHO_T}boehm" >&6
20539 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20540 JC1GCSPEC='-fuse-boehm-gc'
20541 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20542 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20543 GCOBJS=boehm.lo
20544 GCHDR=boehm-gc.h
20545 # The POSIX thread support needs to know this.
20546
20547 cat >>confdefs.h <<\_ACEOF
20548 #define HAVE_BOEHM_GC 1
20549 _ACEOF
20550
20551 ;;
20552 no)
20553 echo "$as_me:$LINENO: result: none" >&5
20554 echo "${ECHO_T}none" >&6
20555 GCHDR=no-gc.h
20556 ;;
20557 *)
20558 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20559 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20560 { (exit 1); exit 1; }; }
20561 ;;
20562 esac
20563
20564
20565
20566
20567
20568
20569 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20570
20571
20572
20573 if test "$GC" = boehm; then
20574 USING_BOEHMGC_TRUE=
20575 USING_BOEHMGC_FALSE='#'
20576 else
20577 USING_BOEHMGC_TRUE='#'
20578 USING_BOEHMGC_FALSE=
20579 fi
20580
20581
20582
20583 if test "$GC" = no; then
20584 USING_NOGC_TRUE=
20585 USING_NOGC_FALSE='#'
20586 else
20587 USING_NOGC_TRUE='#'
20588 USING_NOGC_FALSE=
20589 fi
20590
20591
20592
20593 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20594 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20595 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20596 echo "$as_me:$LINENO: result: $THREADS" >&5
20597 echo "${ECHO_T}$THREADS" >&6
20598
20599 case "$THREADS" in
20600 no | none | single)
20601 THREADS=none
20602 ;;
20603 posix | posix95 | pthreads)
20604 THREADS=posix
20605 case "$host" in
20606 *-*-linux*)
20607
20608 cat >>confdefs.h <<\_ACEOF
20609 #define LINUX_THREADS 1
20610 _ACEOF
20611
20612 ;;
20613 esac
20614 ;;
20615 win32)
20616 ;;
20617 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20618 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20619 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20620 { (exit 1); exit 1; }; }
20621 ;;
20622 *)
20623 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20624 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20625 { (exit 1); exit 1; }; }
20626 ;;
20627 esac
20628
20629 THREADCXXFLAGS=
20630 THREADLDFLAGS=
20631 THREADLIBS=
20632 THREADINCS=
20633 THREADDEPS=
20634 THREADH=
20635 THREADSPEC=
20636 THREADSTARTFILESPEC=
20637 case "$THREADS" in
20638 posix)
20639 case "$host" in
20640 *-*-cygwin*)
20641 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20642 ;;
20643 *-*-freebsd[1234]*)
20644 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20645 # merely adds pthread_* functions) but it does have a -pthread switch
20646 # which is required at link-time to select -lc_r *instead* of -lc.
20647 THREADLDFLAGS=-pthread
20648 # Don't set THREADSPEC here as might be expected since -pthread is
20649 # not processed when found within a spec file, it must come from
20650 # the command line. For now, the user must provide the -pthread
20651 # switch to link code compiled with gcj. In future, consider adding
20652 # support for weak references to pthread_* functions ala gthr.h API.
20653 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20654 ;;
20655 *-*-freebsd*)
20656 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20657 # systems which support threads and -lpthread.
20658 THREADLDFLAGS=-pthread
20659 THREADSPEC=-lpthread
20660 ;;
20661 alpha*-dec-osf* | hppa*-hp-hpux*)
20662 THREADCXXFLAGS=-pthread
20663 # boehm-gc needs some functions from librt, so link that too.
20664 THREADLIBS='-lpthread -lrt'
20665 THREADSPEC='-lpthread -lrt'
20666 ;;
20667 *)
20668 THREADLIBS=-lpthread
20669 THREADSPEC=-lpthread
20670 ;;
20671 esac
20672 THREADH=posix-threads.h
20673 # MIT pthreads doesn't seem to have the mutexattr functions.
20674 # But for now we don't check for it. We just assume you aren't
20675 # using MIT pthreads.
20676
20677 cat >>confdefs.h <<\_ACEOF
20678 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20679 _ACEOF
20680
20681
20682 # If we're using the Boehm GC, then we happen to know that it
20683 # defines _REENTRANT, so we don't bother. Eww.
20684 if test "$GC" != boehm; then
20685
20686 cat >>confdefs.h <<\_ACEOF
20687 #define _REENTRANT 1
20688 _ACEOF
20689
20690 fi
20691
20692 cat >>confdefs.h <<\_ACEOF
20693 #define _POSIX_PTHREAD_SEMANTICS 1
20694 _ACEOF
20695
20696 ;;
20697
20698 win32)
20699 THREADH=win32-threads.h
20700 THREADCXXFLAGS=-mthreads
20701 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20702 # But we do not want the executables created to be dependent on
20703 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20704 # exception handling contexts. The following kludge achieves this effect
20705 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20706 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20707 # A workaround is to explicitly use -mthreads while linking Java programs.
20708 # See PR libgcj/28263.
20709 #
20710 # FIXME: In Java we are able to detect thread death at the end of
20711 # Thread.run() so we should be able to clean up the exception handling
20712 # contexts ourselves.
20713 THREADSTARTFILESPEC='crtmt%O%s'
20714 ;;
20715
20716 none)
20717 THREADH=no-threads.h
20718 ;;
20719 esac
20720 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731 if test "$THREADS" = posix; then
20732 USING_POSIX_THREADS_TRUE=
20733 USING_POSIX_THREADS_FALSE='#'
20734 else
20735 USING_POSIX_THREADS_TRUE='#'
20736 USING_POSIX_THREADS_FALSE=
20737 fi
20738
20739
20740
20741 if test "$THREADS" = win32; then
20742 USING_WIN32_THREADS_TRUE=
20743 USING_WIN32_THREADS_FALSE='#'
20744 else
20745 USING_WIN32_THREADS_TRUE='#'
20746 USING_WIN32_THREADS_FALSE=
20747 fi
20748
20749
20750
20751 if test "$THREADS" = none; then
20752 USING_NO_THREADS_TRUE=
20753 USING_NO_THREADS_FALSE='#'
20754 else
20755 USING_NO_THREADS_TRUE='#'
20756 USING_NO_THREADS_FALSE=
20757 fi
20758
20759
20760
20761 if test "$use_libgcj_bc" = yes; then
20762 USE_LIBGCJ_BC_TRUE=
20763 USE_LIBGCJ_BC_FALSE='#'
20764 else
20765 USE_LIBGCJ_BC_TRUE='#'
20766 USE_LIBGCJ_BC_FALSE=
20767 fi
20768
20769
20770 if test -d sysdep; then true; else mkdir sysdep; fi
20771 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20772
20773 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20774
20775 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20776
20777
20778 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20779 if test "$use_libgcj_bc" = yes; then
20780 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20781 fi
20782
20783
20784 HASH_SYNC_SPEC=
20785 # Hash synchronization is only useful with posix threads right now.
20786 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20787 HASH_SYNC_SPEC=-fhash-synchronization
20788
20789 cat >>confdefs.h <<\_ACEOF
20790 #define JV_HASH_SYNCHRONIZATION 1
20791 _ACEOF
20792
20793 fi
20794
20795
20796
20797
20798 if test "$GCC" = yes; then
20799 USING_GCC_TRUE=
20800 USING_GCC_FALSE='#'
20801 else
20802 USING_GCC_TRUE='#'
20803 USING_GCC_FALSE=
20804 fi
20805
20806
20807 # We're in the tree with gcc, and need to include some of its headers.
20808 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20809
20810 if test "x${with_newlib}" = "xyes"; then
20811 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20812 # may not work correctly, because the compiler may not be able to
20813 # link executables.
20814
20815 # We assume newlib. This lets us hard-code the functions we know
20816 # we'll have.
20817
20818 cat >>confdefs.h <<\_ACEOF
20819 #define HAVE_MEMMOVE 1
20820 _ACEOF
20821
20822
20823 cat >>confdefs.h <<\_ACEOF
20824 #define HAVE_MEMCPY 1
20825 _ACEOF
20826
20827
20828 cat >>confdefs.h <<\_ACEOF
20829 #define HAVE_TIME 1
20830 _ACEOF
20831
20832
20833 cat >>confdefs.h <<\_ACEOF
20834 #define HAVE_GMTIME_R 1
20835 _ACEOF
20836
20837
20838 cat >>confdefs.h <<\_ACEOF
20839 #define HAVE_LOCALTIME_R 1
20840 _ACEOF
20841
20842
20843 cat >>confdefs.h <<\_ACEOF
20844 #define HAVE_USLEEP_DECL 1
20845 _ACEOF
20846
20847 # This is only for POSIX threads.
20848
20849 cat >>confdefs.h <<\_ACEOF
20850 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20851 _ACEOF
20852
20853
20854 # Assume we do not have getuid and friends.
20855
20856 cat >>confdefs.h <<\_ACEOF
20857 #define NO_GETUID 1
20858 _ACEOF
20859
20860 PLATFORMNET=NoNet
20861 else
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892 for ac_func in strerror_r select fstat open fsync sleep opendir \
20893 localtime_r getpwuid_r getcwd \
20894 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20895 nl_langinfo setlocale \
20896 inet_pton uname inet_ntoa \
20897 getrlimit sigaction ftruncate mmap \
20898 getifaddrs
20899 do
20900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20901 echo "$as_me:$LINENO: checking for $ac_func" >&5
20902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20903 if eval "test \"\${$as_ac_var+set}\" = set"; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 else
20906 if test x$gcc_no_link = xyes; then
20907 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20908 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20909 { (exit 1); exit 1; }; }
20910 fi
20911 cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h. */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20919 #define $ac_func innocuous_$ac_func
20920
20921 /* System header to define __stub macros and hopefully few prototypes,
20922 which can conflict with char $ac_func (); below.
20923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20924 <limits.h> exists even on freestanding compilers. */
20925
20926 #ifdef __STDC__
20927 # include <limits.h>
20928 #else
20929 # include <assert.h>
20930 #endif
20931
20932 #undef $ac_func
20933
20934 /* Override any gcc2 internal prototype to avoid an error. */
20935 #ifdef __cplusplus
20936 extern "C"
20937 {
20938 #endif
20939 /* We use char because int might match the return type of a gcc2
20940 builtin and then its argument prototype would still apply. */
20941 char $ac_func ();
20942 /* The GNU C library defines this for functions which it implements
20943 to always fail with ENOSYS. Some functions are actually named
20944 something starting with __ and the normal name is an alias. */
20945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20946 choke me
20947 #else
20948 char (*f) () = $ac_func;
20949 #endif
20950 #ifdef __cplusplus
20951 }
20952 #endif
20953
20954 int
20955 main ()
20956 {
20957 return f != $ac_func;
20958 ;
20959 return 0;
20960 }
20961 _ACEOF
20962 rm -f conftest.$ac_objext conftest$ac_exeext
20963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20964 (eval $ac_link) 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } &&
20971 { ac_try='test -z "$ac_c_werror_flag"
20972 || test ! -s conftest.err'
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; } &&
20978 { ac_try='test -s conftest$ac_exeext'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 eval "$as_ac_var=yes"
20985 else
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20988
20989 eval "$as_ac_var=no"
20990 fi
20991 rm -f conftest.err conftest.$ac_objext \
20992 conftest$ac_exeext conftest.$ac_ext
20993 fi
20994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20996 if test `eval echo '${'$as_ac_var'}'` = yes; then
20997 cat >>confdefs.h <<_ACEOF
20998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20999 _ACEOF
21000
21001 fi
21002 done
21003
21004
21005
21006 for ac_func in inet_aton inet_addr
21007 do
21008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21009 echo "$as_me:$LINENO: checking for $ac_func" >&5
21010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21011 if eval "test \"\${$as_ac_var+set}\" = set"; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 else
21014 if test x$gcc_no_link = xyes; then
21015 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21016 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21017 { (exit 1); exit 1; }; }
21018 fi
21019 cat >conftest.$ac_ext <<_ACEOF
21020 /* confdefs.h. */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21027 #define $ac_func innocuous_$ac_func
21028
21029 /* System header to define __stub macros and hopefully few prototypes,
21030 which can conflict with char $ac_func (); below.
21031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21032 <limits.h> exists even on freestanding compilers. */
21033
21034 #ifdef __STDC__
21035 # include <limits.h>
21036 #else
21037 # include <assert.h>
21038 #endif
21039
21040 #undef $ac_func
21041
21042 /* Override any gcc2 internal prototype to avoid an error. */
21043 #ifdef __cplusplus
21044 extern "C"
21045 {
21046 #endif
21047 /* We use char because int might match the return type of a gcc2
21048 builtin and then its argument prototype would still apply. */
21049 char $ac_func ();
21050 /* The GNU C library defines this for functions which it implements
21051 to always fail with ENOSYS. Some functions are actually named
21052 something starting with __ and the normal name is an alias. */
21053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21054 choke me
21055 #else
21056 char (*f) () = $ac_func;
21057 #endif
21058 #ifdef __cplusplus
21059 }
21060 #endif
21061
21062 int
21063 main ()
21064 {
21065 return f != $ac_func;
21066 ;
21067 return 0;
21068 }
21069 _ACEOF
21070 rm -f conftest.$ac_objext conftest$ac_exeext
21071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21072 (eval $ac_link) 2>conftest.er1
21073 ac_status=$?
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } &&
21079 { ac_try='test -z "$ac_c_werror_flag"
21080 || test ! -s conftest.err'
21081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082 (eval $ac_try) 2>&5
21083 ac_status=$?
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; } &&
21086 { ac_try='test -s conftest$ac_exeext'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; }; then
21092 eval "$as_ac_var=yes"
21093 else
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21096
21097 eval "$as_ac_var=no"
21098 fi
21099 rm -f conftest.err conftest.$ac_objext \
21100 conftest$ac_exeext conftest.$ac_ext
21101 fi
21102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21104 if test `eval echo '${'$as_ac_var'}'` = yes; then
21105 cat >>confdefs.h <<_ACEOF
21106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21107 _ACEOF
21108 break
21109 fi
21110 done
21111
21112
21113
21114
21115 for ac_header in unistd.h dlfcn.h sys/resource.h
21116 do
21117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21119 echo "$as_me:$LINENO: checking for $ac_header" >&5
21120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 fi
21124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21126 else
21127 # Is the header compilable?
21128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21130 cat >conftest.$ac_ext <<_ACEOF
21131 /* confdefs.h. */
21132 _ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21136 $ac_includes_default
21137 #include <$ac_header>
21138 _ACEOF
21139 rm -f conftest.$ac_objext
21140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21141 (eval $ac_compile) 2>conftest.er1
21142 ac_status=$?
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } &&
21148 { ac_try='test -z "$ac_c_werror_flag"
21149 || test ! -s conftest.err'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; } &&
21155 { ac_try='test -s conftest.$ac_objext'
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21158 ac_status=$?
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; }; then
21161 ac_header_compiler=yes
21162 else
21163 echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21165
21166 ac_header_compiler=no
21167 fi
21168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21170 echo "${ECHO_T}$ac_header_compiler" >&6
21171
21172 # Is the header present?
21173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21175 cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h. */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21181 #include <$ac_header>
21182 _ACEOF
21183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21185 ac_status=$?
21186 grep -v '^ *+' conftest.er1 >conftest.err
21187 rm -f conftest.er1
21188 cat conftest.err >&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } >/dev/null; then
21191 if test -s conftest.err; then
21192 ac_cpp_err=$ac_c_preproc_warn_flag
21193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21194 else
21195 ac_cpp_err=
21196 fi
21197 else
21198 ac_cpp_err=yes
21199 fi
21200 if test -z "$ac_cpp_err"; then
21201 ac_header_preproc=yes
21202 else
21203 echo "$as_me: failed program was:" >&5
21204 sed 's/^/| /' conftest.$ac_ext >&5
21205
21206 ac_header_preproc=no
21207 fi
21208 rm -f conftest.err conftest.$ac_ext
21209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21210 echo "${ECHO_T}$ac_header_preproc" >&6
21211
21212 # So? What about this header?
21213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21214 yes:no: )
21215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21219 ac_header_preproc=yes
21220 ;;
21221 no:yes:* )
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21234 (
21235 cat <<\_ASBOX
21236 ## ---------------------------------- ##
21237 ## Report this to the libjava lists. ##
21238 ## ---------------------------------- ##
21239 _ASBOX
21240 ) |
21241 sed "s/^/$as_me: WARNING: /" >&2
21242 ;;
21243 esac
21244 echo "$as_me:$LINENO: checking for $ac_header" >&5
21245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 else
21249 eval "$as_ac_Header=\$ac_header_preproc"
21250 fi
21251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21253
21254 fi
21255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21256 cat >>confdefs.h <<_ACEOF
21257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21258 _ACEOF
21259
21260 fi
21261
21262 done
21263
21264 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21265 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21266 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21267 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21269 else
21270 ac_check_lib_save_LIBS=$LIBS
21271 LIBS="-ldl $LIBS"
21272 if test x$gcc_no_link = xyes; then
21273 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21275 { (exit 1); exit 1; }; }
21276 fi
21277 cat >conftest.$ac_ext <<_ACEOF
21278 /* confdefs.h. */
21279 _ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h. */
21283
21284 /* Override any gcc2 internal prototype to avoid an error. */
21285 #ifdef __cplusplus
21286 extern "C"
21287 #endif
21288 /* We use char because int might match the return type of a gcc2
21289 builtin and then its argument prototype would still apply. */
21290 char dladdr ();
21291 int
21292 main ()
21293 {
21294 dladdr ();
21295 ;
21296 return 0;
21297 }
21298 _ACEOF
21299 rm -f conftest.$ac_objext conftest$ac_exeext
21300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21301 (eval $ac_link) 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
21308 { ac_try='test -z "$ac_c_werror_flag"
21309 || test ! -s conftest.err'
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; } &&
21315 { ac_try='test -s conftest$ac_exeext'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 ac_cv_lib_dl_dladdr=yes
21322 else
21323 echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21325
21326 ac_cv_lib_dl_dladdr=no
21327 fi
21328 rm -f conftest.err conftest.$ac_objext \
21329 conftest$ac_exeext conftest.$ac_ext
21330 LIBS=$ac_check_lib_save_LIBS
21331 fi
21332 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21333 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21334 if test $ac_cv_lib_dl_dladdr = yes; then
21335
21336
21337 cat >>confdefs.h <<\_ACEOF
21338 #define HAVE_DLADDR 1
21339 _ACEOF
21340
21341 else
21342
21343 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21344 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21345 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21347 else
21348 ac_check_lib_save_LIBS=$LIBS
21349 LIBS="-ldld $LIBS"
21350 if test x$gcc_no_link = xyes; then
21351 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21353 { (exit 1); exit 1; }; }
21354 fi
21355 cat >conftest.$ac_ext <<_ACEOF
21356 /* confdefs.h. */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21361
21362 /* Override any gcc2 internal prototype to avoid an error. */
21363 #ifdef __cplusplus
21364 extern "C"
21365 #endif
21366 /* We use char because int might match the return type of a gcc2
21367 builtin and then its argument prototype would still apply. */
21368 char dladdr ();
21369 int
21370 main ()
21371 {
21372 dladdr ();
21373 ;
21374 return 0;
21375 }
21376 _ACEOF
21377 rm -f conftest.$ac_objext conftest$ac_exeext
21378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21379 (eval $ac_link) 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } &&
21386 { ac_try='test -z "$ac_c_werror_flag"
21387 || test ! -s conftest.err'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21390 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; } &&
21393 { ac_try='test -s conftest$ac_exeext'
21394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21396 ac_status=$?
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; }; then
21399 ac_cv_lib_dld_dladdr=yes
21400 else
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21403
21404 ac_cv_lib_dld_dladdr=no
21405 fi
21406 rm -f conftest.err conftest.$ac_objext \
21407 conftest$ac_exeext conftest.$ac_ext
21408 LIBS=$ac_check_lib_save_LIBS
21409 fi
21410 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21411 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21412 if test $ac_cv_lib_dld_dladdr = yes; then
21413
21414
21415 cat >>confdefs.h <<\_ACEOF
21416 #define HAVE_DLADDR 1
21417 _ACEOF
21418
21419 fi
21420
21421 fi
21422
21423
21424 if test x"$cross_compiling" = x"no"; then
21425 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21426 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21427 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21428 echo $ECHO_N "(cached) $ECHO_C" >&6
21429 else
21430 test "$cross_compiling" = yes &&
21431 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21432 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21433 { (exit 1); exit 1; }; }
21434 if test -r "/proc/self/exe"; then
21435 ac_cv_file__proc_self_exe=yes
21436 else
21437 ac_cv_file__proc_self_exe=no
21438 fi
21439 fi
21440 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21441 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21442 if test $ac_cv_file__proc_self_exe = yes; then
21443
21444 cat >>confdefs.h <<_ACEOF
21445 #define HAVE__PROC_SELF_EXE 1
21446 _ACEOF
21447
21448
21449
21450 cat >>confdefs.h <<\_ACEOF
21451 #define HAVE_PROC_SELF_EXE 1
21452 _ACEOF
21453
21454 fi
21455
21456 echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21457 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21458 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21460 else
21461 test "$cross_compiling" = yes &&
21462 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21463 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21464 { (exit 1); exit 1; }; }
21465 if test -r "/proc/self/maps"; then
21466 ac_cv_file__proc_self_maps=yes
21467 else
21468 ac_cv_file__proc_self_maps=no
21469 fi
21470 fi
21471 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21472 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21473 if test $ac_cv_file__proc_self_maps = yes; then
21474
21475 cat >>confdefs.h <<_ACEOF
21476 #define HAVE__PROC_SELF_MAPS 1
21477 _ACEOF
21478
21479
21480
21481 cat >>confdefs.h <<\_ACEOF
21482 #define HAVE_PROC_SELF_MAPS 1
21483 _ACEOF
21484
21485 fi
21486
21487 else
21488 case $host in
21489 *-linux*)
21490
21491 cat >>confdefs.h <<\_ACEOF
21492 #define HAVE_PROC_SELF_EXE 1
21493 _ACEOF
21494
21495
21496 cat >>confdefs.h <<\_ACEOF
21497 #define HAVE_PROC_SELF_MAPS 1
21498 _ACEOF
21499
21500 ;;
21501 esac
21502 fi
21503
21504
21505 if test "X$prefix" = "XNONE"; then
21506 acl_final_prefix="$ac_default_prefix"
21507 else
21508 acl_final_prefix="$prefix"
21509 fi
21510 if test "X$exec_prefix" = "XNONE"; then
21511 acl_final_exec_prefix='${prefix}'
21512 else
21513 acl_final_exec_prefix="$exec_prefix"
21514 fi
21515 acl_save_prefix="$prefix"
21516 prefix="$acl_final_prefix"
21517 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21518 prefix="$acl_save_prefix"
21519
21520
21521 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21522 if test "${with_gnu_ld+set}" = set; then
21523 withval="$with_gnu_ld"
21524 test "$withval" = no || with_gnu_ld=yes
21525 else
21526 with_gnu_ld=no
21527 fi;
21528 # Prepare PATH_SEPARATOR.
21529 # The user is always right.
21530 if test "${PATH_SEPARATOR+set}" != set; then
21531 echo "#! /bin/sh" >conf$$.sh
21532 echo "exit 0" >>conf$$.sh
21533 chmod +x conf$$.sh
21534 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21535 PATH_SEPARATOR=';'
21536 else
21537 PATH_SEPARATOR=:
21538 fi
21539 rm -f conf$$.sh
21540 fi
21541 ac_prog=ld
21542 if test "$GCC" = yes; then
21543 # Check if gcc -print-prog-name=ld gives a path.
21544 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21545 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21546 case $host in
21547 *-*-mingw*)
21548 # gcc leaves a trailing carriage return which upsets mingw
21549 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21550 *)
21551 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21552 esac
21553 case $ac_prog in
21554 # Accept absolute paths.
21555 [\\/]* | [A-Za-z]:[\\/]*)
21556 re_direlt='/[^/][^/]*/\.\./'
21557 # Canonicalize the path of ld
21558 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21559 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21560 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21561 done
21562 test -z "$LD" && LD="$ac_prog"
21563 ;;
21564 "")
21565 # If it fails, then pretend we aren't using GCC.
21566 ac_prog=ld
21567 ;;
21568 *)
21569 # If it is relative, then search for the first ld in PATH.
21570 with_gnu_ld=unknown
21571 ;;
21572 esac
21573 elif test "$with_gnu_ld" = yes; then
21574 echo "$as_me:$LINENO: checking for GNU ld" >&5
21575 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21576 else
21577 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21578 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21579 fi
21580 if test "${acl_cv_path_LD+set}" = set; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583 if test -z "$LD"; then
21584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21585 for ac_dir in $PATH; do
21586 test -z "$ac_dir" && ac_dir=.
21587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21588 acl_cv_path_LD="$ac_dir/$ac_prog"
21589 # Check to see if the program is GNU ld. I'd rather use --version,
21590 # but apparently some GNU ld's only accept -v.
21591 # Break only if it was the GNU/non-GNU ld that we prefer.
21592 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21593 test "$with_gnu_ld" != no && break
21594 else
21595 test "$with_gnu_ld" != yes && break
21596 fi
21597 fi
21598 done
21599 IFS="$ac_save_ifs"
21600 else
21601 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21602 fi
21603 fi
21604
21605 LD="$acl_cv_path_LD"
21606 if test -n "$LD"; then
21607 echo "$as_me:$LINENO: result: $LD" >&5
21608 echo "${ECHO_T}$LD" >&6
21609 else
21610 echo "$as_me:$LINENO: result: no" >&5
21611 echo "${ECHO_T}no" >&6
21612 fi
21613 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21614 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21615 { (exit 1); exit 1; }; }
21616 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21617 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21618 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21621 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21622 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21623 acl_cv_prog_gnu_ld=yes
21624 else
21625 acl_cv_prog_gnu_ld=no
21626 fi
21627 fi
21628 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21629 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21630 with_gnu_ld=$acl_cv_prog_gnu_ld
21631
21632
21633
21634 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21635 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21636 if test "${acl_cv_rpath+set}" = set; then
21637 echo $ECHO_N "(cached) $ECHO_C" >&6
21638 else
21639
21640 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21641 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21642 . ./conftest.sh
21643 rm -f ./conftest.sh
21644 acl_cv_rpath=done
21645
21646 fi
21647 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21648 echo "${ECHO_T}$acl_cv_rpath" >&6
21649 wl="$acl_cv_wl"
21650 libext="$acl_cv_libext"
21651 shlibext="$acl_cv_shlibext"
21652 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21653 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21654 hardcode_direct="$acl_cv_hardcode_direct"
21655 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21656 # Check whether --enable-rpath or --disable-rpath was given.
21657 if test "${enable_rpath+set}" = set; then
21658 enableval="$enable_rpath"
21659 :
21660 else
21661 enable_rpath=yes
21662 fi;
21663
21664
21665
21666
21667
21668
21669
21670 use_additional=yes
21671
21672 acl_save_prefix="$prefix"
21673 prefix="$acl_final_prefix"
21674 acl_save_exec_prefix="$exec_prefix"
21675 exec_prefix="$acl_final_exec_prefix"
21676
21677 eval additional_includedir=\"$includedir\"
21678 eval additional_libdir=\"$libdir\"
21679
21680 exec_prefix="$acl_save_exec_prefix"
21681 prefix="$acl_save_prefix"
21682
21683
21684 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21685 if test "${with_libiconv_prefix+set}" = set; then
21686 withval="$with_libiconv_prefix"
21687
21688 if test "X$withval" = "Xno"; then
21689 use_additional=no
21690 else
21691 if test "X$withval" = "X"; then
21692
21693 acl_save_prefix="$prefix"
21694 prefix="$acl_final_prefix"
21695 acl_save_exec_prefix="$exec_prefix"
21696 exec_prefix="$acl_final_exec_prefix"
21697
21698 eval additional_includedir=\"$includedir\"
21699 eval additional_libdir=\"$libdir\"
21700
21701 exec_prefix="$acl_save_exec_prefix"
21702 prefix="$acl_save_prefix"
21703
21704 else
21705 additional_includedir="$withval/include"
21706 additional_libdir="$withval/lib"
21707 fi
21708 fi
21709
21710 fi;
21711 LIBICONV=
21712 LTLIBICONV=
21713 INCICONV=
21714 rpathdirs=
21715 ltrpathdirs=
21716 names_already_handled=
21717 names_next_round='iconv '
21718 while test -n "$names_next_round"; do
21719 names_this_round="$names_next_round"
21720 names_next_round=
21721 for name in $names_this_round; do
21722 already_handled=
21723 for n in $names_already_handled; do
21724 if test "$n" = "$name"; then
21725 already_handled=yes
21726 break
21727 fi
21728 done
21729 if test -z "$already_handled"; then
21730 names_already_handled="$names_already_handled $name"
21731 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21732 eval value=\"\$HAVE_LIB$uppername\"
21733 if test -n "$value"; then
21734 if test "$value" = yes; then
21735 eval value=\"\$LIB$uppername\"
21736 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21737 eval value=\"\$LTLIB$uppername\"
21738 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21739 else
21740 :
21741 fi
21742 else
21743 found_dir=
21744 found_la=
21745 found_so=
21746 found_a=
21747 if test $use_additional = yes; then
21748 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21749 found_dir="$additional_libdir"
21750 found_so="$additional_libdir/lib$name.$shlibext"
21751 if test -f "$additional_libdir/lib$name.la"; then
21752 found_la="$additional_libdir/lib$name.la"
21753 fi
21754 else
21755 if test -f "$additional_libdir/lib$name.$libext"; then
21756 found_dir="$additional_libdir"
21757 found_a="$additional_libdir/lib$name.$libext"
21758 if test -f "$additional_libdir/lib$name.la"; then
21759 found_la="$additional_libdir/lib$name.la"
21760 fi
21761 fi
21762 fi
21763 fi
21764 if test "X$found_dir" = "X"; then
21765 for x in $LDFLAGS $LTLIBICONV; do
21766
21767 acl_save_prefix="$prefix"
21768 prefix="$acl_final_prefix"
21769 acl_save_exec_prefix="$exec_prefix"
21770 exec_prefix="$acl_final_exec_prefix"
21771 eval x=\"$x\"
21772 exec_prefix="$acl_save_exec_prefix"
21773 prefix="$acl_save_prefix"
21774
21775 case "$x" in
21776 -L*)
21777 dir=`echo "X$x" | sed -e 's/^X-L//'`
21778 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21779 found_dir="$dir"
21780 found_so="$dir/lib$name.$shlibext"
21781 if test -f "$dir/lib$name.la"; then
21782 found_la="$dir/lib$name.la"
21783 fi
21784 else
21785 if test -f "$dir/lib$name.$libext"; then
21786 found_dir="$dir"
21787 found_a="$dir/lib$name.$libext"
21788 if test -f "$dir/lib$name.la"; then
21789 found_la="$dir/lib$name.la"
21790 fi
21791 fi
21792 fi
21793 ;;
21794 esac
21795 if test "X$found_dir" != "X"; then
21796 break
21797 fi
21798 done
21799 fi
21800 if test "X$found_dir" != "X"; then
21801 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21802 if test "X$found_so" != "X"; then
21803 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21804 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21805 else
21806 haveit=
21807 for x in $ltrpathdirs; do
21808 if test "X$x" = "X$found_dir"; then
21809 haveit=yes
21810 break
21811 fi
21812 done
21813 if test -z "$haveit"; then
21814 ltrpathdirs="$ltrpathdirs $found_dir"
21815 fi
21816 if test "$hardcode_direct" = yes; then
21817 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21818 else
21819 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21820 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21821 haveit=
21822 for x in $rpathdirs; do
21823 if test "X$x" = "X$found_dir"; then
21824 haveit=yes
21825 break
21826 fi
21827 done
21828 if test -z "$haveit"; then
21829 rpathdirs="$rpathdirs $found_dir"
21830 fi
21831 else
21832 haveit=
21833 for x in $LDFLAGS $LIBICONV; do
21834
21835 acl_save_prefix="$prefix"
21836 prefix="$acl_final_prefix"
21837 acl_save_exec_prefix="$exec_prefix"
21838 exec_prefix="$acl_final_exec_prefix"
21839 eval x=\"$x\"
21840 exec_prefix="$acl_save_exec_prefix"
21841 prefix="$acl_save_prefix"
21842
21843 if test "X$x" = "X-L$found_dir"; then
21844 haveit=yes
21845 break
21846 fi
21847 done
21848 if test -z "$haveit"; then
21849 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21850 fi
21851 if test "$hardcode_minus_L" != no; then
21852 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21853 else
21854 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21855 fi
21856 fi
21857 fi
21858 fi
21859 else
21860 if test "X$found_a" != "X"; then
21861 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21862 else
21863 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21864 fi
21865 fi
21866 additional_includedir=
21867 case "$found_dir" in
21868 */lib | */lib/)
21869 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21870 additional_includedir="$basedir/include"
21871 ;;
21872 esac
21873 if test "X$additional_includedir" != "X"; then
21874 if test "X$additional_includedir" != "X/usr/include"; then
21875 haveit=
21876 if test "X$additional_includedir" = "X/usr/local/include"; then
21877 if test -n "$GCC"; then
21878 case $host_os in
21879 linux*) haveit=yes;;
21880 esac
21881 fi
21882 fi
21883 if test -z "$haveit"; then
21884 for x in $CPPFLAGS $INCICONV; do
21885
21886 acl_save_prefix="$prefix"
21887 prefix="$acl_final_prefix"
21888 acl_save_exec_prefix="$exec_prefix"
21889 exec_prefix="$acl_final_exec_prefix"
21890 eval x=\"$x\"
21891 exec_prefix="$acl_save_exec_prefix"
21892 prefix="$acl_save_prefix"
21893
21894 if test "X$x" = "X-I$additional_includedir"; then
21895 haveit=yes
21896 break
21897 fi
21898 done
21899 if test -z "$haveit"; then
21900 if test -d "$additional_includedir"; then
21901 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21902 fi
21903 fi
21904 fi
21905 fi
21906 fi
21907 if test -n "$found_la"; then
21908 save_libdir="$libdir"
21909 case "$found_la" in
21910 */* | *\\*) . "$found_la" ;;
21911 *) . "./$found_la" ;;
21912 esac
21913 libdir="$save_libdir"
21914 for dep in $dependency_libs; do
21915 case "$dep" in
21916 -L*)
21917 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21918 if test "X$additional_libdir" != "X/usr/lib"; then
21919 haveit=
21920 if test "X$additional_libdir" = "X/usr/local/lib"; then
21921 if test -n "$GCC"; then
21922 case $host_os in
21923 linux*) haveit=yes;;
21924 esac
21925 fi
21926 fi
21927 if test -z "$haveit"; then
21928 haveit=
21929 for x in $LDFLAGS $LIBICONV; do
21930
21931 acl_save_prefix="$prefix"
21932 prefix="$acl_final_prefix"
21933 acl_save_exec_prefix="$exec_prefix"
21934 exec_prefix="$acl_final_exec_prefix"
21935 eval x=\"$x\"
21936 exec_prefix="$acl_save_exec_prefix"
21937 prefix="$acl_save_prefix"
21938
21939 if test "X$x" = "X-L$additional_libdir"; then
21940 haveit=yes
21941 break
21942 fi
21943 done
21944 if test -z "$haveit"; then
21945 if test -d "$additional_libdir"; then
21946 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21947 fi
21948 fi
21949 haveit=
21950 for x in $LDFLAGS $LTLIBICONV; do
21951
21952 acl_save_prefix="$prefix"
21953 prefix="$acl_final_prefix"
21954 acl_save_exec_prefix="$exec_prefix"
21955 exec_prefix="$acl_final_exec_prefix"
21956 eval x=\"$x\"
21957 exec_prefix="$acl_save_exec_prefix"
21958 prefix="$acl_save_prefix"
21959
21960 if test "X$x" = "X-L$additional_libdir"; then
21961 haveit=yes
21962 break
21963 fi
21964 done
21965 if test -z "$haveit"; then
21966 if test -d "$additional_libdir"; then
21967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21968 fi
21969 fi
21970 fi
21971 fi
21972 ;;
21973 -R*)
21974 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21975 if test "$enable_rpath" != no; then
21976 haveit=
21977 for x in $rpathdirs; do
21978 if test "X$x" = "X$dir"; then
21979 haveit=yes
21980 break
21981 fi
21982 done
21983 if test -z "$haveit"; then
21984 rpathdirs="$rpathdirs $dir"
21985 fi
21986 haveit=
21987 for x in $ltrpathdirs; do
21988 if test "X$x" = "X$dir"; then
21989 haveit=yes
21990 break
21991 fi
21992 done
21993 if test -z "$haveit"; then
21994 ltrpathdirs="$ltrpathdirs $dir"
21995 fi
21996 fi
21997 ;;
21998 -l*)
21999 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22000 ;;
22001 *.la)
22002 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22003 ;;
22004 *)
22005 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22006 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22007 ;;
22008 esac
22009 done
22010 fi
22011 else
22012 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22013 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22014 fi
22015 fi
22016 fi
22017 done
22018 done
22019 if test "X$rpathdirs" != "X"; then
22020 if test -n "$hardcode_libdir_separator"; then
22021 alldirs=
22022 for found_dir in $rpathdirs; do
22023 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22024 done
22025 acl_save_libdir="$libdir"
22026 libdir="$alldirs"
22027 eval flag=\"$hardcode_libdir_flag_spec\"
22028 libdir="$acl_save_libdir"
22029 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22030 else
22031 for found_dir in $rpathdirs; do
22032 acl_save_libdir="$libdir"
22033 libdir="$found_dir"
22034 eval flag=\"$hardcode_libdir_flag_spec\"
22035 libdir="$acl_save_libdir"
22036 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22037 done
22038 fi
22039 fi
22040 if test "X$ltrpathdirs" != "X"; then
22041 for found_dir in $ltrpathdirs; do
22042 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22043 done
22044 fi
22045
22046
22047
22048
22049
22050
22051
22052 am_save_CPPFLAGS="$CPPFLAGS"
22053
22054 for element in $INCICONV; do
22055 haveit=
22056 for x in $CPPFLAGS; do
22057
22058 acl_save_prefix="$prefix"
22059 prefix="$acl_final_prefix"
22060 acl_save_exec_prefix="$exec_prefix"
22061 exec_prefix="$acl_final_exec_prefix"
22062 eval x=\"$x\"
22063 exec_prefix="$acl_save_exec_prefix"
22064 prefix="$acl_save_prefix"
22065
22066 if test "X$x" = "X$element"; then
22067 haveit=yes
22068 break
22069 fi
22070 done
22071 if test -z "$haveit"; then
22072 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22073 fi
22074 done
22075
22076
22077 echo "$as_me:$LINENO: checking for iconv" >&5
22078 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22079 if test "${am_cv_func_iconv+set}" = set; then
22080 echo $ECHO_N "(cached) $ECHO_C" >&6
22081 else
22082
22083 am_cv_func_iconv="no, consider installing GNU libiconv"
22084 am_cv_lib_iconv=no
22085 if test x$gcc_no_link = xyes; then
22086 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22087 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22088 { (exit 1); exit 1; }; }
22089 fi
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h. */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 #include <stdlib.h>
22097 #include <iconv.h>
22098 int
22099 main ()
22100 {
22101 iconv_t cd = iconv_open("","");
22102 iconv(cd,NULL,NULL,NULL,NULL);
22103 iconv_close(cd);
22104 ;
22105 return 0;
22106 }
22107 _ACEOF
22108 rm -f conftest.$ac_objext conftest$ac_exeext
22109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22110 (eval $ac_link) 2>conftest.er1
22111 ac_status=$?
22112 grep -v '^ *+' conftest.er1 >conftest.err
22113 rm -f conftest.er1
22114 cat conftest.err >&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } &&
22117 { ac_try='test -z "$ac_c_werror_flag"
22118 || test ! -s conftest.err'
22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; } &&
22124 { ac_try='test -s conftest$ac_exeext'
22125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126 (eval $ac_try) 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22130 am_cv_func_iconv=yes
22131 else
22132 echo "$as_me: failed program was:" >&5
22133 sed 's/^/| /' conftest.$ac_ext >&5
22134
22135 fi
22136 rm -f conftest.err conftest.$ac_objext \
22137 conftest$ac_exeext conftest.$ac_ext
22138 if test "$am_cv_func_iconv" != yes; then
22139 am_save_LIBS="$LIBS"
22140 LIBS="$LIBS $LIBICONV"
22141 if test x$gcc_no_link = xyes; then
22142 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22144 { (exit 1); exit 1; }; }
22145 fi
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h. */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 #include <stdlib.h>
22153 #include <iconv.h>
22154 int
22155 main ()
22156 {
22157 iconv_t cd = iconv_open("","");
22158 iconv(cd,NULL,NULL,NULL,NULL);
22159 iconv_close(cd);
22160 ;
22161 return 0;
22162 }
22163 _ACEOF
22164 rm -f conftest.$ac_objext conftest$ac_exeext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22166 (eval $ac_link) 2>conftest.er1
22167 ac_status=$?
22168 grep -v '^ *+' conftest.er1 >conftest.err
22169 rm -f conftest.er1
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } &&
22173 { ac_try='test -z "$ac_c_werror_flag"
22174 || test ! -s conftest.err'
22175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176 (eval $ac_try) 2>&5
22177 ac_status=$?
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; } &&
22180 { ac_try='test -s conftest$ac_exeext'
22181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182 (eval $ac_try) 2>&5
22183 ac_status=$?
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); }; }; then
22186 am_cv_lib_iconv=yes
22187 am_cv_func_iconv=yes
22188 else
22189 echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22191
22192 fi
22193 rm -f conftest.err conftest.$ac_objext \
22194 conftest$ac_exeext conftest.$ac_ext
22195 LIBS="$am_save_LIBS"
22196 fi
22197
22198 fi
22199 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22200 echo "${ECHO_T}$am_cv_func_iconv" >&6
22201 if test "$am_cv_func_iconv" = yes; then
22202
22203 cat >>confdefs.h <<\_ACEOF
22204 #define HAVE_ICONV 1
22205 _ACEOF
22206
22207 fi
22208 if test "$am_cv_lib_iconv" = yes; then
22209 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22210 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22211 echo "$as_me:$LINENO: result: $LIBICONV" >&5
22212 echo "${ECHO_T}$LIBICONV" >&6
22213 else
22214 CPPFLAGS="$am_save_CPPFLAGS"
22215 LIBICONV=
22216 LTLIBICONV=
22217 fi
22218
22219
22220
22221 if test "$am_cv_func_iconv" = yes; then
22222 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22223 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22224 if test "${am_cv_proto_iconv+set}" = set; then
22225 echo $ECHO_N "(cached) $ECHO_C" >&6
22226 else
22227
22228 cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h. */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22234
22235 #include <stdlib.h>
22236 #include <iconv.h>
22237 extern
22238 #ifdef __cplusplus
22239 "C"
22240 #endif
22241 #if defined(__STDC__) || defined(__cplusplus)
22242 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22243 #else
22244 size_t iconv();
22245 #endif
22246
22247 int
22248 main ()
22249 {
22250
22251 ;
22252 return 0;
22253 }
22254 _ACEOF
22255 rm -f conftest.$ac_objext
22256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22257 (eval $ac_compile) 2>conftest.er1
22258 ac_status=$?
22259 grep -v '^ *+' conftest.er1 >conftest.err
22260 rm -f conftest.er1
22261 cat conftest.err >&5
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); } &&
22264 { ac_try='test -z "$ac_c_werror_flag"
22265 || test ! -s conftest.err'
22266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22267 (eval $ac_try) 2>&5
22268 ac_status=$?
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); }; } &&
22271 { ac_try='test -s conftest.$ac_objext'
22272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22273 (eval $ac_try) 2>&5
22274 ac_status=$?
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; }; then
22277 am_cv_proto_iconv_arg1=""
22278 else
22279 echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282 am_cv_proto_iconv_arg1="const"
22283 fi
22284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22285 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);"
22286 fi
22287
22288 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22289 echo "$as_me:$LINENO: result: ${ac_t:-
22290 }$am_cv_proto_iconv" >&5
22291 echo "${ECHO_T}${ac_t:-
22292 }$am_cv_proto_iconv" >&6
22293
22294 cat >>confdefs.h <<_ACEOF
22295 #define ICONV_CONST $am_cv_proto_iconv_arg1
22296 _ACEOF
22297
22298 fi
22299
22300
22301 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22302 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22303 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22304 echo $ECHO_N "(cached) $ECHO_C" >&6
22305 else
22306 if test x$gcc_no_link = xyes; then
22307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22309 { (exit 1); exit 1; }; }
22310 fi
22311 cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h. */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22317 #include <locale.h>
22318 int
22319 main ()
22320 {
22321 return LC_MESSAGES
22322 ;
22323 return 0;
22324 }
22325 _ACEOF
22326 rm -f conftest.$ac_objext conftest$ac_exeext
22327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22328 (eval $ac_link) 2>conftest.er1
22329 ac_status=$?
22330 grep -v '^ *+' conftest.er1 >conftest.err
22331 rm -f conftest.er1
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } &&
22335 { ac_try='test -z "$ac_c_werror_flag"
22336 || test ! -s conftest.err'
22337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22338 (eval $ac_try) 2>&5
22339 ac_status=$?
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; } &&
22342 { ac_try='test -s conftest$ac_exeext'
22343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344 (eval $ac_try) 2>&5
22345 ac_status=$?
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; }; then
22348 am_cv_val_LC_MESSAGES=yes
22349 else
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22352
22353 am_cv_val_LC_MESSAGES=no
22354 fi
22355 rm -f conftest.err conftest.$ac_objext \
22356 conftest$ac_exeext conftest.$ac_ext
22357 fi
22358 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22359 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22360 if test $am_cv_val_LC_MESSAGES = yes; then
22361
22362 cat >>confdefs.h <<\_ACEOF
22363 #define HAVE_LC_MESSAGES 1
22364 _ACEOF
22365
22366 fi
22367
22368 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22369 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22370 if test "${ac_cv_struct_tm+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373 cat >conftest.$ac_ext <<_ACEOF
22374 /* confdefs.h. */
22375 _ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22379 #include <sys/types.h>
22380 #include <time.h>
22381
22382 int
22383 main ()
22384 {
22385 struct tm *tp; tp->tm_sec;
22386 ;
22387 return 0;
22388 }
22389 _ACEOF
22390 rm -f conftest.$ac_objext
22391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22392 (eval $ac_compile) 2>conftest.er1
22393 ac_status=$?
22394 grep -v '^ *+' conftest.er1 >conftest.err
22395 rm -f conftest.er1
22396 cat conftest.err >&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } &&
22399 { ac_try='test -z "$ac_c_werror_flag"
22400 || test ! -s conftest.err'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22403 ac_status=$?
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; } &&
22406 { ac_try='test -s conftest.$ac_objext'
22407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22408 (eval $ac_try) 2>&5
22409 ac_status=$?
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); }; }; then
22412 ac_cv_struct_tm=time.h
22413 else
22414 echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22416
22417 ac_cv_struct_tm=sys/time.h
22418 fi
22419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22420 fi
22421 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22422 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22423 if test $ac_cv_struct_tm = sys/time.h; then
22424
22425 cat >>confdefs.h <<\_ACEOF
22426 #define TM_IN_SYS_TIME 1
22427 _ACEOF
22428
22429 fi
22430
22431 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22432 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22433 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22435 else
22436 cat >conftest.$ac_ext <<_ACEOF
22437 /* confdefs.h. */
22438 _ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22442 #include <sys/types.h>
22443 #include <$ac_cv_struct_tm>
22444
22445
22446 int
22447 main ()
22448 {
22449 static struct tm ac_aggr;
22450 if (ac_aggr.tm_zone)
22451 return 0;
22452 ;
22453 return 0;
22454 }
22455 _ACEOF
22456 rm -f conftest.$ac_objext
22457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22458 (eval $ac_compile) 2>conftest.er1
22459 ac_status=$?
22460 grep -v '^ *+' conftest.er1 >conftest.err
22461 rm -f conftest.er1
22462 cat conftest.err >&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); } &&
22465 { ac_try='test -z "$ac_c_werror_flag"
22466 || test ! -s conftest.err'
22467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22468 (eval $ac_try) 2>&5
22469 ac_status=$?
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); }; } &&
22472 { ac_try='test -s conftest.$ac_objext'
22473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22474 (eval $ac_try) 2>&5
22475 ac_status=$?
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); }; }; then
22478 ac_cv_member_struct_tm_tm_zone=yes
22479 else
22480 echo "$as_me: failed program was:" >&5
22481 sed 's/^/| /' conftest.$ac_ext >&5
22482
22483 cat >conftest.$ac_ext <<_ACEOF
22484 /* confdefs.h. */
22485 _ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h. */
22489 #include <sys/types.h>
22490 #include <$ac_cv_struct_tm>
22491
22492
22493 int
22494 main ()
22495 {
22496 static struct tm ac_aggr;
22497 if (sizeof ac_aggr.tm_zone)
22498 return 0;
22499 ;
22500 return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22505 (eval $ac_compile) 2>conftest.er1
22506 ac_status=$?
22507 grep -v '^ *+' conftest.er1 >conftest.err
22508 rm -f conftest.er1
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } &&
22512 { ac_try='test -z "$ac_c_werror_flag"
22513 || test ! -s conftest.err'
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22516 ac_status=$?
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; } &&
22519 { ac_try='test -s conftest.$ac_objext'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22522 ac_status=$?
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22525 ac_cv_member_struct_tm_tm_zone=yes
22526 else
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530 ac_cv_member_struct_tm_tm_zone=no
22531 fi
22532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22533 fi
22534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22535 fi
22536 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22537 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22538 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22539
22540 cat >>confdefs.h <<_ACEOF
22541 #define HAVE_STRUCT_TM_TM_ZONE 1
22542 _ACEOF
22543
22544
22545 fi
22546
22547 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22548
22549 cat >>confdefs.h <<\_ACEOF
22550 #define HAVE_TM_ZONE 1
22551 _ACEOF
22552
22553 else
22554 echo "$as_me:$LINENO: checking for tzname" >&5
22555 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22556 if test "${ac_cv_var_tzname+set}" = set; then
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22558 else
22559 if test x$gcc_no_link = xyes; then
22560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22562 { (exit 1); exit 1; }; }
22563 fi
22564 cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h. */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 #include <time.h>
22571 #ifndef tzname /* For SGI. */
22572 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22573 #endif
22574
22575 int
22576 main ()
22577 {
22578 atoi(*tzname);
22579 ;
22580 return 0;
22581 }
22582 _ACEOF
22583 rm -f conftest.$ac_objext conftest$ac_exeext
22584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22585 (eval $ac_link) 2>conftest.er1
22586 ac_status=$?
22587 grep -v '^ *+' conftest.er1 >conftest.err
22588 rm -f conftest.er1
22589 cat conftest.err >&5
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } &&
22592 { ac_try='test -z "$ac_c_werror_flag"
22593 || test ! -s conftest.err'
22594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595 (eval $ac_try) 2>&5
22596 ac_status=$?
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; } &&
22599 { ac_try='test -s conftest$ac_exeext'
22600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601 (eval $ac_try) 2>&5
22602 ac_status=$?
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; }; then
22605 ac_cv_var_tzname=yes
22606 else
22607 echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22609
22610 ac_cv_var_tzname=no
22611 fi
22612 rm -f conftest.err conftest.$ac_objext \
22613 conftest$ac_exeext conftest.$ac_ext
22614 fi
22615 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22616 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22617 if test $ac_cv_var_tzname = yes; then
22618
22619 cat >>confdefs.h <<\_ACEOF
22620 #define HAVE_TZNAME 1
22621 _ACEOF
22622
22623 fi
22624 fi
22625
22626
22627
22628 for ac_func in gethostbyname_r
22629 do
22630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22631 echo "$as_me:$LINENO: checking for $ac_func" >&5
22632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22633 if eval "test \"\${$as_ac_var+set}\" = set"; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22635 else
22636 if test x$gcc_no_link = xyes; then
22637 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22639 { (exit 1); exit 1; }; }
22640 fi
22641 cat >conftest.$ac_ext <<_ACEOF
22642 /* confdefs.h. */
22643 _ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22649 #define $ac_func innocuous_$ac_func
22650
22651 /* System header to define __stub macros and hopefully few prototypes,
22652 which can conflict with char $ac_func (); below.
22653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22654 <limits.h> exists even on freestanding compilers. */
22655
22656 #ifdef __STDC__
22657 # include <limits.h>
22658 #else
22659 # include <assert.h>
22660 #endif
22661
22662 #undef $ac_func
22663
22664 /* Override any gcc2 internal prototype to avoid an error. */
22665 #ifdef __cplusplus
22666 extern "C"
22667 {
22668 #endif
22669 /* We use char because int might match the return type of a gcc2
22670 builtin and then its argument prototype would still apply. */
22671 char $ac_func ();
22672 /* The GNU C library defines this for functions which it implements
22673 to always fail with ENOSYS. Some functions are actually named
22674 something starting with __ and the normal name is an alias. */
22675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22676 choke me
22677 #else
22678 char (*f) () = $ac_func;
22679 #endif
22680 #ifdef __cplusplus
22681 }
22682 #endif
22683
22684 int
22685 main ()
22686 {
22687 return f != $ac_func;
22688 ;
22689 return 0;
22690 }
22691 _ACEOF
22692 rm -f conftest.$ac_objext conftest$ac_exeext
22693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22694 (eval $ac_link) 2>conftest.er1
22695 ac_status=$?
22696 grep -v '^ *+' conftest.er1 >conftest.err
22697 rm -f conftest.er1
22698 cat conftest.err >&5
22699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); } &&
22701 { ac_try='test -z "$ac_c_werror_flag"
22702 || test ! -s conftest.err'
22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704 (eval $ac_try) 2>&5
22705 ac_status=$?
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; } &&
22708 { ac_try='test -s conftest$ac_exeext'
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22711 ac_status=$?
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; }; then
22714 eval "$as_ac_var=yes"
22715 else
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719 eval "$as_ac_var=no"
22720 fi
22721 rm -f conftest.err conftest.$ac_objext \
22722 conftest$ac_exeext conftest.$ac_ext
22723 fi
22724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22726 if test `eval echo '${'$as_ac_var'}'` = yes; then
22727 cat >>confdefs.h <<_ACEOF
22728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22729 _ACEOF
22730
22731
22732 cat >>confdefs.h <<\_ACEOF
22733 #define HAVE_GETHOSTBYNAME_R 1
22734 _ACEOF
22735
22736 # There are two different kinds of gethostbyname_r.
22737 # We look for the one that returns `int'.
22738 # Hopefully this check is robust enough.
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h. */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 #include <netdb.h>
22746
22747 _ACEOF
22748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22749 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22750
22751
22752 cat >>confdefs.h <<\_ACEOF
22753 #define GETHOSTBYNAME_R_RETURNS_INT 1
22754 _ACEOF
22755
22756 fi
22757 rm -f conftest*
22758
22759
22760 case " $GCINCS " in
22761 *" -D_REENTRANT "*) ;;
22762 *)
22763 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22764 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22765 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22766 echo $ECHO_N "(cached) $ECHO_C" >&6
22767 else
22768 ac_ext=cc
22769 ac_cpp='$CXXCPP $CPPFLAGS'
22770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22773
22774 cat >conftest.$ac_ext <<_ACEOF
22775 /* confdefs.h. */
22776 _ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22780 #include <netdb.h>
22781 int
22782 main ()
22783 {
22784 gethostbyname_r("", 0, 0);
22785 ;
22786 return 0;
22787 }
22788 _ACEOF
22789 rm -f conftest.$ac_objext
22790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22791 (eval $ac_compile) 2>conftest.er1
22792 ac_status=$?
22793 grep -v '^ *+' conftest.er1 >conftest.err
22794 rm -f conftest.er1
22795 cat conftest.err >&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } &&
22798 { ac_try='test -z "$ac_cxx_werror_flag"
22799 || test ! -s conftest.err'
22800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801 (eval $ac_try) 2>&5
22802 ac_status=$?
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); }; } &&
22805 { ac_try='test -s conftest.$ac_objext'
22806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }; then
22811 libjava_cv_gethostbyname_r_needs_reentrant=no
22812 else
22813 echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22815
22816 CPPFLAGS_SAVE="$CPPFLAGS"
22817 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22818 cat >conftest.$ac_ext <<_ACEOF
22819 /* confdefs.h. */
22820 _ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h. */
22824 #include <netdb.h>
22825 int
22826 main ()
22827 {
22828 gethostbyname_r("", 0, 0);
22829 ;
22830 return 0;
22831 }
22832 _ACEOF
22833 rm -f conftest.$ac_objext
22834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22835 (eval $ac_compile) 2>conftest.er1
22836 ac_status=$?
22837 grep -v '^ *+' conftest.er1 >conftest.err
22838 rm -f conftest.er1
22839 cat conftest.err >&5
22840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); } &&
22842 { ac_try='test -z "$ac_cxx_werror_flag"
22843 || test ! -s conftest.err'
22844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845 (eval $ac_try) 2>&5
22846 ac_status=$?
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; } &&
22849 { ac_try='test -s conftest.$ac_objext'
22850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22851 (eval $ac_try) 2>&5
22852 ac_status=$?
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); }; }; then
22855 libjava_cv_gethostbyname_r_needs_reentrant=yes
22856 else
22857 echo "$as_me: failed program was:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22859
22860 libjava_cv_gethostbyname_r_needs_reentrant=fail
22861 fi
22862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22863 CPPFLAGS="$CPPFLAGS_SAVE"
22864
22865 fi
22866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22867 ac_ext=c
22868 ac_cpp='$CPP $CPPFLAGS'
22869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22872
22873
22874 fi
22875 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22876 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22877 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22878
22879 cat >>confdefs.h <<\_ACEOF
22880 #define _REENTRANT 1
22881 _ACEOF
22882
22883 fi
22884 ;;
22885 esac
22886
22887 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22888 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22889 if test "${libjava_cv_struct_hostent_data+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h. */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898
22899 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22900 # define _REENTRANT 1
22901 #endif
22902 #include <netdb.h>
22903 int
22904 main ()
22905 {
22906 struct hostent_data data;
22907 ;
22908 return 0;
22909 }
22910 _ACEOF
22911 rm -f conftest.$ac_objext
22912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22913 (eval $ac_compile) 2>conftest.er1
22914 ac_status=$?
22915 grep -v '^ *+' conftest.er1 >conftest.err
22916 rm -f conftest.er1
22917 cat conftest.err >&5
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } &&
22920 { ac_try='test -z "$ac_c_werror_flag"
22921 || test ! -s conftest.err'
22922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22923 (eval $ac_try) 2>&5
22924 ac_status=$?
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); }; } &&
22927 { ac_try='test -s conftest.$ac_objext'
22928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929 (eval $ac_try) 2>&5
22930 ac_status=$?
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; }; then
22933 libjava_cv_struct_hostent_data=yes
22934 else
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22937
22938 libjava_cv_struct_hostent_data=no
22939 fi
22940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22941 fi
22942 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
22943 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
22944 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22945
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_STRUCT_HOSTENT_DATA 1
22948 _ACEOF
22949
22950 fi
22951
22952 fi
22953 done
22954
22955
22956 # FIXME: libjava source code expects to find a prototype for
22957 # gethostbyaddr_r in netdb.h. The outer check ensures that
22958 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22959 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22960 # linkage check is enough, yet C++ code requires proper prototypes.)
22961 cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h. */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 #include <netdb.h>
22968
22969 _ACEOF
22970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22971 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
22972
22973
22974 for ac_func in gethostbyaddr_r
22975 do
22976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22977 echo "$as_me:$LINENO: checking for $ac_func" >&5
22978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22979 if eval "test \"\${$as_ac_var+set}\" = set"; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22981 else
22982 if test x$gcc_no_link = xyes; then
22983 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22984 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22985 { (exit 1); exit 1; }; }
22986 fi
22987 cat >conftest.$ac_ext <<_ACEOF
22988 /* confdefs.h. */
22989 _ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h. */
22993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22995 #define $ac_func innocuous_$ac_func
22996
22997 /* System header to define __stub macros and hopefully few prototypes,
22998 which can conflict with char $ac_func (); below.
22999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23000 <limits.h> exists even on freestanding compilers. */
23001
23002 #ifdef __STDC__
23003 # include <limits.h>
23004 #else
23005 # include <assert.h>
23006 #endif
23007
23008 #undef $ac_func
23009
23010 /* Override any gcc2 internal prototype to avoid an error. */
23011 #ifdef __cplusplus
23012 extern "C"
23013 {
23014 #endif
23015 /* We use char because int might match the return type of a gcc2
23016 builtin and then its argument prototype would still apply. */
23017 char $ac_func ();
23018 /* The GNU C library defines this for functions which it implements
23019 to always fail with ENOSYS. Some functions are actually named
23020 something starting with __ and the normal name is an alias. */
23021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23022 choke me
23023 #else
23024 char (*f) () = $ac_func;
23025 #endif
23026 #ifdef __cplusplus
23027 }
23028 #endif
23029
23030 int
23031 main ()
23032 {
23033 return f != $ac_func;
23034 ;
23035 return 0;
23036 }
23037 _ACEOF
23038 rm -f conftest.$ac_objext conftest$ac_exeext
23039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23040 (eval $ac_link) 2>conftest.er1
23041 ac_status=$?
23042 grep -v '^ *+' conftest.er1 >conftest.err
23043 rm -f conftest.er1
23044 cat conftest.err >&5
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } &&
23047 { ac_try='test -z "$ac_c_werror_flag"
23048 || test ! -s conftest.err'
23049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050 (eval $ac_try) 2>&5
23051 ac_status=$?
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; } &&
23054 { ac_try='test -s conftest$ac_exeext'
23055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056 (eval $ac_try) 2>&5
23057 ac_status=$?
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; }; then
23060 eval "$as_ac_var=yes"
23061 else
23062 echo "$as_me: failed program was:" >&5
23063 sed 's/^/| /' conftest.$ac_ext >&5
23064
23065 eval "$as_ac_var=no"
23066 fi
23067 rm -f conftest.err conftest.$ac_objext \
23068 conftest$ac_exeext conftest.$ac_ext
23069 fi
23070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23072 if test `eval echo '${'$as_ac_var'}'` = yes; then
23073 cat >>confdefs.h <<_ACEOF
23074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23075 _ACEOF
23076
23077
23078 cat >>confdefs.h <<\_ACEOF
23079 #define HAVE_GETHOSTBYADDR_R 1
23080 _ACEOF
23081
23082 # There are two different kinds of gethostbyaddr_r.
23083 # We look for the one that returns `int'.
23084 # Hopefully this check is robust enough.
23085 cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h. */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 #include <netdb.h>
23092
23093 _ACEOF
23094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23095 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23096
23097
23098 cat >>confdefs.h <<\_ACEOF
23099 #define GETHOSTBYADDR_R_RETURNS_INT 1
23100 _ACEOF
23101
23102 fi
23103 rm -f conftest*
23104
23105 fi
23106 done
23107
23108 fi
23109 rm -f conftest*
23110
23111
23112
23113 for ac_func in gethostname
23114 do
23115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23116 echo "$as_me:$LINENO: checking for $ac_func" >&5
23117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23118 if eval "test \"\${$as_ac_var+set}\" = set"; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 else
23121 if test x$gcc_no_link = xyes; then
23122 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23123 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23124 { (exit 1); exit 1; }; }
23125 fi
23126 cat >conftest.$ac_ext <<_ACEOF
23127 /* confdefs.h. */
23128 _ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23134 #define $ac_func innocuous_$ac_func
23135
23136 /* System header to define __stub macros and hopefully few prototypes,
23137 which can conflict with char $ac_func (); below.
23138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23139 <limits.h> exists even on freestanding compilers. */
23140
23141 #ifdef __STDC__
23142 # include <limits.h>
23143 #else
23144 # include <assert.h>
23145 #endif
23146
23147 #undef $ac_func
23148
23149 /* Override any gcc2 internal prototype to avoid an error. */
23150 #ifdef __cplusplus
23151 extern "C"
23152 {
23153 #endif
23154 /* We use char because int might match the return type of a gcc2
23155 builtin and then its argument prototype would still apply. */
23156 char $ac_func ();
23157 /* The GNU C library defines this for functions which it implements
23158 to always fail with ENOSYS. Some functions are actually named
23159 something starting with __ and the normal name is an alias. */
23160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23161 choke me
23162 #else
23163 char (*f) () = $ac_func;
23164 #endif
23165 #ifdef __cplusplus
23166 }
23167 #endif
23168
23169 int
23170 main ()
23171 {
23172 return f != $ac_func;
23173 ;
23174 return 0;
23175 }
23176 _ACEOF
23177 rm -f conftest.$ac_objext conftest$ac_exeext
23178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23179 (eval $ac_link) 2>conftest.er1
23180 ac_status=$?
23181 grep -v '^ *+' conftest.er1 >conftest.err
23182 rm -f conftest.er1
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
23186 { ac_try='test -z "$ac_c_werror_flag"
23187 || test ! -s conftest.err'
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; } &&
23193 { ac_try='test -s conftest$ac_exeext'
23194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195 (eval $ac_try) 2>&5
23196 ac_status=$?
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }; then
23199 eval "$as_ac_var=yes"
23200 else
23201 echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23203
23204 eval "$as_ac_var=no"
23205 fi
23206 rm -f conftest.err conftest.$ac_objext \
23207 conftest$ac_exeext conftest.$ac_ext
23208 fi
23209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23211 if test `eval echo '${'$as_ac_var'}'` = yes; then
23212 cat >>confdefs.h <<_ACEOF
23213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23214 _ACEOF
23215
23216
23217 cat >>confdefs.h <<\_ACEOF
23218 #define HAVE_GETHOSTNAME 1
23219 _ACEOF
23220
23221 cat >conftest.$ac_ext <<_ACEOF
23222 /* confdefs.h. */
23223 _ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h. */
23227 #include <unistd.h>
23228
23229 _ACEOF
23230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23231 $EGREP "gethostname" >/dev/null 2>&1; then
23232
23233
23234 cat >>confdefs.h <<\_ACEOF
23235 #define HAVE_GETHOSTNAME_DECL 1
23236 _ACEOF
23237
23238 fi
23239 rm -f conftest*
23240
23241 fi
23242 done
23243
23244
23245
23246 for ac_func in usleep
23247 do
23248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23249 echo "$as_me:$LINENO: checking for $ac_func" >&5
23250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23251 if eval "test \"\${$as_ac_var+set}\" = set"; then
23252 echo $ECHO_N "(cached) $ECHO_C" >&6
23253 else
23254 if test x$gcc_no_link = xyes; then
23255 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23256 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23257 { (exit 1); exit 1; }; }
23258 fi
23259 cat >conftest.$ac_ext <<_ACEOF
23260 /* confdefs.h. */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h. */
23265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23267 #define $ac_func innocuous_$ac_func
23268
23269 /* System header to define __stub macros and hopefully few prototypes,
23270 which can conflict with char $ac_func (); below.
23271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23272 <limits.h> exists even on freestanding compilers. */
23273
23274 #ifdef __STDC__
23275 # include <limits.h>
23276 #else
23277 # include <assert.h>
23278 #endif
23279
23280 #undef $ac_func
23281
23282 /* Override any gcc2 internal prototype to avoid an error. */
23283 #ifdef __cplusplus
23284 extern "C"
23285 {
23286 #endif
23287 /* We use char because int might match the return type of a gcc2
23288 builtin and then its argument prototype would still apply. */
23289 char $ac_func ();
23290 /* The GNU C library defines this for functions which it implements
23291 to always fail with ENOSYS. Some functions are actually named
23292 something starting with __ and the normal name is an alias. */
23293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23294 choke me
23295 #else
23296 char (*f) () = $ac_func;
23297 #endif
23298 #ifdef __cplusplus
23299 }
23300 #endif
23301
23302 int
23303 main ()
23304 {
23305 return f != $ac_func;
23306 ;
23307 return 0;
23308 }
23309 _ACEOF
23310 rm -f conftest.$ac_objext conftest$ac_exeext
23311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23312 (eval $ac_link) 2>conftest.er1
23313 ac_status=$?
23314 grep -v '^ *+' conftest.er1 >conftest.err
23315 rm -f conftest.er1
23316 cat conftest.err >&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); } &&
23319 { ac_try='test -z "$ac_c_werror_flag"
23320 || test ! -s conftest.err'
23321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322 (eval $ac_try) 2>&5
23323 ac_status=$?
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); }; } &&
23326 { ac_try='test -s conftest$ac_exeext'
23327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23328 (eval $ac_try) 2>&5
23329 ac_status=$?
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); }; }; then
23332 eval "$as_ac_var=yes"
23333 else
23334 echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23336
23337 eval "$as_ac_var=no"
23338 fi
23339 rm -f conftest.err conftest.$ac_objext \
23340 conftest$ac_exeext conftest.$ac_ext
23341 fi
23342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23344 if test `eval echo '${'$as_ac_var'}'` = yes; then
23345 cat >>confdefs.h <<_ACEOF
23346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23347 _ACEOF
23348
23349 cat >conftest.$ac_ext <<_ACEOF
23350 /* confdefs.h. */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23355 #include <unistd.h>
23356
23357 _ACEOF
23358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23359 $EGREP "usleep" >/dev/null 2>&1; then
23360
23361
23362 cat >>confdefs.h <<\_ACEOF
23363 #define HAVE_USLEEP_DECL 1
23364 _ACEOF
23365
23366 fi
23367 rm -f conftest*
23368
23369 fi
23370 done
23371
23372
23373 # Look for these functions in the thread library, but only bother
23374 # if using POSIX threads.
23375 if test "$THREADS" = posix; then
23376 save_LIBS="$LIBS"
23377 LIBS="$LIBS $THREADLIBS"
23378
23379 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
23380 # Solaris 7 the name librt is preferred.
23381
23382 for ac_func in sched_yield
23383 do
23384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23385 echo "$as_me:$LINENO: checking for $ac_func" >&5
23386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23387 if eval "test \"\${$as_ac_var+set}\" = set"; then
23388 echo $ECHO_N "(cached) $ECHO_C" >&6
23389 else
23390 if test x$gcc_no_link = xyes; then
23391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23393 { (exit 1); exit 1; }; }
23394 fi
23395 cat >conftest.$ac_ext <<_ACEOF
23396 /* confdefs.h. */
23397 _ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h. */
23401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23403 #define $ac_func innocuous_$ac_func
23404
23405 /* System header to define __stub macros and hopefully few prototypes,
23406 which can conflict with char $ac_func (); below.
23407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23408 <limits.h> exists even on freestanding compilers. */
23409
23410 #ifdef __STDC__
23411 # include <limits.h>
23412 #else
23413 # include <assert.h>
23414 #endif
23415
23416 #undef $ac_func
23417
23418 /* Override any gcc2 internal prototype to avoid an error. */
23419 #ifdef __cplusplus
23420 extern "C"
23421 {
23422 #endif
23423 /* We use char because int might match the return type of a gcc2
23424 builtin and then its argument prototype would still apply. */
23425 char $ac_func ();
23426 /* The GNU C library defines this for functions which it implements
23427 to always fail with ENOSYS. Some functions are actually named
23428 something starting with __ and the normal name is an alias. */
23429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23430 choke me
23431 #else
23432 char (*f) () = $ac_func;
23433 #endif
23434 #ifdef __cplusplus
23435 }
23436 #endif
23437
23438 int
23439 main ()
23440 {
23441 return f != $ac_func;
23442 ;
23443 return 0;
23444 }
23445 _ACEOF
23446 rm -f conftest.$ac_objext conftest$ac_exeext
23447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23448 (eval $ac_link) 2>conftest.er1
23449 ac_status=$?
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } &&
23455 { ac_try='test -z "$ac_c_werror_flag"
23456 || test ! -s conftest.err'
23457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23459 ac_status=$?
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; } &&
23462 { ac_try='test -s conftest$ac_exeext'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; }; then
23468 eval "$as_ac_var=yes"
23469 else
23470 echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23472
23473 eval "$as_ac_var=no"
23474 fi
23475 rm -f conftest.err conftest.$ac_objext \
23476 conftest$ac_exeext conftest.$ac_ext
23477 fi
23478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23480 if test `eval echo '${'$as_ac_var'}'` = yes; then
23481 cat >>confdefs.h <<_ACEOF
23482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23483 _ACEOF
23484
23485 else
23486
23487 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23488 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23489 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23490 echo $ECHO_N "(cached) $ECHO_C" >&6
23491 else
23492 ac_check_lib_save_LIBS=$LIBS
23493 LIBS="-lrt $LIBS"
23494 if test x$gcc_no_link = xyes; then
23495 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23496 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23497 { (exit 1); exit 1; }; }
23498 fi
23499 cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h. */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505
23506 /* Override any gcc2 internal prototype to avoid an error. */
23507 #ifdef __cplusplus
23508 extern "C"
23509 #endif
23510 /* We use char because int might match the return type of a gcc2
23511 builtin and then its argument prototype would still apply. */
23512 char sched_yield ();
23513 int
23514 main ()
23515 {
23516 sched_yield ();
23517 ;
23518 return 0;
23519 }
23520 _ACEOF
23521 rm -f conftest.$ac_objext conftest$ac_exeext
23522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23523 (eval $ac_link) 2>conftest.er1
23524 ac_status=$?
23525 grep -v '^ *+' conftest.er1 >conftest.err
23526 rm -f conftest.er1
23527 cat conftest.err >&5
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); } &&
23530 { ac_try='test -z "$ac_c_werror_flag"
23531 || test ! -s conftest.err'
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
23534 ac_status=$?
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; } &&
23537 { ac_try='test -s conftest$ac_exeext'
23538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23539 (eval $ac_try) 2>&5
23540 ac_status=$?
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); }; }; then
23543 ac_cv_lib_rt_sched_yield=yes
23544 else
23545 echo "$as_me: failed program was:" >&5
23546 sed 's/^/| /' conftest.$ac_ext >&5
23547
23548 ac_cv_lib_rt_sched_yield=no
23549 fi
23550 rm -f conftest.err conftest.$ac_objext \
23551 conftest$ac_exeext conftest.$ac_ext
23552 LIBS=$ac_check_lib_save_LIBS
23553 fi
23554 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23555 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23556 if test $ac_cv_lib_rt_sched_yield = yes; then
23557
23558 cat >>confdefs.h <<\_ACEOF
23559 #define HAVE_SCHED_YIELD 1
23560 _ACEOF
23561
23562 THREADLIBS="$THREADLIBS -lrt"
23563 THREADSPEC="$THREADSPEC -lrt"
23564 else
23565
23566 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23567 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23568 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23569 echo $ECHO_N "(cached) $ECHO_C" >&6
23570 else
23571 ac_check_lib_save_LIBS=$LIBS
23572 LIBS="-lposix4 $LIBS"
23573 if test x$gcc_no_link = xyes; then
23574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23576 { (exit 1); exit 1; }; }
23577 fi
23578 cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h. */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584
23585 /* Override any gcc2 internal prototype to avoid an error. */
23586 #ifdef __cplusplus
23587 extern "C"
23588 #endif
23589 /* We use char because int might match the return type of a gcc2
23590 builtin and then its argument prototype would still apply. */
23591 char sched_yield ();
23592 int
23593 main ()
23594 {
23595 sched_yield ();
23596 ;
23597 return 0;
23598 }
23599 _ACEOF
23600 rm -f conftest.$ac_objext conftest$ac_exeext
23601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23602 (eval $ac_link) 2>conftest.er1
23603 ac_status=$?
23604 grep -v '^ *+' conftest.er1 >conftest.err
23605 rm -f conftest.er1
23606 cat conftest.err >&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } &&
23609 { ac_try='test -z "$ac_c_werror_flag"
23610 || test ! -s conftest.err'
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23613 ac_status=$?
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; } &&
23616 { ac_try='test -s conftest$ac_exeext'
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }; then
23622 ac_cv_lib_posix4_sched_yield=yes
23623 else
23624 echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23626
23627 ac_cv_lib_posix4_sched_yield=no
23628 fi
23629 rm -f conftest.err conftest.$ac_objext \
23630 conftest$ac_exeext conftest.$ac_ext
23631 LIBS=$ac_check_lib_save_LIBS
23632 fi
23633 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23634 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23635 if test $ac_cv_lib_posix4_sched_yield = yes; then
23636
23637 cat >>confdefs.h <<\_ACEOF
23638 #define HAVE_SCHED_YIELD 1
23639 _ACEOF
23640
23641 THREADLIBS="$THREADLIBS -lposix4"
23642 THREADSPEC="$THREADSPEC -lposix4"
23643 fi
23644
23645 fi
23646
23647 fi
23648 done
23649
23650
23651 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23652 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23653 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23654 echo $ECHO_N "(cached) $ECHO_C" >&6
23655 else
23656 ac_check_lib_save_LIBS=$LIBS
23657 LIBS="-lrt $LIBS"
23658 if test x$gcc_no_link = xyes; then
23659 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23660 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23661 { (exit 1); exit 1; }; }
23662 fi
23663 cat >conftest.$ac_ext <<_ACEOF
23664 /* confdefs.h. */
23665 _ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h. */
23669
23670 /* Override any gcc2 internal prototype to avoid an error. */
23671 #ifdef __cplusplus
23672 extern "C"
23673 #endif
23674 /* We use char because int might match the return type of a gcc2
23675 builtin and then its argument prototype would still apply. */
23676 char clock_gettime ();
23677 int
23678 main ()
23679 {
23680 clock_gettime ();
23681 ;
23682 return 0;
23683 }
23684 _ACEOF
23685 rm -f conftest.$ac_objext conftest$ac_exeext
23686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23687 (eval $ac_link) 2>conftest.er1
23688 ac_status=$?
23689 grep -v '^ *+' conftest.er1 >conftest.err
23690 rm -f conftest.er1
23691 cat conftest.err >&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); } &&
23694 { ac_try='test -z "$ac_c_werror_flag"
23695 || test ! -s conftest.err'
23696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23697 (eval $ac_try) 2>&5
23698 ac_status=$?
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); }; } &&
23701 { ac_try='test -s conftest$ac_exeext'
23702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23703 (eval $ac_try) 2>&5
23704 ac_status=$?
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); }; }; then
23707 ac_cv_lib_rt_clock_gettime=yes
23708 else
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23711
23712 ac_cv_lib_rt_clock_gettime=no
23713 fi
23714 rm -f conftest.err conftest.$ac_objext \
23715 conftest$ac_exeext conftest.$ac_ext
23716 LIBS=$ac_check_lib_save_LIBS
23717 fi
23718 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23719 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23720 if test $ac_cv_lib_rt_clock_gettime = yes; then
23721
23722
23723 cat >>confdefs.h <<\_ACEOF
23724 #define HAVE_CLOCK_GETTIME 1
23725 _ACEOF
23726
23727 case "$THREADSPEC" in
23728 *-lrt*) ;;
23729 *)
23730 THREADSPEC="$THREADSPEC -lrt"
23731 THREADLIBS="$THREADLIBS -lrt"
23732 ;;
23733 esac
23734 fi
23735
23736
23737 LIBS="$save_LIBS"
23738
23739 # We can save a little space at runtime if the mutex has m_count
23740 # or __m_count. This is a nice hack for Linux.
23741 cat >conftest.$ac_ext <<_ACEOF
23742 /* confdefs.h. */
23743 _ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h. */
23747 #include <pthread.h>
23748 int
23749 main ()
23750 {
23751
23752 extern pthread_mutex_t *mutex; int q = mutex->m_count;
23753
23754 ;
23755 return 0;
23756 }
23757 _ACEOF
23758 rm -f conftest.$ac_objext
23759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23760 (eval $ac_compile) 2>conftest.er1
23761 ac_status=$?
23762 grep -v '^ *+' conftest.er1 >conftest.err
23763 rm -f conftest.er1
23764 cat conftest.err >&5
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } &&
23767 { ac_try='test -z "$ac_c_werror_flag"
23768 || test ! -s conftest.err'
23769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23770 (eval $ac_try) 2>&5
23771 ac_status=$?
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); }; } &&
23774 { ac_try='test -s conftest.$ac_objext'
23775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23776 (eval $ac_try) 2>&5
23777 ac_status=$?
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); }; }; then
23780
23781 cat >>confdefs.h <<\_ACEOF
23782 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23783 _ACEOF
23784
23785 else
23786 echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23788
23789
23790 cat >conftest.$ac_ext <<_ACEOF
23791 /* confdefs.h. */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 #include <pthread.h>
23797 int
23798 main ()
23799 {
23800
23801 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23802
23803 ;
23804 return 0;
23805 }
23806 _ACEOF
23807 rm -f conftest.$ac_objext
23808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23809 (eval $ac_compile) 2>conftest.er1
23810 ac_status=$?
23811 grep -v '^ *+' conftest.er1 >conftest.err
23812 rm -f conftest.er1
23813 cat conftest.err >&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } &&
23816 { ac_try='test -z "$ac_c_werror_flag"
23817 || test ! -s conftest.err'
23818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819 (eval $ac_try) 2>&5
23820 ac_status=$?
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); }; } &&
23823 { ac_try='test -s conftest.$ac_objext'
23824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825 (eval $ac_try) 2>&5
23826 ac_status=$?
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); }; }; then
23829
23830 cat >>confdefs.h <<\_ACEOF
23831 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23832 _ACEOF
23833
23834 else
23835 echo "$as_me: failed program was:" >&5
23836 sed 's/^/| /' conftest.$ac_ext >&5
23837
23838 fi
23839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23840 fi
23841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23842 fi
23843
23844 # We require a way to get the time.
23845 time_found=no
23846
23847
23848
23849 for ac_func in gettimeofday time ftime
23850 do
23851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23852 echo "$as_me:$LINENO: checking for $ac_func" >&5
23853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23854 if eval "test \"\${$as_ac_var+set}\" = set"; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23856 else
23857 if test x$gcc_no_link = xyes; then
23858 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23859 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23860 { (exit 1); exit 1; }; }
23861 fi
23862 cat >conftest.$ac_ext <<_ACEOF
23863 /* confdefs.h. */
23864 _ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h. */
23868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23870 #define $ac_func innocuous_$ac_func
23871
23872 /* System header to define __stub macros and hopefully few prototypes,
23873 which can conflict with char $ac_func (); below.
23874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23875 <limits.h> exists even on freestanding compilers. */
23876
23877 #ifdef __STDC__
23878 # include <limits.h>
23879 #else
23880 # include <assert.h>
23881 #endif
23882
23883 #undef $ac_func
23884
23885 /* Override any gcc2 internal prototype to avoid an error. */
23886 #ifdef __cplusplus
23887 extern "C"
23888 {
23889 #endif
23890 /* We use char because int might match the return type of a gcc2
23891 builtin and then its argument prototype would still apply. */
23892 char $ac_func ();
23893 /* The GNU C library defines this for functions which it implements
23894 to always fail with ENOSYS. Some functions are actually named
23895 something starting with __ and the normal name is an alias. */
23896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23897 choke me
23898 #else
23899 char (*f) () = $ac_func;
23900 #endif
23901 #ifdef __cplusplus
23902 }
23903 #endif
23904
23905 int
23906 main ()
23907 {
23908 return f != $ac_func;
23909 ;
23910 return 0;
23911 }
23912 _ACEOF
23913 rm -f conftest.$ac_objext conftest$ac_exeext
23914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23915 (eval $ac_link) 2>conftest.er1
23916 ac_status=$?
23917 grep -v '^ *+' conftest.er1 >conftest.err
23918 rm -f conftest.er1
23919 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } &&
23922 { ac_try='test -z "$ac_c_werror_flag"
23923 || test ! -s conftest.err'
23924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925 (eval $ac_try) 2>&5
23926 ac_status=$?
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); }; } &&
23929 { ac_try='test -s conftest$ac_exeext'
23930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931 (eval $ac_try) 2>&5
23932 ac_status=$?
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); }; }; then
23935 eval "$as_ac_var=yes"
23936 else
23937 echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23939
23940 eval "$as_ac_var=no"
23941 fi
23942 rm -f conftest.err conftest.$ac_objext \
23943 conftest$ac_exeext conftest.$ac_ext
23944 fi
23945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23947 if test `eval echo '${'$as_ac_var'}'` = yes; then
23948 cat >>confdefs.h <<_ACEOF
23949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23950 _ACEOF
23951 time_found=yes
23952 fi
23953 done
23954
23955 if test "$time_found" = no; then
23956 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
23957 echo "$as_me: error: no function found to get the time" >&2;}
23958 { (exit 1); exit 1; }; }
23959 fi
23960
23961
23962 for ac_func in memmove
23963 do
23964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23965 echo "$as_me:$LINENO: checking for $ac_func" >&5
23966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23967 if eval "test \"\${$as_ac_var+set}\" = set"; then
23968 echo $ECHO_N "(cached) $ECHO_C" >&6
23969 else
23970 if test x$gcc_no_link = xyes; then
23971 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23972 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23973 { (exit 1); exit 1; }; }
23974 fi
23975 cat >conftest.$ac_ext <<_ACEOF
23976 /* confdefs.h. */
23977 _ACEOF
23978 cat confdefs.h >>conftest.$ac_ext
23979 cat >>conftest.$ac_ext <<_ACEOF
23980 /* end confdefs.h. */
23981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23983 #define $ac_func innocuous_$ac_func
23984
23985 /* System header to define __stub macros and hopefully few prototypes,
23986 which can conflict with char $ac_func (); below.
23987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23988 <limits.h> exists even on freestanding compilers. */
23989
23990 #ifdef __STDC__
23991 # include <limits.h>
23992 #else
23993 # include <assert.h>
23994 #endif
23995
23996 #undef $ac_func
23997
23998 /* Override any gcc2 internal prototype to avoid an error. */
23999 #ifdef __cplusplus
24000 extern "C"
24001 {
24002 #endif
24003 /* We use char because int might match the return type of a gcc2
24004 builtin and then its argument prototype would still apply. */
24005 char $ac_func ();
24006 /* The GNU C library defines this for functions which it implements
24007 to always fail with ENOSYS. Some functions are actually named
24008 something starting with __ and the normal name is an alias. */
24009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24010 choke me
24011 #else
24012 char (*f) () = $ac_func;
24013 #endif
24014 #ifdef __cplusplus
24015 }
24016 #endif
24017
24018 int
24019 main ()
24020 {
24021 return f != $ac_func;
24022 ;
24023 return 0;
24024 }
24025 _ACEOF
24026 rm -f conftest.$ac_objext conftest$ac_exeext
24027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24028 (eval $ac_link) 2>conftest.er1
24029 ac_status=$?
24030 grep -v '^ *+' conftest.er1 >conftest.err
24031 rm -f conftest.er1
24032 cat conftest.err >&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); } &&
24035 { ac_try='test -z "$ac_c_werror_flag"
24036 || test ! -s conftest.err'
24037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24038 (eval $ac_try) 2>&5
24039 ac_status=$?
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); }; } &&
24042 { ac_try='test -s conftest$ac_exeext'
24043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044 (eval $ac_try) 2>&5
24045 ac_status=$?
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); }; }; then
24048 eval "$as_ac_var=yes"
24049 else
24050 echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24052
24053 eval "$as_ac_var=no"
24054 fi
24055 rm -f conftest.err conftest.$ac_objext \
24056 conftest$ac_exeext conftest.$ac_ext
24057 fi
24058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24060 if test `eval echo '${'$as_ac_var'}'` = yes; then
24061 cat >>confdefs.h <<_ACEOF
24062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24063 _ACEOF
24064
24065 fi
24066 done
24067
24068
24069 # We require memcpy.
24070 memcpy_found=no
24071
24072 for ac_func in memcpy
24073 do
24074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24075 echo "$as_me:$LINENO: checking for $ac_func" >&5
24076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24077 if eval "test \"\${$as_ac_var+set}\" = set"; then
24078 echo $ECHO_N "(cached) $ECHO_C" >&6
24079 else
24080 if test x$gcc_no_link = xyes; then
24081 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24082 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24083 { (exit 1); exit 1; }; }
24084 fi
24085 cat >conftest.$ac_ext <<_ACEOF
24086 /* confdefs.h. */
24087 _ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24093 #define $ac_func innocuous_$ac_func
24094
24095 /* System header to define __stub macros and hopefully few prototypes,
24096 which can conflict with char $ac_func (); below.
24097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24098 <limits.h> exists even on freestanding compilers. */
24099
24100 #ifdef __STDC__
24101 # include <limits.h>
24102 #else
24103 # include <assert.h>
24104 #endif
24105
24106 #undef $ac_func
24107
24108 /* Override any gcc2 internal prototype to avoid an error. */
24109 #ifdef __cplusplus
24110 extern "C"
24111 {
24112 #endif
24113 /* We use char because int might match the return type of a gcc2
24114 builtin and then its argument prototype would still apply. */
24115 char $ac_func ();
24116 /* The GNU C library defines this for functions which it implements
24117 to always fail with ENOSYS. Some functions are actually named
24118 something starting with __ and the normal name is an alias. */
24119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24120 choke me
24121 #else
24122 char (*f) () = $ac_func;
24123 #endif
24124 #ifdef __cplusplus
24125 }
24126 #endif
24127
24128 int
24129 main ()
24130 {
24131 return f != $ac_func;
24132 ;
24133 return 0;
24134 }
24135 _ACEOF
24136 rm -f conftest.$ac_objext conftest$ac_exeext
24137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24138 (eval $ac_link) 2>conftest.er1
24139 ac_status=$?
24140 grep -v '^ *+' conftest.er1 >conftest.err
24141 rm -f conftest.er1
24142 cat conftest.err >&5
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); } &&
24145 { ac_try='test -z "$ac_c_werror_flag"
24146 || test ! -s conftest.err'
24147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148 (eval $ac_try) 2>&5
24149 ac_status=$?
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; } &&
24152 { ac_try='test -s conftest$ac_exeext'
24153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154 (eval $ac_try) 2>&5
24155 ac_status=$?
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; }; then
24158 eval "$as_ac_var=yes"
24159 else
24160 echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24162
24163 eval "$as_ac_var=no"
24164 fi
24165 rm -f conftest.err conftest.$ac_objext \
24166 conftest$ac_exeext conftest.$ac_ext
24167 fi
24168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24170 if test `eval echo '${'$as_ac_var'}'` = yes; then
24171 cat >>confdefs.h <<_ACEOF
24172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24173 _ACEOF
24174 memcpy_found=yes
24175 fi
24176 done
24177
24178 if test "$memcpy_found" = no; then
24179 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24180 echo "$as_me: error: memcpy is required" >&2;}
24181 { (exit 1); exit 1; }; }
24182 fi
24183 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24184 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24185 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24186 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24188 else
24189 ac_check_lib_save_LIBS=$LIBS
24190 LIBS="-ldl $LIBS"
24191 if test x$gcc_no_link = xyes; then
24192 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24193 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24194 { (exit 1); exit 1; }; }
24195 fi
24196 cat >conftest.$ac_ext <<_ACEOF
24197 /* confdefs.h. */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h. */
24202
24203 /* Override any gcc2 internal prototype to avoid an error. */
24204 #ifdef __cplusplus
24205 extern "C"
24206 #endif
24207 /* We use char because int might match the return type of a gcc2
24208 builtin and then its argument prototype would still apply. */
24209 char dlopen ();
24210 int
24211 main ()
24212 {
24213 dlopen ();
24214 ;
24215 return 0;
24216 }
24217 _ACEOF
24218 rm -f conftest.$ac_objext conftest$ac_exeext
24219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24220 (eval $ac_link) 2>conftest.er1
24221 ac_status=$?
24222 grep -v '^ *+' conftest.er1 >conftest.err
24223 rm -f conftest.er1
24224 cat conftest.err >&5
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); } &&
24227 { ac_try='test -z "$ac_c_werror_flag"
24228 || test ! -s conftest.err'
24229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24230 (eval $ac_try) 2>&5
24231 ac_status=$?
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); }; } &&
24234 { ac_try='test -s conftest$ac_exeext'
24235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); }; }; then
24240 ac_cv_lib_dl_dlopen=yes
24241 else
24242 echo "$as_me: failed program was:" >&5
24243 sed 's/^/| /' conftest.$ac_ext >&5
24244
24245 ac_cv_lib_dl_dlopen=no
24246 fi
24247 rm -f conftest.err conftest.$ac_objext \
24248 conftest$ac_exeext conftest.$ac_ext
24249 LIBS=$ac_check_lib_save_LIBS
24250 fi
24251 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24252 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24253 if test $ac_cv_lib_dl_dlopen = yes; then
24254
24255
24256 cat >>confdefs.h <<\_ACEOF
24257 #define HAVE_DLOPEN 1
24258 _ACEOF
24259
24260 else
24261
24262 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24263 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24264 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24265 echo $ECHO_N "(cached) $ECHO_C" >&6
24266 else
24267 ac_check_lib_save_LIBS=$LIBS
24268 LIBS="-ldld $LIBS"
24269 if test x$gcc_no_link = xyes; then
24270 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24271 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24272 { (exit 1); exit 1; }; }
24273 fi
24274 cat >conftest.$ac_ext <<_ACEOF
24275 /* confdefs.h. */
24276 _ACEOF
24277 cat confdefs.h >>conftest.$ac_ext
24278 cat >>conftest.$ac_ext <<_ACEOF
24279 /* end confdefs.h. */
24280
24281 /* Override any gcc2 internal prototype to avoid an error. */
24282 #ifdef __cplusplus
24283 extern "C"
24284 #endif
24285 /* We use char because int might match the return type of a gcc2
24286 builtin and then its argument prototype would still apply. */
24287 char dlopen ();
24288 int
24289 main ()
24290 {
24291 dlopen ();
24292 ;
24293 return 0;
24294 }
24295 _ACEOF
24296 rm -f conftest.$ac_objext conftest$ac_exeext
24297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24298 (eval $ac_link) 2>conftest.er1
24299 ac_status=$?
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } &&
24305 { ac_try='test -z "$ac_c_werror_flag"
24306 || test ! -s conftest.err'
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24309 ac_status=$?
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; } &&
24312 { ac_try='test -s conftest$ac_exeext'
24313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24314 (eval $ac_try) 2>&5
24315 ac_status=$?
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); }; }; then
24318 ac_cv_lib_dld_dlopen=yes
24319 else
24320 echo "$as_me: failed program was:" >&5
24321 sed 's/^/| /' conftest.$ac_ext >&5
24322
24323 ac_cv_lib_dld_dlopen=no
24324 fi
24325 rm -f conftest.err conftest.$ac_objext \
24326 conftest$ac_exeext conftest.$ac_ext
24327 LIBS=$ac_check_lib_save_LIBS
24328 fi
24329 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24330 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24331 if test $ac_cv_lib_dld_dlopen = yes; then
24332
24333
24334 cat >>confdefs.h <<\_ACEOF
24335 #define HAVE_DLOPEN 1
24336 _ACEOF
24337
24338 fi
24339
24340 fi
24341
24342
24343 # Some library-finding code we stole from Tcl.
24344 #--------------------------------------------------------------------
24345 # Check for the existence of the -lsocket and -lnsl libraries.
24346 # The order here is important, so that they end up in the right
24347 # order in the command line generated by make. Here are some
24348 # special considerations:
24349 # 1. Use "connect" and "accept" to check for -lsocket, and
24350 # "gethostbyname" to check for -lnsl.
24351 # 2. Use each function name only once: can't redo a check because
24352 # autoconf caches the results of the last check and won't redo it.
24353 # 3. Use -lnsl and -lsocket only if they supply procedures that
24354 # aren't already present in the normal libraries. This is because
24355 # IRIX 5.2 has libraries, but they aren't needed and they're
24356 # bogus: they goof up name resolution if used.
24357 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24358 # To get around this problem, check for both libraries together
24359 # if -lsocket doesn't work by itself.
24360 #--------------------------------------------------------------------
24361
24362 echo "$as_me:$LINENO: checking for socket libraries" >&5
24363 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24364 if test "${gcj_cv_lib_sockets+set}" = set; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24366 else
24367 gcj_cv_lib_sockets=
24368 gcj_checkBoth=0
24369 unset ac_cv_func_connect
24370 echo "$as_me:$LINENO: checking for connect" >&5
24371 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24372 if test "${ac_cv_func_connect+set}" = set; then
24373 echo $ECHO_N "(cached) $ECHO_C" >&6
24374 else
24375 if test x$gcc_no_link = xyes; then
24376 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24377 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24378 { (exit 1); exit 1; }; }
24379 fi
24380 cat >conftest.$ac_ext <<_ACEOF
24381 /* confdefs.h. */
24382 _ACEOF
24383 cat confdefs.h >>conftest.$ac_ext
24384 cat >>conftest.$ac_ext <<_ACEOF
24385 /* end confdefs.h. */
24386 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24388 #define connect innocuous_connect
24389
24390 /* System header to define __stub macros and hopefully few prototypes,
24391 which can conflict with char connect (); below.
24392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24393 <limits.h> exists even on freestanding compilers. */
24394
24395 #ifdef __STDC__
24396 # include <limits.h>
24397 #else
24398 # include <assert.h>
24399 #endif
24400
24401 #undef connect
24402
24403 /* Override any gcc2 internal prototype to avoid an error. */
24404 #ifdef __cplusplus
24405 extern "C"
24406 {
24407 #endif
24408 /* We use char because int might match the return type of a gcc2
24409 builtin and then its argument prototype would still apply. */
24410 char connect ();
24411 /* The GNU C library defines this for functions which it implements
24412 to always fail with ENOSYS. Some functions are actually named
24413 something starting with __ and the normal name is an alias. */
24414 #if defined (__stub_connect) || defined (__stub___connect)
24415 choke me
24416 #else
24417 char (*f) () = connect;
24418 #endif
24419 #ifdef __cplusplus
24420 }
24421 #endif
24422
24423 int
24424 main ()
24425 {
24426 return f != connect;
24427 ;
24428 return 0;
24429 }
24430 _ACEOF
24431 rm -f conftest.$ac_objext conftest$ac_exeext
24432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24433 (eval $ac_link) 2>conftest.er1
24434 ac_status=$?
24435 grep -v '^ *+' conftest.er1 >conftest.err
24436 rm -f conftest.er1
24437 cat conftest.err >&5
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); } &&
24440 { ac_try='test -z "$ac_c_werror_flag"
24441 || test ! -s conftest.err'
24442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443 (eval $ac_try) 2>&5
24444 ac_status=$?
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; } &&
24447 { ac_try='test -s conftest$ac_exeext'
24448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24449 (eval $ac_try) 2>&5
24450 ac_status=$?
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); }; }; then
24453 ac_cv_func_connect=yes
24454 else
24455 echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24457
24458 ac_cv_func_connect=no
24459 fi
24460 rm -f conftest.err conftest.$ac_objext \
24461 conftest$ac_exeext conftest.$ac_ext
24462 fi
24463 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24464 echo "${ECHO_T}$ac_cv_func_connect" >&6
24465 if test $ac_cv_func_connect = yes; then
24466 gcj_checkSocket=0
24467 else
24468 gcj_checkSocket=1
24469 fi
24470
24471 if test "$gcj_checkSocket" = 1; then
24472 unset ac_cv_func_connect
24473 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24474 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24475 if test "${ac_cv_lib_socket_main+set}" = set; then
24476 echo $ECHO_N "(cached) $ECHO_C" >&6
24477 else
24478 ac_check_lib_save_LIBS=$LIBS
24479 LIBS="-lsocket $LIBS"
24480 if test x$gcc_no_link = xyes; then
24481 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24482 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24483 { (exit 1); exit 1; }; }
24484 fi
24485 cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h. */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491
24492
24493 int
24494 main ()
24495 {
24496 main ();
24497 ;
24498 return 0;
24499 }
24500 _ACEOF
24501 rm -f conftest.$ac_objext conftest$ac_exeext
24502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24503 (eval $ac_link) 2>conftest.er1
24504 ac_status=$?
24505 grep -v '^ *+' conftest.er1 >conftest.err
24506 rm -f conftest.er1
24507 cat conftest.err >&5
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); } &&
24510 { ac_try='test -z "$ac_c_werror_flag"
24511 || test ! -s conftest.err'
24512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24513 (eval $ac_try) 2>&5
24514 ac_status=$?
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); }; } &&
24517 { ac_try='test -s conftest$ac_exeext'
24518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519 (eval $ac_try) 2>&5
24520 ac_status=$?
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); }; }; then
24523 ac_cv_lib_socket_main=yes
24524 else
24525 echo "$as_me: failed program was:" >&5
24526 sed 's/^/| /' conftest.$ac_ext >&5
24527
24528 ac_cv_lib_socket_main=no
24529 fi
24530 rm -f conftest.err conftest.$ac_objext \
24531 conftest$ac_exeext conftest.$ac_ext
24532 LIBS=$ac_check_lib_save_LIBS
24533 fi
24534 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24535 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24536 if test $ac_cv_lib_socket_main = yes; then
24537 gcj_cv_lib_sockets="-lsocket"
24538 else
24539 gcj_checkBoth=1
24540 fi
24541
24542 fi
24543 if test "$gcj_checkBoth" = 1; then
24544 gcj_oldLibs=$LIBS
24545 LIBS="$LIBS -lsocket -lnsl"
24546 unset ac_cv_func_accept
24547 echo "$as_me:$LINENO: checking for accept" >&5
24548 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24549 if test "${ac_cv_func_accept+set}" = set; then
24550 echo $ECHO_N "(cached) $ECHO_C" >&6
24551 else
24552 if test x$gcc_no_link = xyes; then
24553 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24554 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24555 { (exit 1); exit 1; }; }
24556 fi
24557 cat >conftest.$ac_ext <<_ACEOF
24558 /* confdefs.h. */
24559 _ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h. */
24563 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24565 #define accept innocuous_accept
24566
24567 /* System header to define __stub macros and hopefully few prototypes,
24568 which can conflict with char accept (); below.
24569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24570 <limits.h> exists even on freestanding compilers. */
24571
24572 #ifdef __STDC__
24573 # include <limits.h>
24574 #else
24575 # include <assert.h>
24576 #endif
24577
24578 #undef accept
24579
24580 /* Override any gcc2 internal prototype to avoid an error. */
24581 #ifdef __cplusplus
24582 extern "C"
24583 {
24584 #endif
24585 /* We use char because int might match the return type of a gcc2
24586 builtin and then its argument prototype would still apply. */
24587 char accept ();
24588 /* The GNU C library defines this for functions which it implements
24589 to always fail with ENOSYS. Some functions are actually named
24590 something starting with __ and the normal name is an alias. */
24591 #if defined (__stub_accept) || defined (__stub___accept)
24592 choke me
24593 #else
24594 char (*f) () = accept;
24595 #endif
24596 #ifdef __cplusplus
24597 }
24598 #endif
24599
24600 int
24601 main ()
24602 {
24603 return f != accept;
24604 ;
24605 return 0;
24606 }
24607 _ACEOF
24608 rm -f conftest.$ac_objext conftest$ac_exeext
24609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24610 (eval $ac_link) 2>conftest.er1
24611 ac_status=$?
24612 grep -v '^ *+' conftest.er1 >conftest.err
24613 rm -f conftest.er1
24614 cat conftest.err >&5
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); } &&
24617 { ac_try='test -z "$ac_c_werror_flag"
24618 || test ! -s conftest.err'
24619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620 (eval $ac_try) 2>&5
24621 ac_status=$?
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); }; } &&
24624 { ac_try='test -s conftest$ac_exeext'
24625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626 (eval $ac_try) 2>&5
24627 ac_status=$?
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); }; }; then
24630 ac_cv_func_accept=yes
24631 else
24632 echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24634
24635 ac_cv_func_accept=no
24636 fi
24637 rm -f conftest.err conftest.$ac_objext \
24638 conftest$ac_exeext conftest.$ac_ext
24639 fi
24640 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24641 echo "${ECHO_T}$ac_cv_func_accept" >&6
24642 if test $ac_cv_func_accept = yes; then
24643 gcj_checkNsl=0
24644 gcj_cv_lib_sockets="-lsocket -lnsl"
24645 fi
24646
24647 unset ac_cv_func_accept
24648 LIBS=$gcj_oldLibs
24649 fi
24650 unset ac_cv_func_gethostbyname
24651 gcj_oldLibs=$LIBS
24652 LIBS="$LIBS $gcj_cv_lib_sockets"
24653 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24654 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24655 if test "${ac_cv_func_gethostbyname+set}" = set; then
24656 echo $ECHO_N "(cached) $ECHO_C" >&6
24657 else
24658 if test x$gcc_no_link = xyes; then
24659 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24660 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24661 { (exit 1); exit 1; }; }
24662 fi
24663 cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h. */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24669 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24671 #define gethostbyname innocuous_gethostbyname
24672
24673 /* System header to define __stub macros and hopefully few prototypes,
24674 which can conflict with char gethostbyname (); below.
24675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24676 <limits.h> exists even on freestanding compilers. */
24677
24678 #ifdef __STDC__
24679 # include <limits.h>
24680 #else
24681 # include <assert.h>
24682 #endif
24683
24684 #undef gethostbyname
24685
24686 /* Override any gcc2 internal prototype to avoid an error. */
24687 #ifdef __cplusplus
24688 extern "C"
24689 {
24690 #endif
24691 /* We use char because int might match the return type of a gcc2
24692 builtin and then its argument prototype would still apply. */
24693 char gethostbyname ();
24694 /* The GNU C library defines this for functions which it implements
24695 to always fail with ENOSYS. Some functions are actually named
24696 something starting with __ and the normal name is an alias. */
24697 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24698 choke me
24699 #else
24700 char (*f) () = gethostbyname;
24701 #endif
24702 #ifdef __cplusplus
24703 }
24704 #endif
24705
24706 int
24707 main ()
24708 {
24709 return f != gethostbyname;
24710 ;
24711 return 0;
24712 }
24713 _ACEOF
24714 rm -f conftest.$ac_objext conftest$ac_exeext
24715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24716 (eval $ac_link) 2>conftest.er1
24717 ac_status=$?
24718 grep -v '^ *+' conftest.er1 >conftest.err
24719 rm -f conftest.er1
24720 cat conftest.err >&5
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); } &&
24723 { ac_try='test -z "$ac_c_werror_flag"
24724 || test ! -s conftest.err'
24725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726 (eval $ac_try) 2>&5
24727 ac_status=$?
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); }; } &&
24730 { ac_try='test -s conftest$ac_exeext'
24731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732 (eval $ac_try) 2>&5
24733 ac_status=$?
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; }; then
24736 ac_cv_func_gethostbyname=yes
24737 else
24738 echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24740
24741 ac_cv_func_gethostbyname=no
24742 fi
24743 rm -f conftest.err conftest.$ac_objext \
24744 conftest$ac_exeext conftest.$ac_ext
24745 fi
24746 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24747 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24748 if test $ac_cv_func_gethostbyname = yes; then
24749 :
24750 else
24751 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24752 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24753 if test "${ac_cv_lib_nsl_main+set}" = set; then
24754 echo $ECHO_N "(cached) $ECHO_C" >&6
24755 else
24756 ac_check_lib_save_LIBS=$LIBS
24757 LIBS="-lnsl $LIBS"
24758 if test x$gcc_no_link = xyes; then
24759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24761 { (exit 1); exit 1; }; }
24762 fi
24763 cat >conftest.$ac_ext <<_ACEOF
24764 /* confdefs.h. */
24765 _ACEOF
24766 cat confdefs.h >>conftest.$ac_ext
24767 cat >>conftest.$ac_ext <<_ACEOF
24768 /* end confdefs.h. */
24769
24770
24771 int
24772 main ()
24773 {
24774 main ();
24775 ;
24776 return 0;
24777 }
24778 _ACEOF
24779 rm -f conftest.$ac_objext conftest$ac_exeext
24780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24781 (eval $ac_link) 2>conftest.er1
24782 ac_status=$?
24783 grep -v '^ *+' conftest.er1 >conftest.err
24784 rm -f conftest.er1
24785 cat conftest.err >&5
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } &&
24788 { ac_try='test -z "$ac_c_werror_flag"
24789 || test ! -s conftest.err'
24790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24791 (eval $ac_try) 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; } &&
24795 { ac_try='test -s conftest$ac_exeext'
24796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_cv_lib_nsl_main=yes
24802 else
24803 echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24805
24806 ac_cv_lib_nsl_main=no
24807 fi
24808 rm -f conftest.err conftest.$ac_objext \
24809 conftest$ac_exeext conftest.$ac_ext
24810 LIBS=$ac_check_lib_save_LIBS
24811 fi
24812 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24813 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24814 if test $ac_cv_lib_nsl_main = yes; then
24815 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24816 fi
24817
24818 fi
24819
24820 unset ac_cv_func_gethostbyname
24821 LIBS=$gcj_oldLIBS
24822
24823 fi
24824 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24825 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24826 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24827
24828 if test "$with_system_zlib" = yes; then
24829 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24830 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24831 if test "${ac_cv_lib_z_deflate+set}" = set; then
24832 echo $ECHO_N "(cached) $ECHO_C" >&6
24833 else
24834 ac_check_lib_save_LIBS=$LIBS
24835 LIBS="-lz $LIBS"
24836 if test x$gcc_no_link = xyes; then
24837 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24838 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24839 { (exit 1); exit 1; }; }
24840 fi
24841 cat >conftest.$ac_ext <<_ACEOF
24842 /* confdefs.h. */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h. */
24847
24848 /* Override any gcc2 internal prototype to avoid an error. */
24849 #ifdef __cplusplus
24850 extern "C"
24851 #endif
24852 /* We use char because int might match the return type of a gcc2
24853 builtin and then its argument prototype would still apply. */
24854 char deflate ();
24855 int
24856 main ()
24857 {
24858 deflate ();
24859 ;
24860 return 0;
24861 }
24862 _ACEOF
24863 rm -f conftest.$ac_objext conftest$ac_exeext
24864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24865 (eval $ac_link) 2>conftest.er1
24866 ac_status=$?
24867 grep -v '^ *+' conftest.er1 >conftest.err
24868 rm -f conftest.er1
24869 cat conftest.err >&5
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); } &&
24872 { ac_try='test -z "$ac_c_werror_flag"
24873 || test ! -s conftest.err'
24874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875 (eval $ac_try) 2>&5
24876 ac_status=$?
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); }; } &&
24879 { ac_try='test -s conftest$ac_exeext'
24880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881 (eval $ac_try) 2>&5
24882 ac_status=$?
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; }; then
24885 ac_cv_lib_z_deflate=yes
24886 else
24887 echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24889
24890 ac_cv_lib_z_deflate=no
24891 fi
24892 rm -f conftest.err conftest.$ac_objext \
24893 conftest$ac_exeext conftest.$ac_ext
24894 LIBS=$ac_check_lib_save_LIBS
24895 fi
24896 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24897 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24898 if test $ac_cv_lib_z_deflate = yes; then
24899 ZLIBSPEC=-lz
24900 else
24901 ZLIBSPEC=
24902 fi
24903
24904 fi
24905
24906 # Test for Gtk stuff, if asked for.
24907 if test "$use_gtk_awt" = yes; then
24908
24909 succeeded=no
24910
24911 if test -z "$PKG_CONFIG"; then
24912 # Extract the first word of "pkg-config", so it can be a program name with args.
24913 set dummy pkg-config; ac_word=$2
24914 echo "$as_me:$LINENO: checking for $ac_word" >&5
24915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24916 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24917 echo $ECHO_N "(cached) $ECHO_C" >&6
24918 else
24919 case $PKG_CONFIG in
24920 [\\/]* | ?:[\\/]*)
24921 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24922 ;;
24923 *)
24924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24925 for as_dir in $PATH
24926 do
24927 IFS=$as_save_IFS
24928 test -z "$as_dir" && as_dir=.
24929 for ac_exec_ext in '' $ac_executable_extensions; do
24930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24931 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24933 break 2
24934 fi
24935 done
24936 done
24937
24938 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24939 ;;
24940 esac
24941 fi
24942 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24943
24944 if test -n "$PKG_CONFIG"; then
24945 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24946 echo "${ECHO_T}$PKG_CONFIG" >&6
24947 else
24948 echo "$as_me:$LINENO: result: no" >&5
24949 echo "${ECHO_T}no" >&6
24950 fi
24951
24952 fi
24953
24954 if test "$PKG_CONFIG" = "no" ; then
24955 echo "*** The pkg-config script could not be found. Make sure it is"
24956 echo "*** in your path, or set the PKG_CONFIG environment variable"
24957 echo "*** to the full path to pkg-config."
24958 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24959 else
24960 PKG_CONFIG_MIN_VERSION=0.9.0
24961 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24962 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
24963 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
24964
24965 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
24966 echo "$as_me:$LINENO: result: yes" >&5
24967 echo "${ECHO_T}yes" >&6
24968 succeeded=yes
24969
24970 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24971 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24972 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
24973 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24974 echo "${ECHO_T}$GTK_CFLAGS" >&6
24975
24976 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24977 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24978 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
24979 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24980 echo "${ECHO_T}$GTK_LIBS" >&6
24981 else
24982 GTK_CFLAGS=""
24983 GTK_LIBS=""
24984 ## If we have a custom action on failure, don't print errors, but
24985 ## do set a variable so people can do so.
24986 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
24987 echo $GTK_PKG_ERRORS
24988 fi
24989
24990
24991
24992 else
24993 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24994 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24995 fi
24996 fi
24997
24998 if test $succeeded = yes; then
24999 :
25000 else
25001 { { 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
25002 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;}
25003 { (exit 1); exit 1; }; }
25004 fi
25005
25006
25007
25008
25009
25010 succeeded=no
25011
25012 if test -z "$PKG_CONFIG"; then
25013 # Extract the first word of "pkg-config", so it can be a program name with args.
25014 set dummy pkg-config; ac_word=$2
25015 echo "$as_me:$LINENO: checking for $ac_word" >&5
25016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25017 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25018 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 else
25020 case $PKG_CONFIG in
25021 [\\/]* | ?:[\\/]*)
25022 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25023 ;;
25024 *)
25025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25026 for as_dir in $PATH
25027 do
25028 IFS=$as_save_IFS
25029 test -z "$as_dir" && as_dir=.
25030 for ac_exec_ext in '' $ac_executable_extensions; do
25031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25032 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25034 break 2
25035 fi
25036 done
25037 done
25038
25039 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25040 ;;
25041 esac
25042 fi
25043 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25044
25045 if test -n "$PKG_CONFIG"; then
25046 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25047 echo "${ECHO_T}$PKG_CONFIG" >&6
25048 else
25049 echo "$as_me:$LINENO: result: no" >&5
25050 echo "${ECHO_T}no" >&6
25051 fi
25052
25053 fi
25054
25055 if test "$PKG_CONFIG" = "no" ; then
25056 echo "*** The pkg-config script could not be found. Make sure it is"
25057 echo "*** in your path, or set the PKG_CONFIG environment variable"
25058 echo "*** to the full path to pkg-config."
25059 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25060 else
25061 PKG_CONFIG_MIN_VERSION=0.9.0
25062 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25063 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25064 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25065
25066 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25067 echo "$as_me:$LINENO: result: yes" >&5
25068 echo "${ECHO_T}yes" >&6
25069 succeeded=yes
25070
25071 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25072 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25073 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25074 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25075 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25076
25077 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25078 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25079 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25080 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25081 echo "${ECHO_T}$GLIB_LIBS" >&6
25082 else
25083 GLIB_CFLAGS=""
25084 GLIB_LIBS=""
25085 ## If we have a custom action on failure, don't print errors, but
25086 ## do set a variable so people can do so.
25087 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25088 echo $GLIB_PKG_ERRORS
25089 fi
25090
25091
25092
25093 else
25094 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25095 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25096 fi
25097 fi
25098
25099 if test $succeeded = yes; then
25100 :
25101 else
25102 { { 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
25103 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;}
25104 { (exit 1); exit 1; }; }
25105 fi
25106
25107
25108
25109
25110
25111 succeeded=no
25112
25113 if test -z "$PKG_CONFIG"; then
25114 # Extract the first word of "pkg-config", so it can be a program name with args.
25115 set dummy pkg-config; ac_word=$2
25116 echo "$as_me:$LINENO: checking for $ac_word" >&5
25117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25119 echo $ECHO_N "(cached) $ECHO_C" >&6
25120 else
25121 case $PKG_CONFIG in
25122 [\\/]* | ?:[\\/]*)
25123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25124 ;;
25125 *)
25126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25127 for as_dir in $PATH
25128 do
25129 IFS=$as_save_IFS
25130 test -z "$as_dir" && as_dir=.
25131 for ac_exec_ext in '' $ac_executable_extensions; do
25132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25135 break 2
25136 fi
25137 done
25138 done
25139
25140 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25141 ;;
25142 esac
25143 fi
25144 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25145
25146 if test -n "$PKG_CONFIG"; then
25147 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25148 echo "${ECHO_T}$PKG_CONFIG" >&6
25149 else
25150 echo "$as_me:$LINENO: result: no" >&5
25151 echo "${ECHO_T}no" >&6
25152 fi
25153
25154 fi
25155
25156 if test "$PKG_CONFIG" = "no" ; then
25157 echo "*** The pkg-config script could not be found. Make sure it is"
25158 echo "*** in your path, or set the PKG_CONFIG environment variable"
25159 echo "*** to the full path to pkg-config."
25160 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25161 else
25162 PKG_CONFIG_MIN_VERSION=0.9.0
25163 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25164 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25165 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25166
25167 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25168 echo "$as_me:$LINENO: result: yes" >&5
25169 echo "${ECHO_T}yes" >&6
25170 succeeded=yes
25171
25172 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25173 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25174 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25175 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25176 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25177
25178 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25179 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25180 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25181 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25182 echo "${ECHO_T}$LIBART_LIBS" >&6
25183 else
25184 LIBART_CFLAGS=""
25185 LIBART_LIBS=""
25186 ## If we have a custom action on failure, don't print errors, but
25187 ## do set a variable so people can do so.
25188 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25189 echo $LIBART_PKG_ERRORS
25190 fi
25191
25192
25193
25194 else
25195 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25196 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25197 fi
25198 fi
25199
25200 if test $succeeded = yes; then
25201 :
25202 else
25203 { { 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
25204 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;}
25205 { (exit 1); exit 1; }; }
25206 fi
25207
25208
25209
25210
25211 # We require the XTest Extension to support java.awt.Robot.
25212 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25213 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25214 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25215 echo $ECHO_N "(cached) $ECHO_C" >&6
25216 else
25217 ac_check_lib_save_LIBS=$LIBS
25218 LIBS="-lXtst ${X_LIBS} $LIBS"
25219 if test x$gcc_no_link = xyes; then
25220 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25221 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25222 { (exit 1); exit 1; }; }
25223 fi
25224 cat >conftest.$ac_ext <<_ACEOF
25225 /* confdefs.h. */
25226 _ACEOF
25227 cat confdefs.h >>conftest.$ac_ext
25228 cat >>conftest.$ac_ext <<_ACEOF
25229 /* end confdefs.h. */
25230
25231 /* Override any gcc2 internal prototype to avoid an error. */
25232 #ifdef __cplusplus
25233 extern "C"
25234 #endif
25235 /* We use char because int might match the return type of a gcc2
25236 builtin and then its argument prototype would still apply. */
25237 char XTestQueryExtension ();
25238 int
25239 main ()
25240 {
25241 XTestQueryExtension ();
25242 ;
25243 return 0;
25244 }
25245 _ACEOF
25246 rm -f conftest.$ac_objext conftest$ac_exeext
25247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25248 (eval $ac_link) 2>conftest.er1
25249 ac_status=$?
25250 grep -v '^ *+' conftest.er1 >conftest.err
25251 rm -f conftest.er1
25252 cat conftest.err >&5
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); } &&
25255 { ac_try='test -z "$ac_c_werror_flag"
25256 || test ! -s conftest.err'
25257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258 (eval $ac_try) 2>&5
25259 ac_status=$?
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; } &&
25262 { ac_try='test -s conftest$ac_exeext'
25263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25264 (eval $ac_try) 2>&5
25265 ac_status=$?
25266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267 (exit $ac_status); }; }; then
25268 ac_cv_lib_Xtst_XTestQueryExtension=yes
25269 else
25270 echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25272
25273 ac_cv_lib_Xtst_XTestQueryExtension=no
25274 fi
25275 rm -f conftest.err conftest.$ac_objext \
25276 conftest$ac_exeext conftest.$ac_ext
25277 LIBS=$ac_check_lib_save_LIBS
25278 fi
25279 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25280 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25281 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25282 true
25283 else
25284 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25285 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25286 { (exit 1); exit 1; }; }
25287 fi
25288
25289 fi
25290
25291 # On Solaris, and maybe other architectures, the Boehm collector
25292 # requires -ldl.
25293 if test "$GC" = boehm; then
25294 case "${host}" in
25295 mips-sgi-irix6*)
25296 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25297 # libgcj.spec is used, so override here
25298 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25299 ;;
25300 *)
25301 echo "$as_me:$LINENO: checking for main in -ldl" >&5
25302 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25303 if test "${ac_cv_lib_dl_main+set}" = set; then
25304 echo $ECHO_N "(cached) $ECHO_C" >&6
25305 else
25306 ac_check_lib_save_LIBS=$LIBS
25307 LIBS="-ldl $LIBS"
25308 if test x$gcc_no_link = xyes; then
25309 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25310 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25311 { (exit 1); exit 1; }; }
25312 fi
25313 cat >conftest.$ac_ext <<_ACEOF
25314 /* confdefs.h. */
25315 _ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h. */
25319
25320
25321 int
25322 main ()
25323 {
25324 main ();
25325 ;
25326 return 0;
25327 }
25328 _ACEOF
25329 rm -f conftest.$ac_objext conftest$ac_exeext
25330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25331 (eval $ac_link) 2>conftest.er1
25332 ac_status=$?
25333 grep -v '^ *+' conftest.er1 >conftest.err
25334 rm -f conftest.er1
25335 cat conftest.err >&5
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); } &&
25338 { ac_try='test -z "$ac_c_werror_flag"
25339 || test ! -s conftest.err'
25340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341 (eval $ac_try) 2>&5
25342 ac_status=$?
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; } &&
25345 { ac_try='test -s conftest$ac_exeext'
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; }; then
25351 ac_cv_lib_dl_main=yes
25352 else
25353 echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25355
25356 ac_cv_lib_dl_main=no
25357 fi
25358 rm -f conftest.err conftest.$ac_objext \
25359 conftest$ac_exeext conftest.$ac_ext
25360 LIBS=$ac_check_lib_save_LIBS
25361 fi
25362 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25363 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25364 if test $ac_cv_lib_dl_main = yes; then
25365 SYSTEMSPEC="$SYSTEMSPEC -ldl"
25366 fi
25367
25368 ;;
25369 esac
25370 fi
25371 fi
25372
25373 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25374 case $build in
25375 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25376 *) CLASSPATH_SEPARATOR=':' ;;
25377 esac
25378
25379
25380 # We must search the source tree for java.lang, since we still don't
25381 # have libgcj.jar nor java/lang/*.class
25382 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25383 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25384
25385 # Since some classes depend on this one, we need its source available
25386 # before we can do any GCJ compilation test :-(
25387 if test ! -f gnu/classpath/Configuration.java; then
25388 test -d gnu || mkdir gnu
25389 test -d gnu/classpath || mkdir gnu/classpath
25390 # Note that it is not crucial that all the values here be correct.
25391 sed -e "s,@prefix@,$prefix," \
25392 -e "s,@VERSION@,$VERSION," \
25393 -e "s,@LIBDEBUG@,false," \
25394 -e "s,@INIT_LOAD_LIBRARY@,false," \
25395 -e "s,@@,$LIBGCJDEBUG," \
25396 -e "s,@default_toolkit@,$TOOLKIT," \
25397 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25398 -e "s,@GTK_CAIRO_ENABLED@,false," \
25399 -e "s,@ECJ_JAR@,," \
25400 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25401 > gnu/classpath/Configuration.java
25402 # We do not want to redirect the output of the grep below to /dev/null,
25403 # but we add /dev/null to the input list so that grep will print the
25404 # filename of Configuration.java in case it finds any matches.
25405 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25406 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25407 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25408 { (exit 1); exit 1; }; }
25409 fi
25410 fi
25411
25412
25413 for ac_prog in gcj
25414 do
25415 # Extract the first word of "$ac_prog", so it can be a program name with args.
25416 set dummy $ac_prog; ac_word=$2
25417 echo "$as_me:$LINENO: checking for $ac_word" >&5
25418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25419 if test "${ac_cv_prog_GCJ+set}" = set; then
25420 echo $ECHO_N "(cached) $ECHO_C" >&6
25421 else
25422 if test -n "$GCJ"; then
25423 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25424 else
25425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25426 for as_dir in $PATH
25427 do
25428 IFS=$as_save_IFS
25429 test -z "$as_dir" && as_dir=.
25430 for ac_exec_ext in '' $ac_executable_extensions; do
25431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25432 ac_cv_prog_GCJ="$ac_prog"
25433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25434 break 2
25435 fi
25436 done
25437 done
25438
25439 fi
25440 fi
25441 GCJ=$ac_cv_prog_GCJ
25442 if test -n "$GCJ"; then
25443 echo "$as_me:$LINENO: result: $GCJ" >&5
25444 echo "${ECHO_T}$GCJ" >&6
25445 else
25446 echo "$as_me:$LINENO: result: no" >&5
25447 echo "${ECHO_T}no" >&6
25448 fi
25449
25450 test -n "$GCJ" && break
25451 done
25452 test -n "$GCJ" || GCJ="gcj"
25453
25454 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25455 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25456 { (exit 1); exit 1; }; }
25457 if test "x${GCJFLAGS-unset}" = xunset; then
25458 GCJFLAGS="-g -O2"
25459 fi
25460
25461
25462 depcc="$GCJ" am_compiler_list='gcc3 gcc'
25463
25464 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25465 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25466 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25467 echo $ECHO_N "(cached) $ECHO_C" >&6
25468 else
25469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25470 # We make a subdir and do the tests there. Otherwise we can end up
25471 # making bogus files that we don't know about and never remove. For
25472 # instance it was reported that on HP-UX the gcc test will end up
25473 # making a dummy file named `D' -- because `-MD' means `put the output
25474 # in D'.
25475 mkdir conftest.dir
25476 # Copy depcomp to subdir because otherwise we won't find it if we're
25477 # using a relative directory.
25478 cp "$am_depcomp" conftest.dir
25479 cd conftest.dir
25480 # We will build objects and dependencies in a subdirectory because
25481 # it helps to detect inapplicable dependency modes. For instance
25482 # both Tru64's cc and ICC support -MD to output dependencies as a
25483 # side effect of compilation, but ICC will put the dependencies in
25484 # the current directory while Tru64 will put them in the object
25485 # directory.
25486 mkdir sub
25487
25488 am_cv_GCJ_dependencies_compiler_type=none
25489 if test "$am_compiler_list" = ""; then
25490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25491 fi
25492 for depmode in $am_compiler_list; do
25493 # Setup a source with many dependencies, because some compilers
25494 # like to wrap large dependency lists on column 80 (with \), and
25495 # we should not choose a depcomp mode which is confused by this.
25496 #
25497 # We need to recreate these files for each test, as the compiler may
25498 # overwrite some of them when testing with obscure command lines.
25499 # This happens at least with the AIX C compiler.
25500 : > sub/conftest.c
25501 for i in 1 2 3 4 5 6; do
25502 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25503 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25504 # Solaris 8's {/usr,}/bin/sh.
25505 touch sub/conftst$i.h
25506 done
25507 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25508
25509 case $depmode in
25510 nosideeffect)
25511 # after this tag, mechanisms are not by side-effect, so they'll
25512 # only be used when explicitly requested
25513 if test "x$enable_dependency_tracking" = xyes; then
25514 continue
25515 else
25516 break
25517 fi
25518 ;;
25519 none) break ;;
25520 esac
25521 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25522 # mode. It turns out that the SunPro C++ compiler does not properly
25523 # handle `-M -o', and we need to detect this.
25524 if depmode=$depmode \
25525 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25526 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25527 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25528 >/dev/null 2>conftest.err &&
25529 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25530 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25531 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25532 # icc doesn't choke on unknown options, it will just issue warnings
25533 # or remarks (even with -Werror). So we grep stderr for any message
25534 # that says an option was ignored or not supported.
25535 # When given -MP, icc 7.0 and 7.1 complain thusly:
25536 # icc: Command line warning: ignoring option '-M'; no argument required
25537 # The diagnosis changed in icc 8.0:
25538 # icc: Command line remark: option '-MP' not supported
25539 if (grep 'ignoring option' conftest.err ||
25540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25541 am_cv_GCJ_dependencies_compiler_type=$depmode
25542 break
25543 fi
25544 fi
25545 done
25546
25547 cd ..
25548 rm -rf conftest.dir
25549 else
25550 am_cv_GCJ_dependencies_compiler_type=none
25551 fi
25552
25553 fi
25554 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25555 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25556 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25557
25558
25559
25560 if
25561 test "x$enable_dependency_tracking" != xno \
25562 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25563 am__fastdepGCJ_TRUE=
25564 am__fastdepGCJ_FALSE='#'
25565 else
25566 am__fastdepGCJ_TRUE='#'
25567 am__fastdepGCJ_FALSE=
25568 fi
25569
25570
25571
25572
25573 # Now remove it.
25574 rm -f gnu/classpath/Configuration.java
25575
25576 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25577
25578 echo "$as_me:$LINENO: checking for void *" >&5
25579 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25580 if test "${ac_cv_type_void_p+set}" = set; then
25581 echo $ECHO_N "(cached) $ECHO_C" >&6
25582 else
25583 cat >conftest.$ac_ext <<_ACEOF
25584 /* confdefs.h. */
25585 _ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h. */
25589 $ac_includes_default
25590 int
25591 main ()
25592 {
25593 if ((void * *) 0)
25594 return 0;
25595 if (sizeof (void *))
25596 return 0;
25597 ;
25598 return 0;
25599 }
25600 _ACEOF
25601 rm -f conftest.$ac_objext
25602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25603 (eval $ac_compile) 2>conftest.er1
25604 ac_status=$?
25605 grep -v '^ *+' conftest.er1 >conftest.err
25606 rm -f conftest.er1
25607 cat conftest.err >&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); } &&
25610 { ac_try='test -z "$ac_c_werror_flag"
25611 || test ! -s conftest.err'
25612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25613 (eval $ac_try) 2>&5
25614 ac_status=$?
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }; } &&
25617 { ac_try='test -s conftest.$ac_objext'
25618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }; }; then
25623 ac_cv_type_void_p=yes
25624 else
25625 echo "$as_me: failed program was:" >&5
25626 sed 's/^/| /' conftest.$ac_ext >&5
25627
25628 ac_cv_type_void_p=no
25629 fi
25630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25631 fi
25632 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25633 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25634
25635 echo "$as_me:$LINENO: checking size of void *" >&5
25636 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25637 if test "${ac_cv_sizeof_void_p+set}" = set; then
25638 echo $ECHO_N "(cached) $ECHO_C" >&6
25639 else
25640 if test "$ac_cv_type_void_p" = yes; then
25641 # The cast to unsigned long works around a bug in the HP C Compiler
25642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25644 # This bug is HP SR number 8606223364.
25645 if test "$cross_compiling" = yes; then
25646 # Depending upon the size, compute the lo and hi bounds.
25647 cat >conftest.$ac_ext <<_ACEOF
25648 /* confdefs.h. */
25649 _ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h. */
25653 $ac_includes_default
25654 int
25655 main ()
25656 {
25657 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25658 test_array [0] = 0
25659
25660 ;
25661 return 0;
25662 }
25663 _ACEOF
25664 rm -f conftest.$ac_objext
25665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25666 (eval $ac_compile) 2>conftest.er1
25667 ac_status=$?
25668 grep -v '^ *+' conftest.er1 >conftest.err
25669 rm -f conftest.er1
25670 cat conftest.err >&5
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); } &&
25673 { ac_try='test -z "$ac_c_werror_flag"
25674 || test ! -s conftest.err'
25675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25676 (eval $ac_try) 2>&5
25677 ac_status=$?
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); }; } &&
25680 { ac_try='test -s conftest.$ac_objext'
25681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25682 (eval $ac_try) 2>&5
25683 ac_status=$?
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); }; }; then
25686 ac_lo=0 ac_mid=0
25687 while :; do
25688 cat >conftest.$ac_ext <<_ACEOF
25689 /* confdefs.h. */
25690 _ACEOF
25691 cat confdefs.h >>conftest.$ac_ext
25692 cat >>conftest.$ac_ext <<_ACEOF
25693 /* end confdefs.h. */
25694 $ac_includes_default
25695 int
25696 main ()
25697 {
25698 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25699 test_array [0] = 0
25700
25701 ;
25702 return 0;
25703 }
25704 _ACEOF
25705 rm -f conftest.$ac_objext
25706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25707 (eval $ac_compile) 2>conftest.er1
25708 ac_status=$?
25709 grep -v '^ *+' conftest.er1 >conftest.err
25710 rm -f conftest.er1
25711 cat conftest.err >&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } &&
25714 { ac_try='test -z "$ac_c_werror_flag"
25715 || test ! -s conftest.err'
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25718 ac_status=$?
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; } &&
25721 { ac_try='test -s conftest.$ac_objext'
25722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723 (eval $ac_try) 2>&5
25724 ac_status=$?
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); }; }; then
25727 ac_hi=$ac_mid; break
25728 else
25729 echo "$as_me: failed program was:" >&5
25730 sed 's/^/| /' conftest.$ac_ext >&5
25731
25732 ac_lo=`expr $ac_mid + 1`
25733 if test $ac_lo -le $ac_mid; then
25734 ac_lo= ac_hi=
25735 break
25736 fi
25737 ac_mid=`expr 2 '*' $ac_mid + 1`
25738 fi
25739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25740 done
25741 else
25742 echo "$as_me: failed program was:" >&5
25743 sed 's/^/| /' conftest.$ac_ext >&5
25744
25745 cat >conftest.$ac_ext <<_ACEOF
25746 /* confdefs.h. */
25747 _ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h. */
25751 $ac_includes_default
25752 int
25753 main ()
25754 {
25755 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25756 test_array [0] = 0
25757
25758 ;
25759 return 0;
25760 }
25761 _ACEOF
25762 rm -f conftest.$ac_objext
25763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25764 (eval $ac_compile) 2>conftest.er1
25765 ac_status=$?
25766 grep -v '^ *+' conftest.er1 >conftest.err
25767 rm -f conftest.er1
25768 cat conftest.err >&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } &&
25771 { ac_try='test -z "$ac_c_werror_flag"
25772 || test ! -s conftest.err'
25773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774 (eval $ac_try) 2>&5
25775 ac_status=$?
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); }; } &&
25778 { ac_try='test -s conftest.$ac_objext'
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; }; then
25784 ac_hi=-1 ac_mid=-1
25785 while :; do
25786 cat >conftest.$ac_ext <<_ACEOF
25787 /* confdefs.h. */
25788 _ACEOF
25789 cat confdefs.h >>conftest.$ac_ext
25790 cat >>conftest.$ac_ext <<_ACEOF
25791 /* end confdefs.h. */
25792 $ac_includes_default
25793 int
25794 main ()
25795 {
25796 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25797 test_array [0] = 0
25798
25799 ;
25800 return 0;
25801 }
25802 _ACEOF
25803 rm -f conftest.$ac_objext
25804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25805 (eval $ac_compile) 2>conftest.er1
25806 ac_status=$?
25807 grep -v '^ *+' conftest.er1 >conftest.err
25808 rm -f conftest.er1
25809 cat conftest.err >&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } &&
25812 { ac_try='test -z "$ac_c_werror_flag"
25813 || test ! -s conftest.err'
25814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25815 (eval $ac_try) 2>&5
25816 ac_status=$?
25817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); }; } &&
25819 { ac_try='test -s conftest.$ac_objext'
25820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25821 (eval $ac_try) 2>&5
25822 ac_status=$?
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); }; }; then
25825 ac_lo=$ac_mid; break
25826 else
25827 echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.$ac_ext >&5
25829
25830 ac_hi=`expr '(' $ac_mid ')' - 1`
25831 if test $ac_mid -le $ac_hi; then
25832 ac_lo= ac_hi=
25833 break
25834 fi
25835 ac_mid=`expr 2 '*' $ac_mid`
25836 fi
25837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25838 done
25839 else
25840 echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25842
25843 ac_lo= ac_hi=
25844 fi
25845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25846 fi
25847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25848 # Binary search between lo and hi bounds.
25849 while test "x$ac_lo" != "x$ac_hi"; do
25850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25851 cat >conftest.$ac_ext <<_ACEOF
25852 /* confdefs.h. */
25853 _ACEOF
25854 cat confdefs.h >>conftest.$ac_ext
25855 cat >>conftest.$ac_ext <<_ACEOF
25856 /* end confdefs.h. */
25857 $ac_includes_default
25858 int
25859 main ()
25860 {
25861 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25862 test_array [0] = 0
25863
25864 ;
25865 return 0;
25866 }
25867 _ACEOF
25868 rm -f conftest.$ac_objext
25869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25870 (eval $ac_compile) 2>conftest.er1
25871 ac_status=$?
25872 grep -v '^ *+' conftest.er1 >conftest.err
25873 rm -f conftest.er1
25874 cat conftest.err >&5
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); } &&
25877 { ac_try='test -z "$ac_c_werror_flag"
25878 || test ! -s conftest.err'
25879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25880 (eval $ac_try) 2>&5
25881 ac_status=$?
25882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883 (exit $ac_status); }; } &&
25884 { ac_try='test -s conftest.$ac_objext'
25885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); }; }; then
25890 ac_hi=$ac_mid
25891 else
25892 echo "$as_me: failed program was:" >&5
25893 sed 's/^/| /' conftest.$ac_ext >&5
25894
25895 ac_lo=`expr '(' $ac_mid ')' + 1`
25896 fi
25897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25898 done
25899 case $ac_lo in
25900 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25901 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25902 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25903 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25904 See \`config.log' for more details." >&5
25905 echo "$as_me: error: cannot compute sizeof (void *), 77
25906 See \`config.log' for more details." >&2;}
25907 { (exit 1); exit 1; }; }; } ;;
25908 esac
25909 else
25910 if test "$cross_compiling" = yes; then
25911 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25912 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25913 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25914 See \`config.log' for more details." >&5
25915 echo "$as_me: error: cannot run test program while cross compiling
25916 See \`config.log' for more details." >&2;}
25917 { (exit 1); exit 1; }; }; }
25918 else
25919 cat >conftest.$ac_ext <<_ACEOF
25920 /* confdefs.h. */
25921 _ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h. */
25925 $ac_includes_default
25926 long longval () { return (long) (sizeof (void *)); }
25927 unsigned long ulongval () { return (long) (sizeof (void *)); }
25928 #include <stdio.h>
25929 #include <stdlib.h>
25930 int
25931 main ()
25932 {
25933
25934 FILE *f = fopen ("conftest.val", "w");
25935 if (! f)
25936 exit (1);
25937 if (((long) (sizeof (void *))) < 0)
25938 {
25939 long i = longval ();
25940 if (i != ((long) (sizeof (void *))))
25941 exit (1);
25942 fprintf (f, "%ld\n", i);
25943 }
25944 else
25945 {
25946 unsigned long i = ulongval ();
25947 if (i != ((long) (sizeof (void *))))
25948 exit (1);
25949 fprintf (f, "%lu\n", i);
25950 }
25951 exit (ferror (f) || fclose (f) != 0);
25952
25953 ;
25954 return 0;
25955 }
25956 _ACEOF
25957 rm -f conftest$ac_exeext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25959 (eval $ac_link) 2>&5
25960 ac_status=$?
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; }; then
25968 ac_cv_sizeof_void_p=`cat conftest.val`
25969 else
25970 echo "$as_me: program exited with status $ac_status" >&5
25971 echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25973
25974 ( exit $ac_status )
25975 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25976 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25977 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25978 See \`config.log' for more details." >&5
25979 echo "$as_me: error: cannot compute sizeof (void *), 77
25980 See \`config.log' for more details." >&2;}
25981 { (exit 1); exit 1; }; }; }
25982 fi
25983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25984 fi
25985 fi
25986 rm -f conftest.val
25987 else
25988 ac_cv_sizeof_void_p=0
25989 fi
25990 fi
25991 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25992 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25993 cat >>confdefs.h <<_ACEOF
25994 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25995 _ACEOF
25996
25997
25998
25999 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26000 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
26001 if test "${ac_cv_c_bigendian+set}" = set; then
26002 echo $ECHO_N "(cached) $ECHO_C" >&6
26003 else
26004 # See if sys/param.h defines the BYTE_ORDER macro.
26005 cat >conftest.$ac_ext <<_ACEOF
26006 /* confdefs.h. */
26007 _ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h. */
26011 #include <sys/types.h>
26012 #include <sys/param.h>
26013
26014 int
26015 main ()
26016 {
26017 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26018 bogus endian macros
26019 #endif
26020
26021 ;
26022 return 0;
26023 }
26024 _ACEOF
26025 rm -f conftest.$ac_objext
26026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26027 (eval $ac_compile) 2>conftest.er1
26028 ac_status=$?
26029 grep -v '^ *+' conftest.er1 >conftest.err
26030 rm -f conftest.er1
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } &&
26034 { ac_try='test -z "$ac_c_werror_flag"
26035 || test ! -s conftest.err'
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26038 ac_status=$?
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; } &&
26041 { ac_try='test -s conftest.$ac_objext'
26042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 # It does; now see whether it defined to BIG_ENDIAN or not.
26048 cat >conftest.$ac_ext <<_ACEOF
26049 /* confdefs.h. */
26050 _ACEOF
26051 cat confdefs.h >>conftest.$ac_ext
26052 cat >>conftest.$ac_ext <<_ACEOF
26053 /* end confdefs.h. */
26054 #include <sys/types.h>
26055 #include <sys/param.h>
26056
26057 int
26058 main ()
26059 {
26060 #if BYTE_ORDER != BIG_ENDIAN
26061 not big endian
26062 #endif
26063
26064 ;
26065 return 0;
26066 }
26067 _ACEOF
26068 rm -f conftest.$ac_objext
26069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26070 (eval $ac_compile) 2>conftest.er1
26071 ac_status=$?
26072 grep -v '^ *+' conftest.er1 >conftest.err
26073 rm -f conftest.er1
26074 cat conftest.err >&5
26075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076 (exit $ac_status); } &&
26077 { ac_try='test -z "$ac_c_werror_flag"
26078 || test ! -s conftest.err'
26079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; } &&
26084 { ac_try='test -s conftest.$ac_objext'
26085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26086 (eval $ac_try) 2>&5
26087 ac_status=$?
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); }; }; then
26090 ac_cv_c_bigendian=yes
26091 else
26092 echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26094
26095 ac_cv_c_bigendian=no
26096 fi
26097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26098 else
26099 echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26101
26102 # It does not; compile a test program.
26103 if test "$cross_compiling" = yes; then
26104 # try to guess the endianness by grepping values into an object file
26105 ac_cv_c_bigendian=unknown
26106 cat >conftest.$ac_ext <<_ACEOF
26107 /* confdefs.h. */
26108 _ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h. */
26112 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26113 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26114 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26115 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26116 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26117 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26118 int
26119 main ()
26120 {
26121 _ascii (); _ebcdic ();
26122 ;
26123 return 0;
26124 }
26125 _ACEOF
26126 rm -f conftest.$ac_objext
26127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26128 (eval $ac_compile) 2>conftest.er1
26129 ac_status=$?
26130 grep -v '^ *+' conftest.er1 >conftest.err
26131 rm -f conftest.er1
26132 cat conftest.err >&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } &&
26135 { ac_try='test -z "$ac_c_werror_flag"
26136 || test ! -s conftest.err'
26137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26138 (eval $ac_try) 2>&5
26139 ac_status=$?
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); }; } &&
26142 { ac_try='test -s conftest.$ac_objext'
26143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144 (eval $ac_try) 2>&5
26145 ac_status=$?
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); }; }; then
26148 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26149 ac_cv_c_bigendian=yes
26150 fi
26151 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26152 if test "$ac_cv_c_bigendian" = unknown; then
26153 ac_cv_c_bigendian=no
26154 else
26155 # finding both strings is unlikely to happen, but who knows?
26156 ac_cv_c_bigendian=unknown
26157 fi
26158 fi
26159 else
26160 echo "$as_me: failed program was:" >&5
26161 sed 's/^/| /' conftest.$ac_ext >&5
26162
26163 fi
26164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26165 else
26166 cat >conftest.$ac_ext <<_ACEOF
26167 /* confdefs.h. */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h. */
26172 int
26173 main ()
26174 {
26175 /* Are we little or big endian? From Harbison&Steele. */
26176 union
26177 {
26178 long l;
26179 char c[sizeof (long)];
26180 } u;
26181 u.l = 1;
26182 exit (u.c[sizeof (long) - 1] == 1);
26183 }
26184 _ACEOF
26185 rm -f conftest$ac_exeext
26186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26187 (eval $ac_link) 2>&5
26188 ac_status=$?
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; }; then
26196 ac_cv_c_bigendian=no
26197 else
26198 echo "$as_me: program exited with status $ac_status" >&5
26199 echo "$as_me: failed program was:" >&5
26200 sed 's/^/| /' conftest.$ac_ext >&5
26201
26202 ( exit $ac_status )
26203 ac_cv_c_bigendian=yes
26204 fi
26205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26206 fi
26207 fi
26208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26209 fi
26210 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26211 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26212 case $ac_cv_c_bigendian in
26213 yes)
26214
26215 cat >>confdefs.h <<\_ACEOF
26216 #define WORDS_BIGENDIAN 1
26217 _ACEOF
26218 ;;
26219 no)
26220 ;;
26221 *)
26222 { { echo "$as_me:$LINENO: error: unknown endianness
26223 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26224 echo "$as_me: error: unknown endianness
26225 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26226 { (exit 1); exit 1; }; } ;;
26227 esac
26228
26229
26230 ZLIBS=
26231 SYS_ZLIBS=
26232 ZINCS=
26233
26234 if test -z "$ZLIBSPEC"; then
26235 # Use zlib from the GCC tree.
26236 ZINCS='-I$(top_srcdir)/../zlib'
26237 ZLIBS=../zlib/libzgcj_convenience.la
26238 else
26239 # System's zlib.
26240 SYS_ZLIBS="$ZLIBSPEC"
26241 fi
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253 if test "$NATIVE" = yes; then
26254 NATIVE_TRUE=
26255 NATIVE_FALSE='#'
26256 else
26257 NATIVE_TRUE='#'
26258 NATIVE_FALSE=
26259 fi
26260
26261
26262
26263 if test "$enable_shared" = yes; then
26264 ENABLE_SHARED_TRUE=
26265 ENABLE_SHARED_FALSE='#'
26266 else
26267 ENABLE_SHARED_TRUE='#'
26268 ENABLE_SHARED_FALSE=
26269 fi
26270
26271
26272
26273 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26274 NEEDS_DATA_START_TRUE=
26275 NEEDS_DATA_START_FALSE='#'
26276 else
26277 NEEDS_DATA_START_TRUE='#'
26278 NEEDS_DATA_START_FALSE=
26279 fi
26280
26281
26282
26283 # Process the option "--enable-version-specific-runtime-libs"
26284 # Calculate toolexeclibdir
26285 case ${version_specific_libs} in
26286 yes)
26287 # Need the gcc compiler version to know where to install libraries
26288 # and header files if --enable-version-specific-runtime-libs option
26289 # is selected.
26290 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26291 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26292 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26293 toolexeclibdir=$toolexecmainlibdir
26294 ;;
26295 no)
26296 if test -n "$with_cross_host" &&
26297 test x"$with_cross_host" != x"no"; then
26298 # Install a library built with a cross compiler in tooldir, not libdir.
26299 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26300 toolexecmainlibdir='$(toolexecdir)/lib'
26301 else
26302 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26303 toolexecmainlibdir='$(libdir)'
26304 fi
26305 multi_os_directory=`$CC -print-multi-os-directory`
26306 case $multi_os_directory in
26307 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26308 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26309 esac
26310 ;;
26311 esac
26312
26313
26314
26315
26316 # Determine gcj and libgcj version number.
26317 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26318 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26319 GCJVERSION=$gcjversion
26320
26321
26322 cat >>confdefs.h <<_ACEOF
26323 #define GCJVERSION "$GCJVERSION"
26324 _ACEOF
26325
26326
26327 # Determine where the standard .db file and GNU Classpath JNI
26328 # libraries are found.
26329 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26330 multi_os_directory=`$CC -print-multi-os-directory`
26331 case $multi_os_directory in
26332 .)
26333 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26334 ;;
26335 *)
26336 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26337 ;;
26338 esac
26339
26340
26341
26342
26343 cat >>confdefs.h <<\_ACEOF
26344 #define JV_VERSION "1.5.0"
26345 _ACEOF
26346
26347
26348 cat >>confdefs.h <<\_ACEOF
26349 #define JV_API_VERSION "1.5"
26350 _ACEOF
26351
26352
26353
26354 case "${with_gxx_include_dir}" in
26355 yes)
26356 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26357 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26358 { (exit 1); exit 1; }; }
26359 ;;
26360 no | "")
26361 case "${enable_version_specific_runtime_libs}" in
26362 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26363 *)
26364 libstdcxx_incdir='c++/$(gcc_version)'
26365 gxx_include_dir='include/$(libstdcxx_incdir)'
26366 if test -n "$with_cross_host" &&
26367 test x"$with_cross_host" != x"no"; then
26368 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26369 else
26370 gxx_include_dir='${prefix}/'"$gxx_include_dir"
26371 fi;;
26372 esac ;;
26373 *) gxx_include_dir=${with_gxx_include_dir} ;;
26374 esac
26375
26376
26377
26378
26379 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26380 # On that system, sys/ioctl.h will not include sys/filio.h unless
26381 # BSD_COMP is defined; just including sys/filio.h is simpler.
26382 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26383 # for now. If you change this, you also must update natFile.cc.
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26408 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26409 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26410 pwd.h sys/config.h stdint.h langinfo.h locale.h \
26411 dirent.h sys/rw_lock.h magic.h ifaddrs.h
26412 do
26413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26415 echo "$as_me:$LINENO: checking for $ac_header" >&5
26416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26418 echo $ECHO_N "(cached) $ECHO_C" >&6
26419 fi
26420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26422 else
26423 # Is the header compilable?
26424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26426 cat >conftest.$ac_ext <<_ACEOF
26427 /* confdefs.h. */
26428 _ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h. */
26432 $ac_includes_default
26433 #include <$ac_header>
26434 _ACEOF
26435 rm -f conftest.$ac_objext
26436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26437 (eval $ac_compile) 2>conftest.er1
26438 ac_status=$?
26439 grep -v '^ *+' conftest.er1 >conftest.err
26440 rm -f conftest.er1
26441 cat conftest.err >&5
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); } &&
26444 { ac_try='test -z "$ac_c_werror_flag"
26445 || test ! -s conftest.err'
26446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447 (eval $ac_try) 2>&5
26448 ac_status=$?
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); }; } &&
26451 { ac_try='test -s conftest.$ac_objext'
26452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453 (eval $ac_try) 2>&5
26454 ac_status=$?
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; }; then
26457 ac_header_compiler=yes
26458 else
26459 echo "$as_me: failed program was:" >&5
26460 sed 's/^/| /' conftest.$ac_ext >&5
26461
26462 ac_header_compiler=no
26463 fi
26464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26466 echo "${ECHO_T}$ac_header_compiler" >&6
26467
26468 # Is the header present?
26469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26471 cat >conftest.$ac_ext <<_ACEOF
26472 /* confdefs.h. */
26473 _ACEOF
26474 cat confdefs.h >>conftest.$ac_ext
26475 cat >>conftest.$ac_ext <<_ACEOF
26476 /* end confdefs.h. */
26477 #include <$ac_header>
26478 _ACEOF
26479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26481 ac_status=$?
26482 grep -v '^ *+' conftest.er1 >conftest.err
26483 rm -f conftest.er1
26484 cat conftest.err >&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); } >/dev/null; then
26487 if test -s conftest.err; then
26488 ac_cpp_err=$ac_c_preproc_warn_flag
26489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26490 else
26491 ac_cpp_err=
26492 fi
26493 else
26494 ac_cpp_err=yes
26495 fi
26496 if test -z "$ac_cpp_err"; then
26497 ac_header_preproc=yes
26498 else
26499 echo "$as_me: failed program was:" >&5
26500 sed 's/^/| /' conftest.$ac_ext >&5
26501
26502 ac_header_preproc=no
26503 fi
26504 rm -f conftest.err conftest.$ac_ext
26505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26506 echo "${ECHO_T}$ac_header_preproc" >&6
26507
26508 # So? What about this header?
26509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26510 yes:no: )
26511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26515 ac_header_preproc=yes
26516 ;;
26517 no:yes:* )
26518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26530 (
26531 cat <<\_ASBOX
26532 ## ---------------------------------- ##
26533 ## Report this to the libjava lists. ##
26534 ## ---------------------------------- ##
26535 _ASBOX
26536 ) |
26537 sed "s/^/$as_me: WARNING: /" >&2
26538 ;;
26539 esac
26540 echo "$as_me:$LINENO: checking for $ac_header" >&5
26541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26543 echo $ECHO_N "(cached) $ECHO_C" >&6
26544 else
26545 eval "$as_ac_Header=\$ac_header_preproc"
26546 fi
26547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26549
26550 fi
26551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26552 cat >>confdefs.h <<_ACEOF
26553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26554 _ACEOF
26555
26556 fi
26557
26558 done
26559
26560
26561 for ac_header in inttypes.h
26562 do
26563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26565 echo "$as_me:$LINENO: checking for $ac_header" >&5
26566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26568 echo $ECHO_N "(cached) $ECHO_C" >&6
26569 fi
26570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26572 else
26573 # Is the header compilable?
26574 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26576 cat >conftest.$ac_ext <<_ACEOF
26577 /* confdefs.h. */
26578 _ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h. */
26582 $ac_includes_default
26583 #include <$ac_header>
26584 _ACEOF
26585 rm -f conftest.$ac_objext
26586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26587 (eval $ac_compile) 2>conftest.er1
26588 ac_status=$?
26589 grep -v '^ *+' conftest.er1 >conftest.err
26590 rm -f conftest.er1
26591 cat conftest.err >&5
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); } &&
26594 { ac_try='test -z "$ac_c_werror_flag"
26595 || test ! -s conftest.err'
26596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26597 (eval $ac_try) 2>&5
26598 ac_status=$?
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); }; } &&
26601 { ac_try='test -s conftest.$ac_objext'
26602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603 (eval $ac_try) 2>&5
26604 ac_status=$?
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); }; }; then
26607 ac_header_compiler=yes
26608 else
26609 echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26611
26612 ac_header_compiler=no
26613 fi
26614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26616 echo "${ECHO_T}$ac_header_compiler" >&6
26617
26618 # Is the header present?
26619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26621 cat >conftest.$ac_ext <<_ACEOF
26622 /* confdefs.h. */
26623 _ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h. */
26627 #include <$ac_header>
26628 _ACEOF
26629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26631 ac_status=$?
26632 grep -v '^ *+' conftest.er1 >conftest.err
26633 rm -f conftest.er1
26634 cat conftest.err >&5
26635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636 (exit $ac_status); } >/dev/null; then
26637 if test -s conftest.err; then
26638 ac_cpp_err=$ac_c_preproc_warn_flag
26639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26640 else
26641 ac_cpp_err=
26642 fi
26643 else
26644 ac_cpp_err=yes
26645 fi
26646 if test -z "$ac_cpp_err"; then
26647 ac_header_preproc=yes
26648 else
26649 echo "$as_me: failed program was:" >&5
26650 sed 's/^/| /' conftest.$ac_ext >&5
26651
26652 ac_header_preproc=no
26653 fi
26654 rm -f conftest.err conftest.$ac_ext
26655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26656 echo "${ECHO_T}$ac_header_preproc" >&6
26657
26658 # So? What about this header?
26659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26660 yes:no: )
26661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26665 ac_header_preproc=yes
26666 ;;
26667 no:yes:* )
26668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26680 (
26681 cat <<\_ASBOX
26682 ## ---------------------------------- ##
26683 ## Report this to the libjava lists. ##
26684 ## ---------------------------------- ##
26685 _ASBOX
26686 ) |
26687 sed "s/^/$as_me: WARNING: /" >&2
26688 ;;
26689 esac
26690 echo "$as_me:$LINENO: checking for $ac_header" >&5
26691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26693 echo $ECHO_N "(cached) $ECHO_C" >&6
26694 else
26695 eval "$as_ac_Header=\$ac_header_preproc"
26696 fi
26697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26699
26700 fi
26701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26702 cat >>confdefs.h <<_ACEOF
26703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26704 _ACEOF
26705
26706
26707 cat >>confdefs.h <<\_ACEOF
26708 #define HAVE_INTTYPES_H 1
26709 _ACEOF
26710
26711
26712 cat >>confdefs.h <<\_ACEOF
26713 #define JV_HAVE_INTTYPES_H 1
26714 _ACEOF
26715
26716
26717 fi
26718
26719 done
26720
26721
26722 echo "$as_me:$LINENO: checking for ssize_t" >&5
26723 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26724 if test "${ac_cv_type_ssize_t+set}" = set; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26726 else
26727 cat >conftest.$ac_ext <<_ACEOF
26728 /* confdefs.h. */
26729 _ACEOF
26730 cat confdefs.h >>conftest.$ac_ext
26731 cat >>conftest.$ac_ext <<_ACEOF
26732 /* end confdefs.h. */
26733 $ac_includes_default
26734 int
26735 main ()
26736 {
26737 if ((ssize_t *) 0)
26738 return 0;
26739 if (sizeof (ssize_t))
26740 return 0;
26741 ;
26742 return 0;
26743 }
26744 _ACEOF
26745 rm -f conftest.$ac_objext
26746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26747 (eval $ac_compile) 2>conftest.er1
26748 ac_status=$?
26749 grep -v '^ *+' conftest.er1 >conftest.err
26750 rm -f conftest.er1
26751 cat conftest.err >&5
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); } &&
26754 { ac_try='test -z "$ac_c_werror_flag"
26755 || test ! -s conftest.err'
26756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26757 (eval $ac_try) 2>&5
26758 ac_status=$?
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); }; } &&
26761 { ac_try='test -s conftest.$ac_objext'
26762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26763 (eval $ac_try) 2>&5
26764 ac_status=$?
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); }; }; then
26767 ac_cv_type_ssize_t=yes
26768 else
26769 echo "$as_me: failed program was:" >&5
26770 sed 's/^/| /' conftest.$ac_ext >&5
26771
26772 ac_cv_type_ssize_t=no
26773 fi
26774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26775 fi
26776 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26777 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26778 if test $ac_cv_type_ssize_t = yes; then
26779 :
26780 else
26781
26782 cat >>confdefs.h <<_ACEOF
26783 #define ssize_t int
26784 _ACEOF
26785
26786 fi
26787
26788 echo "$as_me:$LINENO: checking for magic_t" >&5
26789 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26790 if test "${ac_cv_type_magic_t+set}" = set; then
26791 echo $ECHO_N "(cached) $ECHO_C" >&6
26792 else
26793 cat >conftest.$ac_ext <<_ACEOF
26794 /* confdefs.h. */
26795 _ACEOF
26796 cat confdefs.h >>conftest.$ac_ext
26797 cat >>conftest.$ac_ext <<_ACEOF
26798 /* end confdefs.h. */
26799
26800 #ifdef HAVE_MAGIC_H
26801 #include <magic.h>
26802 #endif
26803
26804 int
26805 main ()
26806 {
26807 if ((magic_t *) 0)
26808 return 0;
26809 if (sizeof (magic_t))
26810 return 0;
26811 ;
26812 return 0;
26813 }
26814 _ACEOF
26815 rm -f conftest.$ac_objext
26816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26817 (eval $ac_compile) 2>conftest.er1
26818 ac_status=$?
26819 grep -v '^ *+' conftest.er1 >conftest.err
26820 rm -f conftest.er1
26821 cat conftest.err >&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); } &&
26824 { ac_try='test -z "$ac_c_werror_flag"
26825 || test ! -s conftest.err'
26826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; } &&
26831 { ac_try='test -s conftest.$ac_objext'
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26834 ac_status=$?
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26837 ac_cv_type_magic_t=yes
26838 else
26839 echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26841
26842 ac_cv_type_magic_t=no
26843 fi
26844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26845 fi
26846 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26847 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26848 if test $ac_cv_type_magic_t = yes; then
26849
26850
26851 cat >>confdefs.h <<\_ACEOF
26852 #define HAVE_MAGIC_T 1
26853 _ACEOF
26854
26855 fi
26856
26857
26858 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26859 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26860 cat >conftest.$ac_ext <<_ACEOF
26861 /* confdefs.h. */
26862 _ACEOF
26863 cat confdefs.h >>conftest.$ac_ext
26864 cat >>conftest.$ac_ext <<_ACEOF
26865 /* end confdefs.h. */
26866 #include <sys/types.h>
26867 #if STDC_HEADERS
26868 #include <stdlib.h>
26869 #include <stddef.h>
26870 #endif
26871 #if HAVE_NETINET_IN_H
26872 #include <netinet/in.h>
26873 #endif
26874 int
26875 main ()
26876 {
26877 in_addr_t foo;
26878 ;
26879 return 0;
26880 }
26881 _ACEOF
26882 rm -f conftest.$ac_objext
26883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26884 (eval $ac_compile) 2>conftest.er1
26885 ac_status=$?
26886 grep -v '^ *+' conftest.er1 >conftest.err
26887 rm -f conftest.er1
26888 cat conftest.err >&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } &&
26891 { ac_try='test -z "$ac_c_werror_flag"
26892 || test ! -s conftest.err'
26893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26894 (eval $ac_try) 2>&5
26895 ac_status=$?
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); }; } &&
26898 { ac_try='test -s conftest.$ac_objext'
26899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900 (eval $ac_try) 2>&5
26901 ac_status=$?
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); }; }; then
26904
26905 cat >>confdefs.h <<\_ACEOF
26906 #define HAVE_IN_ADDR_T 1
26907 _ACEOF
26908
26909 echo "$as_me:$LINENO: result: yes" >&5
26910 echo "${ECHO_T}yes" >&6
26911 else
26912 echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26914
26915 echo "$as_me:$LINENO: result: no" >&5
26916 echo "${ECHO_T}no" >&6
26917 fi
26918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26919
26920 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
26921 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
26922 cat >conftest.$ac_ext <<_ACEOF
26923 /* confdefs.h. */
26924 _ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h. */
26928 #include <netinet/in.h>
26929 int
26930 main ()
26931 {
26932 struct ip_mreq mreq;
26933 ;
26934 return 0;
26935 }
26936 _ACEOF
26937 rm -f conftest.$ac_objext
26938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26939 (eval $ac_compile) 2>conftest.er1
26940 ac_status=$?
26941 grep -v '^ *+' conftest.er1 >conftest.err
26942 rm -f conftest.er1
26943 cat conftest.err >&5
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); } &&
26946 { ac_try='test -z "$ac_c_werror_flag"
26947 || test ! -s conftest.err'
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26950 ac_status=$?
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; } &&
26953 { ac_try='test -s conftest.$ac_objext'
26954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955 (eval $ac_try) 2>&5
26956 ac_status=$?
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; }; then
26959
26960 cat >>confdefs.h <<\_ACEOF
26961 #define HAVE_STRUCT_IP_MREQ 1
26962 _ACEOF
26963
26964 echo "$as_me:$LINENO: result: yes" >&5
26965 echo "${ECHO_T}yes" >&6
26966 else
26967 echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970 echo "$as_me:$LINENO: result: no" >&5
26971 echo "${ECHO_T}no" >&6
26972 fi
26973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26974
26975 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
26976 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
26977 cat >conftest.$ac_ext <<_ACEOF
26978 /* confdefs.h. */
26979 _ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h. */
26983 #include <netinet/in.h>
26984 int
26985 main ()
26986 {
26987 struct ipv6_mreq mreq6;
26988 ;
26989 return 0;
26990 }
26991 _ACEOF
26992 rm -f conftest.$ac_objext
26993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26994 (eval $ac_compile) 2>conftest.er1
26995 ac_status=$?
26996 grep -v '^ *+' conftest.er1 >conftest.err
26997 rm -f conftest.er1
26998 cat conftest.err >&5
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); } &&
27001 { ac_try='test -z "$ac_c_werror_flag"
27002 || test ! -s conftest.err'
27003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004 (eval $ac_try) 2>&5
27005 ac_status=$?
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; } &&
27008 { ac_try='test -s conftest.$ac_objext'
27009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27010 (eval $ac_try) 2>&5
27011 ac_status=$?
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); }; }; then
27014
27015 cat >>confdefs.h <<\_ACEOF
27016 #define HAVE_STRUCT_IPV6_MREQ 1
27017 _ACEOF
27018
27019 echo "$as_me:$LINENO: result: yes" >&5
27020 echo "${ECHO_T}yes" >&6
27021 else
27022 echo "$as_me: failed program was:" >&5
27023 sed 's/^/| /' conftest.$ac_ext >&5
27024
27025 echo "$as_me:$LINENO: result: no" >&5
27026 echo "${ECHO_T}no" >&6
27027 fi
27028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27029
27030 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
27031 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
27032 cat >conftest.$ac_ext <<_ACEOF
27033 /* confdefs.h. */
27034 _ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27038 #include <netinet/in.h>
27039 int
27040 main ()
27041 {
27042 struct sockaddr_in6 addr6;
27043 ;
27044 return 0;
27045 }
27046 _ACEOF
27047 rm -f conftest.$ac_objext
27048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27049 (eval $ac_compile) 2>conftest.er1
27050 ac_status=$?
27051 grep -v '^ *+' conftest.er1 >conftest.err
27052 rm -f conftest.er1
27053 cat conftest.err >&5
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); } &&
27056 { ac_try='test -z "$ac_c_werror_flag"
27057 || test ! -s conftest.err'
27058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059 (eval $ac_try) 2>&5
27060 ac_status=$?
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; } &&
27063 { ac_try='test -s conftest.$ac_objext'
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27066 ac_status=$?
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; }; then
27069
27070 cat >>confdefs.h <<\_ACEOF
27071 #define HAVE_INET6 1
27072 _ACEOF
27073
27074 echo "$as_me:$LINENO: result: yes" >&5
27075 echo "${ECHO_T}yes" >&6
27076 else
27077 echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27079
27080 echo "$as_me:$LINENO: result: no" >&5
27081 echo "${ECHO_T}no" >&6
27082 fi
27083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27084
27085 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27086 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27087 cat >conftest.$ac_ext <<_ACEOF
27088 /* confdefs.h. */
27089 _ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h. */
27093 #define _POSIX_PII_SOCKET
27094 #include <sys/types.h>
27095 #include <sys/socket.h>
27096 int
27097 main ()
27098 {
27099 socklen_t x = 5;
27100 ;
27101 return 0;
27102 }
27103 _ACEOF
27104 rm -f conftest.$ac_objext
27105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27106 (eval $ac_compile) 2>conftest.er1
27107 ac_status=$?
27108 grep -v '^ *+' conftest.er1 >conftest.err
27109 rm -f conftest.er1
27110 cat conftest.err >&5
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); } &&
27113 { ac_try='test -z "$ac_c_werror_flag"
27114 || test ! -s conftest.err'
27115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27116 (eval $ac_try) 2>&5
27117 ac_status=$?
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); }; } &&
27120 { ac_try='test -s conftest.$ac_objext'
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27123 ac_status=$?
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; }; then
27126
27127 cat >>confdefs.h <<\_ACEOF
27128 #define HAVE_SOCKLEN_T 1
27129 _ACEOF
27130
27131 echo "$as_me:$LINENO: result: yes" >&5
27132 echo "${ECHO_T}yes" >&6
27133 else
27134 echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27136
27137 echo "$as_me:$LINENO: result: no" >&5
27138 echo "${ECHO_T}no" >&6
27139 fi
27140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27141
27142 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27143 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27144 cat >conftest.$ac_ext <<_ACEOF
27145 /* confdefs.h. */
27146 _ACEOF
27147 cat confdefs.h >>conftest.$ac_ext
27148 cat >>conftest.$ac_ext <<_ACEOF
27149 /* end confdefs.h. */
27150 #include <time.h>
27151 int
27152 main ()
27153 {
27154 struct tm tim; tim.tm_gmtoff = 0;
27155 ;
27156 return 0;
27157 }
27158 _ACEOF
27159 rm -f conftest.$ac_objext
27160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27161 (eval $ac_compile) 2>conftest.er1
27162 ac_status=$?
27163 grep -v '^ *+' conftest.er1 >conftest.err
27164 rm -f conftest.er1
27165 cat conftest.err >&5
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); } &&
27168 { ac_try='test -z "$ac_c_werror_flag"
27169 || test ! -s conftest.err'
27170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27171 (eval $ac_try) 2>&5
27172 ac_status=$?
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }; } &&
27175 { ac_try='test -s conftest.$ac_objext'
27176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27177 (eval $ac_try) 2>&5
27178 ac_status=$?
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); }; }; then
27181
27182 cat >>confdefs.h <<\_ACEOF
27183 #define STRUCT_TM_HAS_GMTOFF 1
27184 _ACEOF
27185
27186 echo "$as_me:$LINENO: result: yes" >&5
27187 echo "${ECHO_T}yes" >&6
27188 else
27189 echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27191
27192 echo "$as_me:$LINENO: result: no" >&5
27193 echo "${ECHO_T}no" >&6
27194 echo "$as_me:$LINENO: checking for global timezone variable" >&5
27195 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27196 cat >conftest.$ac_ext <<_ACEOF
27197 /* confdefs.h. */
27198 _ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h. */
27202 #include <time.h>
27203 int
27204 main ()
27205 {
27206 void i(){long z2 = 2*timezone;}
27207 ;
27208 return 0;
27209 }
27210 _ACEOF
27211 rm -f conftest.$ac_objext
27212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27213 (eval $ac_compile) 2>conftest.er1
27214 ac_status=$?
27215 grep -v '^ *+' conftest.er1 >conftest.err
27216 rm -f conftest.er1
27217 cat conftest.err >&5
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); } &&
27220 { ac_try='test -z "$ac_c_werror_flag"
27221 || test ! -s conftest.err'
27222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223 (eval $ac_try) 2>&5
27224 ac_status=$?
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; } &&
27227 { ac_try='test -s conftest.$ac_objext'
27228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27229 (eval $ac_try) 2>&5
27230 ac_status=$?
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; }; then
27233
27234 cat >>confdefs.h <<\_ACEOF
27235 #define HAVE_TIMEZONE 1
27236 _ACEOF
27237
27238 echo "$as_me:$LINENO: result: yes" >&5
27239 echo "${ECHO_T}yes" >&6
27240 else
27241 echo "$as_me: failed program was:" >&5
27242 sed 's/^/| /' conftest.$ac_ext >&5
27243
27244 echo "$as_me:$LINENO: result: no" >&5
27245 echo "${ECHO_T}no" >&6
27246 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27247 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27248 cat >conftest.$ac_ext <<_ACEOF
27249 /* confdefs.h. */
27250 _ACEOF
27251 cat confdefs.h >>conftest.$ac_ext
27252 cat >>conftest.$ac_ext <<_ACEOF
27253 /* end confdefs.h. */
27254 #include <time.h>
27255 int
27256 main ()
27257 {
27258 long z2 = _timezone;
27259 ;
27260 return 0;
27261 }
27262 _ACEOF
27263 rm -f conftest.$ac_objext
27264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27265 (eval $ac_compile) 2>conftest.er1
27266 ac_status=$?
27267 grep -v '^ *+' conftest.er1 >conftest.err
27268 rm -f conftest.er1
27269 cat conftest.err >&5
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); } &&
27272 { ac_try='test -z "$ac_c_werror_flag"
27273 || test ! -s conftest.err'
27274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27275 (eval $ac_try) 2>&5
27276 ac_status=$?
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); }; } &&
27279 { ac_try='test -s conftest.$ac_objext'
27280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27281 (eval $ac_try) 2>&5
27282 ac_status=$?
27283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284 (exit $ac_status); }; }; then
27285
27286 cat >>confdefs.h <<\_ACEOF
27287 #define HAVE_UNDERSCORE_TIMEZONE 1
27288 _ACEOF
27289
27290 echo "$as_me:$LINENO: result: yes" >&5
27291 echo "${ECHO_T}yes" >&6
27292 else
27293 echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27295
27296 echo "$as_me:$LINENO: result: no" >&5
27297 echo "${ECHO_T}no" >&6
27298 fi
27299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27300 fi
27301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27302 fi
27303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27304
27305 for ac_prog in perl
27306 do
27307 # Extract the first word of "$ac_prog", so it can be a program name with args.
27308 set dummy $ac_prog; ac_word=$2
27309 echo "$as_me:$LINENO: checking for $ac_word" >&5
27310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27311 if test "${ac_cv_prog_PERL+set}" = set; then
27312 echo $ECHO_N "(cached) $ECHO_C" >&6
27313 else
27314 if test -n "$PERL"; then
27315 ac_cv_prog_PERL="$PERL" # Let the user override the test.
27316 else
27317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27318 for as_dir in $PATH
27319 do
27320 IFS=$as_save_IFS
27321 test -z "$as_dir" && as_dir=.
27322 for ac_exec_ext in '' $ac_executable_extensions; do
27323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27324 ac_cv_prog_PERL="$ac_prog"
27325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27326 break 2
27327 fi
27328 done
27329 done
27330
27331 fi
27332 fi
27333 PERL=$ac_cv_prog_PERL
27334 if test -n "$PERL"; then
27335 echo "$as_me:$LINENO: result: $PERL" >&5
27336 echo "${ECHO_T}$PERL" >&6
27337 else
27338 echo "$as_me:$LINENO: result: no" >&5
27339 echo "${ECHO_T}no" >&6
27340 fi
27341
27342 test -n "$PERL" && break
27343 done
27344 test -n "$PERL" || PERL="false"
27345
27346
27347 SYSDEP_SOURCES=
27348 SIGNAL_HANDLER_AUX=
27349
27350 case "${host}" in
27351 i?86-*-linux*)
27352 SIGNAL_HANDLER=include/i386-signal.h
27353 ;;
27354 sparc*-sun-solaris*)
27355 SIGNAL_HANDLER=include/sparc-signal.h
27356 ;;
27357 # ia64-*)
27358 # SYSDEP_SOURCES=sysdep/ia64.c
27359 # test -d sysdep || mkdir sysdep
27360 # ;;
27361 hppa*-*-linux*)
27362 SIGNAL_HANDLER=include/pa-signal.h
27363 ;;
27364 hppa*-hp-hpux*)
27365 SIGNAL_HANDLER=include/hppa-signal.h
27366 ;;
27367 ia64-*-linux*)
27368 SIGNAL_HANDLER=include/dwarf2-signal.h
27369 ;;
27370 powerpc*-*-linux*)
27371 SIGNAL_HANDLER=include/powerpc-signal.h
27372 ;;
27373 alpha*-*-linux*)
27374 SIGNAL_HANDLER=include/dwarf2-signal.h
27375 ;;
27376 s390*-*-linux*)
27377 SIGNAL_HANDLER=include/s390-signal.h
27378 ;;
27379 x86_64*-*-linux*)
27380 SIGNAL_HANDLER=include/x86_64-signal.h
27381 SIGNAL_HANDLER_AUX=include/i386-signal.h
27382 ;;
27383 sparc*-*-linux*)
27384 SIGNAL_HANDLER=include/dwarf2-signal.h
27385 ;;
27386 sh*-*-linux*)
27387 SIGNAL_HANDLER=include/sh-signal.h
27388 ;;
27389 *mingw*)
27390 SIGNAL_HANDLER=include/win32-signal.h
27391 ;;
27392 mips*-*-linux*)
27393 SIGNAL_HANDLER=include/mips-signal.h
27394 ;;
27395 m68*-*-linux*)
27396 SIGNAL_HANDLER=include/dwarf2-signal.h
27397 ;;
27398 powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27399 SIGNAL_HANDLER=include/darwin-signal.h
27400 ;;
27401 *)
27402 SIGNAL_HANDLER=include/default-signal.h
27403 ;;
27404 esac
27405
27406 # If we're using sjlj exceptions, forget what we just learned.
27407 if test "$enable_sjlj_exceptions" = yes; then
27408 SIGNAL_HANDLER=include/default-signal.h
27409 SIGNAL_HANDLER_AUX=
27410 fi
27411
27412
27413
27414 if test -z "$SIGNAL_HANDLER_AUX"; then
27415 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27416 fi
27417
27418 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27419
27420
27421 if test "${multilib}" = "yes"; then
27422 multilib_arg="--enable-multilib"
27423 else
27424 multilib_arg=
27425 fi
27426
27427 # See if we support thread-local storage.
27428
27429 # Check whether --enable-tls or --disable-tls was given.
27430 if test "${enable_tls+set}" = set; then
27431 enableval="$enable_tls"
27432
27433 case "$enableval" in
27434 yes|no) ;;
27435 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27436 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27437 { (exit 1); exit 1; }; } ;;
27438 esac
27439
27440 else
27441 enable_tls=yes
27442 fi;
27443
27444 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27445 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27446 if test "${gcc_cv_have_tls+set}" = set; then
27447 echo $ECHO_N "(cached) $ECHO_C" >&6
27448 else
27449
27450 if test "$cross_compiling" = yes; then
27451 if test x$gcc_no_link = xyes; then
27452 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27453 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27454 { (exit 1); exit 1; }; }
27455 fi
27456 cat >conftest.$ac_ext <<_ACEOF
27457 __thread int a; int b; int main() { return a = b; }
27458 _ACEOF
27459 rm -f conftest.$ac_objext conftest$ac_exeext
27460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27461 (eval $ac_link) 2>conftest.er1
27462 ac_status=$?
27463 grep -v '^ *+' conftest.er1 >conftest.err
27464 rm -f conftest.er1
27465 cat conftest.err >&5
27466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); } &&
27468 { ac_try='test -z "$ac_c_werror_flag"
27469 || test ! -s conftest.err'
27470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27471 (eval $ac_try) 2>&5
27472 ac_status=$?
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; } &&
27475 { ac_try='test -s conftest$ac_exeext'
27476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27477 (eval $ac_try) 2>&5
27478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; }; then
27481 gcc_cv_have_tls=yes
27482 else
27483 echo "$as_me: failed program was:" >&5
27484 sed 's/^/| /' conftest.$ac_ext >&5
27485
27486 gcc_cv_have_tls=no
27487 fi
27488 rm -f conftest.err conftest.$ac_objext \
27489 conftest$ac_exeext conftest.$ac_ext
27490
27491
27492 else
27493 cat >conftest.$ac_ext <<_ACEOF
27494 __thread int a; int b; int main() { return a = b; }
27495 _ACEOF
27496 rm -f conftest$ac_exeext
27497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27498 (eval $ac_link) 2>&5
27499 ac_status=$?
27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27503 (eval $ac_try) 2>&5
27504 ac_status=$?
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); }; }; then
27507 chktls_save_LDFLAGS="$LDFLAGS"
27508 LDFLAGS="-static $LDFLAGS"
27509 if test x$gcc_no_link = xyes; then
27510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27512 { (exit 1); exit 1; }; }
27513 fi
27514 cat >conftest.$ac_ext <<_ACEOF
27515 int main() { return 0; }
27516 _ACEOF
27517 rm -f conftest.$ac_objext conftest$ac_exeext
27518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27519 (eval $ac_link) 2>conftest.er1
27520 ac_status=$?
27521 grep -v '^ *+' conftest.er1 >conftest.err
27522 rm -f conftest.er1
27523 cat conftest.err >&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } &&
27526 { ac_try='test -z "$ac_c_werror_flag"
27527 || test ! -s conftest.err'
27528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27529 (eval $ac_try) 2>&5
27530 ac_status=$?
27531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532 (exit $ac_status); }; } &&
27533 { ac_try='test -s conftest$ac_exeext'
27534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27535 (eval $ac_try) 2>&5
27536 ac_status=$?
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); }; }; then
27539 if test "$cross_compiling" = yes; then
27540 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27541 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27542 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27543 See \`config.log' for more details." >&5
27544 echo "$as_me: error: cannot run test program while cross compiling
27545 See \`config.log' for more details." >&2;}
27546 { (exit 1); exit 1; }; }; }
27547 else
27548 cat >conftest.$ac_ext <<_ACEOF
27549 __thread int a; int b; int main() { return a = b; }
27550 _ACEOF
27551 rm -f conftest$ac_exeext
27552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27553 (eval $ac_link) 2>&5
27554 ac_status=$?
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27558 (eval $ac_try) 2>&5
27559 ac_status=$?
27560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561 (exit $ac_status); }; }; then
27562 gcc_cv_have_tls=yes
27563 else
27564 echo "$as_me: program exited with status $ac_status" >&5
27565 echo "$as_me: failed program was:" >&5
27566 sed 's/^/| /' conftest.$ac_ext >&5
27567
27568 ( exit $ac_status )
27569 gcc_cv_have_tls=no
27570 fi
27571 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27572 fi
27573 else
27574 echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27576
27577 gcc_cv_have_tls=yes
27578 fi
27579 rm -f conftest.err conftest.$ac_objext \
27580 conftest$ac_exeext conftest.$ac_ext
27581 LDFLAGS="$chktls_save_LDFLAGS"
27582 if test $gcc_cv_have_tls = yes; then
27583 chktls_save_CFLAGS="$CFLAGS"
27584 thread_CFLAGS=failed
27585 for flag in '' '-pthread' '-lpthread'; do
27586 CFLAGS="$flag $chktls_save_CFLAGS"
27587 if test x$gcc_no_link = xyes; then
27588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27590 { (exit 1); exit 1; }; }
27591 fi
27592 cat >conftest.$ac_ext <<_ACEOF
27593 /* confdefs.h. */
27594 _ACEOF
27595 cat confdefs.h >>conftest.$ac_ext
27596 cat >>conftest.$ac_ext <<_ACEOF
27597 /* end confdefs.h. */
27598 #include <pthread.h>
27599 void *g(void *d) { return NULL; }
27600 int
27601 main ()
27602 {
27603 pthread_t t; pthread_create(&t,NULL,g,NULL);
27604 ;
27605 return 0;
27606 }
27607 _ACEOF
27608 rm -f conftest.$ac_objext conftest$ac_exeext
27609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27610 (eval $ac_link) 2>conftest.er1
27611 ac_status=$?
27612 grep -v '^ *+' conftest.er1 >conftest.err
27613 rm -f conftest.er1
27614 cat conftest.err >&5
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); } &&
27617 { ac_try='test -z "$ac_c_werror_flag"
27618 || test ! -s conftest.err'
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27621 ac_status=$?
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; } &&
27624 { ac_try='test -s conftest$ac_exeext'
27625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626 (eval $ac_try) 2>&5
27627 ac_status=$?
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); }; }; then
27630 thread_CFLAGS="$flag"
27631 else
27632 echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27634
27635 fi
27636 rm -f conftest.err conftest.$ac_objext \
27637 conftest$ac_exeext conftest.$ac_ext
27638 if test "X$thread_CFLAGS" != Xfailed; then
27639 break
27640 fi
27641 done
27642 CFLAGS="$chktls_save_CFLAGS"
27643 if test "X$thread_CFLAGS" != Xfailed; then
27644 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27645 if test "$cross_compiling" = yes; then
27646 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27647 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27648 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27649 See \`config.log' for more details." >&5
27650 echo "$as_me: error: cannot run test program while cross compiling
27651 See \`config.log' for more details." >&2;}
27652 { (exit 1); exit 1; }; }; }
27653 else
27654 cat >conftest.$ac_ext <<_ACEOF
27655 /* confdefs.h. */
27656 _ACEOF
27657 cat confdefs.h >>conftest.$ac_ext
27658 cat >>conftest.$ac_ext <<_ACEOF
27659 /* end confdefs.h. */
27660 #include <pthread.h>
27661 __thread int a;
27662 static int *a_in_other_thread;
27663 static void *
27664 thread_func (void *arg)
27665 {
27666 a_in_other_thread = &a;
27667 return (void *)0;
27668 }
27669 int
27670 main ()
27671 {
27672 pthread_t thread;
27673 void *thread_retval;
27674 int *a_in_main_thread;
27675 if (pthread_create (&thread, (pthread_attr_t *)0,
27676 thread_func, (void *)0))
27677 return 0;
27678 a_in_main_thread = &a;
27679 if (pthread_join (thread, &thread_retval))
27680 return 0;
27681 return (a_in_other_thread == a_in_main_thread);
27682 ;
27683 return 0;
27684 }
27685 _ACEOF
27686 rm -f conftest$ac_exeext
27687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27688 (eval $ac_link) 2>&5
27689 ac_status=$?
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693 (eval $ac_try) 2>&5
27694 ac_status=$?
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; }; then
27697 gcc_cv_have_tls=yes
27698 else
27699 echo "$as_me: program exited with status $ac_status" >&5
27700 echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27702
27703 ( exit $ac_status )
27704 gcc_cv_have_tls=no
27705 fi
27706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27707 fi
27708 CFLAGS="$chktls_save_CFLAGS"
27709 fi
27710 fi
27711 else
27712 echo "$as_me: program exited with status $ac_status" >&5
27713 echo "$as_me: failed program was:" >&5
27714 sed 's/^/| /' conftest.$ac_ext >&5
27715
27716 ( exit $ac_status )
27717 gcc_cv_have_tls=no
27718 fi
27719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27720 fi
27721 fi
27722 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27723 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27724 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27725
27726 cat >>confdefs.h <<\_ACEOF
27727 #define HAVE_TLS 1
27728 _ACEOF
27729
27730 fi
27731
27732 # For _Unwind_GetIPInfo.
27733
27734
27735
27736 ac_ext=cc
27737 ac_cpp='$CXXCPP $CPPFLAGS'
27738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27741
27742 ac_save_CXXFLAGS="$CXXFLAGS"
27743 CXXFLAGS="$CXXFLAGS -fno-exceptions"
27744 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27745 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27746 if test "${gcc_cv_getipinfo+set}" = set; then
27747 echo $ECHO_N "(cached) $ECHO_C" >&6
27748 else
27749
27750 if test x$gcc_no_link = xyes; then
27751 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27753 { (exit 1); exit 1; }; }
27754 fi
27755 cat >conftest.$ac_ext <<_ACEOF
27756 /* confdefs.h. */
27757 _ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h. */
27761 extern "C" { extern void _Unwind_GetIPInfo(); }
27762 int
27763 main ()
27764 {
27765 _Unwind_GetIPInfo();
27766 ;
27767 return 0;
27768 }
27769 _ACEOF
27770 rm -f conftest.$ac_objext conftest$ac_exeext
27771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27772 (eval $ac_link) 2>conftest.er1
27773 ac_status=$?
27774 grep -v '^ *+' conftest.er1 >conftest.err
27775 rm -f conftest.er1
27776 cat conftest.err >&5
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); } &&
27779 { ac_try='test -z "$ac_cxx_werror_flag"
27780 || test ! -s conftest.err'
27781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27782 (eval $ac_try) 2>&5
27783 ac_status=$?
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); }; } &&
27786 { ac_try='test -s conftest$ac_exeext'
27787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788 (eval $ac_try) 2>&5
27789 ac_status=$?
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; }; then
27792 gcc_cv_getipinfo=yes
27793 else
27794 echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27796
27797 gcc_cv_getipinfo=no
27798 fi
27799 rm -f conftest.err conftest.$ac_objext \
27800 conftest$ac_exeext conftest.$ac_ext
27801
27802 fi
27803
27804 if test $gcc_cv_getipinfo = yes; then
27805
27806 cat >>confdefs.h <<\_ACEOF
27807 #define HAVE_GETIPINFO 1
27808 _ACEOF
27809
27810 fi
27811 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27812 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27813 CXXFLAGS="$ac_save_CXXFLAGS"
27814 ac_ext=c
27815 ac_cpp='$CPP $CPPFLAGS'
27816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27819
27820
27821
27822 # See if linker supports anonymous version scripts.
27823 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27824 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27825 if test "${libjava_cv_anon_version_script+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827 else
27828 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27829 libjava_cv_anon_version_script=no
27830 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27831 echo '{ global: globalsymb*; local: *; };' > conftest.map
27832 if test x$gcc_no_link = xyes; then
27833 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27834 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27835 { (exit 1); exit 1; }; }
27836 fi
27837 cat >conftest.$ac_ext <<_ACEOF
27838 /* confdefs.h. */
27839 _ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h. */
27843 void globalsymbol (void) {} void localsymbol (void) {}
27844 int
27845 main ()
27846 {
27847
27848 ;
27849 return 0;
27850 }
27851 _ACEOF
27852 rm -f conftest.$ac_objext conftest$ac_exeext
27853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27854 (eval $ac_link) 2>conftest.er1
27855 ac_status=$?
27856 grep -v '^ *+' conftest.er1 >conftest.err
27857 rm -f conftest.er1
27858 cat conftest.err >&5
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); } &&
27861 { ac_try='test -z "$ac_c_werror_flag"
27862 || test ! -s conftest.err'
27863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27864 (eval $ac_try) 2>&5
27865 ac_status=$?
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); }; } &&
27868 { ac_try='test -s conftest$ac_exeext'
27869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27870 (eval $ac_try) 2>&5
27871 ac_status=$?
27872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873 (exit $ac_status); }; }; then
27874 libjava_cv_anon_version_script=yes
27875 else
27876 echo "$as_me: failed program was:" >&5
27877 sed 's/^/| /' conftest.$ac_ext >&5
27878
27879 fi
27880 rm -f conftest.err conftest.$ac_objext \
27881 conftest$ac_exeext conftest.$ac_ext
27882 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27883
27884 fi
27885 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27886 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27887
27888
27889 if test "$libjava_cv_anon_version_script" = yes; then
27890 ANONVERSCRIPT_TRUE=
27891 ANONVERSCRIPT_FALSE='#'
27892 else
27893 ANONVERSCRIPT_TRUE='#'
27894 ANONVERSCRIPT_FALSE=
27895 fi
27896
27897
27898 # Check if linker supports static linking on a per library basis
27899 LD_START_STATIC_SPEC=
27900 LD_FINISH_STATIC_SPEC=
27901 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27902 if $LD --help 2>&1 | grep -q -e -non_shared ; then
27903 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27904 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27905 fi
27906 fi
27907
27908
27909
27910 here=`${PWDCMD-pwd}`
27911
27912
27913 # We get this from the environment.
27914
27915
27916
27917 # Check whether --with-python-dir or --without-python-dir was given.
27918 if test "${with_python_dir+set}" = set; then
27919 withval="$with_python_dir"
27920 with_python_dir=$withval
27921 else
27922 with_python_dir=""
27923 fi;
27924
27925 if test "x${with_python_dir}" = "x"
27926 then
27927 # Needed for installing Python modules during make install.
27928 python_mod_dir="\${prefix}/share/python"
27929 # Needed for substituting into aot-compile*
27930 python_mod_dir_expanded="${prefix}/share/python"
27931 else
27932 python_mod_dir="\${prefix}${with_python_dir}"
27933 python_mod_dir_expanded="${prefix}${with_python_dir}"
27934 fi
27935 echo "$as_me:$LINENO: result: Python modules dir: ${python_mod_dir_expanded}" >&5
27936 echo "${ECHO_T}Python modules dir: ${python_mod_dir_expanded}" >&6;
27937
27938
27939
27940 # needed for aot-compile-rpm
27941 MAKE=`which make`
27942
27943
27944 # Check whether --enable-aot-compile-rpm or --disable-aot-compile-rpm was given.
27945 if test "${enable_aot_compile_rpm+set}" = set; then
27946 enableval="$enable_aot_compile_rpm"
27947 case "${enableval}" in
27948 yes) AOT_RPM_ENABLED=yes ;;
27949 no) AOT_RPM_ENABLED=no ;;
27950 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable aot-compile-rpm" >&5
27951 echo "$as_me: error: Unknown argument to enable/disable aot-compile-rpm" >&2;}
27952 { (exit 1); exit 1; }; } ;;
27953 esac
27954 else
27955 AOT_RPM_ENABLED=no
27956
27957 fi;
27958
27959
27960 if test "x${AOT_RPM_ENABLED}" == xyes; then
27961 INSTALL_AOT_RPM_TRUE=
27962 INSTALL_AOT_RPM_FALSE='#'
27963 else
27964 INSTALL_AOT_RPM_TRUE='#'
27965 INSTALL_AOT_RPM_FALSE=
27966 fi
27967
27968
27969 # Check whether --enable-java-home or --disable-java-home was given.
27970 if test "${enable_java_home+set}" = set; then
27971 enableval="$enable_java_home"
27972 case "${enableval}" in
27973 yes) JAVA_HOME_ENABLED=yes ;;
27974 no) JAVA_HOME_ENABLED=no ;;
27975 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable java-home" >&5
27976 echo "$as_me: error: Unknown argument to enable/disable java-home" >&2;}
27977 { (exit 1); exit 1; }; } ;;
27978 esac
27979 else
27980 JAVA_HOME_ENABLED=no
27981
27982 fi;
27983
27984
27985 if test "x${JAVA_HOME_ENABLED}" == xyes; then
27986 CREATE_JAVA_HOME_TRUE=
27987 CREATE_JAVA_HOME_FALSE='#'
27988 else
27989 CREATE_JAVA_HOME_TRUE='#'
27990 CREATE_JAVA_HOME_FALSE=
27991 fi
27992
27993
27994 # Only do these checks if java-home above is enabled.
27995 if test "x${JAVA_HOME_ENABLED}" == xyes
27996 then
27997
27998
27999 # Check whether --with-gcc-suffix or --without-gcc-suffix was given.
28000 if test "${with_gcc_suffix+set}" = set; then
28001 withval="$with_gcc_suffix"
28002 gcc_suffix=$withval
28003 else
28004 gcc_suffix=""
28005 fi;
28006 echo "$as_me:$LINENO: result: GCC suffix: ${gcc_suffix}" >&5
28007 echo "${ECHO_T}GCC suffix: ${gcc_suffix}" >&6
28008
28009
28010
28011 # Check whether --with-arch-directory or --without-arch-directory was given.
28012 if test "${with_arch_directory+set}" = set; then
28013 withval="$with_arch_directory"
28014 host_cpu=$withval
28015 else
28016 host_cpu=""
28017 fi;
28018
28019
28020 # Check whether --with-os-directory or --without-os-directory was given.
28021 if test "${with_os_directory+set}" = set; then
28022 withval="$with_os_directory"
28023 host_os=$withval
28024 else
28025 host_os=""
28026 fi;
28027
28028
28029 # Check whether --with-origin-name or --without-origin-name was given.
28030 if test "${with_origin_name+set}" = set; then
28031 withval="$with_origin_name"
28032 origin_name=$withval
28033 else
28034 origin_name=gcj${gcc_suffix}
28035 fi;
28036 echo "$as_me:$LINENO: result: JPackage origin name: ${origin_name}" >&5
28037 echo "${ECHO_T}JPackage origin name: ${origin_name}" >&6
28038
28039
28040 # Check whether --with-arch-suffix or --without-arch-suffix was given.
28041 if test "${with_arch_suffix+set}" = set; then
28042 withval="$with_arch_suffix"
28043 arch_suffix=$withval
28044 else
28045 arch_suffix=""
28046 fi;
28047 echo "$as_me:$LINENO: result: arch suffix: ${arch_suffix}" >&5
28048 echo "${ECHO_T}arch suffix: ${arch_suffix}" >&6
28049
28050
28051 # Check whether --with-jvm-root-dir or --without-jvm-root-dir was given.
28052 if test "${with_jvm_root_dir+set}" = set; then
28053 withval="$with_jvm_root_dir"
28054 jvm_root_dir=$withval
28055 else
28056 jvm_root_dir="\${prefix}/lib/jvm"
28057 fi;
28058 echo "$as_me:$LINENO: result: JVM root installation directory: ${jvm_root_dir}" >&5
28059 echo "${ECHO_T}JVM root installation directory: ${jvm_root_dir}" >&6
28060
28061
28062 # Check whether --with-jvm-jar-dir or --without-jvm-jar-dir was given.
28063 if test "${with_jvm_jar_dir+set}" = set; then
28064 withval="$with_jvm_jar_dir"
28065 jvm_jar_dir=$withval
28066 else
28067 jvm_jar_dir=\${prefix}/lib/jvm-exports
28068 fi;
28069 echo "$as_me:$LINENO: result: JAR root installation directory: ${jvm_jar_dir}" >&5
28070 echo "${ECHO_T}JAR root installation directory: ${jvm_jar_dir}" >&6
28071
28072 JAVA_VERSION=1.5.0
28073 BUILD_VERSION=0
28074
28075
28076 echo "$as_me:$LINENO: result: Java version: ${JAVA_VERSION}" >&5
28077 echo "${ECHO_T}Java version: ${JAVA_VERSION}" >&6
28078
28079 jre_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}/jre
28080 sdk_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}
28081 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
28082 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
28083
28084 JVM_ROOT_DIR=${jvm_root_dir}
28085
28086 echo "$as_me:$LINENO: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
28087 echo "${ECHO_T}JVM ROOT directory: ${JVM_ROOT_DIR}" >&6
28088
28089 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
28090
28091 echo "$as_me:$LINENO: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
28092 echo "${ECHO_T}JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6
28093
28094 JVM_JAR_DIR=${jvm_jar_dir}/${sdk_dir}
28095
28096 echo "$as_me:$LINENO: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
28097 echo "${ECHO_T}JVM JAR directory: ${JVM_JAR_DIR}" >&6
28098
28099 JRE_DIR=${jre_dir}
28100
28101
28102 SDK_DIR=${sdk_dir}
28103
28104
28105 JRE_LNK=${jre_lnk}
28106
28107
28108 SDK_LNK=${sdk_lnk}
28109
28110
28111 SDK_BIN_DIR=${jvm_root_dir}/${sdk_dir}/bin
28112
28113 echo "$as_me:$LINENO: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
28114 echo "${ECHO_T}SDK tools directory: ${SDK_BIN_DIR}" >&6
28115
28116 SDK_LIB_DIR=${jvm_root_dir}/${sdk_dir}/lib
28117
28118 echo "$as_me:$LINENO: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
28119 echo "${ECHO_T}SDK jar directory: ${SDK_LIB_DIR}" >&6
28120
28121 SDK_INCLUDE_DIR=${jvm_root_dir}/${sdk_dir}/include
28122
28123 echo "$as_me:$LINENO: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
28124 echo "${ECHO_T}SDK include directory: ${SDK_INCLUDE_DIR}" >&6
28125
28126 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
28127
28128 echo "$as_me:$LINENO: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
28129 echo "${ECHO_T}JRE tools directory: ${JRE_BIN_DIR}" >&6
28130
28131 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
28132
28133 echo "$as_me:$LINENO: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
28134 echo "${ECHO_T}JRE lib directory: ${JRE_LIB_DIR}" >&6
28135
28136 # Find gcj prefix using gcj found in PATH.
28137 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
28138
28139 # Where do the gcj binaries live?
28140 # For jhbuild based builds, they all live in a sibling of bin called
28141 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
28142 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
28143
28144 echo "$as_me:$LINENO: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
28145 echo "${ECHO_T}GCJ tools directory: ${GCJ_BIN_DIR}" >&6
28146
28147 echo host is ${host}
28148 if test "x${host_cpu}" = "x"
28149 then
28150 case ${host} in
28151 *-mingw* | *-cygwin*)
28152 host_cpu=x86;;
28153 i486-* | i586-* | i686-*)
28154 host_cpu=i386;;
28155 *)
28156 host_cpu=${host_cpu};;
28157 esac
28158 fi
28159 echo "$as_me:$LINENO: result: arch directory: ${host_cpu}" >&5
28160 echo "${ECHO_T}arch directory: ${host_cpu}" >&6
28161 CPU=${host_cpu}
28162
28163
28164 if test "x${host_os}" = "x"
28165 then
28166 case ${host} in
28167 *-mingw* | *-cygwin*)
28168 host_os=win32;;
28169 *-linux*)
28170 host_os=linux;;
28171 *)
28172 host_os=${host_os};;
28173 esac
28174 fi
28175 echo os directory: ${host_os}
28176 OS=${host_os}
28177
28178
28179 # make an expanded $libdir, for substituting into
28180 # scripts (and other non-Makefile things).
28181 LIBDIR=$libdir
28182 if test "x${exec_prefix}" = "xNONE"
28183 then
28184 lib_exec_prefix=$prefix
28185 else
28186 lib_exec_prefix=$exec_prefix
28187 fi
28188 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
28189
28190 fi
28191
28192 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"
28193
28194
28195 if test ${multilib} = yes; then
28196 multilib_arg="--enable-multilib"
28197 else
28198 multilib_arg=
28199 fi
28200
28201 ac_config_files="$ac_config_files scripts/jar"
28202
28203 cat >confcache <<\_ACEOF
28204 # This file is a shell script that caches the results of configure
28205 # tests run on this system so they can be shared between configure
28206 # scripts and configure runs, see configure's option --config-cache.
28207 # It is not useful on other systems. If it contains results you don't
28208 # want to keep, you may remove or edit it.
28209 #
28210 # config.status only pays attention to the cache file if you give it
28211 # the --recheck option to rerun configure.
28212 #
28213 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28214 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28215 # following values.
28216
28217 _ACEOF
28218
28219 # The following way of writing the cache mishandles newlines in values,
28220 # but we know of no workaround that is simple, portable, and efficient.
28221 # So, don't put newlines in cache variables' values.
28222 # Ultrix sh set writes to stderr and can't be redirected directly,
28223 # and sets the high bit in the cache file unless we assign to the vars.
28224 {
28225 (set) 2>&1 |
28226 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28227 *ac_space=\ *)
28228 # `set' does not quote correctly, so add quotes (double-quote
28229 # substitution turns \\\\ into \\, and sed turns \\ into \).
28230 sed -n \
28231 "s/'/'\\\\''/g;
28232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28233 ;;
28234 *)
28235 # `set' quotes correctly as required by POSIX, so do not add quotes.
28236 sed -n \
28237 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28238 ;;
28239 esac;
28240 } |
28241 sed '
28242 t clear
28243 : clear
28244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28245 t end
28246 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28247 : end' >>confcache
28248 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28249 if test -w $cache_file; then
28250 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28251 cat confcache >$cache_file
28252 else
28253 echo "not updating unwritable cache $cache_file"
28254 fi
28255 fi
28256 rm -f confcache
28257
28258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28259 # Let make expand exec_prefix.
28260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28261
28262 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28263 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28264 # trailing colons and then remove the whole line if VPATH becomes empty
28265 # (actually we leave an empty line to preserve line numbers).
28266 if test "x$srcdir" = x.; then
28267 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28268 s/:*\$(srcdir):*/:/;
28269 s/:*\${srcdir}:*/:/;
28270 s/:*@srcdir@:*/:/;
28271 s/^\([^=]*=[ ]*\):*/\1/;
28272 s/:*$//;
28273 s/^[^=]*=[ ]*$//;
28274 }'
28275 fi
28276
28277 DEFS=-DHAVE_CONFIG_H
28278
28279 ac_libobjs=
28280 ac_ltlibobjs=
28281 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28282 # 1. Remove the extension, and $U if already installed.
28283 ac_i=`echo "$ac_i" |
28284 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28285 # 2. Add them.
28286 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28287 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28288 done
28289 LIBOBJS=$ac_libobjs
28290
28291 LTLIBOBJS=$ac_ltlibobjs
28292
28293
28294 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
28295 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28296 Usually this means the macro was only invoked conditionally." >&5
28297 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28298 Usually this means the macro was only invoked conditionally." >&2;}
28299 { (exit 1); exit 1; }; }
28300 fi
28301 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28302 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28303 Usually this means the macro was only invoked conditionally." >&5
28304 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28305 Usually this means the macro was only invoked conditionally." >&2;}
28306 { (exit 1); exit 1; }; }
28307 fi
28308 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28309 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28310 Usually this means the macro was only invoked conditionally." >&5
28311 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28312 Usually this means the macro was only invoked conditionally." >&2;}
28313 { (exit 1); exit 1; }; }
28314 fi
28315 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28316 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28317 Usually this means the macro was only invoked conditionally." >&5
28318 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28319 Usually this means the macro was only invoked conditionally." >&2;}
28320 { (exit 1); exit 1; }; }
28321 fi
28322 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28323 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28324 Usually this means the macro was only invoked conditionally." >&5
28325 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28326 Usually this means the macro was only invoked conditionally." >&2;}
28327 { (exit 1); exit 1; }; }
28328 fi
28329 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
28330 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
28331 Usually this means the macro was only invoked conditionally." >&5
28332 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
28333 Usually this means the macro was only invoked conditionally." >&2;}
28334 { (exit 1); exit 1; }; }
28335 fi
28336 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
28337 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
28338 Usually this means the macro was only invoked conditionally." >&5
28339 echo "$as_me: error: conditional \"X_AWT\" was never defined.
28340 Usually this means the macro was only invoked conditionally." >&2;}
28341 { (exit 1); exit 1; }; }
28342 fi
28343 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28344 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28345 Usually this means the macro was only invoked conditionally." >&5
28346 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28347 Usually this means the macro was only invoked conditionally." >&2;}
28348 { (exit 1); exit 1; }; }
28349 fi
28350 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28351 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28352 Usually this means the macro was only invoked conditionally." >&5
28353 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28354 Usually this means the macro was only invoked conditionally." >&2;}
28355 { (exit 1); exit 1; }; }
28356 fi
28357 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28358 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28359 Usually this means the macro was only invoked conditionally." >&5
28360 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28361 Usually this means the macro was only invoked conditionally." >&2;}
28362 { (exit 1); exit 1; }; }
28363 fi
28364 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28365 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28366 Usually this means the macro was only invoked conditionally." >&5
28367 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28368 Usually this means the macro was only invoked conditionally." >&2;}
28369 { (exit 1); exit 1; }; }
28370 fi
28371 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28372 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28373 Usually this means the macro was only invoked conditionally." >&5
28374 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28375 Usually this means the macro was only invoked conditionally." >&2;}
28376 { (exit 1); exit 1; }; }
28377 fi
28378 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28379 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28380 Usually this means the macro was only invoked conditionally." >&5
28381 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28382 Usually this means the macro was only invoked conditionally." >&2;}
28383 { (exit 1); exit 1; }; }
28384 fi
28385 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28386 { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28387 Usually this means the macro was only invoked conditionally." >&5
28388 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28389 Usually this means the macro was only invoked conditionally." >&2;}
28390 { (exit 1); exit 1; }; }
28391 fi
28392 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
28393 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28394 Usually this means the macro was only invoked conditionally." >&5
28395 echo "$as_me: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28396 Usually this means the macro was only invoked conditionally." >&2;}
28397 { (exit 1); exit 1; }; }
28398 fi
28399 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28400 { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28401 Usually this means the macro was only invoked conditionally." >&5
28402 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28403 Usually this means the macro was only invoked conditionally." >&2;}
28404 { (exit 1); exit 1; }; }
28405 fi
28406 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28407 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28408 Usually this means the macro was only invoked conditionally." >&5
28409 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28410 Usually this means the macro was only invoked conditionally." >&2;}
28411 { (exit 1); exit 1; }; }
28412 fi
28413 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28414 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28415 Usually this means the macro was only invoked conditionally." >&5
28416 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28417 Usually this means the macro was only invoked conditionally." >&2;}
28418 { (exit 1); exit 1; }; }
28419 fi
28420 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28421 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28422 Usually this means the macro was only invoked conditionally." >&5
28423 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28424 Usually this means the macro was only invoked conditionally." >&2;}
28425 { (exit 1); exit 1; }; }
28426 fi
28427 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28428 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28429 Usually this means the macro was only invoked conditionally." >&5
28430 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28431 Usually this means the macro was only invoked conditionally." >&2;}
28432 { (exit 1); exit 1; }; }
28433 fi
28434 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28435 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28436 Usually this means the macro was only invoked conditionally." >&5
28437 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28438 Usually this means the macro was only invoked conditionally." >&2;}
28439 { (exit 1); exit 1; }; }
28440 fi
28441 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28442 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28443 Usually this means the macro was only invoked conditionally." >&5
28444 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28445 Usually this means the macro was only invoked conditionally." >&2;}
28446 { (exit 1); exit 1; }; }
28447 fi
28448 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28449 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28450 Usually this means the macro was only invoked conditionally." >&5
28451 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28452 Usually this means the macro was only invoked conditionally." >&2;}
28453 { (exit 1); exit 1; }; }
28454 fi
28455 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28456 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28457 Usually this means the macro was only invoked conditionally." >&5
28458 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28459 Usually this means the macro was only invoked conditionally." >&2;}
28460 { (exit 1); exit 1; }; }
28461 fi
28462 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28463 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28464 Usually this means the macro was only invoked conditionally." >&5
28465 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28466 Usually this means the macro was only invoked conditionally." >&2;}
28467 { (exit 1); exit 1; }; }
28468 fi
28469 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28470 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28471 Usually this means the macro was only invoked conditionally." >&5
28472 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28473 Usually this means the macro was only invoked conditionally." >&2;}
28474 { (exit 1); exit 1; }; }
28475 fi
28476 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28477 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28478 Usually this means the macro was only invoked conditionally." >&5
28479 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28480 Usually this means the macro was only invoked conditionally." >&2;}
28481 { (exit 1); exit 1; }; }
28482 fi
28483 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28484 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28485 Usually this means the macro was only invoked conditionally." >&5
28486 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28487 Usually this means the macro was only invoked conditionally." >&2;}
28488 { (exit 1); exit 1; }; }
28489 fi
28490 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28491 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28492 Usually this means the macro was only invoked conditionally." >&5
28493 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28494 Usually this means the macro was only invoked conditionally." >&2;}
28495 { (exit 1); exit 1; }; }
28496 fi
28497 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28498 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28499 Usually this means the macro was only invoked conditionally." >&5
28500 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28501 Usually this means the macro was only invoked conditionally." >&2;}
28502 { (exit 1); exit 1; }; }
28503 fi
28504 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28505 { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28506 Usually this means the macro was only invoked conditionally." >&5
28507 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28508 Usually this means the macro was only invoked conditionally." >&2;}
28509 { (exit 1); exit 1; }; }
28510 fi
28511 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
28512 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28513 Usually this means the macro was only invoked conditionally." >&5
28514 echo "$as_me: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28515 Usually this means the macro was only invoked conditionally." >&2;}
28516 { (exit 1); exit 1; }; }
28517 fi
28518 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
28519 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28520 Usually this means the macro was only invoked conditionally." >&5
28521 echo "$as_me: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28522 Usually this means the macro was only invoked conditionally." >&2;}
28523 { (exit 1); exit 1; }; }
28524 fi
28525
28526 : ${CONFIG_STATUS=./config.status}
28527 ac_clean_files_save=$ac_clean_files
28528 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28529 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28530 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28531 cat >$CONFIG_STATUS <<_ACEOF
28532 #! $SHELL
28533 # Generated by $as_me.
28534 # Run this file to recreate the current configuration.
28535 # Compiler output produced by configure, useful for debugging
28536 # configure, is in config.log if it exists.
28537
28538 debug=false
28539 ac_cs_recheck=false
28540 ac_cs_silent=false
28541 SHELL=\${CONFIG_SHELL-$SHELL}
28542 _ACEOF
28543
28544 cat >>$CONFIG_STATUS <<\_ACEOF
28545 ## --------------------- ##
28546 ## M4sh Initialization. ##
28547 ## --------------------- ##
28548
28549 # Be Bourne compatible
28550 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28551 emulate sh
28552 NULLCMD=:
28553 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28554 # is contrary to our usage. Disable this feature.
28555 alias -g '${1+"$@"}'='"$@"'
28556 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28557 set -o posix
28558 fi
28559 DUALCASE=1; export DUALCASE # for MKS sh
28560
28561 # Support unset when possible.
28562 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28563 as_unset=unset
28564 else
28565 as_unset=false
28566 fi
28567
28568
28569 # Work around bugs in pre-3.0 UWIN ksh.
28570 $as_unset ENV MAIL MAILPATH
28571 PS1='$ '
28572 PS2='> '
28573 PS4='+ '
28574
28575 # NLS nuisances.
28576 for as_var in \
28577 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28578 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28579 LC_TELEPHONE LC_TIME
28580 do
28581 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28582 eval $as_var=C; export $as_var
28583 else
28584 $as_unset $as_var
28585 fi
28586 done
28587
28588 # Required to use basename.
28589 if expr a : '\(a\)' >/dev/null 2>&1; then
28590 as_expr=expr
28591 else
28592 as_expr=false
28593 fi
28594
28595 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28596 as_basename=basename
28597 else
28598 as_basename=false
28599 fi
28600
28601
28602 # Name of the executable.
28603 as_me=`$as_basename "$0" ||
28604 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28605 X"$0" : 'X\(//\)$' \| \
28606 X"$0" : 'X\(/\)$' \| \
28607 . : '\(.\)' 2>/dev/null ||
28608 echo X/"$0" |
28609 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28610 /^X\/\(\/\/\)$/{ s//\1/; q; }
28611 /^X\/\(\/\).*/{ s//\1/; q; }
28612 s/.*/./; q'`
28613
28614
28615 # PATH needs CR, and LINENO needs CR and PATH.
28616 # Avoid depending upon Character Ranges.
28617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28620 as_cr_digits='0123456789'
28621 as_cr_alnum=$as_cr_Letters$as_cr_digits
28622
28623 # The user is always right.
28624 if test "${PATH_SEPARATOR+set}" != set; then
28625 echo "#! /bin/sh" >conf$$.sh
28626 echo "exit 0" >>conf$$.sh
28627 chmod +x conf$$.sh
28628 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28629 PATH_SEPARATOR=';'
28630 else
28631 PATH_SEPARATOR=:
28632 fi
28633 rm -f conf$$.sh
28634 fi
28635
28636
28637 as_lineno_1=$LINENO
28638 as_lineno_2=$LINENO
28639 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28640 test "x$as_lineno_1" != "x$as_lineno_2" &&
28641 test "x$as_lineno_3" = "x$as_lineno_2" || {
28642 # Find who we are. Look in the path if we contain no path at all
28643 # relative or not.
28644 case $0 in
28645 *[\\/]* ) as_myself=$0 ;;
28646 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28647 for as_dir in $PATH
28648 do
28649 IFS=$as_save_IFS
28650 test -z "$as_dir" && as_dir=.
28651 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28652 done
28653
28654 ;;
28655 esac
28656 # We did not find ourselves, most probably we were run as `sh COMMAND'
28657 # in which case we are not to be found in the path.
28658 if test "x$as_myself" = x; then
28659 as_myself=$0
28660 fi
28661 if test ! -f "$as_myself"; then
28662 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28663 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28664 { (exit 1); exit 1; }; }
28665 fi
28666 case $CONFIG_SHELL in
28667 '')
28668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28669 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28670 do
28671 IFS=$as_save_IFS
28672 test -z "$as_dir" && as_dir=.
28673 for as_base in sh bash ksh sh5; do
28674 case $as_dir in
28675 /*)
28676 if ("$as_dir/$as_base" -c '
28677 as_lineno_1=$LINENO
28678 as_lineno_2=$LINENO
28679 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28680 test "x$as_lineno_1" != "x$as_lineno_2" &&
28681 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28682 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28683 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28684 CONFIG_SHELL=$as_dir/$as_base
28685 export CONFIG_SHELL
28686 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28687 fi;;
28688 esac
28689 done
28690 done
28691 ;;
28692 esac
28693
28694 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28695 # uniformly replaced by the line number. The first 'sed' inserts a
28696 # line-number line before each line; the second 'sed' does the real
28697 # work. The second script uses 'N' to pair each line-number line
28698 # with the numbered line, and appends trailing '-' during
28699 # substitution so that $LINENO is not a special case at line end.
28700 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28701 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28702 sed '=' <$as_myself |
28703 sed '
28704 N
28705 s,$,-,
28706 : loop
28707 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28708 t loop
28709 s,-$,,
28710 s,^['$as_cr_digits']*\n,,
28711 ' >$as_me.lineno &&
28712 chmod +x $as_me.lineno ||
28713 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28714 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28715 { (exit 1); exit 1; }; }
28716
28717 # Don't try to exec as it changes $[0], causing all sort of problems
28718 # (the dirname of $[0] is not the place where we might find the
28719 # original and so on. Autoconf is especially sensible to this).
28720 . ./$as_me.lineno
28721 # Exit status is that of the last command.
28722 exit
28723 }
28724
28725
28726 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28727 *c*,-n*) ECHO_N= ECHO_C='
28728 ' ECHO_T=' ' ;;
28729 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28730 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28731 esac
28732
28733 if expr a : '\(a\)' >/dev/null 2>&1; then
28734 as_expr=expr
28735 else
28736 as_expr=false
28737 fi
28738
28739 rm -f conf$$ conf$$.exe conf$$.file
28740 echo >conf$$.file
28741 if ln -s conf$$.file conf$$ 2>/dev/null; then
28742 # We could just check for DJGPP; but this test a) works b) is more generic
28743 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28744 if test -f conf$$.exe; then
28745 # Don't use ln at all; we don't have any links
28746 as_ln_s='cp -p'
28747 else
28748 as_ln_s='ln -s'
28749 fi
28750 elif ln conf$$.file conf$$ 2>/dev/null; then
28751 as_ln_s=ln
28752 else
28753 as_ln_s='cp -p'
28754 fi
28755 rm -f conf$$ conf$$.exe conf$$.file
28756
28757 if mkdir -p . 2>/dev/null; then
28758 as_mkdir_p=:
28759 else
28760 test -d ./-p && rmdir ./-p
28761 as_mkdir_p=false
28762 fi
28763
28764 as_executable_p="test -f"
28765
28766 # Sed expression to map a string onto a valid CPP name.
28767 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28768
28769 # Sed expression to map a string onto a valid variable name.
28770 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28771
28772
28773 # IFS
28774 # We need space, tab and new line, in precisely that order.
28775 as_nl='
28776 '
28777 IFS=" $as_nl"
28778
28779 # CDPATH.
28780 $as_unset CDPATH
28781
28782 exec 6>&1
28783
28784 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28785 # report actual input values of CONFIG_FILES etc. instead of their
28786 # values after options handling. Logging --version etc. is OK.
28787 exec 5>>config.log
28788 {
28789 echo
28790 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28791 ## Running $as_me. ##
28792 _ASBOX
28793 } >&5
28794 cat >&5 <<_CSEOF
28795
28796 This file was extended by libjava $as_me version-unused, which was
28797 generated by GNU Autoconf 2.59. Invocation command line was
28798
28799 CONFIG_FILES = $CONFIG_FILES
28800 CONFIG_HEADERS = $CONFIG_HEADERS
28801 CONFIG_LINKS = $CONFIG_LINKS
28802 CONFIG_COMMANDS = $CONFIG_COMMANDS
28803 $ $0 $@
28804
28805 _CSEOF
28806 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28807 echo >&5
28808 _ACEOF
28809
28810 # Files that config.status was made for.
28811 if test -n "$ac_config_files"; then
28812 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28813 fi
28814
28815 if test -n "$ac_config_headers"; then
28816 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28817 fi
28818
28819 if test -n "$ac_config_links"; then
28820 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28821 fi
28822
28823 if test -n "$ac_config_commands"; then
28824 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28825 fi
28826
28827 cat >>$CONFIG_STATUS <<\_ACEOF
28828
28829 ac_cs_usage="\
28830 \`$as_me' instantiates files from templates according to the
28831 current configuration.
28832
28833 Usage: $0 [OPTIONS] [FILE]...
28834
28835 -h, --help print this help, then exit
28836 -V, --version print version number, then exit
28837 -q, --quiet do not print progress messages
28838 -d, --debug don't remove temporary files
28839 --recheck update $as_me by reconfiguring in the same conditions
28840 --file=FILE[:TEMPLATE]
28841 instantiate the configuration file FILE
28842 --header=FILE[:TEMPLATE]
28843 instantiate the configuration header FILE
28844
28845 Configuration files:
28846 $config_files
28847
28848 Configuration headers:
28849 $config_headers
28850
28851 Configuration links:
28852 $config_links
28853
28854 Configuration commands:
28855 $config_commands
28856
28857 Report bugs to <bug-autoconf@gnu.org>."
28858 _ACEOF
28859
28860 cat >>$CONFIG_STATUS <<_ACEOF
28861 ac_cs_version="\\
28862 libjava config.status version-unused
28863 configured by $0, generated by GNU Autoconf 2.59,
28864 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28865
28866 Copyright (C) 2003 Free Software Foundation, Inc.
28867 This config.status script is free software; the Free Software Foundation
28868 gives unlimited permission to copy, distribute and modify it."
28869 srcdir=$srcdir
28870 INSTALL="$INSTALL"
28871 _ACEOF
28872
28873 cat >>$CONFIG_STATUS <<\_ACEOF
28874 # If no file are specified by the user, then we need to provide default
28875 # value. By we need to know if files were specified by the user.
28876 ac_need_defaults=:
28877 while test $# != 0
28878 do
28879 case $1 in
28880 --*=*)
28881 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28882 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28883 ac_shift=:
28884 ;;
28885 -*)
28886 ac_option=$1
28887 ac_optarg=$2
28888 ac_shift=shift
28889 ;;
28890 *) # This is not an option, so the user has probably given explicit
28891 # arguments.
28892 ac_option=$1
28893 ac_need_defaults=false;;
28894 esac
28895
28896 case $ac_option in
28897 # Handling of the options.
28898 _ACEOF
28899 cat >>$CONFIG_STATUS <<\_ACEOF
28900 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28901 ac_cs_recheck=: ;;
28902 --version | --vers* | -V )
28903 echo "$ac_cs_version"; exit 0 ;;
28904 --he | --h)
28905 # Conflict between --help and --header
28906 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28907 Try \`$0 --help' for more information." >&5
28908 echo "$as_me: error: ambiguous option: $1
28909 Try \`$0 --help' for more information." >&2;}
28910 { (exit 1); exit 1; }; };;
28911 --help | --hel | -h )
28912 echo "$ac_cs_usage"; exit 0 ;;
28913 --debug | --d* | -d )
28914 debug=: ;;
28915 --file | --fil | --fi | --f )
28916 $ac_shift
28917 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28918 ac_need_defaults=false;;
28919 --header | --heade | --head | --hea )
28920 $ac_shift
28921 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28922 ac_need_defaults=false;;
28923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28924 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28925 ac_cs_silent=: ;;
28926
28927 # This is an error.
28928 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28929 Try \`$0 --help' for more information." >&5
28930 echo "$as_me: error: unrecognized option: $1
28931 Try \`$0 --help' for more information." >&2;}
28932 { (exit 1); exit 1; }; } ;;
28933
28934 *) ac_config_targets="$ac_config_targets $1" ;;
28935
28936 esac
28937 shift
28938 done
28939
28940 ac_configure_extra_args=
28941
28942 if $ac_cs_silent; then
28943 exec 6>/dev/null
28944 ac_configure_extra_args="$ac_configure_extra_args --silent"
28945 fi
28946
28947 _ACEOF
28948 cat >>$CONFIG_STATUS <<_ACEOF
28949 if \$ac_cs_recheck; then
28950 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28951 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28952 fi
28953
28954 _ACEOF
28955
28956 cat >>$CONFIG_STATUS <<_ACEOF
28957 #
28958 # INIT-COMMANDS section.
28959 #
28960
28961
28962 srcdir="$srcdir"
28963 host="$host"
28964 target="$target"
28965 with_multisubdir="$with_multisubdir"
28966 with_multisrctop="$with_multisrctop"
28967 with_target_subdir="$with_target_subdir"
28968 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28969 multi_basedir="$multi_basedir"
28970 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28971 CC="$CC"
28972 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28973
28974
28975 # The HP-UX ksh and POSIX shell print the target directory to stdout
28976 # if CDPATH is set.
28977 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28978
28979 sed_quote_subst='$sed_quote_subst'
28980 double_quote_subst='$double_quote_subst'
28981 delay_variable_subst='$delay_variable_subst'
28982 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28983 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28984 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28985 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28986 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28987 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28988 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28989 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28990 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28991 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28992 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28993 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28994 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28995 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28996 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28997 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28998 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28999 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29000 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29001 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29002 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29003 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29004 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29005 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29006 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29007 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29008 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29009 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29010 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29011 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29012 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29013 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29014 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29015 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29016 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29017 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29018 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29019 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29020 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29021 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29022 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29023 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29024 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29025 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"`'
29026 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29027 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29028 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29029 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29030 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29031 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29032 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29033 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29034 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29035 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29036 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29037 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29038 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29039 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29040 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29041 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29042 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29043 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29044 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29045 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29046 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29047 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29048 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29049 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29050 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29051 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29052 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29053 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29054 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29055 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29056 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29057 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29058 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29059 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29060 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29061 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29062 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29063 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29064 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29065 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29066 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29067 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29068 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29069 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29070 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29071 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29072 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29073 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29074 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29075 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29076 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29077 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29078 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29079 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29080 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29081 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29082 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29083 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29084 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29085 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29086 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29087 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29088 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29089 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29090 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29091 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29092 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29093 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29094 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29095 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29096 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29097 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29098 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29099 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29100 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29101 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29102 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29103 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29104 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29105 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29106 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29107 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29108 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29109 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29110 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29111 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29112 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29113 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29114 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29115 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29116 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29117 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29118 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29119 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29120 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29121 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29122 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29123 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29124 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29125 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29126 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29127 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29128 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29129 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29130 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29131 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29132 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29133 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29134 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29135 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29136 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29137 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29138 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29139 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29140 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29141 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29142 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29143 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29144 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29145 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29146 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29147 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29148 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29149 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29150 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29151 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29152 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29153 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29154 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29155 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29156 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29157 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29158 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29159 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29160 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29161 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29162 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29163 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29164 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29165 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29166 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29167 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29168 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29169 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29170 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29171 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29172 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29173 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29174 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29175 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29176 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29177 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29178 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29179 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29180 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29181 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29182 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29183 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29184 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29185 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29186 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29187 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29188 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29189 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29190
29191 LTCC='$LTCC'
29192 LTCFLAGS='$LTCFLAGS'
29193 compiler='$compiler_DEFAULT'
29194
29195 # Quote evaled strings.
29196 for var in SED \
29197 GREP \
29198 EGREP \
29199 FGREP \
29200 LD \
29201 NM \
29202 LN_S \
29203 lt_SP2NL \
29204 lt_NL2SP \
29205 reload_flag \
29206 deplibs_check_method \
29207 file_magic_cmd \
29208 AR \
29209 AR_FLAGS \
29210 STRIP \
29211 RANLIB \
29212 CC \
29213 CFLAGS \
29214 compiler \
29215 lt_cv_sys_global_symbol_pipe \
29216 lt_cv_sys_global_symbol_to_cdecl \
29217 lt_cv_sys_global_symbol_to_c_name_address \
29218 SHELL \
29219 ECHO \
29220 lt_prog_compiler_no_builtin_flag \
29221 lt_prog_compiler_wl \
29222 lt_prog_compiler_pic \
29223 lt_prog_compiler_static \
29224 lt_cv_prog_compiler_c_o \
29225 need_locks \
29226 shrext_cmds \
29227 export_dynamic_flag_spec \
29228 whole_archive_flag_spec \
29229 compiler_needs_object \
29230 with_gnu_ld \
29231 allow_undefined_flag \
29232 no_undefined_flag \
29233 hardcode_libdir_flag_spec \
29234 hardcode_libdir_flag_spec_ld \
29235 hardcode_libdir_separator \
29236 fix_srcfile_path \
29237 exclude_expsyms \
29238 include_expsyms \
29239 file_list_spec \
29240 variables_saved_for_relink \
29241 libname_spec \
29242 library_names_spec \
29243 soname_spec \
29244 finish_eval \
29245 old_striplib \
29246 striplib \
29247 predep_objects \
29248 postdep_objects \
29249 predeps \
29250 postdeps \
29251 compiler_lib_search_path \
29252 LD_CXX \
29253 LD_GCJ \
29254 compiler_CXX \
29255 compiler_GCJ \
29256 lt_prog_compiler_no_builtin_flag_CXX \
29257 lt_prog_compiler_no_builtin_flag_GCJ \
29258 lt_prog_compiler_wl_CXX \
29259 lt_prog_compiler_wl_GCJ \
29260 lt_prog_compiler_pic_CXX \
29261 lt_prog_compiler_pic_GCJ \
29262 lt_prog_compiler_static_CXX \
29263 lt_prog_compiler_static_GCJ \
29264 lt_cv_prog_compiler_c_o_CXX \
29265 lt_cv_prog_compiler_c_o_GCJ \
29266 export_dynamic_flag_spec_CXX \
29267 export_dynamic_flag_spec_GCJ \
29268 whole_archive_flag_spec_CXX \
29269 whole_archive_flag_spec_GCJ \
29270 compiler_needs_object_CXX \
29271 compiler_needs_object_GCJ \
29272 with_gnu_ld_CXX \
29273 with_gnu_ld_GCJ \
29274 allow_undefined_flag_CXX \
29275 allow_undefined_flag_GCJ \
29276 no_undefined_flag_CXX \
29277 no_undefined_flag_GCJ \
29278 hardcode_libdir_flag_spec_CXX \
29279 hardcode_libdir_flag_spec_GCJ \
29280 hardcode_libdir_flag_spec_ld_CXX \
29281 hardcode_libdir_flag_spec_ld_GCJ \
29282 hardcode_libdir_separator_CXX \
29283 hardcode_libdir_separator_GCJ \
29284 fix_srcfile_path_CXX \
29285 fix_srcfile_path_GCJ \
29286 exclude_expsyms_CXX \
29287 exclude_expsyms_GCJ \
29288 include_expsyms_CXX \
29289 include_expsyms_GCJ \
29290 file_list_spec_CXX \
29291 file_list_spec_GCJ \
29292 predep_objects_CXX \
29293 predep_objects_GCJ \
29294 postdep_objects_CXX \
29295 postdep_objects_GCJ \
29296 predeps_CXX \
29297 predeps_GCJ \
29298 postdeps_CXX \
29299 postdeps_GCJ \
29300 compiler_lib_search_path_CXX \
29301 compiler_lib_search_path_GCJ; do
29302 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29303 *[\\\\\\\`\\"\\\$]*)
29304 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29305 ;;
29306 *)
29307 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29308 ;;
29309 esac
29310 done
29311
29312 # Double-quote double-evaled strings.
29313 for var in reload_cmds \
29314 old_postinstall_cmds \
29315 old_postuninstall_cmds \
29316 old_archive_cmds \
29317 extract_expsyms_cmds \
29318 old_archive_from_new_cmds \
29319 old_archive_from_expsyms_cmds \
29320 archive_cmds \
29321 archive_expsym_cmds \
29322 module_cmds \
29323 module_expsym_cmds \
29324 export_symbols_cmds \
29325 prelink_cmds \
29326 postinstall_cmds \
29327 postuninstall_cmds \
29328 finish_cmds \
29329 sys_lib_search_path_spec \
29330 sys_lib_dlsearch_path_spec \
29331 old_archive_cmds_CXX \
29332 old_archive_cmds_GCJ \
29333 old_archive_from_new_cmds_CXX \
29334 old_archive_from_new_cmds_GCJ \
29335 old_archive_from_expsyms_cmds_CXX \
29336 old_archive_from_expsyms_cmds_GCJ \
29337 archive_cmds_CXX \
29338 archive_cmds_GCJ \
29339 archive_expsym_cmds_CXX \
29340 archive_expsym_cmds_GCJ \
29341 module_cmds_CXX \
29342 module_cmds_GCJ \
29343 module_expsym_cmds_CXX \
29344 module_expsym_cmds_GCJ \
29345 export_symbols_cmds_CXX \
29346 export_symbols_cmds_GCJ \
29347 prelink_cmds_CXX \
29348 prelink_cmds_GCJ; do
29349 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29350 *[\\\\\\\`\\"\\\$]*)
29351 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29352 ;;
29353 *)
29354 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29355 ;;
29356 esac
29357 done
29358
29359 # Fix-up fallback echo if it was mangled by the above quoting rules.
29360 case \$lt_ECHO in
29361 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29362 ;;
29363 esac
29364
29365 ac_aux_dir='$ac_aux_dir'
29366 xsi_shell='$xsi_shell'
29367 lt_shell_append='$lt_shell_append'
29368
29369 # See if we are running on zsh, and set the options which allow our
29370 # commands through without removal of \ escapes INIT.
29371 if test -n "\${ZSH_VERSION+set}" ; then
29372 setopt NO_GLOB_SUBST
29373 fi
29374
29375
29376 PACKAGE='$PACKAGE'
29377 VERSION='$VERSION'
29378 TIMESTAMP='$TIMESTAMP'
29379 RM='$RM'
29380 ofile='$ofile'
29381
29382
29383
29384
29385
29386
29387
29388
29389 _ACEOF
29390
29391
29392
29393 cat >>$CONFIG_STATUS <<\_ACEOF
29394 for ac_config_target in $ac_config_targets
29395 do
29396 case "$ac_config_target" in
29397 # Handling of arguments.
29398 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29399 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29400 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29401 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29402 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29403 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29404 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29405 "contrib/aotcompile.py" ) CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
29406 "contrib/aot-compile" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
29407 "contrib/aot-compile-rpm" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
29408 "contrib/rebuild-gcj-db" ) CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
29409 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29410 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29411 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29412 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29413 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29414 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29415 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29416 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29417 "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29418 "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29419 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29420 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29421 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29422 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29423 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29424 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29425 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29426 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29427 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29428 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29429 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29430 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29431 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29432 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29433 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29434 { (exit 1); exit 1; }; };;
29435 esac
29436 done
29437
29438 # If the user did not use the arguments to specify the items to instantiate,
29439 # then the envvar interface is used. Set only those that are not.
29440 # We use the long form for the default assignment because of an extremely
29441 # bizarre bug on SunOS 4.1.3.
29442 if $ac_need_defaults; then
29443 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29444 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29445 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29446 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29447 fi
29448
29449 # Have a temporary directory for convenience. Make it in the build tree
29450 # simply because there is no reason to put it here, and in addition,
29451 # creating and moving files from /tmp can sometimes cause problems.
29452 # Create a temporary directory, and hook for its removal unless debugging.
29453 $debug ||
29454 {
29455 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29456 trap '{ (exit 1); exit 1; }' 1 2 13 15
29457 }
29458
29459 # Create a (secure) tmp directory for tmp files.
29460
29461 {
29462 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29463 test -n "$tmp" && test -d "$tmp"
29464 } ||
29465 {
29466 tmp=./confstat$$-$RANDOM
29467 (umask 077 && mkdir $tmp)
29468 } ||
29469 {
29470 echo "$me: cannot create a temporary directory in ." >&2
29471 { (exit 1); exit 1; }
29472 }
29473
29474 _ACEOF
29475
29476 cat >>$CONFIG_STATUS <<_ACEOF
29477
29478 #
29479 # CONFIG_FILES section.
29480 #
29481
29482 # No need to generate the scripts if there are no CONFIG_FILES.
29483 # This happens for instance when ./config.status config.h
29484 if test -n "\$CONFIG_FILES"; then
29485 # Protect against being on the right side of a sed subst in config.status.
29486 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29487 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29488 s,@SHELL@,$SHELL,;t t
29489 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29490 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29491 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29492 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29493 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29494 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29495 s,@exec_prefix@,$exec_prefix,;t t
29496 s,@prefix@,$prefix,;t t
29497 s,@program_transform_name@,$program_transform_name,;t t
29498 s,@bindir@,$bindir,;t t
29499 s,@sbindir@,$sbindir,;t t
29500 s,@libexecdir@,$libexecdir,;t t
29501 s,@datadir@,$datadir,;t t
29502 s,@sysconfdir@,$sysconfdir,;t t
29503 s,@sharedstatedir@,$sharedstatedir,;t t
29504 s,@localstatedir@,$localstatedir,;t t
29505 s,@libdir@,$libdir,;t t
29506 s,@includedir@,$includedir,;t t
29507 s,@oldincludedir@,$oldincludedir,;t t
29508 s,@infodir@,$infodir,;t t
29509 s,@mandir@,$mandir,;t t
29510 s,@build_alias@,$build_alias,;t t
29511 s,@host_alias@,$host_alias,;t t
29512 s,@target_alias@,$target_alias,;t t
29513 s,@DEFS@,$DEFS,;t t
29514 s,@ECHO_C@,$ECHO_C,;t t
29515 s,@ECHO_N@,$ECHO_N,;t t
29516 s,@ECHO_T@,$ECHO_T,;t t
29517 s,@LIBS@,$LIBS,;t t
29518 s,@build@,$build,;t t
29519 s,@build_cpu@,$build_cpu,;t t
29520 s,@build_vendor@,$build_vendor,;t t
29521 s,@build_os@,$build_os,;t t
29522 s,@build_libsubdir@,$build_libsubdir,;t t
29523 s,@build_subdir@,$build_subdir,;t t
29524 s,@host_subdir@,$host_subdir,;t t
29525 s,@target_subdir@,$target_subdir,;t t
29526 s,@multi_basedir@,$multi_basedir,;t t
29527 s,@host@,$host,;t t
29528 s,@host_cpu@,$host_cpu,;t t
29529 s,@host_vendor@,$host_vendor,;t t
29530 s,@host_os@,$host_os,;t t
29531 s,@target@,$target,;t t
29532 s,@target_cpu@,$target_cpu,;t t
29533 s,@target_vendor@,$target_vendor,;t t
29534 s,@target_os@,$target_os,;t t
29535 s,@target_noncanonical@,$target_noncanonical,;t t
29536 s,@LN_S@,$LN_S,;t t
29537 s,@mkinstalldirs@,$mkinstalldirs,;t t
29538 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29539 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29540 s,@CC@,$CC,;t t
29541 s,@ac_ct_CC@,$ac_ct_CC,;t t
29542 s,@EXEEXT@,$EXEEXT,;t t
29543 s,@OBJEXT@,$OBJEXT,;t t
29544 s,@CXX@,$CXX,;t t
29545 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29546 s,@CFLAGS@,$CFLAGS,;t t
29547 s,@CXXFLAGS@,$CXXFLAGS,;t t
29548 s,@LDFLAGS@,$LDFLAGS,;t t
29549 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29550 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29551 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29552 s,@CYGPATH_W@,$CYGPATH_W,;t t
29553 s,@PACKAGE@,$PACKAGE,;t t
29554 s,@VERSION@,$VERSION,;t t
29555 s,@ACLOCAL@,$ACLOCAL,;t t
29556 s,@AUTOCONF@,$AUTOCONF,;t t
29557 s,@AUTOMAKE@,$AUTOMAKE,;t t
29558 s,@AUTOHEADER@,$AUTOHEADER,;t t
29559 s,@MAKEINFO@,$MAKEINFO,;t t
29560 s,@install_sh@,$install_sh,;t t
29561 s,@STRIP@,$STRIP,;t t
29562 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29563 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29564 s,@mkdir_p@,$mkdir_p,;t t
29565 s,@AWK@,$AWK,;t t
29566 s,@SET_MAKE@,$SET_MAKE,;t t
29567 s,@am__leading_dot@,$am__leading_dot,;t t
29568 s,@AMTAR@,$AMTAR,;t t
29569 s,@am__tar@,$am__tar,;t t
29570 s,@am__untar@,$am__untar,;t t
29571 s,@DEPDIR@,$DEPDIR,;t t
29572 s,@am__include@,$am__include,;t t
29573 s,@am__quote@,$am__quote,;t t
29574 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29575 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29576 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29577 s,@CCDEPMODE@,$CCDEPMODE,;t t
29578 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29579 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29580 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29581 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29582 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29583 s,@AS@,$AS,;t t
29584 s,@ac_ct_AS@,$ac_ct_AS,;t t
29585 s,@LD@,$LD,;t t
29586 s,@ac_ct_LD@,$ac_ct_LD,;t t
29587 s,@AR@,$AR,;t t
29588 s,@ac_ct_AR@,$ac_ct_AR,;t t
29589 s,@RANLIB@,$RANLIB,;t t
29590 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29591 s,@JAR@,$JAR,;t t
29592 s,@ZIP@,$ZIP,;t t
29593 s,@UNZIP@,$UNZIP,;t t
29594 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29595 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29596 s,@MAINT@,$MAINT,;t t
29597 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29598 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29599 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29600 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29601 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29602 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29603 s,@TOOLKIT@,$TOOLKIT,;t t
29604 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29605 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29606 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29607 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29608 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29609 s,@GCJH@,$GCJH,;t t
29610 s,@host_exeext@,$host_exeext,;t t
29611 s,@INCLTDL@,$INCLTDL,;t t
29612 s,@LIBLTDL@,$LIBLTDL,;t t
29613 s,@DIRLTDL@,$DIRLTDL,;t t
29614 s,@LIBTOOL@,$LIBTOOL,;t t
29615 s,@SED@,$SED,;t t
29616 s,@EGREP@,$EGREP,;t t
29617 s,@FGREP@,$FGREP,;t t
29618 s,@GREP@,$GREP,;t t
29619 s,@DUMPBIN@,$DUMPBIN,;t t
29620 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29621 s,@NM@,$NM,;t t
29622 s,@lt_ECHO@,$lt_ECHO,;t t
29623 s,@CPP@,$CPP,;t t
29624 s,@CPPFLAGS@,$CPPFLAGS,;t t
29625 s,@CXXCPP@,$CXXCPP,;t t
29626 s,@GCJ@,$GCJ,;t t
29627 s,@GCJFLAGS@,$GCJFLAGS,;t t
29628 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29629 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29630 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29631 s,@subdirs@,$subdirs,;t t
29632 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29633 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29634 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29635 s,@ECJ_JAR@,$ECJ_JAR,;t t
29636 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29637 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29638 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29639 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29640 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29641 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29642 s,@JAVA_HOME@,$JAVA_HOME,;t t
29643 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29644 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29645 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE,;t t
29646 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE,;t t
29647 s,@INTERPRETER@,$INTERPRETER,;t t
29648 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29649 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29650 s,@LIBFFI@,$LIBFFI,;t t
29651 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29652 s,@PLATFORM@,$PLATFORM,;t t
29653 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29654 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29655 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29656 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29657 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29658 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29659 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29660 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29661 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29662 s,@X_CFLAGS@,$X_CFLAGS,;t t
29663 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29664 s,@X_LIBS@,$X_LIBS,;t t
29665 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29666 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29667 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29668 s,@extra_ldflags@,$extra_ldflags,;t t
29669 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29670 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29671 s,@GCLIBS@,$GCLIBS,;t t
29672 s,@GCINCS@,$GCINCS,;t t
29673 s,@GCDEPS@,$GCDEPS,;t t
29674 s,@GCSPEC@,$GCSPEC,;t t
29675 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29676 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29677 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29678 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29679 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29680 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29681 s,@THREADLIBS@,$THREADLIBS,;t t
29682 s,@THREADINCS@,$THREADINCS,;t t
29683 s,@THREADDEPS@,$THREADDEPS,;t t
29684 s,@THREADSPEC@,$THREADSPEC,;t t
29685 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29686 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29687 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29688 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29689 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29690 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29691 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29692 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29693 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29694 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29695 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29696 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29697 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29698 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29699 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29700 s,@LIBICONV@,$LIBICONV,;t t
29701 s,@LTLIBICONV@,$LTLIBICONV,;t t
29702 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29703 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29704 s,@GTK_LIBS@,$GTK_LIBS,;t t
29705 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29706 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29707 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29708 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29709 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29710 s,@ZLIBS@,$ZLIBS,;t t
29711 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29712 s,@ZINCS@,$ZINCS,;t t
29713 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29714 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29715 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29716 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29717 s,@IEEESPEC@,$IEEESPEC,;t t
29718 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29719 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29720 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29721 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29722 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29723 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29724 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29725 s,@toolexecdir@,$toolexecdir,;t t
29726 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29727 s,@toolexeclibdir@,$toolexeclibdir,;t t
29728 s,@GCJVERSION@,$GCJVERSION,;t t
29729 s,@dbexecdir@,$dbexecdir,;t t
29730 s,@gcjsubdir@,$gcjsubdir,;t t
29731 s,@gxx_include_dir@,$gxx_include_dir,;t t
29732 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29733 s,@PERL@,$PERL,;t t
29734 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29735 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29736 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29737 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29738 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29739 s,@here@,$here,;t t
29740 s,@python_mod_dir@,$python_mod_dir,;t t
29741 s,@python_mod_dir_expanded@,$python_mod_dir_expanded,;t t
29742 s,@MAKE@,$MAKE,;t t
29743 s,@INSTALL_AOT_RPM_TRUE@,$INSTALL_AOT_RPM_TRUE,;t t
29744 s,@INSTALL_AOT_RPM_FALSE@,$INSTALL_AOT_RPM_FALSE,;t t
29745 s,@CREATE_JAVA_HOME_TRUE@,$CREATE_JAVA_HOME_TRUE,;t t
29746 s,@CREATE_JAVA_HOME_FALSE@,$CREATE_JAVA_HOME_FALSE,;t t
29747 s,@gcc_suffix@,$gcc_suffix,;t t
29748 s,@JAVA_VERSION@,$JAVA_VERSION,;t t
29749 s,@BUILD_VERSION@,$BUILD_VERSION,;t t
29750 s,@JVM_ROOT_DIR@,$JVM_ROOT_DIR,;t t
29751 s,@JVM_JAR_ROOT_DIR@,$JVM_JAR_ROOT_DIR,;t t
29752 s,@JVM_JAR_DIR@,$JVM_JAR_DIR,;t t
29753 s,@JRE_DIR@,$JRE_DIR,;t t
29754 s,@SDK_DIR@,$SDK_DIR,;t t
29755 s,@JRE_LNK@,$JRE_LNK,;t t
29756 s,@SDK_LNK@,$SDK_LNK,;t t
29757 s,@SDK_BIN_DIR@,$SDK_BIN_DIR,;t t
29758 s,@SDK_LIB_DIR@,$SDK_LIB_DIR,;t t
29759 s,@SDK_INCLUDE_DIR@,$SDK_INCLUDE_DIR,;t t
29760 s,@JRE_BIN_DIR@,$JRE_BIN_DIR,;t t
29761 s,@JRE_LIB_DIR@,$JRE_LIB_DIR,;t t
29762 s,@GCJ_BIN_DIR@,$GCJ_BIN_DIR,;t t
29763 s,@CPU@,$CPU,;t t
29764 s,@OS@,$OS,;t t
29765 s,@LIBDIR@,$LIBDIR,;t t
29766 s,@LIBOBJS@,$LIBOBJS,;t t
29767 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29768 CEOF
29769
29770 _ACEOF
29771
29772 cat >>$CONFIG_STATUS <<\_ACEOF
29773 # Split the substitutions into bite-sized pieces for seds with
29774 # small command number limits, like on Digital OSF/1 and HP-UX.
29775 ac_max_sed_lines=48
29776 ac_sed_frag=1 # Number of current file.
29777 ac_beg=1 # First line for current file.
29778 ac_end=$ac_max_sed_lines # Line after last line for current file.
29779 ac_more_lines=:
29780 ac_sed_cmds=
29781 while $ac_more_lines; do
29782 if test $ac_beg -gt 1; then
29783 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29784 else
29785 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29786 fi
29787 if test ! -s $tmp/subs.frag; then
29788 ac_more_lines=false
29789 else
29790 # The purpose of the label and of the branching condition is to
29791 # speed up the sed processing (if there are no `@' at all, there
29792 # is no need to browse any of the substitutions).
29793 # These are the two extra sed commands mentioned above.
29794 (echo ':t
29795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29796 if test -z "$ac_sed_cmds"; then
29797 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29798 else
29799 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29800 fi
29801 ac_sed_frag=`expr $ac_sed_frag + 1`
29802 ac_beg=$ac_end
29803 ac_end=`expr $ac_end + $ac_max_sed_lines`
29804 fi
29805 done
29806 if test -z "$ac_sed_cmds"; then
29807 ac_sed_cmds=cat
29808 fi
29809 fi # test -n "$CONFIG_FILES"
29810
29811 _ACEOF
29812 cat >>$CONFIG_STATUS <<\_ACEOF
29813 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29814 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29815 case $ac_file in
29816 - | *:- | *:-:* ) # input from stdin
29817 cat >$tmp/stdin
29818 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29819 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29820 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29821 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29822 * ) ac_file_in=$ac_file.in ;;
29823 esac
29824
29825 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29826 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29828 X"$ac_file" : 'X\(//\)[^/]' \| \
29829 X"$ac_file" : 'X\(//\)$' \| \
29830 X"$ac_file" : 'X\(/\)' \| \
29831 . : '\(.\)' 2>/dev/null ||
29832 echo X"$ac_file" |
29833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29834 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29835 /^X\(\/\/\)$/{ s//\1/; q; }
29836 /^X\(\/\).*/{ s//\1/; q; }
29837 s/.*/./; q'`
29838 { if $as_mkdir_p; then
29839 mkdir -p "$ac_dir"
29840 else
29841 as_dir="$ac_dir"
29842 as_dirs=
29843 while test ! -d "$as_dir"; do
29844 as_dirs="$as_dir $as_dirs"
29845 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29847 X"$as_dir" : 'X\(//\)[^/]' \| \
29848 X"$as_dir" : 'X\(//\)$' \| \
29849 X"$as_dir" : 'X\(/\)' \| \
29850 . : '\(.\)' 2>/dev/null ||
29851 echo X"$as_dir" |
29852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29854 /^X\(\/\/\)$/{ s//\1/; q; }
29855 /^X\(\/\).*/{ s//\1/; q; }
29856 s/.*/./; q'`
29857 done
29858 test ! -n "$as_dirs" || mkdir $as_dirs
29859 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29860 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29861 { (exit 1); exit 1; }; }; }
29862
29863 ac_builddir=.
29864
29865 if test "$ac_dir" != .; then
29866 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29867 # A "../" for each directory in $ac_dir_suffix.
29868 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29869 else
29870 ac_dir_suffix= ac_top_builddir=
29871 fi
29872
29873 case $srcdir in
29874 .) # No --srcdir option. We are building in place.
29875 ac_srcdir=.
29876 if test -z "$ac_top_builddir"; then
29877 ac_top_srcdir=.
29878 else
29879 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29880 fi ;;
29881 [\\/]* | ?:[\\/]* ) # Absolute path.
29882 ac_srcdir=$srcdir$ac_dir_suffix;
29883 ac_top_srcdir=$srcdir ;;
29884 *) # Relative path.
29885 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29886 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29887 esac
29888
29889 # Do not use `cd foo && pwd` to compute absolute paths, because
29890 # the directories may not exist.
29891 case `pwd` in
29892 .) ac_abs_builddir="$ac_dir";;
29893 *)
29894 case "$ac_dir" in
29895 .) ac_abs_builddir=`pwd`;;
29896 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29897 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29898 esac;;
29899 esac
29900 case $ac_abs_builddir in
29901 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29902 *)
29903 case ${ac_top_builddir}. in
29904 .) ac_abs_top_builddir=$ac_abs_builddir;;
29905 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29906 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29907 esac;;
29908 esac
29909 case $ac_abs_builddir in
29910 .) ac_abs_srcdir=$ac_srcdir;;
29911 *)
29912 case $ac_srcdir in
29913 .) ac_abs_srcdir=$ac_abs_builddir;;
29914 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29915 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29916 esac;;
29917 esac
29918 case $ac_abs_builddir in
29919 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29920 *)
29921 case $ac_top_srcdir in
29922 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29923 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29924 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29925 esac;;
29926 esac
29927
29928
29929 case $INSTALL in
29930 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29931 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29932 esac
29933
29934 if test x"$ac_file" != x-; then
29935 { echo "$as_me:$LINENO: creating $ac_file" >&5
29936 echo "$as_me: creating $ac_file" >&6;}
29937 rm -f "$ac_file"
29938 fi
29939 # Let's still pretend it is `configure' which instantiates (i.e., don't
29940 # use $as_me), people would be surprised to read:
29941 # /* config.h. Generated by config.status. */
29942 if test x"$ac_file" = x-; then
29943 configure_input=
29944 else
29945 configure_input="$ac_file. "
29946 fi
29947 configure_input=$configure_input"Generated from `echo $ac_file_in |
29948 sed 's,.*/,,'` by configure."
29949
29950 # First look for the input files in the build tree, otherwise in the
29951 # src tree.
29952 ac_file_inputs=`IFS=:
29953 for f in $ac_file_in; do
29954 case $f in
29955 -) echo $tmp/stdin ;;
29956 [\\/$]*)
29957 # Absolute (can't be DOS-style, as IFS=:)
29958 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29959 echo "$as_me: error: cannot find input file: $f" >&2;}
29960 { (exit 1); exit 1; }; }
29961 echo "$f";;
29962 *) # Relative
29963 if test -f "$f"; then
29964 # Build tree
29965 echo "$f"
29966 elif test -f "$srcdir/$f"; then
29967 # Source tree
29968 echo "$srcdir/$f"
29969 else
29970 # /dev/null tree
29971 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29972 echo "$as_me: error: cannot find input file: $f" >&2;}
29973 { (exit 1); exit 1; }; }
29974 fi;;
29975 esac
29976 done` || { (exit 1); exit 1; }
29977 _ACEOF
29978 cat >>$CONFIG_STATUS <<_ACEOF
29979 sed "$ac_vpsub
29980 $extrasub
29981 _ACEOF
29982 cat >>$CONFIG_STATUS <<\_ACEOF
29983 :t
29984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29985 s,@configure_input@,$configure_input,;t t
29986 s,@srcdir@,$ac_srcdir,;t t
29987 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29988 s,@top_srcdir@,$ac_top_srcdir,;t t
29989 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29990 s,@builddir@,$ac_builddir,;t t
29991 s,@abs_builddir@,$ac_abs_builddir,;t t
29992 s,@top_builddir@,$ac_top_builddir,;t t
29993 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29994 s,@INSTALL@,$ac_INSTALL,;t t
29995 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29996 rm -f $tmp/stdin
29997 if test x"$ac_file" != x-; then
29998 mv $tmp/out $ac_file
29999 else
30000 cat $tmp/out
30001 rm -f $tmp/out
30002 fi
30003
30004 # Run the commands associated with the file.
30005 case $ac_file in
30006 scripts/jar ) chmod +x scripts/jar ;;
30007 esac
30008 done
30009 _ACEOF
30010 cat >>$CONFIG_STATUS <<\_ACEOF
30011
30012 #
30013 # CONFIG_HEADER section.
30014 #
30015
30016 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30017 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30018 #
30019 # ac_d sets the value in "#define NAME VALUE" lines.
30020 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30021 ac_dB='[ ].*$,\1#\2'
30022 ac_dC=' '
30023 ac_dD=',;t'
30024 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30025 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30026 ac_uB='$,\1#\2define\3'
30027 ac_uC=' '
30028 ac_uD=',;t'
30029
30030 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30031 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30032 case $ac_file in
30033 - | *:- | *:-:* ) # input from stdin
30034 cat >$tmp/stdin
30035 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30037 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30038 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30039 * ) ac_file_in=$ac_file.in ;;
30040 esac
30041
30042 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30043 echo "$as_me: creating $ac_file" >&6;}
30044
30045 # First look for the input files in the build tree, otherwise in the
30046 # src tree.
30047 ac_file_inputs=`IFS=:
30048 for f in $ac_file_in; do
30049 case $f in
30050 -) echo $tmp/stdin ;;
30051 [\\/$]*)
30052 # Absolute (can't be DOS-style, as IFS=:)
30053 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30054 echo "$as_me: error: cannot find input file: $f" >&2;}
30055 { (exit 1); exit 1; }; }
30056 # Do quote $f, to prevent DOS paths from being IFS'd.
30057 echo "$f";;
30058 *) # Relative
30059 if test -f "$f"; then
30060 # Build tree
30061 echo "$f"
30062 elif test -f "$srcdir/$f"; then
30063 # Source tree
30064 echo "$srcdir/$f"
30065 else
30066 # /dev/null tree
30067 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30068 echo "$as_me: error: cannot find input file: $f" >&2;}
30069 { (exit 1); exit 1; }; }
30070 fi;;
30071 esac
30072 done` || { (exit 1); exit 1; }
30073 # Remove the trailing spaces.
30074 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30075
30076 _ACEOF
30077
30078 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30079 # `conftest.undefs', that substitutes the proper values into
30080 # config.h.in to produce config.h. The first handles `#define'
30081 # templates, and the second `#undef' templates.
30082 # And first: Protect against being on the right side of a sed subst in
30083 # config.status. Protect against being in an unquoted here document
30084 # in config.status.
30085 rm -f conftest.defines conftest.undefs
30086 # Using a here document instead of a string reduces the quoting nightmare.
30087 # Putting comments in sed scripts is not portable.
30088 #
30089 # `end' is used to avoid that the second main sed command (meant for
30090 # 0-ary CPP macros) applies to n-ary macro definitions.
30091 # See the Autoconf documentation for `clear'.
30092 cat >confdef2sed.sed <<\_ACEOF
30093 s/[\\&,]/\\&/g
30094 s,[\\$`],\\&,g
30095 t clear
30096 : clear
30097 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30098 t end
30099 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30100 : end
30101 _ACEOF
30102 # If some macros were called several times there might be several times
30103 # the same #defines, which is useless. Nevertheless, we may not want to
30104 # sort them, since we want the *last* AC-DEFINE to be honored.
30105 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30106 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30107 rm -f confdef2sed.sed
30108
30109 # This sed command replaces #undef with comments. This is necessary, for
30110 # example, in the case of _POSIX_SOURCE, which is predefined and required
30111 # on some systems where configure will not decide to define it.
30112 cat >>conftest.undefs <<\_ACEOF
30113 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30114 _ACEOF
30115
30116 # Break up conftest.defines because some shells have a limit on the size
30117 # of here documents, and old seds have small limits too (100 cmds).
30118 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30119 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30120 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30121 echo ' :' >>$CONFIG_STATUS
30122 rm -f conftest.tail
30123 while grep . conftest.defines >/dev/null
30124 do
30125 # Write a limited-size here document to $tmp/defines.sed.
30126 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30127 # Speed up: don't consider the non `#define' lines.
30128 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30129 # Work around the forget-to-reset-the-flag bug.
30130 echo 't clr' >>$CONFIG_STATUS
30131 echo ': clr' >>$CONFIG_STATUS
30132 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30133 echo 'CEOF
30134 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30135 rm -f $tmp/in
30136 mv $tmp/out $tmp/in
30137 ' >>$CONFIG_STATUS
30138 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30139 rm -f conftest.defines
30140 mv conftest.tail conftest.defines
30141 done
30142 rm -f conftest.defines
30143 echo ' fi # grep' >>$CONFIG_STATUS
30144 echo >>$CONFIG_STATUS
30145
30146 # Break up conftest.undefs because some shells have a limit on the size
30147 # of here documents, and old seds have small limits too (100 cmds).
30148 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30149 rm -f conftest.tail
30150 while grep . conftest.undefs >/dev/null
30151 do
30152 # Write a limited-size here document to $tmp/undefs.sed.
30153 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30154 # Speed up: don't consider the non `#undef'
30155 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30156 # Work around the forget-to-reset-the-flag bug.
30157 echo 't clr' >>$CONFIG_STATUS
30158 echo ': clr' >>$CONFIG_STATUS
30159 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30160 echo 'CEOF
30161 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30162 rm -f $tmp/in
30163 mv $tmp/out $tmp/in
30164 ' >>$CONFIG_STATUS
30165 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30166 rm -f conftest.undefs
30167 mv conftest.tail conftest.undefs
30168 done
30169 rm -f conftest.undefs
30170
30171 cat >>$CONFIG_STATUS <<\_ACEOF
30172 # Let's still pretend it is `configure' which instantiates (i.e., don't
30173 # use $as_me), people would be surprised to read:
30174 # /* config.h. Generated by config.status. */
30175 if test x"$ac_file" = x-; then
30176 echo "/* Generated by configure. */" >$tmp/config.h
30177 else
30178 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30179 fi
30180 cat $tmp/in >>$tmp/config.h
30181 rm -f $tmp/in
30182 if test x"$ac_file" != x-; then
30183 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30184 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30185 echo "$as_me: $ac_file is unchanged" >&6;}
30186 else
30187 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30189 X"$ac_file" : 'X\(//\)[^/]' \| \
30190 X"$ac_file" : 'X\(//\)$' \| \
30191 X"$ac_file" : 'X\(/\)' \| \
30192 . : '\(.\)' 2>/dev/null ||
30193 echo X"$ac_file" |
30194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30196 /^X\(\/\/\)$/{ s//\1/; q; }
30197 /^X\(\/\).*/{ s//\1/; q; }
30198 s/.*/./; q'`
30199 { if $as_mkdir_p; then
30200 mkdir -p "$ac_dir"
30201 else
30202 as_dir="$ac_dir"
30203 as_dirs=
30204 while test ! -d "$as_dir"; do
30205 as_dirs="$as_dir $as_dirs"
30206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30208 X"$as_dir" : 'X\(//\)[^/]' \| \
30209 X"$as_dir" : 'X\(//\)$' \| \
30210 X"$as_dir" : 'X\(/\)' \| \
30211 . : '\(.\)' 2>/dev/null ||
30212 echo X"$as_dir" |
30213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30215 /^X\(\/\/\)$/{ s//\1/; q; }
30216 /^X\(\/\).*/{ s//\1/; q; }
30217 s/.*/./; q'`
30218 done
30219 test ! -n "$as_dirs" || mkdir $as_dirs
30220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30222 { (exit 1); exit 1; }; }; }
30223
30224 rm -f $ac_file
30225 mv $tmp/config.h $ac_file
30226 fi
30227 else
30228 cat $tmp/config.h
30229 rm -f $tmp/config.h
30230 fi
30231 # Compute $ac_file's index in $config_headers.
30232 _am_stamp_count=1
30233 for _am_header in $config_headers :; do
30234 case $_am_header in
30235 $ac_file | $ac_file:* )
30236 break ;;
30237 * )
30238 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30239 esac
30240 done
30241 echo "timestamp for $ac_file" >`(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'`/stamp-h$_am_stamp_count
30253 done
30254 _ACEOF
30255 cat >>$CONFIG_STATUS <<\_ACEOF
30256
30257 #
30258 # CONFIG_LINKS section.
30259 #
30260
30261 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30262 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30263 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30264
30265 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30266 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30267
30268 if test ! -r $srcdir/$ac_source; then
30269 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30270 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30271 { (exit 1); exit 1; }; }
30272 fi
30273 rm -f $ac_dest
30274
30275 # Make relative symlinks.
30276 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30277 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30278 X"$ac_dest" : 'X\(//\)[^/]' \| \
30279 X"$ac_dest" : 'X\(//\)$' \| \
30280 X"$ac_dest" : 'X\(/\)' \| \
30281 . : '\(.\)' 2>/dev/null ||
30282 echo X"$ac_dest" |
30283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30285 /^X\(\/\/\)$/{ s//\1/; q; }
30286 /^X\(\/\).*/{ s//\1/; q; }
30287 s/.*/./; q'`
30288 { if $as_mkdir_p; then
30289 mkdir -p "$ac_dest_dir"
30290 else
30291 as_dir="$ac_dest_dir"
30292 as_dirs=
30293 while test ! -d "$as_dir"; do
30294 as_dirs="$as_dir $as_dirs"
30295 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30297 X"$as_dir" : 'X\(//\)[^/]' \| \
30298 X"$as_dir" : 'X\(//\)$' \| \
30299 X"$as_dir" : 'X\(/\)' \| \
30300 . : '\(.\)' 2>/dev/null ||
30301 echo X"$as_dir" |
30302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30304 /^X\(\/\/\)$/{ s//\1/; q; }
30305 /^X\(\/\).*/{ s//\1/; q; }
30306 s/.*/./; q'`
30307 done
30308 test ! -n "$as_dirs" || mkdir $as_dirs
30309 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30310 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30311 { (exit 1); exit 1; }; }; }
30312
30313 ac_builddir=.
30314
30315 if test "$ac_dest_dir" != .; then
30316 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30317 # A "../" for each directory in $ac_dir_suffix.
30318 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30319 else
30320 ac_dir_suffix= ac_top_builddir=
30321 fi
30322
30323 case $srcdir in
30324 .) # No --srcdir option. We are building in place.
30325 ac_srcdir=.
30326 if test -z "$ac_top_builddir"; then
30327 ac_top_srcdir=.
30328 else
30329 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30330 fi ;;
30331 [\\/]* | ?:[\\/]* ) # Absolute path.
30332 ac_srcdir=$srcdir$ac_dir_suffix;
30333 ac_top_srcdir=$srcdir ;;
30334 *) # Relative path.
30335 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30336 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30337 esac
30338
30339 # Do not use `cd foo && pwd` to compute absolute paths, because
30340 # the directories may not exist.
30341 case `pwd` in
30342 .) ac_abs_builddir="$ac_dest_dir";;
30343 *)
30344 case "$ac_dest_dir" in
30345 .) ac_abs_builddir=`pwd`;;
30346 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30347 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30348 esac;;
30349 esac
30350 case $ac_abs_builddir in
30351 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30352 *)
30353 case ${ac_top_builddir}. in
30354 .) ac_abs_top_builddir=$ac_abs_builddir;;
30355 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30356 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30357 esac;;
30358 esac
30359 case $ac_abs_builddir in
30360 .) ac_abs_srcdir=$ac_srcdir;;
30361 *)
30362 case $ac_srcdir in
30363 .) ac_abs_srcdir=$ac_abs_builddir;;
30364 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30365 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30366 esac;;
30367 esac
30368 case $ac_abs_builddir in
30369 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30370 *)
30371 case $ac_top_srcdir in
30372 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30373 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30374 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30375 esac;;
30376 esac
30377
30378
30379 case $srcdir in
30380 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30381 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30382 esac
30383
30384 # Try a symlink, then a hard link, then a copy.
30385 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30386 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30387 cp -p $srcdir/$ac_source $ac_dest ||
30388 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30389 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30390 { (exit 1); exit 1; }; }
30391 done
30392 _ACEOF
30393 cat >>$CONFIG_STATUS <<\_ACEOF
30394
30395 #
30396 # CONFIG_COMMANDS section.
30397 #
30398 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30399 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30400 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30401 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30402 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30403 X"$ac_dest" : 'X\(//\)[^/]' \| \
30404 X"$ac_dest" : 'X\(//\)$' \| \
30405 X"$ac_dest" : 'X\(/\)' \| \
30406 . : '\(.\)' 2>/dev/null ||
30407 echo X"$ac_dest" |
30408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30410 /^X\(\/\/\)$/{ s//\1/; q; }
30411 /^X\(\/\).*/{ s//\1/; q; }
30412 s/.*/./; q'`
30413 { if $as_mkdir_p; then
30414 mkdir -p "$ac_dir"
30415 else
30416 as_dir="$ac_dir"
30417 as_dirs=
30418 while test ! -d "$as_dir"; do
30419 as_dirs="$as_dir $as_dirs"
30420 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30422 X"$as_dir" : 'X\(//\)[^/]' \| \
30423 X"$as_dir" : 'X\(//\)$' \| \
30424 X"$as_dir" : 'X\(/\)' \| \
30425 . : '\(.\)' 2>/dev/null ||
30426 echo X"$as_dir" |
30427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30429 /^X\(\/\/\)$/{ s//\1/; q; }
30430 /^X\(\/\).*/{ s//\1/; q; }
30431 s/.*/./; q'`
30432 done
30433 test ! -n "$as_dirs" || mkdir $as_dirs
30434 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30435 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30436 { (exit 1); exit 1; }; }; }
30437
30438 ac_builddir=.
30439
30440 if test "$ac_dir" != .; then
30441 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30442 # A "../" for each directory in $ac_dir_suffix.
30443 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30444 else
30445 ac_dir_suffix= ac_top_builddir=
30446 fi
30447
30448 case $srcdir in
30449 .) # No --srcdir option. We are building in place.
30450 ac_srcdir=.
30451 if test -z "$ac_top_builddir"; then
30452 ac_top_srcdir=.
30453 else
30454 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30455 fi ;;
30456 [\\/]* | ?:[\\/]* ) # Absolute path.
30457 ac_srcdir=$srcdir$ac_dir_suffix;
30458 ac_top_srcdir=$srcdir ;;
30459 *) # Relative path.
30460 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30461 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30462 esac
30463
30464 # Do not use `cd foo && pwd` to compute absolute paths, because
30465 # the directories may not exist.
30466 case `pwd` in
30467 .) ac_abs_builddir="$ac_dir";;
30468 *)
30469 case "$ac_dir" in
30470 .) ac_abs_builddir=`pwd`;;
30471 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30472 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30473 esac;;
30474 esac
30475 case $ac_abs_builddir in
30476 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30477 *)
30478 case ${ac_top_builddir}. in
30479 .) ac_abs_top_builddir=$ac_abs_builddir;;
30480 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30481 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30482 esac;;
30483 esac
30484 case $ac_abs_builddir in
30485 .) ac_abs_srcdir=$ac_srcdir;;
30486 *)
30487 case $ac_srcdir in
30488 .) ac_abs_srcdir=$ac_abs_builddir;;
30489 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30490 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30491 esac;;
30492 esac
30493 case $ac_abs_builddir in
30494 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30495 *)
30496 case $ac_top_srcdir in
30497 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30498 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30499 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30500 esac;;
30501 esac
30502
30503
30504 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30505 echo "$as_me: executing $ac_dest commands" >&6;}
30506 case $ac_dest in
30507 default-1 )
30508 # Only add multilib support code if we just rebuilt the top-level
30509 # Makefile.
30510 case " $CONFIG_FILES " in
30511 *" Makefile "*)
30512 ac_file=Makefile . ${multi_basedir}/config-ml.in
30513 ;;
30514 esac ;;
30515 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30516 # Strip MF so we end up with the name of the file.
30517 mf=`echo "$mf" | sed -e 's/:.*$//'`
30518 # Check whether this is an Automake generated Makefile or not.
30519 # We used to match only the files named `Makefile.in', but
30520 # some people rename them; so instead we look at the file content.
30521 # Grep'ing the first line is not enough: some people post-process
30522 # each Makefile.in and add a new line on top of each file to say so.
30523 # So let's grep whole file.
30524 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30525 dirpart=`(dirname "$mf") 2>/dev/null ||
30526 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30527 X"$mf" : 'X\(//\)[^/]' \| \
30528 X"$mf" : 'X\(//\)$' \| \
30529 X"$mf" : 'X\(/\)' \| \
30530 . : '\(.\)' 2>/dev/null ||
30531 echo X"$mf" |
30532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30534 /^X\(\/\/\)$/{ s//\1/; q; }
30535 /^X\(\/\).*/{ s//\1/; q; }
30536 s/.*/./; q'`
30537 else
30538 continue
30539 fi
30540 # Extract the definition of DEPDIR, am__include, and am__quote
30541 # from the Makefile without running `make'.
30542 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30543 test -z "$DEPDIR" && continue
30544 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30545 test -z "am__include" && continue
30546 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30547 # When using ansi2knr, U may be empty or an underscore; expand it
30548 U=`sed -n 's/^U = //p' < "$mf"`
30549 # Find all dependency output files, they are included files with
30550 # $(DEPDIR) in their names. We invoke sed twice because it is the
30551 # simplest approach to changing $(DEPDIR) to its actual value in the
30552 # expansion.
30553 for file in `sed -n "
30554 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30555 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30556 # Make sure the directory exists.
30557 test -f "$dirpart/$file" && continue
30558 fdir=`(dirname "$file") 2>/dev/null ||
30559 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30560 X"$file" : 'X\(//\)[^/]' \| \
30561 X"$file" : 'X\(//\)$' \| \
30562 X"$file" : 'X\(/\)' \| \
30563 . : '\(.\)' 2>/dev/null ||
30564 echo X"$file" |
30565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30567 /^X\(\/\/\)$/{ s//\1/; q; }
30568 /^X\(\/\).*/{ s//\1/; q; }
30569 s/.*/./; q'`
30570 { if $as_mkdir_p; then
30571 mkdir -p $dirpart/$fdir
30572 else
30573 as_dir=$dirpart/$fdir
30574 as_dirs=
30575 while test ! -d "$as_dir"; do
30576 as_dirs="$as_dir $as_dirs"
30577 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30578 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30579 X"$as_dir" : 'X\(//\)[^/]' \| \
30580 X"$as_dir" : 'X\(//\)$' \| \
30581 X"$as_dir" : 'X\(/\)' \| \
30582 . : '\(.\)' 2>/dev/null ||
30583 echo X"$as_dir" |
30584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30586 /^X\(\/\/\)$/{ s//\1/; q; }
30587 /^X\(\/\).*/{ s//\1/; q; }
30588 s/.*/./; q'`
30589 done
30590 test ! -n "$as_dirs" || mkdir $as_dirs
30591 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30592 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30593 { (exit 1); exit 1; }; }; }
30594
30595 # echo "creating $dirpart/$file"
30596 echo '# dummy' > "$dirpart/$file"
30597 done
30598 done
30599 ;;
30600 libtool )
30601
30602 # See if we are running on zsh, and set the options which allow our
30603 # commands through without removal of \ escapes.
30604 if test -n "${ZSH_VERSION+set}" ; then
30605 setopt NO_GLOB_SUBST
30606 fi
30607
30608 cfgfile="${ofile}T"
30609 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30610 $RM "$cfgfile"
30611
30612 cat <<_LT_EOF >> "$cfgfile"
30613 #! $SHELL
30614
30615 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30616 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
30617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30618 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30619 #
30620 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30621 # 2006, 2007 Free Software Foundation, Inc.
30622 #
30623 # This file is part of GNU Libtool:
30624 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
30625 #
30626 # This program is free software; you can redistribute it and/or modify
30627 # it under the terms of the GNU General Public License as published by
30628 # the Free Software Foundation; either version 2 of the License, or
30629 # (at your option) any later version.
30630 #
30631 # This program is distributed in the hope that it will be useful, but
30632 # WITHOUT ANY WARRANTY; without even the implied warranty of
30633 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30634 # General Public License for more details.
30635 #
30636 # You should have received a copy of the GNU General Public License
30637 # along with this program; if not, a copy can be downloaded from
30638 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
30639 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30640 # MA 02110-1301, USA.
30641 #
30642 # As a special exception to the GNU General Public License, if you
30643 # distribute this file as part of a program that contains a
30644 # configuration script generated by Autoconf, you may include it under
30645 # the same distribution terms that you use for the rest of that program.
30646
30647
30648 # The names of the tagged configurations supported by this script.
30649 available_tags="CXX GCJ "
30650
30651 # ### BEGIN LIBTOOL CONFIG
30652
30653 # Which release of libtool.m4 was used?
30654 macro_version=$macro_version
30655 macro_revision=$macro_revision
30656
30657 # Whether or not to build shared libraries.
30658 build_libtool_libs=$enable_shared
30659
30660 # Whether or not to build static libraries.
30661 build_old_libs=$enable_static
30662
30663 # What type of objects to build.
30664 pic_mode=$pic_mode
30665
30666 # Whether or not to optimize for fast installation.
30667 fast_install=$enable_fast_install
30668
30669 # The host system.
30670 host_alias=$host_alias
30671 host=$host
30672 host_os=$host_os
30673
30674 # The build system.
30675 build_alias=$build_alias
30676 build=$build
30677 build_os=$build_os
30678
30679 # A sed program that does not truncate output.
30680 SED=$lt_SED
30681
30682 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30683 Xsed="\$SED -e 1s/^X//"
30684
30685 # A grep program that handles long lines.
30686 GREP=$lt_GREP
30687
30688 # An ERE matcher.
30689 EGREP=$lt_EGREP
30690
30691 # A literal string matcher.
30692 FGREP=$lt_FGREP
30693
30694 # A BSD- or MS-compatible name lister.
30695 NM=$lt_NM
30696
30697 # Whether we need soft or hard links.
30698 LN_S=$lt_LN_S
30699
30700 # What is the maximum length of a command?
30701 max_cmd_len=$max_cmd_len
30702
30703 # Object file suffix (normally "o").
30704 objext=$ac_objext
30705
30706 # Executable file suffix (normally "").
30707 exeext=$exeext
30708
30709 # whether the shell understands "unset".
30710 lt_unset=$lt_unset
30711
30712 # turn spaces into newlines.
30713 SP2NL=$lt_lt_SP2NL
30714
30715 # turn newlines into spaces.
30716 NL2SP=$lt_lt_NL2SP
30717
30718 # How to create reloadable object files.
30719 reload_flag=$lt_reload_flag
30720 reload_cmds=$lt_reload_cmds
30721
30722 # Method to check whether dependent libraries are shared objects.
30723 deplibs_check_method=$lt_deplibs_check_method
30724
30725 # Command to use when deplibs_check_method == "file_magic".
30726 file_magic_cmd=$lt_file_magic_cmd
30727
30728 # The archiver.
30729 AR=$lt_AR
30730 AR_FLAGS=$lt_AR_FLAGS
30731
30732 # A symbol stripping program.
30733 STRIP=$lt_STRIP
30734
30735 # Commands used to install an old-style archive.
30736 RANLIB=$lt_RANLIB
30737 old_postinstall_cmds=$lt_old_postinstall_cmds
30738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30739
30740 # A C compiler.
30741 LTCC=$lt_CC
30742
30743 # LTCC compiler flags.
30744 LTCFLAGS=$lt_CFLAGS
30745
30746 # Take the output of nm and produce a listing of raw symbols and C names.
30747 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30748
30749 # Transform the output of nm in a proper C declaration.
30750 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30751
30752 # Transform the output of nm in a C name address pair.
30753 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30754
30755 # The name of the directory that contains temporary libtool files.
30756 objdir=$objdir
30757
30758 # Shell to use when invoking shell scripts.
30759 SHELL=$lt_SHELL
30760
30761 # An echo program that does not interpret backslashes.
30762 ECHO=$lt_ECHO
30763
30764 # Used to examine libraries when file_magic_cmd begins with "file".
30765 MAGIC_CMD=$MAGIC_CMD
30766
30767 # Must we lock files when doing compilation?
30768 need_locks=$lt_need_locks
30769
30770 # Old archive suffix (normally "a").
30771 libext=$libext
30772
30773 # Shared library suffix (normally ".so").
30774 shrext_cmds=$lt_shrext_cmds
30775
30776 # The commands to extract the exported symbol list from a shared archive.
30777 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30778
30779 # Variables whose values should be saved in libtool wrapper scripts and
30780 # restored at link time.
30781 variables_saved_for_relink=$lt_variables_saved_for_relink
30782
30783 # Do we need the "lib" prefix for modules?
30784 need_lib_prefix=$need_lib_prefix
30785
30786 # Do we need a version for libraries?
30787 need_version=$need_version
30788
30789 # Library versioning type.
30790 version_type=$version_type
30791
30792 # Shared library runtime path variable.
30793 runpath_var=$runpath_var
30794
30795 # Shared library path variable.
30796 shlibpath_var=$shlibpath_var
30797
30798 # Is shlibpath searched before the hard-coded library search path?
30799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30800
30801 # Format of library name prefix.
30802 libname_spec=$lt_libname_spec
30803
30804 # List of archive names. First name is the real one, the rest are links.
30805 # The last name is the one that the linker finds with -lNAME
30806 library_names_spec=$lt_library_names_spec
30807
30808 # The coded name of the library, if different from the real name.
30809 soname_spec=$lt_soname_spec
30810
30811 # Command to use after installation of a shared archive.
30812 postinstall_cmds=$lt_postinstall_cmds
30813
30814 # Command to use after uninstallation of a shared archive.
30815 postuninstall_cmds=$lt_postuninstall_cmds
30816
30817 # Commands used to finish a libtool library installation in a directory.
30818 finish_cmds=$lt_finish_cmds
30819
30820 # As "finish_cmds", except a single script fragment to be evaled but
30821 # not shown.
30822 finish_eval=$lt_finish_eval
30823
30824 # Whether we should hardcode library paths into libraries.
30825 hardcode_into_libs=$hardcode_into_libs
30826
30827 # Compile-time system search path for libraries.
30828 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30829
30830 # Run-time system search path for libraries.
30831 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30832
30833 # Whether dlopen is supported.
30834 dlopen_support=$enable_dlopen
30835
30836 # Whether dlopen of programs is supported.
30837 dlopen_self=$enable_dlopen_self
30838
30839 # Whether dlopen of statically linked programs is supported.
30840 dlopen_self_static=$enable_dlopen_self_static
30841
30842 # Commands to strip libraries.
30843 old_striplib=$lt_old_striplib
30844 striplib=$lt_striplib
30845
30846
30847 # The linker used to build libraries.
30848 LD=$lt_LD
30849
30850 # Commands used to build an old-style archive.
30851 old_archive_cmds=$lt_old_archive_cmds
30852
30853 # A language specific compiler.
30854 CC=$lt_compiler
30855
30856 # Is the compiler the GNU compiler?
30857 with_gcc=$GCC
30858
30859 # Compiler flag to turn off builtin functions.
30860 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30861
30862 # How to pass a linker flag through the compiler.
30863 wl=$lt_lt_prog_compiler_wl
30864
30865 # Additional compiler flags for building library objects.
30866 pic_flag=$lt_lt_prog_compiler_pic
30867
30868 # Compiler flag to prevent dynamic linking.
30869 link_static_flag=$lt_lt_prog_compiler_static
30870
30871 # Does compiler simultaneously support -c and -o options?
30872 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30873
30874 # Whether or not to add -lc for building shared libraries.
30875 build_libtool_need_lc=$archive_cmds_need_lc
30876
30877 # Whether or not to disallow shared libs when runtime libs are static.
30878 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30879
30880 # Compiler flag to allow reflexive dlopens.
30881 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30882
30883 # Compiler flag to generate shared objects directly from archives.
30884 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30885
30886 # Whether the compiler copes with passing no objects directly.
30887 compiler_needs_object=$lt_compiler_needs_object
30888
30889 # Create an old-style archive from a shared archive.
30890 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30891
30892 # Create a temporary old-style archive to link instead of a shared archive.
30893 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30894
30895 # Commands used to build a shared archive.
30896 archive_cmds=$lt_archive_cmds
30897 archive_expsym_cmds=$lt_archive_expsym_cmds
30898
30899 # Commands used to build a loadable module if different from building
30900 # a shared archive.
30901 module_cmds=$lt_module_cmds
30902 module_expsym_cmds=$lt_module_expsym_cmds
30903
30904 # Whether we are building with GNU ld or not.
30905 with_gnu_ld=$lt_with_gnu_ld
30906
30907 # Flag that allows shared libraries with undefined symbols to be built.
30908 allow_undefined_flag=$lt_allow_undefined_flag
30909
30910 # Flag that enforces no undefined symbols.
30911 no_undefined_flag=$lt_no_undefined_flag
30912
30913 # Flag to hardcode \$libdir into a binary during linking.
30914 # This must work even if \$libdir does not exist
30915 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30916
30917 # If ld is used when linking, flag to hardcode \$libdir into a binary
30918 # during linking. This must work even if \$libdir does not exist.
30919 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30920
30921 # Whether we need a single "-rpath" flag with a separated argument.
30922 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30923
30924 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30925 # DIR into the resulting binary.
30926 hardcode_direct=$hardcode_direct
30927
30928 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30929 # DIR into the resulting binary and the resulting library dependency is
30930 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30931 # library is relocated.
30932 hardcode_direct_absolute=$hardcode_direct_absolute
30933
30934 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30935 # into the resulting binary.
30936 hardcode_minus_L=$hardcode_minus_L
30937
30938 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30939 # into the resulting binary.
30940 hardcode_shlibpath_var=$hardcode_shlibpath_var
30941
30942 # Set to "yes" if building a shared library automatically hardcodes DIR
30943 # into the library and all subsequent libraries and executables linked
30944 # against it.
30945 hardcode_automatic=$hardcode_automatic
30946
30947 # Set to yes if linker adds runtime paths of dependent libraries
30948 # to runtime path list.
30949 inherit_rpath=$inherit_rpath
30950
30951 # Whether libtool must link a program against all its dependency libraries.
30952 link_all_deplibs=$link_all_deplibs
30953
30954 # Fix the shell variable \$srcfile for the compiler.
30955 fix_srcfile_path=$lt_fix_srcfile_path
30956
30957 # Set to "yes" if exported symbols are required.
30958 always_export_symbols=$always_export_symbols
30959
30960 # The commands to list exported symbols.
30961 export_symbols_cmds=$lt_export_symbols_cmds
30962
30963 # Symbols that should not be listed in the preloaded symbols.
30964 exclude_expsyms=$lt_exclude_expsyms
30965
30966 # Symbols that must always be exported.
30967 include_expsyms=$lt_include_expsyms
30968
30969 # Commands necessary for linking programs (against libraries) with templates.
30970 prelink_cmds=$lt_prelink_cmds
30971
30972 # Specify filename containing input files.
30973 file_list_spec=$lt_file_list_spec
30974
30975 # How to hardcode a shared library path into an executable.
30976 hardcode_action=$hardcode_action
30977
30978 # Dependencies to place before and after the objects being linked to
30979 # create a shared library.
30980 predep_objects=$lt_predep_objects
30981 postdep_objects=$lt_postdep_objects
30982 predeps=$lt_predeps
30983 postdeps=$lt_postdeps
30984
30985 # The library search path used internally by the compiler when linking
30986 # a shared library.
30987 compiler_lib_search_path=$lt_compiler_lib_search_path
30988
30989 # ### END LIBTOOL CONFIG
30990
30991 _LT_EOF
30992
30993 case $host_os in
30994 aix3*)
30995 cat <<\_LT_EOF >> "$cfgfile"
30996 # AIX sometimes has problems with the GCC collect2 program. For some
30997 # reason, if we set the COLLECT_NAMES environment variable, the problems
30998 # vanish in a puff of smoke.
30999 if test "X${COLLECT_NAMES+set}" != Xset; then
31000 COLLECT_NAMES=
31001 export COLLECT_NAMES
31002 fi
31003 _LT_EOF
31004 ;;
31005 esac
31006
31007
31008 ltmain="$ac_aux_dir/ltmain.sh"
31009
31010
31011 # We use sed instead of cat because bash on DJGPP gets confused if
31012 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31013 # text mode, it properly converts lines to CR/LF. This bash problem
31014 # is reportedly fixed, but why not run on old versions too?
31015 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31016 || (rm -f "$cfgfile"; exit 1)
31017
31018 case $xsi_shell in
31019 yes)
31020 cat << \_LT_EOF >> "$cfgfile"
31021 # func_dirname file append nondir_replacement
31022 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31023 # otherwise set result to NONDIR_REPLACEMENT.
31024 func_dirname ()
31025 {
31026 case ${1} in
31027 */*) func_dirname_result="${1%/*}${2}" ;;
31028 * ) func_dirname_result="${3}" ;;
31029 esac
31030 }
31031
31032 # func_basename file
31033 func_basename ()
31034 {
31035 func_basename_result="${1##*/}"
31036 }
31037
31038 # func_stripname prefix suffix name
31039 # strip PREFIX and SUFFIX off of NAME.
31040 # PREFIX and SUFFIX must not contain globbing or regex special
31041 # characters, hashes, percent signs, but SUFFIX may contain a leading
31042 # dot (in which case that matches only a dot).
31043 func_stripname ()
31044 {
31045 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31046 # positional parameters, so assign one to ordinary parameter first.
31047 func_stripname_result=${3}
31048 func_stripname_result=${func_stripname_result#"${1}"}
31049 func_stripname_result=${func_stripname_result%"${2}"}
31050 }
31051
31052 # func_opt_split
31053 func_opt_split ()
31054 {
31055 func_opt_split_opt=${1%%=*}
31056 func_opt_split_arg=${1#*=}
31057 }
31058
31059 # func_lo2o object
31060 func_lo2o ()
31061 {
31062 case ${1} in
31063 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31064 *) func_lo2o_result=${1} ;;
31065 esac
31066 }
31067 _LT_EOF
31068 ;;
31069 *) # Bourne compatible functions.
31070 cat << \_LT_EOF >> "$cfgfile"
31071 # func_dirname file append nondir_replacement
31072 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31073 # otherwise set result to NONDIR_REPLACEMENT.
31074 func_dirname ()
31075 {
31076 # Extract subdirectory from the argument.
31077 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31078 if test "X$func_dirname_result" = "X${1}"; then
31079 func_dirname_result="${3}"
31080 else
31081 func_dirname_result="$func_dirname_result${2}"
31082 fi
31083 }
31084
31085 # func_basename file
31086 func_basename ()
31087 {
31088 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31089 }
31090
31091 # func_stripname prefix suffix name
31092 # strip PREFIX and SUFFIX off of NAME.
31093 # PREFIX and SUFFIX must not contain globbing or regex special
31094 # characters, hashes, percent signs, but SUFFIX may contain a leading
31095 # dot (in which case that matches only a dot).
31096 # func_strip_suffix prefix name
31097 func_stripname ()
31098 {
31099 case ${2} in
31100 .*) func_stripname_result=`$ECHO "X${3}" \
31101 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31102 *) func_stripname_result=`$ECHO "X${3}" \
31103 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31104 esac
31105 }
31106
31107 # sed scripts:
31108 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31109 my_sed_long_arg='1s/^-[^=]*=//'
31110
31111 # func_opt_split
31112 func_opt_split ()
31113 {
31114 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31115 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31116 }
31117
31118 # func_lo2o object
31119 func_lo2o ()
31120 {
31121 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31122 }
31123 _LT_EOF
31124 esac
31125
31126 case $lt_shell_append in
31127 yes)
31128 cat << \_LT_EOF >> "$cfgfile"
31129
31130 # func_append var value
31131 # Append VALUE to the end of shell variable VAR.
31132 func_append ()
31133 {
31134 eval "$1+=\$2"
31135 }
31136 _LT_EOF
31137 ;;
31138 *)
31139 cat << \_LT_EOF >> "$cfgfile"
31140
31141 # func_append var value
31142 # Append VALUE to the end of shell variable VAR.
31143 func_append ()
31144 {
31145 eval "$1=\$$1\$2"
31146 }
31147 _LT_EOF
31148 ;;
31149 esac
31150
31151
31152 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31153 || (rm -f "$cfgfile"; exit 1)
31154
31155 mv -f "$cfgfile" "$ofile" ||
31156 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31157 chmod +x "$ofile"
31158
31159
31160 cat <<_LT_EOF >> "$ofile"
31161
31162 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31163
31164 # The linker used to build libraries.
31165 LD=$lt_LD_CXX
31166
31167 # Commands used to build an old-style archive.
31168 old_archive_cmds=$lt_old_archive_cmds_CXX
31169
31170 # A language specific compiler.
31171 CC=$lt_compiler_CXX
31172
31173 # Is the compiler the GNU compiler?
31174 with_gcc=$GCC_CXX
31175
31176 # Compiler flag to turn off builtin functions.
31177 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31178
31179 # How to pass a linker flag through the compiler.
31180 wl=$lt_lt_prog_compiler_wl_CXX
31181
31182 # Additional compiler flags for building library objects.
31183 pic_flag=$lt_lt_prog_compiler_pic_CXX
31184
31185 # Compiler flag to prevent dynamic linking.
31186 link_static_flag=$lt_lt_prog_compiler_static_CXX
31187
31188 # Does compiler simultaneously support -c and -o options?
31189 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31190
31191 # Whether or not to add -lc for building shared libraries.
31192 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31193
31194 # Whether or not to disallow shared libs when runtime libs are static.
31195 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31196
31197 # Compiler flag to allow reflexive dlopens.
31198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31199
31200 # Compiler flag to generate shared objects directly from archives.
31201 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31202
31203 # Whether the compiler copes with passing no objects directly.
31204 compiler_needs_object=$lt_compiler_needs_object_CXX
31205
31206 # Create an old-style archive from a shared archive.
31207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31208
31209 # Create a temporary old-style archive to link instead of a shared archive.
31210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31211
31212 # Commands used to build a shared archive.
31213 archive_cmds=$lt_archive_cmds_CXX
31214 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31215
31216 # Commands used to build a loadable module if different from building
31217 # a shared archive.
31218 module_cmds=$lt_module_cmds_CXX
31219 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31220
31221 # Whether we are building with GNU ld or not.
31222 with_gnu_ld=$lt_with_gnu_ld_CXX
31223
31224 # Flag that allows shared libraries with undefined symbols to be built.
31225 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31226
31227 # Flag that enforces no undefined symbols.
31228 no_undefined_flag=$lt_no_undefined_flag_CXX
31229
31230 # Flag to hardcode \$libdir into a binary during linking.
31231 # This must work even if \$libdir does not exist
31232 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31233
31234 # If ld is used when linking, flag to hardcode \$libdir into a binary
31235 # during linking. This must work even if \$libdir does not exist.
31236 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31237
31238 # Whether we need a single "-rpath" flag with a separated argument.
31239 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31240
31241 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31242 # DIR into the resulting binary.
31243 hardcode_direct=$hardcode_direct_CXX
31244
31245 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31246 # DIR into the resulting binary and the resulting library dependency is
31247 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31248 # library is relocated.
31249 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31250
31251 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31252 # into the resulting binary.
31253 hardcode_minus_L=$hardcode_minus_L_CXX
31254
31255 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31256 # into the resulting binary.
31257 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31258
31259 # Set to "yes" if building a shared library automatically hardcodes DIR
31260 # into the library and all subsequent libraries and executables linked
31261 # against it.
31262 hardcode_automatic=$hardcode_automatic_CXX
31263
31264 # Set to yes if linker adds runtime paths of dependent libraries
31265 # to runtime path list.
31266 inherit_rpath=$inherit_rpath_CXX
31267
31268 # Whether libtool must link a program against all its dependency libraries.
31269 link_all_deplibs=$link_all_deplibs_CXX
31270
31271 # Fix the shell variable \$srcfile for the compiler.
31272 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31273
31274 # Set to "yes" if exported symbols are required.
31275 always_export_symbols=$always_export_symbols_CXX
31276
31277 # The commands to list exported symbols.
31278 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31279
31280 # Symbols that should not be listed in the preloaded symbols.
31281 exclude_expsyms=$lt_exclude_expsyms_CXX
31282
31283 # Symbols that must always be exported.
31284 include_expsyms=$lt_include_expsyms_CXX
31285
31286 # Commands necessary for linking programs (against libraries) with templates.
31287 prelink_cmds=$lt_prelink_cmds_CXX
31288
31289 # Specify filename containing input files.
31290 file_list_spec=$lt_file_list_spec_CXX
31291
31292 # How to hardcode a shared library path into an executable.
31293 hardcode_action=$hardcode_action_CXX
31294
31295 # Dependencies to place before and after the objects being linked to
31296 # create a shared library.
31297 predep_objects=$lt_predep_objects_CXX
31298 postdep_objects=$lt_postdep_objects_CXX
31299 predeps=$lt_predeps_CXX
31300 postdeps=$lt_postdeps_CXX
31301
31302 # The library search path used internally by the compiler when linking
31303 # a shared library.
31304 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31305
31306 # ### END LIBTOOL TAG CONFIG: CXX
31307 _LT_EOF
31308
31309
31310 cat <<_LT_EOF >> "$ofile"
31311
31312 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
31313
31314 # The linker used to build libraries.
31315 LD=$lt_LD_GCJ
31316
31317 # Commands used to build an old-style archive.
31318 old_archive_cmds=$lt_old_archive_cmds_GCJ
31319
31320 # A language specific compiler.
31321 CC=$lt_compiler_GCJ
31322
31323 # Is the compiler the GNU compiler?
31324 with_gcc=$GCC_GCJ
31325
31326 # Compiler flag to turn off builtin functions.
31327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
31328
31329 # How to pass a linker flag through the compiler.
31330 wl=$lt_lt_prog_compiler_wl_GCJ
31331
31332 # Additional compiler flags for building library objects.
31333 pic_flag=$lt_lt_prog_compiler_pic_GCJ
31334
31335 # Compiler flag to prevent dynamic linking.
31336 link_static_flag=$lt_lt_prog_compiler_static_GCJ
31337
31338 # Does compiler simultaneously support -c and -o options?
31339 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
31340
31341 # Whether or not to add -lc for building shared libraries.
31342 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
31343
31344 # Whether or not to disallow shared libs when runtime libs are static.
31345 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
31346
31347 # Compiler flag to allow reflexive dlopens.
31348 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
31349
31350 # Compiler flag to generate shared objects directly from archives.
31351 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
31352
31353 # Whether the compiler copes with passing no objects directly.
31354 compiler_needs_object=$lt_compiler_needs_object_GCJ
31355
31356 # Create an old-style archive from a shared archive.
31357 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
31358
31359 # Create a temporary old-style archive to link instead of a shared archive.
31360 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
31361
31362 # Commands used to build a shared archive.
31363 archive_cmds=$lt_archive_cmds_GCJ
31364 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
31365
31366 # Commands used to build a loadable module if different from building
31367 # a shared archive.
31368 module_cmds=$lt_module_cmds_GCJ
31369 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
31370
31371 # Whether we are building with GNU ld or not.
31372 with_gnu_ld=$lt_with_gnu_ld_GCJ
31373
31374 # Flag that allows shared libraries with undefined symbols to be built.
31375 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31376
31377 # Flag that enforces no undefined symbols.
31378 no_undefined_flag=$lt_no_undefined_flag_GCJ
31379
31380 # Flag to hardcode \$libdir into a binary during linking.
31381 # This must work even if \$libdir does not exist
31382 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31383
31384 # If ld is used when linking, flag to hardcode \$libdir into a binary
31385 # during linking. This must work even if \$libdir does not exist.
31386 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31387
31388 # Whether we need a single "-rpath" flag with a separated argument.
31389 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31390
31391 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31392 # DIR into the resulting binary.
31393 hardcode_direct=$hardcode_direct_GCJ
31394
31395 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31396 # DIR into the resulting binary and the resulting library dependency is
31397 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31398 # library is relocated.
31399 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
31400
31401 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31402 # into the resulting binary.
31403 hardcode_minus_L=$hardcode_minus_L_GCJ
31404
31405 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31406 # into the resulting binary.
31407 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31408
31409 # Set to "yes" if building a shared library automatically hardcodes DIR
31410 # into the library and all subsequent libraries and executables linked
31411 # against it.
31412 hardcode_automatic=$hardcode_automatic_GCJ
31413
31414 # Set to yes if linker adds runtime paths of dependent libraries
31415 # to runtime path list.
31416 inherit_rpath=$inherit_rpath_GCJ
31417
31418 # Whether libtool must link a program against all its dependency libraries.
31419 link_all_deplibs=$link_all_deplibs_GCJ
31420
31421 # Fix the shell variable \$srcfile for the compiler.
31422 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31423
31424 # Set to "yes" if exported symbols are required.
31425 always_export_symbols=$always_export_symbols_GCJ
31426
31427 # The commands to list exported symbols.
31428 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31429
31430 # Symbols that should not be listed in the preloaded symbols.
31431 exclude_expsyms=$lt_exclude_expsyms_GCJ
31432
31433 # Symbols that must always be exported.
31434 include_expsyms=$lt_include_expsyms_GCJ
31435
31436 # Commands necessary for linking programs (against libraries) with templates.
31437 prelink_cmds=$lt_prelink_cmds_GCJ
31438
31439 # Specify filename containing input files.
31440 file_list_spec=$lt_file_list_spec_GCJ
31441
31442 # How to hardcode a shared library path into an executable.
31443 hardcode_action=$hardcode_action_GCJ
31444
31445 # Dependencies to place before and after the objects being linked to
31446 # create a shared library.
31447 predep_objects=$lt_predep_objects_GCJ
31448 postdep_objects=$lt_postdep_objects_GCJ
31449 predeps=$lt_predeps_GCJ
31450 postdeps=$lt_postdeps_GCJ
31451
31452 # The library search path used internally by the compiler when linking
31453 # a shared library.
31454 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31455
31456 # ### END LIBTOOL TAG CONFIG: GCJ
31457 _LT_EOF
31458
31459 ;;
31460 esac
31461 done
31462 _ACEOF
31463
31464 cat >>$CONFIG_STATUS <<\_ACEOF
31465
31466 { (exit 0); exit 0; }
31467 _ACEOF
31468 chmod +x $CONFIG_STATUS
31469 ac_clean_files=$ac_clean_files_save
31470
31471
31472 # configure is writing to config.log, and then calls config.status.
31473 # config.status does its own redirection, appending to config.log.
31474 # Unfortunately, on DOS this fails, as config.log is still kept open
31475 # by configure, so config.status won't be able to write to it; its
31476 # output is simply discarded. So we exec the FD to /dev/null,
31477 # effectively closing config.log, so it can be properly (re)opened and
31478 # appended to by config.status. When coming back to configure, we
31479 # need to make the FD available again.
31480 if test "$no_create" != yes; then
31481 ac_cs_success=:
31482 ac_config_status_args=
31483 test "$silent" = yes &&
31484 ac_config_status_args="$ac_config_status_args --quiet"
31485 exec 5>/dev/null
31486 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31487 exec 5>>config.log
31488 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31489 # would make configure fail if this is the last instruction.
31490 $ac_cs_success || { (exit 1); exit 1; }
31491 fi
31492
31493 #
31494 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31495 #
31496 if test "$no_recursion" != yes; then
31497
31498 # Remove --cache-file and --srcdir arguments so they do not pile up.
31499 ac_sub_configure_args=
31500 ac_prev=
31501 eval "set x $ac_configure_args"
31502 shift
31503 for ac_arg
31504 do
31505 if test -n "$ac_prev"; then
31506 ac_prev=
31507 continue
31508 fi
31509 case $ac_arg in
31510 -cache-file | --cache-file | --cache-fil | --cache-fi \
31511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31512 ac_prev=cache_file ;;
31513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31515 | --c=*)
31516 ;;
31517 --config-cache | -C)
31518 ;;
31519 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31520 ac_prev=srcdir ;;
31521 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31522 ;;
31523 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31524 ac_prev=prefix ;;
31525 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31526 ;;
31527 *)
31528 case $ac_arg in
31529 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31530 esac
31531 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31532 esac
31533 done
31534
31535 # Always prepend --prefix to ensure using the same prefix
31536 # in subdir configurations.
31537 ac_arg="--prefix=$prefix"
31538 case $ac_arg in
31539 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31540 esac
31541 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31542
31543 ac_popdir=`pwd`
31544 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31545
31546 # Do not complain, so a configure script can configure whichever
31547 # parts of a large source tree are present.
31548 test -d "$srcdir/$ac_dir" || continue
31549
31550 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31551 echo "$as_me: configuring in $ac_dir" >&6;}
31552 { if $as_mkdir_p; then
31553 mkdir -p "$ac_dir"
31554 else
31555 as_dir="$ac_dir"
31556 as_dirs=
31557 while test ! -d "$as_dir"; do
31558 as_dirs="$as_dir $as_dirs"
31559 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31561 X"$as_dir" : 'X\(//\)[^/]' \| \
31562 X"$as_dir" : 'X\(//\)$' \| \
31563 X"$as_dir" : 'X\(/\)' \| \
31564 . : '\(.\)' 2>/dev/null ||
31565 echo X"$as_dir" |
31566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31568 /^X\(\/\/\)$/{ s//\1/; q; }
31569 /^X\(\/\).*/{ s//\1/; q; }
31570 s/.*/./; q'`
31571 done
31572 test ! -n "$as_dirs" || mkdir $as_dirs
31573 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31574 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31575 { (exit 1); exit 1; }; }; }
31576
31577 ac_builddir=.
31578
31579 if test "$ac_dir" != .; then
31580 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31581 # A "../" for each directory in $ac_dir_suffix.
31582 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31583 else
31584 ac_dir_suffix= ac_top_builddir=
31585 fi
31586
31587 case $srcdir in
31588 .) # No --srcdir option. We are building in place.
31589 ac_srcdir=.
31590 if test -z "$ac_top_builddir"; then
31591 ac_top_srcdir=.
31592 else
31593 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31594 fi ;;
31595 [\\/]* | ?:[\\/]* ) # Absolute path.
31596 ac_srcdir=$srcdir$ac_dir_suffix;
31597 ac_top_srcdir=$srcdir ;;
31598 *) # Relative path.
31599 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31600 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31601 esac
31602
31603 # Do not use `cd foo && pwd` to compute absolute paths, because
31604 # the directories may not exist.
31605 case `pwd` in
31606 .) ac_abs_builddir="$ac_dir";;
31607 *)
31608 case "$ac_dir" in
31609 .) ac_abs_builddir=`pwd`;;
31610 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31611 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31612 esac;;
31613 esac
31614 case $ac_abs_builddir in
31615 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31616 *)
31617 case ${ac_top_builddir}. in
31618 .) ac_abs_top_builddir=$ac_abs_builddir;;
31619 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31620 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31621 esac;;
31622 esac
31623 case $ac_abs_builddir in
31624 .) ac_abs_srcdir=$ac_srcdir;;
31625 *)
31626 case $ac_srcdir in
31627 .) ac_abs_srcdir=$ac_abs_builddir;;
31628 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31629 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31630 esac;;
31631 esac
31632 case $ac_abs_builddir in
31633 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31634 *)
31635 case $ac_top_srcdir in
31636 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31637 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31638 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31639 esac;;
31640 esac
31641
31642
31643 cd "$ac_dir"
31644
31645 # Check for guested configure; otherwise get Cygnus style configure.
31646 if test -f "$ac_srcdir/configure.gnu"; then
31647 ac_sub_configure=$ac_srcdir/configure.gnu
31648 elif test -f "$ac_srcdir/configure"; then
31649 ac_sub_configure=$ac_srcdir/configure
31650 elif test -f "$ac_srcdir/configure.in"; then
31651 # This should be Cygnus configure.
31652 ac_sub_configure=$ac_aux_dir/configure
31653 else
31654 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31655 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31656 ac_sub_configure=
31657 fi
31658
31659 # The recursion is here.
31660 if test -n "$ac_sub_configure"; then
31661 # Make the cache file name correct relative to the subdirectory.
31662 case $cache_file in
31663 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31664 *) # Relative path.
31665 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31666 esac
31667
31668 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31669 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31670 # The eval makes quoting arguments work.
31671 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31672 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31673 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31674 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31675 { (exit 1); exit 1; }; }
31676 fi
31677
31678 cd "$ac_popdir"
31679 done
31680 fi
31681