2015-05-22 Robert Dewar <dewar@adacore.com>
[official-gcc.git] / libjava / configure
blob6cf9d70a24ebf36d649875742c23f3c5c8598391
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libjava version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='libjava'
558 PACKAGE_TARNAME='libjava'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libjava version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 enable_option_checking=no
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 LIBDIR
609 GCJ_BIN_DIR
610 JRE_LIB_DIR
611 JRE_BIN_DIR
612 SDK_INCLUDE_DIR
613 SDK_LIB_DIR
614 SDK_BIN_DIR
615 SDK_LNK
616 JRE_LNK
617 JRE_DIR
618 JVM_JAR_DIR
619 JVM_JAR_ROOT_DIR
620 JVM_ROOT_DIR
621 BUILD_VERSION
622 JAVA_VERSION
623 gcc_suffix
624 CREATE_JAVA_HOME_FALSE
625 CREATE_JAVA_HOME_TRUE
626 INSTALL_AOT_RPM_FALSE
627 INSTALL_AOT_RPM_TRUE
628 MAKE
629 python_mod_dir_expanded
630 python_mod_dir
631 here
632 LD_FINISH_STATIC_SPEC
633 LD_START_STATIC_SPEC
634 ANONVERSCRIPT_SUN_FALSE
635 ANONVERSCRIPT_SUN_TRUE
636 ANONVERSCRIPT_GNU_FALSE
637 ANONVERSCRIPT_GNU_TRUE
638 ANONVERSCRIPT_FALSE
639 ANONVERSCRIPT_TRUE
640 SYSDEP_SOURCES
641 PERL
642 libstdcxx_incdir
643 gxx_include_dir
644 gcjsubdir
645 dbexecdir
646 GCJVERSION
647 toolexeclibdir
648 toolexecmainlibdir
649 toolexecdir
650 LIBGCC_UNWIND_INCLUDE
651 INSTALL_BINARIES_FALSE
652 INSTALL_BINARIES_TRUE
653 NEEDS_DATA_START_FALSE
654 NEEDS_DATA_START_TRUE
655 ENABLE_SHARED_FALSE
656 ENABLE_SHARED_TRUE
657 NATIVE_FALSE
658 NATIVE_TRUE
659 ATOMICSPEC
660 IEEESPEC
661 BACKTRACESPEC
662 EXCEPTIONSPEC
663 CHECKREFSPEC
664 DIVIDESPEC
665 ZINCS
666 SYS_ZLIBS
667 ZLIBS
668 CLASSPATH_SEPARATOR
669 LIBART_LIBS
670 LIBART_CFLAGS
671 GLIB_LIBS
672 GLIB_CFLAGS
673 GTK_LIBS
674 GTK_CFLAGS
675 PKG_CONFIG
676 LDLIBICONV
677 LTLIBICONV
678 LIBICONV
679 USING_GCC_FALSE
680 USING_GCC_TRUE
681 HASH_SYNC_SPEC
682 LIBGCJ_BC_SPEC
683 LIBGCJ_SPEC
684 USE_LIBGCJ_BC_FALSE
685 USE_LIBGCJ_BC_TRUE
686 USING_NO_THREADS_FALSE
687 USING_NO_THREADS_TRUE
688 USING_WIN32_THREADS_FALSE
689 USING_WIN32_THREADS_TRUE
690 USING_POSIX_THREADS_FALSE
691 USING_POSIX_THREADS_TRUE
692 THREADCXXFLAGS
693 THREADLDFLAGS
694 THREADSTARTFILESPEC
695 THREADSPEC
696 THREADDEPS
697 THREADINCS
698 THREADLIBS
699 USING_NOGC_FALSE
700 USING_NOGC_TRUE
701 USING_BOEHMGC_FALSE
702 USING_BOEHMGC_TRUE
703 GCTESTSPEC
704 JC1GCSPEC
705 GCSPEC
706 GCDEPS
707 GCINCS
708 GCLIBS
709 LIBGCJTESTSPEC
710 LIBMATHSPEC
711 LIBSTDCXXSPEC
712 extra_ldflags
713 extra_ldflags_libjava
714 X_EXTRA_LIBS
715 X_LIBS
716 X_PRE_LIBS
717 X_CFLAGS
718 XMKMF
719 ZLIBTESTSPEC
720 ZLIBSPEC
721 SYSTEMSPEC
722 USING_DARWIN_CRT_FALSE
723 USING_DARWIN_CRT_TRUE
724 USING_POSIX_PLATFORM_FALSE
725 USING_POSIX_PLATFORM_TRUE
726 USING_WIN32_PLATFORM_FALSE
727 USING_WIN32_PLATFORM_TRUE
728 PLATFORM
729 LIBFFIINCS
730 LIBFFI
731 INTERPRETER_FALSE
732 INTERPRETER_TRUE
733 INTERPRETER
734 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
735 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
736 SUPPRESS_LIBGCJ_BC_FALSE
737 SUPPRESS_LIBGCJ_BC_TRUE
738 JAVA_HOME
739 JAVA_HOME_SET_FALSE
740 JAVA_HOME_SET_TRUE
741 INSTALL_ECJ_JAR_FALSE
742 INSTALL_ECJ_JAR_TRUE
743 BUILD_ECJ1_FALSE
744 BUILD_ECJ1_TRUE
745 ECJ_JAR
746 ECJ_BUILD_JAR
747 TESTSUBDIR_FALSE
748 TESTSUBDIR_TRUE
749 subdirs
750 am__fastdepGCJ_FALSE
751 am__fastdepGCJ_TRUE
752 GCJDEPMODE
753 GCJFLAGS
754 ac_ct_GCJ
756 lt_host_flags
757 CXXCPP
759 OTOOL64
760 OTOOL
761 LIPO
762 NMEDIT
763 DSYMUTIL
764 OBJDUMP
766 ac_ct_DUMPBIN
767 DUMPBIN
768 FGREP
769 EGREP
770 GREP
772 LIBTOOL
773 DIRLTDL
774 LIBLTDL
775 INCLTDL
776 host_exeext
777 GCJH
778 GCC_FOR_ECJX
779 GCJ_FOR_ECJX
780 X_AWT_FALSE
781 X_AWT_TRUE
782 XLIB_AWT_FALSE
783 XLIB_AWT_TRUE
784 TOOLKIT
785 LIBGCJDEBUG
786 BUILD_SUBLIBS_FALSE
787 BUILD_SUBLIBS_TRUE
788 LIBGCJ_LD_EXPORT_ALL
789 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
790 LIBGCJ_LD_SYMBOLIC
791 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
792 LIBGCJ_SUBLIB_LTFLAGS
793 LIBGCJ_JAVAFLAGS
794 LIBGCJ_CXXFLAGS
795 LIBGCJ_CFLAGS
796 MAINT
797 MAINTAINER_MODE_FALSE
798 MAINTAINER_MODE_TRUE
799 UNZIP
802 DLLTOOL
803 RANLIB
807 am__fastdepCXX_FALSE
808 am__fastdepCXX_TRUE
809 CXXDEPMODE
810 am__fastdepCC_FALSE
811 am__fastdepCC_TRUE
812 CCDEPMODE
813 am__nodep
814 AMDEPBACKSLASH
815 AMDEP_FALSE
816 AMDEP_TRUE
817 am__quote
818 am__include
819 DEPDIR
820 am__untar
821 am__tar
822 AMTAR
823 am__leading_dot
824 SET_MAKE
826 mkdir_p
827 MKDIR_P
828 INSTALL_STRIP_PROGRAM
829 STRIP
830 install_sh
831 MAKEINFO
832 AUTOHEADER
833 AUTOMAKE
834 AUTOCONF
835 ACLOCAL
836 VERSION
837 PACKAGE
838 CYGPATH_W
839 am__isrc
840 INSTALL_DATA
841 INSTALL_SCRIPT
842 INSTALL_PROGRAM
843 ac_ct_CXX
844 CXXFLAGS
846 OBJEXT
847 EXEEXT
848 ac_ct_CC
849 CPPFLAGS
850 LDFLAGS
851 CFLAGS
853 JAVA_MAINTAINER_MODE_FALSE
854 JAVA_MAINTAINER_MODE_TRUE
855 CREATE_GJDOC_FALSE
856 CREATE_GJDOC_TRUE
857 ANTLR_JAR
858 mkinstalldirs
859 LN_S
860 LIBSTDCXX_RAW_CXX_LDFLAGS
861 LIBSTDCXX_RAW_CXX_CXXFLAGS
862 target_noncanonical
863 target_os
864 target_vendor
865 target_cpu
866 target
867 host_os
868 host_vendor
869 host_cpu
870 host
871 multi_basedir
872 target_subdir
873 host_subdir
874 build_subdir
875 build_libsubdir
876 build_os
877 build_vendor
878 build_cpu
879 build
880 target_alias
881 host_alias
882 build_alias
883 LIBS
884 ECHO_T
885 ECHO_N
886 ECHO_C
887 DEFS
888 mandir
889 localedir
890 libdir
891 psdir
892 pdfdir
893 dvidir
894 htmldir
895 infodir
896 docdir
897 oldincludedir
898 includedir
899 localstatedir
900 sharedstatedir
901 sysconfdir
902 datadir
903 datarootdir
904 libexecdir
905 sbindir
906 bindir
907 program_transform_name
908 prefix
909 exec_prefix
910 PACKAGE_URL
911 PACKAGE_BUGREPORT
912 PACKAGE_STRING
913 PACKAGE_VERSION
914 PACKAGE_TARNAME
915 PACKAGE_NAME
916 PATH_SEPARATOR
917 SHELL'
918 ac_subst_files=''
919 ac_user_opts='
920 enable_option_checking
921 with_build_libsubdir
922 with_target_subdir
923 enable_multilib
924 with_cross_host
925 with_newlib
926 enable_version_specific_runtime_libs
927 enable_browser_plugin
928 enable_gconf_peer
929 with_antlr_jar
930 enable_gjdoc
931 enable_java_maintainer_mode
932 enable_dependency_tracking
933 enable_maintainer_mode
934 enable_libgcj_sublibs
935 enable_libgcj_debug
936 with_escher
937 enable_java_awt
938 enable_shared
939 enable_static
940 with_pic
941 enable_fast_install
942 with_gnu_ld
943 enable_libtool_lock
944 enable_getenv_properties
945 enable_hash_synchronization
946 with_ecj_jar
947 with_java_home
948 enable_libgcj_bc
949 enable_reduced_reflection
950 with_win32_nlsapi
951 enable_gc_debug
952 enable_interpreter
953 enable_sjlj_exceptions
954 enable_java_net
955 with_libffi
956 enable_jvmpi
957 with_ecos
958 with_system_zlib
959 with_x
960 enable_java_gc
961 enable_rpath
962 with_libiconv_prefix
963 enable_tls
964 with_system_libunwind
965 enable_symvers
966 with_python_dir
967 enable_aot_compile_rpm
968 enable_java_home
969 with_gcc_suffix
970 with_arch_directory
971 with_os_directory
972 with_origin_name
973 with_arch_suffix
974 with_jvm_root_dir
975 with_jvm_jar_dir
977 ac_precious_vars='build_alias
978 host_alias
979 target_alias
981 CFLAGS
982 LDFLAGS
983 LIBS
984 CPPFLAGS
986 CXXFLAGS
989 CXXCPP
990 XMKMF'
991 ac_subdirs_all='classpath libltdl'
993 # Initialize some variables set by options.
994 ac_init_help=
995 ac_init_version=false
996 ac_unrecognized_opts=
997 ac_unrecognized_sep=
998 # The variables have the same names as the options, with
999 # dashes changed to underlines.
1000 cache_file=/dev/null
1001 exec_prefix=NONE
1002 no_create=
1003 no_recursion=
1004 prefix=NONE
1005 program_prefix=NONE
1006 program_suffix=NONE
1007 program_transform_name=s,x,x,
1008 silent=
1009 site=
1010 srcdir=
1011 verbose=
1012 x_includes=NONE
1013 x_libraries=NONE
1015 # Installation directory options.
1016 # These are left unexpanded so users can "make install exec_prefix=/foo"
1017 # and all the variables that are supposed to be based on exec_prefix
1018 # by default will actually change.
1019 # Use braces instead of parens because sh, perl, etc. also accept them.
1020 # (The list follows the same order as the GNU Coding Standards.)
1021 bindir='${exec_prefix}/bin'
1022 sbindir='${exec_prefix}/sbin'
1023 libexecdir='${exec_prefix}/libexec'
1024 datarootdir='${prefix}/share'
1025 datadir='${datarootdir}'
1026 sysconfdir='${prefix}/etc'
1027 sharedstatedir='${prefix}/com'
1028 localstatedir='${prefix}/var'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1032 infodir='${datarootdir}/info'
1033 htmldir='${docdir}'
1034 dvidir='${docdir}'
1035 pdfdir='${docdir}'
1036 psdir='${docdir}'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1041 ac_prev=
1042 ac_dashdash=
1043 for ac_option
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\$ac_option
1048 ac_prev=
1049 continue
1052 case $ac_option in
1053 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054 *) ac_optarg=yes ;;
1055 esac
1057 # Accept the important Cygnus configure options, so we can diagnose typos.
1059 case $ac_dashdash$ac_option in
1061 ac_dashdash=yes ;;
1063 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1064 ac_prev=bindir ;;
1065 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1066 bindir=$ac_optarg ;;
1068 -build | --build | --buil | --bui | --bu)
1069 ac_prev=build_alias ;;
1070 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1071 build_alias=$ac_optarg ;;
1073 -cache-file | --cache-file | --cache-fil | --cache-fi \
1074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1075 ac_prev=cache_file ;;
1076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1078 cache_file=$ac_optarg ;;
1080 --config-cache | -C)
1081 cache_file=config.cache ;;
1083 -datadir | --datadir | --datadi | --datad)
1084 ac_prev=datadir ;;
1085 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1086 datadir=$ac_optarg ;;
1088 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1089 | --dataroo | --dataro | --datar)
1090 ac_prev=datarootdir ;;
1091 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1092 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1093 datarootdir=$ac_optarg ;;
1095 -disable-* | --disable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid feature name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=no ;;
1111 -docdir | --docdir | --docdi | --doc | --do)
1112 ac_prev=docdir ;;
1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114 docdir=$ac_optarg ;;
1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117 ac_prev=dvidir ;;
1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119 dvidir=$ac_optarg ;;
1121 -enable-* | --enable-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid feature name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "enable_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval enable_$ac_useropt=\$ac_optarg ;;
1137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1139 | --exec | --exe | --ex)
1140 ac_prev=exec_prefix ;;
1141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1143 | --exec=* | --exe=* | --ex=*)
1144 exec_prefix=$ac_optarg ;;
1146 -gas | --gas | --ga | --g)
1147 # Obsolete; use --with-gas.
1148 with_gas=yes ;;
1150 -help | --help | --hel | --he | -h)
1151 ac_init_help=long ;;
1152 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1153 ac_init_help=recursive ;;
1154 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1155 ac_init_help=short ;;
1157 -host | --host | --hos | --ho)
1158 ac_prev=host_alias ;;
1159 -host=* | --host=* | --hos=* | --ho=*)
1160 host_alias=$ac_optarg ;;
1162 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1163 ac_prev=htmldir ;;
1164 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1165 | --ht=*)
1166 htmldir=$ac_optarg ;;
1168 -includedir | --includedir | --includedi | --included | --include \
1169 | --includ | --inclu | --incl | --inc)
1170 ac_prev=includedir ;;
1171 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1172 | --includ=* | --inclu=* | --incl=* | --inc=*)
1173 includedir=$ac_optarg ;;
1175 -infodir | --infodir | --infodi | --infod | --info | --inf)
1176 ac_prev=infodir ;;
1177 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1178 infodir=$ac_optarg ;;
1180 -libdir | --libdir | --libdi | --libd)
1181 ac_prev=libdir ;;
1182 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1183 libdir=$ac_optarg ;;
1185 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1186 | --libexe | --libex | --libe)
1187 ac_prev=libexecdir ;;
1188 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1189 | --libexe=* | --libex=* | --libe=*)
1190 libexecdir=$ac_optarg ;;
1192 -localedir | --localedir | --localedi | --localed | --locale)
1193 ac_prev=localedir ;;
1194 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1195 localedir=$ac_optarg ;;
1197 -localstatedir | --localstatedir | --localstatedi | --localstated \
1198 | --localstate | --localstat | --localsta | --localst | --locals)
1199 ac_prev=localstatedir ;;
1200 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1201 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1202 localstatedir=$ac_optarg ;;
1204 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1205 ac_prev=mandir ;;
1206 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1207 mandir=$ac_optarg ;;
1209 -nfp | --nfp | --nf)
1210 # Obsolete; use --without-fp.
1211 with_fp=no ;;
1213 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1214 | --no-cr | --no-c | -n)
1215 no_create=yes ;;
1217 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1218 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1219 no_recursion=yes ;;
1221 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1222 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1223 | --oldin | --oldi | --old | --ol | --o)
1224 ac_prev=oldincludedir ;;
1225 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1226 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1227 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1228 oldincludedir=$ac_optarg ;;
1230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1231 ac_prev=prefix ;;
1232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1233 prefix=$ac_optarg ;;
1235 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1236 | --program-pre | --program-pr | --program-p)
1237 ac_prev=program_prefix ;;
1238 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1239 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1240 program_prefix=$ac_optarg ;;
1242 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1243 | --program-suf | --program-su | --program-s)
1244 ac_prev=program_suffix ;;
1245 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1246 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1247 program_suffix=$ac_optarg ;;
1249 -program-transform-name | --program-transform-name \
1250 | --program-transform-nam | --program-transform-na \
1251 | --program-transform-n | --program-transform- \
1252 | --program-transform | --program-transfor \
1253 | --program-transfo | --program-transf \
1254 | --program-trans | --program-tran \
1255 | --progr-tra | --program-tr | --program-t)
1256 ac_prev=program_transform_name ;;
1257 -program-transform-name=* | --program-transform-name=* \
1258 | --program-transform-nam=* | --program-transform-na=* \
1259 | --program-transform-n=* | --program-transform-=* \
1260 | --program-transform=* | --program-transfor=* \
1261 | --program-transfo=* | --program-transf=* \
1262 | --program-trans=* | --program-tran=* \
1263 | --progr-tra=* | --program-tr=* | --program-t=*)
1264 program_transform_name=$ac_optarg ;;
1266 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1267 ac_prev=pdfdir ;;
1268 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1269 pdfdir=$ac_optarg ;;
1271 -psdir | --psdir | --psdi | --psd | --ps)
1272 ac_prev=psdir ;;
1273 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1274 psdir=$ac_optarg ;;
1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277 | -silent | --silent | --silen | --sile | --sil)
1278 silent=yes ;;
1280 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1281 ac_prev=sbindir ;;
1282 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1283 | --sbi=* | --sb=*)
1284 sbindir=$ac_optarg ;;
1286 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1287 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1288 | --sharedst | --shareds | --shared | --share | --shar \
1289 | --sha | --sh)
1290 ac_prev=sharedstatedir ;;
1291 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1292 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1293 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1294 | --sha=* | --sh=*)
1295 sharedstatedir=$ac_optarg ;;
1297 -site | --site | --sit)
1298 ac_prev=site ;;
1299 -site=* | --site=* | --sit=*)
1300 site=$ac_optarg ;;
1302 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1303 ac_prev=srcdir ;;
1304 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1305 srcdir=$ac_optarg ;;
1307 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1308 | --syscon | --sysco | --sysc | --sys | --sy)
1309 ac_prev=sysconfdir ;;
1310 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1311 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1312 sysconfdir=$ac_optarg ;;
1314 -target | --target | --targe | --targ | --tar | --ta | --t)
1315 ac_prev=target_alias ;;
1316 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1317 target_alias=$ac_optarg ;;
1319 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1320 verbose=yes ;;
1322 -version | --version | --versio | --versi | --vers | -V)
1323 ac_init_version=: ;;
1325 -with-* | --with-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error "invalid package name: $ac_useropt"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1334 "with_$ac_useropt"
1335 "*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval with_$ac_useropt=\$ac_optarg ;;
1341 -without-* | --without-*)
1342 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345 as_fn_error "invalid package name: $ac_useropt"
1346 ac_useropt_orig=$ac_useropt
1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1350 "with_$ac_useropt"
1351 "*) ;;
1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1353 ac_unrecognized_sep=', ';;
1354 esac
1355 eval with_$ac_useropt=no ;;
1357 --x)
1358 # Obsolete; use --with-x.
1359 with_x=yes ;;
1361 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1362 | --x-incl | --x-inc | --x-in | --x-i)
1363 ac_prev=x_includes ;;
1364 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1365 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1366 x_includes=$ac_optarg ;;
1368 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1369 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1370 ac_prev=x_libraries ;;
1371 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1372 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1373 x_libraries=$ac_optarg ;;
1375 -*) as_fn_error "unrecognized option: \`$ac_option'
1376 Try \`$0 --help' for more information."
1379 *=*)
1380 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1381 # Reject names that are not valid shell variable names.
1382 case $ac_envvar in #(
1383 '' | [0-9]* | *[!_$as_cr_alnum]* )
1384 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1385 esac
1386 eval $ac_envvar=\$ac_optarg
1387 export $ac_envvar ;;
1390 # FIXME: should be removed in autoconf 3.0.
1391 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1392 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1394 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1397 esac
1398 done
1400 if test -n "$ac_prev"; then
1401 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1402 as_fn_error "missing argument to $ac_option"
1405 if test -n "$ac_unrecognized_opts"; then
1406 case $enable_option_checking in
1407 no) ;;
1408 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1409 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1410 esac
1413 # Check all directory arguments for consistency.
1414 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1415 datadir sysconfdir sharedstatedir localstatedir includedir \
1416 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1417 libdir localedir mandir
1419 eval ac_val=\$$ac_var
1420 # Remove trailing slashes.
1421 case $ac_val in
1422 */ )
1423 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1424 eval $ac_var=\$ac_val;;
1425 esac
1426 # Be sure to have absolute directory names.
1427 case $ac_val in
1428 [\\/$]* | ?:[\\/]* ) continue;;
1429 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1430 esac
1431 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1432 done
1434 # There might be people who depend on the old broken behavior: `$host'
1435 # used to hold the argument of --host etc.
1436 # FIXME: To remove some day.
1437 build=$build_alias
1438 host=$host_alias
1439 target=$target_alias
1441 # FIXME: To remove some day.
1442 if test "x$host_alias" != x; then
1443 if test "x$build_alias" = x; then
1444 cross_compiling=maybe
1445 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1446 If a cross compiler is detected then cross compile mode will be used." >&2
1447 elif test "x$build_alias" != "x$host_alias"; then
1448 cross_compiling=yes
1452 ac_tool_prefix=
1453 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1455 test "$silent" = yes && exec 6>/dev/null
1458 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459 ac_ls_di=`ls -di .` &&
1460 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461 as_fn_error "working directory cannot be determined"
1462 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463 as_fn_error "pwd does not report name of working directory"
1466 # Find the source files, if location was not specified.
1467 if test -z "$srcdir"; then
1468 ac_srcdir_defaulted=yes
1469 # Try the directory containing this script, then the parent directory.
1470 ac_confdir=`$as_dirname -- "$as_myself" ||
1471 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472 X"$as_myself" : 'X\(//\)[^/]' \| \
1473 X"$as_myself" : 'X\(//\)$' \| \
1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475 $as_echo X"$as_myself" |
1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477 s//\1/
1480 /^X\(\/\/\)[^/].*/{
1481 s//\1/
1484 /^X\(\/\/\)$/{
1485 s//\1/
1488 /^X\(\/\).*/{
1489 s//\1/
1492 s/.*/./; q'`
1493 srcdir=$ac_confdir
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1495 srcdir=..
1497 else
1498 ac_srcdir_defaulted=no
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1504 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1505 ac_abs_confdir=`(
1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1507 pwd)`
1508 # When building in place, set srcdir=.
1509 if test "$ac_abs_confdir" = "$ac_pwd"; then
1510 srcdir=.
1512 # Remove unnecessary trailing slashes from srcdir.
1513 # Double slashes in file names in object file debugging info
1514 # mess up M-x gdb in Emacs.
1515 case $srcdir in
1516 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517 esac
1518 for ac_var in $ac_precious_vars; do
1519 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_env_${ac_var}_value=\$${ac_var}
1521 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523 done
1526 # Report the --help message.
1528 if test "$ac_init_help" = "long"; then
1529 # Omit some internal or obsolete options to make the list less imposing.
1530 # This message is too long to be a string in the A/UX 3.1 sh.
1531 cat <<_ACEOF
1532 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1534 Usage: $0 [OPTION]... [VAR=VALUE]...
1536 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537 VAR=VALUE. See below for descriptions of some of the useful variables.
1539 Defaults for the options are specified in brackets.
1541 Configuration:
1542 -h, --help display this help and exit
1543 --help=short display options specific to this package
1544 --help=recursive display the short help of all the included packages
1545 -V, --version display version information and exit
1546 -q, --quiet, --silent do not print \`checking...' messages
1547 --cache-file=FILE cache test results in FILE [disabled]
1548 -C, --config-cache alias for \`--cache-file=config.cache'
1549 -n, --no-create do not create output files
1550 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1552 Installation directories:
1553 --prefix=PREFIX install architecture-independent files in PREFIX
1554 [$ac_default_prefix]
1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1556 [PREFIX]
1558 By default, \`make install' will install all the files in
1559 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1560 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561 for instance \`--prefix=\$HOME'.
1563 For better control, use the options below.
1565 Fine tuning of the installation directories:
1566 --bindir=DIR user executables [EPREFIX/bin]
1567 --sbindir=DIR system admin executables [EPREFIX/sbin]
1568 --libexecdir=DIR program executables [EPREFIX/libexec]
1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1572 --libdir=DIR object code libraries [EPREFIX/lib]
1573 --includedir=DIR C header files [PREFIX/include]
1574 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1575 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1576 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1577 --infodir=DIR info documentation [DATAROOTDIR/info]
1578 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1579 --mandir=DIR man documentation [DATAROOTDIR/man]
1580 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1581 --htmldir=DIR html documentation [DOCDIR]
1582 --dvidir=DIR dvi documentation [DOCDIR]
1583 --pdfdir=DIR pdf documentation [DOCDIR]
1584 --psdir=DIR ps documentation [DOCDIR]
1585 _ACEOF
1587 cat <<\_ACEOF
1589 Program names:
1590 --program-prefix=PREFIX prepend PREFIX to installed program names
1591 --program-suffix=SUFFIX append SUFFIX to installed program names
1592 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1594 X features:
1595 --x-includes=DIR X include files are in DIR
1596 --x-libraries=DIR X library files are in DIR
1598 System types:
1599 --build=BUILD configure for building on BUILD [guessed]
1600 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1601 --target=TARGET configure for building compilers for TARGET [HOST]
1602 _ACEOF
1605 if test -n "$ac_init_help"; then
1606 case $ac_init_help in
1607 short | recursive ) echo "Configuration of libjava version-unused:";;
1608 esac
1609 cat <<\_ACEOF
1611 Optional Features:
1612 --disable-option-checking ignore unrecognized --enable/--with options
1613 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1614 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1615 --enable-multilib build many library versions (default)
1616 --enable-version-specific-runtime-libs
1617 specify that runtime libraries should be installed
1618 in a compiler-specific directory
1619 --enable-browser-plugin build gcjwebplugin web browser plugin
1620 --enable-gconf-peer compile GConf native peers for util.preferences
1621 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1622 default=yes
1623 --enable-java-maintainer-mode
1624 allow rebuilding of .class and .h files
1625 --disable-dependency-tracking speeds up one-time build
1626 --enable-dependency-tracking do not reject slow dependency extractors
1627 --enable-maintainer-mode enable make rules and dependencies not useful
1628 (and sometimes confusing) to the casual installer
1629 --enable-libgcj-sublibs build libgcj as many sub-libraries
1630 --enable-libgcj-debug enable runtime debugging code
1631 --enable-java-awt list of AWT peer implementations to be built
1632 --enable-shared[=PKGS] build shared libraries [default=yes]
1633 --enable-static[=PKGS] build static libraries [default=yes]
1634 --enable-fast-install[=PKGS]
1635 optimize for fast installation [default=yes]
1636 --disable-libtool-lock avoid locking (might break parallel builds)
1637 --disable-getenv-properties
1638 don't set system properties from GCJ_PROPERTIES
1639 --enable-hash-synchronization
1640 use global hash table for monitor locks
1641 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1642 libgcj
1643 --enable-reduced-reflection
1644 enable or disable(default) -freduced-reflection when
1645 building portions of libgcj
1646 --enable-gc-debug include full support for pointer backtracing etc.
1647 --enable-interpreter enable interpreter
1648 --enable-sjlj-exceptions
1649 force use of builtin_setjmp for exceptions
1650 --disable-java-net disable java.net
1651 --disable-jvmpi disable JVMPI support
1652 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1653 --disable-rpath do not hardcode runtime library paths
1654 --enable-tls Use thread-local storage [default=yes]
1655 --disable-symvers disable symbol versioning for libjava
1656 --enable-aot-compile-rpm
1657 enable installation of aot-compile-rpm [default=no]
1658 --enable-java-home create a standard JDK-style directory layout in the
1659 install tree [default=no]
1661 Optional Packages:
1662 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1663 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1664 --with-build-libsubdir=DIR Directory where to find libraries for build system
1665 --with-target-subdir=SUBDIR
1666 configure in a subdirectory
1667 --with-cross-host=HOST configure with a cross compiler from HOST
1668 --with-newlib configure with newlib
1669 --with-antlr-jar=file Use ANTLR from the specified jar file
1670 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1672 both]
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-ecj-jar=FILE use preinstalled ecj jar
1675 --with-java-home=DIRECTORY
1676 value of java.home system property
1677 --with-win32-nlsapi=ansi or unicows or unicode
1678 native MinGW libgcj Win32 OS API (default is ansi)
1679 --without-libffi don't use libffi
1680 --with-ecos enable runtime eCos target support
1681 --with-system-zlib use installed libz
1682 --with-x use the X Window System
1683 --with-gnu-ld assume the C compiler uses GNU ld default=no
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1686 --with-system-libunwind use installed libunwind
1687 --with-python-dir the location to install Python modules. This path
1688 should NOT include the prefix.
1689 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1690 --with-arch-directory the arch directory under jre/lib (defaults to
1691 auto-detect)
1692 --with-os-directory the os directory under include (defaults to
1693 auto-detect)
1694 --with-origin-name the JPackage origin name of this package (default is
1695 gcj${gcc_suffix}
1696 --with-arch-suffix the arch directory suffix (default is the empty
1697 string
1698 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1699 --with-jvm-jar-dir where to install jars (default is
1700 ${prefix}/lib/jvm-exports)
1702 Some influential environment variables:
1703 CC C compiler command
1704 CFLAGS C compiler flags
1705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1706 nonstandard directory <lib dir>
1707 LIBS libraries to pass to the linker, e.g. -l<library>
1708 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1709 you have headers in a nonstandard directory <include dir>
1710 CXX C++ compiler command
1711 CXXFLAGS C++ compiler flags
1712 CPP C preprocessor
1713 CXXCPP C++ preprocessor
1714 XMKMF Path to xmkmf, Makefile generator for X Window System
1716 Use these variables to override the choices made by `configure' or to help
1717 it to find libraries and programs with nonstandard names/locations.
1719 Report bugs to the package provider.
1720 _ACEOF
1721 ac_status=$?
1724 if test "$ac_init_help" = "recursive"; then
1725 # If there are subdirs, report their specific --help.
1726 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1727 test -d "$ac_dir" ||
1728 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1729 continue
1730 ac_builddir=.
1732 case "$ac_dir" in
1733 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1736 # A ".." for each directory in $ac_dir_suffix.
1737 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1738 case $ac_top_builddir_sub in
1739 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1741 esac ;;
1742 esac
1743 ac_abs_top_builddir=$ac_pwd
1744 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1745 # for backward compatibility:
1746 ac_top_builddir=$ac_top_build_prefix
1748 case $srcdir in
1749 .) # We are building in place.
1750 ac_srcdir=.
1751 ac_top_srcdir=$ac_top_builddir_sub
1752 ac_abs_top_srcdir=$ac_pwd ;;
1753 [\\/]* | ?:[\\/]* ) # Absolute name.
1754 ac_srcdir=$srcdir$ac_dir_suffix;
1755 ac_top_srcdir=$srcdir
1756 ac_abs_top_srcdir=$srcdir ;;
1757 *) # Relative name.
1758 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1759 ac_top_srcdir=$ac_top_build_prefix$srcdir
1760 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1761 esac
1762 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1764 cd "$ac_dir" || { ac_status=$?; continue; }
1765 # Check for guested configure.
1766 if test -f "$ac_srcdir/configure.gnu"; then
1767 echo &&
1768 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1769 elif test -f "$ac_srcdir/configure"; then
1770 echo &&
1771 $SHELL "$ac_srcdir/configure" --help=recursive
1772 else
1773 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1774 fi || ac_status=$?
1775 cd "$ac_pwd" || { ac_status=$?; break; }
1776 done
1779 test -n "$ac_init_help" && exit $ac_status
1780 if $ac_init_version; then
1781 cat <<\_ACEOF
1782 libjava configure version-unused
1783 generated by GNU Autoconf 2.64
1785 Copyright (C) 2009 Free Software Foundation, Inc.
1786 This configure script is free software; the Free Software Foundation
1787 gives unlimited permission to copy, distribute and modify it.
1788 _ACEOF
1789 exit
1792 ## ------------------------ ##
1793 ## Autoconf initialization. ##
1794 ## ------------------------ ##
1796 # ac_fn_c_try_compile LINENO
1797 # --------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_c_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1832 } # ac_fn_c_try_compile
1834 # ac_fn_cxx_try_compile LINENO
1835 # ----------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_cxx_try_compile ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext
1841 if { { ac_try="$ac_compile"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865 ac_retval=1
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 return $ac_retval
1870 } # ac_fn_cxx_try_compile
1872 # ac_fn_c_try_link LINENO
1873 # -----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_link ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext conftest$ac_exeext
1879 if { { ac_try="$ac_link"
1880 case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest$ac_exeext && {
1898 test "$cross_compiling" = yes ||
1899 $as_test_x conftest$ac_exeext
1900 }; then :
1901 ac_retval=0
1902 else
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1906 ac_retval=1
1908 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910 # interfere with the next link command; also delete a directory that is
1911 # left behind by Apple's compiler. We do this before executing the actions.
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 return $ac_retval
1916 } # ac_fn_c_try_link
1918 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists and can be compiled using the include files in
1921 # INCLUDES, setting the cache variable VAR accordingly.
1922 ac_fn_c_check_header_compile ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928 $as_echo_n "(cached) " >&6
1929 else
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1933 #include <$2>
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 eval "$3=yes"
1937 else
1938 eval "$3=no"
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947 } # ac_fn_c_check_header_compile
1949 # ac_fn_c_try_cpp LINENO
1950 # ----------------------
1951 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_c_try_cpp ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { { ac_try="$ac_cpp conftest.$ac_ext"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } >/dev/null && {
1971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1972 test ! -s conftest.err
1973 }; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1979 ac_retval=1
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982 return $ac_retval
1984 } # ac_fn_c_try_cpp
1986 # ac_fn_c_try_run LINENO
1987 # ----------------------
1988 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1989 # that executables *can* be run.
1990 ac_fn_c_try_run ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 if { { ac_try="$ac_link"
1994 case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>&5
2001 ac_status=$?
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2004 { { case "(($ac_try" in
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2007 esac
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_try") 2>&5
2011 ac_status=$?
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; }; }; then :
2014 ac_retval=0
2015 else
2016 $as_echo "$as_me: program exited with status $ac_status" >&5
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2020 ac_retval=$ac_status
2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024 return $ac_retval
2026 } # ac_fn_c_try_run
2028 # ac_fn_c_check_func LINENO FUNC VAR
2029 # ----------------------------------
2030 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2031 ac_fn_c_check_func ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2037 $as_echo_n "(cached) " >&6
2038 else
2039 if test x$gcc_no_link = xyes; then
2040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2046 #define $2 innocuous_$2
2048 /* System header to define __stub macros and hopefully few prototypes,
2049 which can conflict with char $2 (); below.
2050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2051 <limits.h> exists even on freestanding compilers. */
2053 #ifdef __STDC__
2054 # include <limits.h>
2055 #else
2056 # include <assert.h>
2057 #endif
2059 #undef $2
2061 /* Override any GCC internal prototype to avoid an error.
2062 Use char because int might match the return type of a GCC
2063 builtin and then its argument prototype would still apply. */
2064 #ifdef __cplusplus
2065 extern "C"
2066 #endif
2067 char $2 ();
2068 /* The GNU C library defines this for functions which it implements
2069 to always fail with ENOSYS. Some functions are actually named
2070 something starting with __ and the normal name is an alias. */
2071 #if defined __stub_$2 || defined __stub___$2
2072 choke me
2073 #endif
2076 main ()
2078 return $2 ();
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_link "$LINENO"; then :
2084 eval "$3=yes"
2085 else
2086 eval "$3=no"
2088 rm -f core conftest.err conftest.$ac_objext \
2089 conftest$ac_exeext conftest.$ac_ext
2091 eval ac_res=\$$3
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2096 } # ac_fn_c_check_func
2098 # ac_fn_cxx_try_cpp LINENO
2099 # ------------------------
2100 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_cxx_try_cpp ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 if { { ac_try="$ac_cpp conftest.$ac_ext"
2105 case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108 esac
2109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2112 ac_status=$?
2113 if test -s conftest.err; then
2114 grep -v '^ *+' conftest.err >conftest.er1
2115 cat conftest.er1 >&5
2116 mv -f conftest.er1 conftest.err
2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119 test $ac_status = 0; } >/dev/null && {
2120 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2121 test ! -s conftest.err
2122 }; then :
2123 ac_retval=0
2124 else
2125 $as_echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2128 ac_retval=1
2130 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2131 return $ac_retval
2133 } # ac_fn_cxx_try_cpp
2135 # ac_fn_cxx_try_link LINENO
2136 # -------------------------
2137 # Try to link conftest.$ac_ext, and return whether this succeeded.
2138 ac_fn_cxx_try_link ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 rm -f conftest.$ac_objext conftest$ac_exeext
2142 if { { ac_try="$ac_link"
2143 case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146 esac
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_link") 2>conftest.err
2150 ac_status=$?
2151 if test -s conftest.err; then
2152 grep -v '^ *+' conftest.err >conftest.er1
2153 cat conftest.er1 >&5
2154 mv -f conftest.er1 conftest.err
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } && {
2158 test -z "$ac_cxx_werror_flag" ||
2159 test ! -s conftest.err
2160 } && test -s conftest$ac_exeext && {
2161 test "$cross_compiling" = yes ||
2162 $as_test_x conftest$ac_exeext
2163 }; then :
2164 ac_retval=0
2165 else
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2169 ac_retval=1
2171 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2172 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2173 # interfere with the next link command; also delete a directory that is
2174 # left behind by Apple's compiler. We do this before executing the actions.
2175 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2176 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2177 return $ac_retval
2179 } # ac_fn_cxx_try_link
2181 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2182 # -------------------------------------------------------
2183 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2184 # the include files in INCLUDES and setting the cache variable VAR
2185 # accordingly.
2186 ac_fn_c_check_header_mongrel ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2193 $as_echo_n "(cached) " >&6
2195 eval ac_res=\$$3
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 $as_echo "$ac_res" >&6; }
2198 else
2199 # Is the header compilable?
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2201 $as_echo_n "checking $2 usability... " >&6; }
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2205 #include <$2>
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208 ac_header_compiler=yes
2209 else
2210 ac_header_compiler=no
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2214 $as_echo "$ac_header_compiler" >&6; }
2216 # Is the header present?
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2218 $as_echo_n "checking $2 presence... " >&6; }
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2221 #include <$2>
2222 _ACEOF
2223 if ac_fn_c_try_cpp "$LINENO"; then :
2224 ac_header_preproc=yes
2225 else
2226 ac_header_preproc=no
2228 rm -f conftest.err conftest.$ac_ext
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2230 $as_echo "$ac_header_preproc" >&6; }
2232 # So? What about this header?
2233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2234 yes:no: )
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2236 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2238 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2240 no:yes:* )
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2242 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2244 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2246 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2248 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2250 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2252 esac
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 eval "$3=\$ac_header_compiler"
2260 eval ac_res=\$$3
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2266 } # ac_fn_c_check_header_mongrel
2268 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2269 # ----------------------------------------------------
2270 # Tries to find if the field MEMBER exists in type AGGR, after including
2271 # INCLUDES, setting cache variable VAR accordingly.
2272 ac_fn_c_check_member ()
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2276 $as_echo_n "checking for $2.$3... " >&6; }
2277 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2284 main ()
2286 static $2 ac_aggr;
2287 if (ac_aggr.$3)
2288 return 0;
2290 return 0;
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 eval "$4=yes"
2295 else
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2300 main ()
2302 static $2 ac_aggr;
2303 if (sizeof ac_aggr.$3)
2304 return 0;
2306 return 0;
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310 eval "$4=yes"
2311 else
2312 eval "$4=no"
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 eval ac_res=\$$4
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 } # ac_fn_c_check_member
2325 # ac_fn_c_check_decl LINENO SYMBOL VAR
2326 # ------------------------------------
2327 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2328 ac_fn_c_check_decl ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 as_decl_name=`echo $2|sed 's/ *(.*//'`
2332 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2334 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2335 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2342 main ()
2344 #ifndef $as_decl_name
2345 #ifdef __cplusplus
2346 (void) $as_decl_use;
2347 #else
2348 (void) $as_decl_name;
2349 #endif
2350 #endif
2353 return 0;
2355 _ACEOF
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357 eval "$3=yes"
2358 else
2359 eval "$3=no"
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 eval ac_res=\$$3
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2368 } # ac_fn_c_check_decl
2370 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2371 # --------------------------------------------
2372 # Tries to find the compile-time value of EXPR in a program that includes
2373 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2374 # computed
2375 ac_fn_c_compute_int ()
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 if test "$cross_compiling" = yes; then
2379 # Depending upon the size, compute the lo and hi bounds.
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2384 main ()
2386 static int test_array [1 - 2 * !(($2) >= 0)];
2387 test_array [0] = 0
2390 return 0;
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394 ac_lo=0 ac_mid=0
2395 while :; do
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2400 main ()
2402 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2403 test_array [0] = 0
2406 return 0;
2408 _ACEOF
2409 if ac_fn_c_try_compile "$LINENO"; then :
2410 ac_hi=$ac_mid; break
2411 else
2412 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2413 if test $ac_lo -le $ac_mid; then
2414 ac_lo= ac_hi=
2415 break
2417 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 done
2421 else
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2426 main ()
2428 static int test_array [1 - 2 * !(($2) < 0)];
2429 test_array [0] = 0
2432 return 0;
2434 _ACEOF
2435 if ac_fn_c_try_compile "$LINENO"; then :
2436 ac_hi=-1 ac_mid=-1
2437 while :; do
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2442 main ()
2444 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2445 test_array [0] = 0
2448 return 0;
2450 _ACEOF
2451 if ac_fn_c_try_compile "$LINENO"; then :
2452 ac_lo=$ac_mid; break
2453 else
2454 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2455 if test $ac_mid -le $ac_hi; then
2456 ac_lo= ac_hi=
2457 break
2459 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 done
2463 else
2464 ac_lo= ac_hi=
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 # Binary search between lo and hi bounds.
2470 while test "x$ac_lo" != "x$ac_hi"; do
2471 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2476 main ()
2478 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2479 test_array [0] = 0
2482 return 0;
2484 _ACEOF
2485 if ac_fn_c_try_compile "$LINENO"; then :
2486 ac_hi=$ac_mid
2487 else
2488 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 done
2492 case $ac_lo in #((
2493 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2494 '') ac_retval=1 ;;
2495 esac
2496 else
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2500 static long int longval () { return $2; }
2501 static unsigned long int ulongval () { return $2; }
2502 #include <stdio.h>
2503 #include <stdlib.h>
2505 main ()
2508 FILE *f = fopen ("conftest.val", "w");
2509 if (! f)
2510 return 1;
2511 if (($2) < 0)
2513 long int i = longval ();
2514 if (i != ($2))
2515 return 1;
2516 fprintf (f, "%ld", i);
2518 else
2520 unsigned long int i = ulongval ();
2521 if (i != ($2))
2522 return 1;
2523 fprintf (f, "%lu", i);
2525 /* Do not output a trailing newline, as this causes \r\n confusion
2526 on some platforms. */
2527 return ferror (f) || fclose (f) != 0;
2530 return 0;
2532 _ACEOF
2533 if ac_fn_c_try_run "$LINENO"; then :
2534 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2535 else
2536 ac_retval=1
2538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2539 conftest.$ac_objext conftest.beam conftest.$ac_ext
2540 rm -f conftest.val
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2544 return $ac_retval
2546 } # ac_fn_c_compute_int
2548 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2549 # -------------------------------------------
2550 # Tests whether TYPE exists after having included INCLUDES, setting cache
2551 # variable VAR accordingly.
2552 ac_fn_c_check_type ()
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2556 $as_echo_n "checking for $2... " >&6; }
2557 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 eval "$3=no"
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2565 main ()
2567 if (sizeof ($2))
2568 return 0;
2570 return 0;
2572 _ACEOF
2573 if ac_fn_c_try_compile "$LINENO"; then :
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2578 main ()
2580 if (sizeof (($2)))
2581 return 0;
2583 return 0;
2585 _ACEOF
2586 if ac_fn_c_try_compile "$LINENO"; then :
2588 else
2589 eval "$3=yes"
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 eval ac_res=\$$3
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2597 $as_echo "$ac_res" >&6; }
2598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2600 } # ac_fn_c_check_type
2601 cat >config.log <<_ACEOF
2602 This file contains any messages produced by compilers while
2603 running configure, to aid debugging if configure makes a mistake.
2605 It was created by libjava $as_me version-unused, which was
2606 generated by GNU Autoconf 2.64. Invocation command line was
2608 $ $0 $@
2610 _ACEOF
2611 exec 5>>config.log
2613 cat <<_ASUNAME
2614 ## --------- ##
2615 ## Platform. ##
2616 ## --------- ##
2618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2625 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2627 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2628 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2630 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2631 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2632 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2633 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2635 _ASUNAME
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 $as_echo "PATH: $as_dir"
2643 done
2644 IFS=$as_save_IFS
2646 } >&5
2648 cat >&5 <<_ACEOF
2651 ## ----------- ##
2652 ## Core tests. ##
2653 ## ----------- ##
2655 _ACEOF
2658 # Keep a trace of the command line.
2659 # Strip out --no-create and --no-recursion so they do not pile up.
2660 # Strip out --silent because we don't want to record it for future runs.
2661 # Also quote any args containing shell meta-characters.
2662 # Make two passes to allow for proper duplicate-argument suppression.
2663 ac_configure_args=
2664 ac_configure_args0=
2665 ac_configure_args1=
2666 ac_must_keep_next=false
2667 for ac_pass in 1 2
2669 for ac_arg
2671 case $ac_arg in
2672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2674 | -silent | --silent | --silen | --sile | --sil)
2675 continue ;;
2676 *\'*)
2677 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2678 esac
2679 case $ac_pass in
2680 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2682 as_fn_append ac_configure_args1 " '$ac_arg'"
2683 if test $ac_must_keep_next = true; then
2684 ac_must_keep_next=false # Got value, back to normal.
2685 else
2686 case $ac_arg in
2687 *=* | --config-cache | -C | -disable-* | --disable-* \
2688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2690 | -with-* | --with-* | -without-* | --without-* | --x)
2691 case "$ac_configure_args0 " in
2692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2693 esac
2695 -* ) ac_must_keep_next=true ;;
2696 esac
2698 as_fn_append ac_configure_args " '$ac_arg'"
2700 esac
2701 done
2702 done
2703 { ac_configure_args0=; unset ac_configure_args0;}
2704 { ac_configure_args1=; unset ac_configure_args1;}
2706 # When interrupted or exit'd, cleanup temporary files, and complete
2707 # config.log. We remove comments because anyway the quotes in there
2708 # would cause problems or look ugly.
2709 # WARNING: Use '\'' to represent an apostrophe within the trap.
2710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2711 trap 'exit_status=$?
2712 # Save into config.log some information that might help in debugging.
2714 echo
2716 cat <<\_ASBOX
2717 ## ---------------- ##
2718 ## Cache variables. ##
2719 ## ---------------- ##
2720 _ASBOX
2721 echo
2722 # The following way of writing the cache mishandles newlines in values,
2724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2725 eval ac_val=\$$ac_var
2726 case $ac_val in #(
2727 *${as_nl}*)
2728 case $ac_var in #(
2729 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2730 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2731 esac
2732 case $ac_var in #(
2733 _ | IFS | as_nl) ;; #(
2734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2735 *) { eval $ac_var=; unset $ac_var;} ;;
2736 esac ;;
2737 esac
2738 done
2739 (set) 2>&1 |
2740 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2741 *${as_nl}ac_space=\ *)
2742 sed -n \
2743 "s/'\''/'\''\\\\'\'''\''/g;
2744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2745 ;; #(
2747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2749 esac |
2750 sort
2752 echo
2754 cat <<\_ASBOX
2755 ## ----------------- ##
2756 ## Output variables. ##
2757 ## ----------------- ##
2758 _ASBOX
2759 echo
2760 for ac_var in $ac_subst_vars
2762 eval ac_val=\$$ac_var
2763 case $ac_val in
2764 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2765 esac
2766 $as_echo "$ac_var='\''$ac_val'\''"
2767 done | sort
2768 echo
2770 if test -n "$ac_subst_files"; then
2771 cat <<\_ASBOX
2772 ## ------------------- ##
2773 ## File substitutions. ##
2774 ## ------------------- ##
2775 _ASBOX
2776 echo
2777 for ac_var in $ac_subst_files
2779 eval ac_val=\$$ac_var
2780 case $ac_val in
2781 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2782 esac
2783 $as_echo "$ac_var='\''$ac_val'\''"
2784 done | sort
2785 echo
2788 if test -s confdefs.h; then
2789 cat <<\_ASBOX
2790 ## ----------- ##
2791 ## confdefs.h. ##
2792 ## ----------- ##
2793 _ASBOX
2794 echo
2795 cat confdefs.h
2796 echo
2798 test "$ac_signal" != 0 &&
2799 $as_echo "$as_me: caught signal $ac_signal"
2800 $as_echo "$as_me: exit $exit_status"
2801 } >&5
2802 rm -f core *.core core.conftest.* &&
2803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2804 exit $exit_status
2806 for ac_signal in 1 2 13 15; do
2807 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2808 done
2809 ac_signal=0
2811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2812 rm -f -r conftest* confdefs.h
2814 $as_echo "/* confdefs.h */" > confdefs.h
2816 # Predefined preprocessor variables.
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_NAME "$PACKAGE_NAME"
2820 _ACEOF
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2824 _ACEOF
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2828 _ACEOF
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_STRING "$PACKAGE_STRING"
2832 _ACEOF
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2836 _ACEOF
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_URL "$PACKAGE_URL"
2840 _ACEOF
2843 # Let the site file select an alternate cache file if it wants to.
2844 # Prefer an explicitly selected file to automatically selected ones.
2845 ac_site_file1=NONE
2846 ac_site_file2=NONE
2847 if test -n "$CONFIG_SITE"; then
2848 ac_site_file1=$CONFIG_SITE
2849 elif test "x$prefix" != xNONE; then
2850 ac_site_file1=$prefix/share/config.site
2851 ac_site_file2=$prefix/etc/config.site
2852 else
2853 ac_site_file1=$ac_default_prefix/share/config.site
2854 ac_site_file2=$ac_default_prefix/etc/config.site
2856 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2858 test "x$ac_site_file" = xNONE && continue
2859 if test -r "$ac_site_file"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2861 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2862 sed 's/^/| /' "$ac_site_file" >&5
2863 . "$ac_site_file"
2865 done
2867 if test -r "$cache_file"; then
2868 # Some versions of bash will fail to source /dev/null (special
2869 # files actually), so we avoid doing that.
2870 if test -f "$cache_file"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2872 $as_echo "$as_me: loading cache $cache_file" >&6;}
2873 case $cache_file in
2874 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2875 *) . "./$cache_file";;
2876 esac
2878 else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2880 $as_echo "$as_me: creating cache $cache_file" >&6;}
2881 >$cache_file
2884 # Check that the precious variables saved in the cache have kept the same
2885 # value.
2886 ac_cache_corrupted=false
2887 for ac_var in $ac_precious_vars; do
2888 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2889 eval ac_new_set=\$ac_env_${ac_var}_set
2890 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2891 eval ac_new_val=\$ac_env_${ac_var}_value
2892 case $ac_old_set,$ac_new_set in
2893 set,)
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2895 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2896 ac_cache_corrupted=: ;;
2897 ,set)
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2899 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2900 ac_cache_corrupted=: ;;
2901 ,);;
2903 if test "x$ac_old_val" != "x$ac_new_val"; then
2904 # differences in whitespace do not lead to failure.
2905 ac_old_val_w=`echo x $ac_old_val`
2906 ac_new_val_w=`echo x $ac_new_val`
2907 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2909 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2910 ac_cache_corrupted=:
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2913 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2914 eval $ac_var=\$ac_old_val
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2917 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2919 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2920 fi;;
2921 esac
2922 # Pass precious variables to config.status.
2923 if test "$ac_new_set" = set; then
2924 case $ac_new_val in
2925 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2926 *) ac_arg=$ac_var=$ac_new_val ;;
2927 esac
2928 case " $ac_configure_args " in
2929 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2930 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2931 esac
2933 done
2934 if $ac_cache_corrupted; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2938 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2939 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2941 ## -------------------- ##
2942 ## Main body of script. ##
2943 ## -------------------- ##
2945 ac_ext=c
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958 ac_aux_dir=
2959 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2960 for ac_t in install-sh install.sh shtool; do
2961 if test -f "$ac_dir/$ac_t"; then
2962 ac_aux_dir=$ac_dir
2963 ac_install_sh="$ac_aux_dir/$ac_t -c"
2964 break 2
2966 done
2967 done
2968 if test -z "$ac_aux_dir"; then
2969 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2972 # These three variables are undocumented and unsupported,
2973 # and are intended to be withdrawn in a future Autoconf release.
2974 # They can cause serious problems if a builder's source tree is in a directory
2975 # whose full name contains unusual characters.
2976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2981 # Make sure we can run config.sub.
2982 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2983 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2986 $as_echo_n "checking build system type... " >&6; }
2987 if test "${ac_cv_build+set}" = set; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 ac_build_alias=$build_alias
2991 test "x$ac_build_alias" = x &&
2992 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2993 test "x$ac_build_alias" = x &&
2994 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2995 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2996 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3000 $as_echo "$ac_cv_build" >&6; }
3001 case $ac_cv_build in
3002 *-*-*) ;;
3003 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3004 esac
3005 build=$ac_cv_build
3006 ac_save_IFS=$IFS; IFS='-'
3007 set x $ac_cv_build
3008 shift
3009 build_cpu=$1
3010 build_vendor=$2
3011 shift; shift
3012 # Remember, the first character of IFS is used to create $*,
3013 # except with old shells:
3014 build_os=$*
3015 IFS=$ac_save_IFS
3016 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3019 case ${build_alias} in
3020 "") build_noncanonical=${build} ;;
3021 *) build_noncanonical=${build_alias} ;;
3022 esac
3024 case ${host_alias} in
3025 "") host_noncanonical=${build_noncanonical} ;;
3026 *) host_noncanonical=${host_alias} ;;
3027 esac
3029 case ${target_alias} in
3030 "") target_noncanonical=${host_noncanonical} ;;
3031 *) target_noncanonical=${target_alias} ;;
3032 esac
3035 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3036 # have matching libraries, they should use host libraries: Makefile.tpl
3037 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3038 # However, they still use the build modules, because the corresponding
3039 # host modules (e.g. bison) are only built for the host when bootstrap
3040 # finishes. So:
3041 # - build_subdir is where we find build modules, and never changes.
3042 # - build_libsubdir is where we find build libraries, and can be overridden.
3044 # Prefix 'build-' so this never conflicts with target_subdir.
3045 build_subdir="build-${build_noncanonical}"
3047 # Check whether --with-build-libsubdir was given.
3048 if test "${with_build_libsubdir+set}" = set; then :
3049 withval=$with_build_libsubdir; build_libsubdir="$withval"
3050 else
3051 build_libsubdir="$build_subdir"
3054 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3055 if ( test $srcdir = . && test -d gcc ) \
3056 || test -d $srcdir/../host-${host_noncanonical}; then
3057 host_subdir="host-${host_noncanonical}"
3058 else
3059 host_subdir=.
3061 # No prefix.
3062 target_subdir=${target_noncanonical}
3065 # We use these options to decide which functions to include.
3067 # Check whether --with-target-subdir was given.
3068 if test "${with_target_subdir+set}" = set; then :
3069 withval=$with_target_subdir;
3073 # We may get other options which we don't document:
3074 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3076 # Find the rest of the source tree framework.
3077 # Default to --enable-multilib
3078 # Check whether --enable-multilib was given.
3079 if test "${enable_multilib+set}" = set; then :
3080 enableval=$enable_multilib; case "$enableval" in
3081 yes) multilib=yes ;;
3082 no) multilib=no ;;
3083 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3084 esac
3085 else
3086 multilib=yes
3090 # We may get other options which we leave undocumented:
3091 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3092 # See config-ml.in if you want the gory details.
3094 if test "$srcdir" = "."; then
3095 if test "$with_target_subdir" != "."; then
3096 multi_basedir="$srcdir/$with_multisrctop../.."
3097 else
3098 multi_basedir="$srcdir/$with_multisrctop.."
3100 else
3101 multi_basedir="$srcdir/.."
3105 # Even if the default multilib is not a cross compilation,
3106 # it may be that some of the other multilibs are.
3107 if test $cross_compiling = no && test $multilib = yes \
3108 && test "x${with_multisubdir}" != x ; then
3109 cross_compiling=maybe
3112 ac_config_commands="$ac_config_commands default-1"
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3116 $as_echo_n "checking host system type... " >&6; }
3117 if test "${ac_cv_host+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 if test "x$host_alias" = x; then
3121 ac_cv_host=$ac_cv_build
3122 else
3123 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3124 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3129 $as_echo "$ac_cv_host" >&6; }
3130 case $ac_cv_host in
3131 *-*-*) ;;
3132 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3133 esac
3134 host=$ac_cv_host
3135 ac_save_IFS=$IFS; IFS='-'
3136 set x $ac_cv_host
3137 shift
3138 host_cpu=$1
3139 host_vendor=$2
3140 shift; shift
3141 # Remember, the first character of IFS is used to create $*,
3142 # except with old shells:
3143 host_os=$*
3144 IFS=$ac_save_IFS
3145 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3149 $as_echo_n "checking target system type... " >&6; }
3150 if test "${ac_cv_target+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test "x$target_alias" = x; then
3154 ac_cv_target=$ac_cv_host
3155 else
3156 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3157 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3162 $as_echo "$ac_cv_target" >&6; }
3163 case $ac_cv_target in
3164 *-*-*) ;;
3165 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3166 esac
3167 target=$ac_cv_target
3168 ac_save_IFS=$IFS; IFS='-'
3169 set x $ac_cv_target
3170 shift
3171 target_cpu=$1
3172 target_vendor=$2
3173 shift; shift
3174 # Remember, the first character of IFS is used to create $*,
3175 # except with old shells:
3176 target_os=$*
3177 IFS=$ac_save_IFS
3178 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3181 # The aliases save the names the user supplied, while $host etc.
3182 # will get canonicalized.
3183 test -n "$target_alias" &&
3184 test "$program_prefix$program_suffix$program_transform_name" = \
3185 NONENONEs,x,x, &&
3186 program_prefix=${target_alias}-
3188 case ${build_alias} in
3189 "") build_noncanonical=${build} ;;
3190 *) build_noncanonical=${build_alias} ;;
3191 esac
3193 case ${target_alias} in
3194 "") target_noncanonical=${host_noncanonical} ;;
3195 *) target_noncanonical=${target_alias} ;;
3196 esac
3205 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
3206 -I\$(top_builddir)/../libstdc++-v3/include \
3207 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
3208 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
3209 LIBSTDCXX_RAW_CXX_LDFLAGS="\
3210 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
3215 # This works around the fact that libtool configuration may change LD
3216 # for this particular configuration, but some shells, instead of
3217 # keeping the changes in LD private, export them just because LD is
3218 # exported.
3219 ORIGINAL_LD_FOR_MULTILIBS=$LD
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3222 $as_echo_n "checking whether ln -s works... " >&6; }
3223 LN_S=$as_ln_s
3224 if test "$LN_S" = "ln -s"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3229 $as_echo "no, using $LN_S" >&6; }
3233 # This works around an automake problem.
3234 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3238 # Check whether --with-cross-host was given.
3239 if test "${with_cross_host+set}" = set; then :
3240 withval=$with_cross_host;
3245 # Check whether --with-newlib was given.
3246 if test "${with_newlib+set}" = set; then :
3247 withval=$with_newlib;
3251 # Check whether --enable-version-specific-runtime-libs was given.
3252 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3253 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3254 yes) version_specific_libs=yes ;;
3255 no) version_specific_libs=no ;;
3256 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3257 esac
3258 else
3259 version_specific_libs=no
3264 # Check whether --enable-browser-plugin was given.
3265 if test "${enable_browser_plugin+set}" = set; then :
3266 enableval=$enable_browser_plugin; case "$enableval" in
3267 yes) browser_plugin_enabled=yes ;;
3268 no) browser_plugin_enabled=no ;;
3269 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3270 esac
3271 else
3272 browser_plugin_enabled=no
3277 # Check whether --enable-gconf-peer was given.
3278 if test "${enable_gconf_peer+set}" = set; then :
3279 enableval=$enable_gconf_peer; case "$enableval" in
3280 yes) gconf_enabled=yes ;;
3281 no) gconf_enabled=no ;;
3282 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3283 esac
3284 else
3285 gconf_enabled=no
3291 # Check whether --with-antlr-jar was given.
3292 if test "${with_antlr_jar+set}" = set; then :
3293 withval=$with_antlr_jar;
3294 ANTLR_JAR=$withval
3296 else
3298 ANTLR_JAR=
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3304 $as_echo_n "checking for antlr.jar... " >&6; }
3305 if test "x$ANTLR_JAR" = x; then
3306 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3307 /usr/share/antlr/lib /usr/share/java /usr/lib;
3309 if test -f "$antlr_lib_home/antlr.jar"; then
3310 # FIXME: version check for antlr needed without using a VM
3311 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3312 break
3314 done
3315 if test "x$ANTLR_JAR" = x; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3317 $as_echo "not found" >&6; }
3318 else
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3320 $as_echo "$ANTLR_JAR" >&6; }
3322 else
3323 if test -f "${ANTLR_JAR}"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3325 $as_echo "$ANTLR_JAR" >&6; }
3326 else
3327 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3332 # Check whether --enable-gjdoc was given.
3333 if test "${enable_gjdoc+set}" = set; then :
3334 enableval=$enable_gjdoc; case "${enableval}" in
3335 yes) BUILD_GJDOC=yes ;;
3336 no) BUILD_GJDOC=no ;;
3337 *) BUILD_GJDOC=yes ;;
3338 esac
3339 else
3340 BUILD_GJDOC=maybe
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3345 $as_echo_n "checking whether to build gjdoc... " >&6; }
3346 if test "x$BUILD_GJDOC" = xmaybe; then
3347 if test -f "${ANTLR_JAR}"; then
3348 BUILD_GJDOC=yes
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350 $as_echo "yes" >&6; }
3351 else
3352 BUILD_GJDOC=no
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3354 $as_echo "no, antlr.jar not found" >&6; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3358 $as_echo "$BUILD_GJDOC" >&6; }
3360 if test "x${BUILD_GJDOC}" = xyes; then
3361 CREATE_GJDOC_TRUE=
3362 CREATE_GJDOC_FALSE='#'
3363 else
3364 CREATE_GJDOC_TRUE='#'
3365 CREATE_GJDOC_FALSE=
3369 # Check whether --enable-java-maintainer-mode was given.
3370 if test "${enable_java_maintainer_mode+set}" = set; then :
3371 enableval=$enable_java_maintainer_mode;
3374 if test "$enable_java_maintainer_mode" = yes; then
3375 JAVA_MAINTAINER_MODE_TRUE=
3376 JAVA_MAINTAINER_MODE_FALSE='#'
3377 else
3378 JAVA_MAINTAINER_MODE_TRUE='#'
3379 JAVA_MAINTAINER_MODE_FALSE=
3383 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3386 # For libstdc++-v3, -fno-builtin must be present here so that a
3387 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3388 # used in later tests. This may not be necessary in libjava; I don't know.
3389 save_CXXFLAGS="$CXXFLAGS"
3390 CXXFLAGS="$CXXFLAGS -fno-builtin"
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 if test -n "$ac_tool_prefix"; then
3397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if test "${ac_cv_prog_CC+set}" = set; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3418 done
3419 done
3420 IFS=$as_save_IFS
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427 $as_echo "$CC" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3435 if test -z "$ac_cv_prog_CC"; then
3436 ac_ct_CC=$CC
3437 # Extract the first word of "gcc", so it can be a program name with args.
3438 set dummy gcc; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$ac_ct_CC"; then
3445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 ac_cv_prog_ac_ct_CC="gcc"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3458 done
3459 done
3460 IFS=$as_save_IFS
3464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3465 if test -n "$ac_ct_CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3467 $as_echo "$ac_ct_CC" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3473 if test "x$ac_ct_CC" = x; then
3474 CC=""
3475 else
3476 case $cross_compiling:$ac_tool_warned in
3477 yes:)
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3480 ac_tool_warned=yes ;;
3481 esac
3482 CC=$ac_ct_CC
3484 else
3485 CC="$ac_cv_prog_CC"
3488 if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}cc; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_CC+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_CC="${ac_tool_prefix}cc"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3511 done
3512 done
3513 IFS=$as_save_IFS
3517 CC=$ac_cv_prog_CC
3518 if test -n "$CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3521 else
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3529 if test -z "$CC"; then
3530 # Extract the first word of "cc", so it can be a program name with args.
3531 set dummy cc; ac_word=$2
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if test "${ac_cv_prog_CC+set}" = set; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 if test -n "$CC"; then
3538 ac_cv_prog_CC="$CC" # Let the user override the test.
3539 else
3540 ac_prog_rejected=no
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3549 ac_prog_rejected=yes
3550 continue
3552 ac_cv_prog_CC="cc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3560 if test $ac_prog_rejected = yes; then
3561 # We found a bogon in the path, so make sure we never use it.
3562 set dummy $ac_cv_prog_CC
3563 shift
3564 if test $# != 0; then
3565 # We chose a different compiler from the bogus one.
3566 # However, it has the same basename, so the bogon will be chosen
3567 # first if we set CC to just the basename; use the full file name.
3568 shift
3569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 for ac_prog in cl.exe
3589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC="$CC" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3610 done
3611 done
3612 IFS=$as_save_IFS
3616 CC=$ac_cv_prog_CC
3617 if test -n "$CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 $as_echo "$CC" >&6; }
3620 else
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3626 test -n "$CC" && break
3627 done
3629 if test -z "$CC"; then
3630 ac_ct_CC=$CC
3631 for ac_prog in cl.exe
3633 # Extract the first word of "$ac_prog", so it can be a program name with args.
3634 set dummy $ac_prog; ac_word=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if test -n "$ac_ct_CC"; then
3641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3650 ac_cv_prog_ac_ct_CC="$ac_prog"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3661 if test -n "$ac_ct_CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3663 $as_echo "$ac_ct_CC" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3670 test -n "$ac_ct_CC" && break
3671 done
3673 if test "x$ac_ct_CC" = x; then
3674 CC=""
3675 else
3676 case $cross_compiling:$ac_tool_warned in
3677 yes:)
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3680 ac_tool_warned=yes ;;
3681 esac
3682 CC=$ac_ct_CC
3689 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error "no acceptable C compiler found in \$PATH
3692 See \`config.log' for more details." "$LINENO" 5; }
3694 # Provide some information about the compiler.
3695 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3696 set X $ac_compile
3697 ac_compiler=$2
3698 for ac_option in --version -v -V -qversion; do
3699 { { ac_try="$ac_compiler $ac_option >&5"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3707 ac_status=$?
3708 if test -s conftest.err; then
3709 sed '10a\
3710 ... rest of stderr output deleted ...
3711 10q' conftest.err >conftest.er1
3712 cat conftest.er1 >&5
3713 rm -f conftest.er1 conftest.err
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }
3717 done
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3723 main ()
3727 return 0;
3729 _ACEOF
3730 # FIXME: Cleanup?
3731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3732 (eval $ac_link) 2>&5
3733 ac_status=$?
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; then :
3736 gcc_no_link=no
3737 else
3738 gcc_no_link=yes
3740 if test x$gcc_no_link = xyes; then
3741 # Setting cross_compile will disable run tests; it will
3742 # also disable AC_CHECK_FILE but that's generally
3743 # correct if we can't link.
3744 cross_compiling=yes
3745 EXEEXT=
3746 else
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3751 main ()
3755 return 0;
3757 _ACEOF
3758 ac_clean_files_save=$ac_clean_files
3759 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3760 # Try to create an executable without -o first, disregard a.out.
3761 # It will help us diagnose broken compilers, and finding out an intuition
3762 # of exeext.
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3764 $as_echo_n "checking for C compiler default output file name... " >&6; }
3765 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3767 # The possible output files:
3768 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3770 ac_rmfiles=
3771 for ac_file in $ac_files
3773 case $ac_file in
3774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3776 esac
3777 done
3778 rm -f $ac_rmfiles
3780 if { { ac_try="$ac_link_default"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link_default") 2>&5
3788 ac_status=$?
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }; then :
3791 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3792 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3793 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3794 # so that the user can short-circuit this test for compilers unknown to
3795 # Autoconf.
3796 for ac_file in $ac_files ''
3798 test -f "$ac_file" || continue
3799 case $ac_file in
3800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3802 [ab].out )
3803 # We found the default executable, but exeext='' is most
3804 # certainly right.
3805 break;;
3806 *.* )
3807 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3808 then :; else
3809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3811 # We set ac_cv_exeext here because the later test for it is not
3812 # safe: cross compilers may not add the suffix if given an `-o'
3813 # argument, so we may need to know it at that point already.
3814 # Even if this section looks crufty: it has the advantage of
3815 # actually working.
3816 break;;
3818 break;;
3819 esac
3820 done
3821 test "$ac_cv_exeext" = no && ac_cv_exeext=
3823 else
3824 ac_file=''
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3827 $as_echo "$ac_file" >&6; }
3828 if test -z "$ac_file"; then :
3829 $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 { as_fn_set_status 77
3835 as_fn_error "C compiler cannot create executables
3836 See \`config.log' for more details." "$LINENO" 5; }; }
3838 ac_exeext=$ac_cv_exeext
3840 # Check that the compiler produces executables we can run. If not, either
3841 # the compiler is broken, or we cross compile.
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3843 $as_echo_n "checking whether the C compiler works... " >&6; }
3844 # If not cross compiling, check that we can run a simple program.
3845 if test "$cross_compiling" != yes; then
3846 if { ac_try='./$ac_file'
3847 { { case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_try") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; }; then
3857 cross_compiling=no
3858 else
3859 if test "$cross_compiling" = maybe; then
3860 cross_compiling=yes
3861 else
3862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864 as_fn_error "cannot run C compiled programs.
3865 If you meant to cross compile, use \`--host'.
3866 See \`config.log' for more details." "$LINENO" 5; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871 $as_echo "yes" >&6; }
3873 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3874 ac_clean_files=$ac_clean_files_save
3875 # Check that the compiler produces executables we can run. If not, either
3876 # the compiler is broken, or we cross compile.
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3878 $as_echo_n "checking whether we are cross compiling... " >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3880 $as_echo "$cross_compiling" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try="$ac_link"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3892 ac_status=$?
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3898 # `rm'.
3899 for ac_file in conftest.exe conftest conftest.*; do
3900 test -f "$ac_file" || continue
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 break;;
3905 * ) break;;
3906 esac
3907 done
3908 else
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error "cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details." "$LINENO" 5; }
3914 rm -f conftest$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.$ac_ext
3919 EXEEXT=$ac_cv_exeext
3920 ac_exeext=$EXEEXT
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3923 $as_echo_n "checking for suffix of object files... " >&6; }
3924 if test "${ac_cv_objext+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3931 main ()
3935 return 0;
3937 _ACEOF
3938 rm -f conftest.o conftest.obj
3939 if { { ac_try="$ac_compile"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_compile") 2>&5
3947 ac_status=$?
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; then :
3950 for ac_file in conftest.o conftest.obj conftest.*; do
3951 test -f "$ac_file" || continue;
3952 case $ac_file in
3953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3954 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3955 break;;
3956 esac
3957 done
3958 else
3959 $as_echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3964 as_fn_error "cannot compute suffix of object files: cannot compile
3965 See \`config.log' for more details." "$LINENO" 5; }
3967 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3970 $as_echo "$ac_cv_objext" >&6; }
3971 OBJEXT=$ac_cv_objext
3972 ac_objext=$OBJEXT
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3974 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3975 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3982 main ()
3984 #ifndef __GNUC__
3985 choke me
3986 #endif
3989 return 0;
3991 _ACEOF
3992 if ac_fn_c_try_compile "$LINENO"; then :
3993 ac_compiler_gnu=yes
3994 else
3995 ac_compiler_gnu=no
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4002 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4003 if test $ac_compiler_gnu = yes; then
4004 GCC=yes
4005 else
4006 GCC=
4008 ac_test_CFLAGS=${CFLAGS+set}
4009 ac_save_CFLAGS=$CFLAGS
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4011 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4012 if test "${ac_cv_prog_cc_g+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 ac_save_c_werror_flag=$ac_c_werror_flag
4016 ac_c_werror_flag=yes
4017 ac_cv_prog_cc_g=no
4018 CFLAGS="-g"
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4023 main ()
4027 return 0;
4029 _ACEOF
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_prog_cc_g=yes
4032 else
4033 CFLAGS=""
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4038 main ()
4042 return 0;
4044 _ACEOF
4045 if ac_fn_c_try_compile "$LINENO"; then :
4047 else
4048 ac_c_werror_flag=$ac_save_c_werror_flag
4049 CFLAGS="-g"
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 main ()
4058 return 0;
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_cv_prog_cc_g=yes
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 ac_c_werror_flag=$ac_save_c_werror_flag
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4072 $as_echo "$ac_cv_prog_cc_g" >&6; }
4073 if test "$ac_test_CFLAGS" = set; then
4074 CFLAGS=$ac_save_CFLAGS
4075 elif test $ac_cv_prog_cc_g = yes; then
4076 if test "$GCC" = yes; then
4077 CFLAGS="-g -O2"
4078 else
4079 CFLAGS="-g"
4081 else
4082 if test "$GCC" = yes; then
4083 CFLAGS="-O2"
4084 else
4085 CFLAGS=
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4089 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4090 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 ac_cv_prog_cc_c89=no
4094 ac_save_CC=$CC
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097 #include <stdarg.h>
4098 #include <stdio.h>
4099 #include <sys/types.h>
4100 #include <sys/stat.h>
4101 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4102 struct buf { int x; };
4103 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4104 static char *e (p, i)
4105 char **p;
4106 int i;
4108 return p[i];
4110 static char *f (char * (*g) (char **, int), char **p, ...)
4112 char *s;
4113 va_list v;
4114 va_start (v,p);
4115 s = g (p, va_arg (v,int));
4116 va_end (v);
4117 return s;
4120 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4121 function prototypes and stuff, but not '\xHH' hex character constants.
4122 These don't provoke an error unfortunately, instead are silently treated
4123 as 'x'. The following induces an error, until -std is added to get
4124 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4125 array size at least. It's necessary to write '\x00'==0 to get something
4126 that's true only with -std. */
4127 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4129 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4130 inside strings and character constants. */
4131 #define FOO(x) 'x'
4132 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4134 int test (int i, double x);
4135 struct s1 {int (*f) (int a);};
4136 struct s2 {int (*f) (double a);};
4137 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4138 int argc;
4139 char **argv;
4141 main ()
4143 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4145 return 0;
4147 _ACEOF
4148 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4149 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4151 CC="$ac_save_CC $ac_arg"
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153 ac_cv_prog_cc_c89=$ac_arg
4155 rm -f core conftest.err conftest.$ac_objext
4156 test "x$ac_cv_prog_cc_c89" != "xno" && break
4157 done
4158 rm -f conftest.$ac_ext
4159 CC=$ac_save_CC
4162 # AC_CACHE_VAL
4163 case "x$ac_cv_prog_cc_c89" in
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4166 $as_echo "none needed" >&6; } ;;
4167 xno)
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4169 $as_echo "unsupported" >&6; } ;;
4171 CC="$CC $ac_cv_prog_cc_c89"
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4173 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4174 esac
4175 if test "x$ac_cv_prog_cc_c89" != xno; then :
4179 ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185 ac_ext=cpp
4186 ac_cpp='$CXXCPP $CPPFLAGS'
4187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4190 if test -z "$CXX"; then
4191 if test -n "$CCC"; then
4192 CXX=$CCC
4193 else
4194 if test -n "$ac_tool_prefix"; then
4195 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 $as_echo_n "checking for $ac_word... " >&6; }
4201 if test "${ac_cv_prog_CXX+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -n "$CXX"; then
4205 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4218 done
4219 done
4220 IFS=$as_save_IFS
4224 CXX=$ac_cv_prog_CXX
4225 if test -n "$CXX"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4227 $as_echo "$CXX" >&6; }
4228 else
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4234 test -n "$CXX" && break
4235 done
4237 if test -z "$CXX"; then
4238 ac_ct_CXX=$CXX
4239 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4241 # Extract the first word of "$ac_prog", so it can be a program name with args.
4242 set dummy $ac_prog; ac_word=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 if test -n "$ac_ct_CXX"; then
4249 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_ac_ct_CXX="$ac_prog"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4262 done
4263 done
4264 IFS=$as_save_IFS
4268 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4269 if test -n "$ac_ct_CXX"; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4271 $as_echo "$ac_ct_CXX" >&6; }
4272 else
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4278 test -n "$ac_ct_CXX" && break
4279 done
4281 if test "x$ac_ct_CXX" = x; then
4282 CXX="g++"
4283 else
4284 case $cross_compiling:$ac_tool_warned in
4285 yes:)
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4288 ac_tool_warned=yes ;;
4289 esac
4290 CXX=$ac_ct_CXX
4296 # Provide some information about the compiler.
4297 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4298 set X $ac_compile
4299 ac_compiler=$2
4300 for ac_option in --version -v -V -qversion; do
4301 { { ac_try="$ac_compiler $ac_option >&5"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 $as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4309 ac_status=$?
4310 if test -s conftest.err; then
4311 sed '10a\
4312 ... rest of stderr output deleted ...
4313 10q' conftest.err >conftest.er1
4314 cat conftest.er1 >&5
4315 rm -f conftest.er1 conftest.err
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }
4319 done
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4322 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4323 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4330 main ()
4332 #ifndef __GNUC__
4333 choke me
4334 #endif
4337 return 0;
4339 _ACEOF
4340 if ac_fn_cxx_try_compile "$LINENO"; then :
4341 ac_compiler_gnu=yes
4342 else
4343 ac_compiler_gnu=no
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4350 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4351 if test $ac_compiler_gnu = yes; then
4352 GXX=yes
4353 else
4354 GXX=
4356 ac_test_CXXFLAGS=${CXXFLAGS+set}
4357 ac_save_CXXFLAGS=$CXXFLAGS
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4359 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4360 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4364 ac_cxx_werror_flag=yes
4365 ac_cv_prog_cxx_g=no
4366 CXXFLAGS="-g"
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4371 main ()
4375 return 0;
4377 _ACEOF
4378 if ac_fn_cxx_try_compile "$LINENO"; then :
4379 ac_cv_prog_cxx_g=yes
4380 else
4381 CXXFLAGS=""
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4386 main ()
4390 return 0;
4392 _ACEOF
4393 if ac_fn_cxx_try_compile "$LINENO"; then :
4395 else
4396 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4397 CXXFLAGS="-g"
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4402 main ()
4406 return 0;
4408 _ACEOF
4409 if ac_fn_cxx_try_compile "$LINENO"; then :
4410 ac_cv_prog_cxx_g=yes
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4420 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4421 if test "$ac_test_CXXFLAGS" = set; then
4422 CXXFLAGS=$ac_save_CXXFLAGS
4423 elif test $ac_cv_prog_cxx_g = yes; then
4424 if test "$GXX" = yes; then
4425 CXXFLAGS="-g -O2"
4426 else
4427 CXXFLAGS="-g"
4429 else
4430 if test "$GXX" = yes; then
4431 CXXFLAGS="-O2"
4432 else
4433 CXXFLAGS=
4436 ac_ext=c
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442 CXXFLAGS="$save_CXXFLAGS"
4444 am__api_version='1.11'
4446 # Find a good install program. We prefer a C program (faster),
4447 # so one script is as good as another. But avoid the broken or
4448 # incompatible versions:
4449 # SysV /etc/install, /usr/sbin/install
4450 # SunOS /usr/etc/install
4451 # IRIX /sbin/install
4452 # AIX /bin/install
4453 # AmigaOS /C/install, which installs bootblocks on floppy discs
4454 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4457 # OS/2's system install, which has a completely different semantic
4458 # ./install, which can be erroneously created by make from ./install.sh.
4459 # Reject install programs that cannot install multiple files.
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4461 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4462 if test -z "$INSTALL"; then
4463 if test "${ac_cv_path_install+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 # Account for people who put trailing slashes in PATH elements.
4472 case $as_dir/ in #((
4473 ./ | .// | /[cC]/* | \
4474 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4475 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4476 /usr/ucb/* ) ;;
4478 # OSF1 and SCO ODT 3.0 have their own names for install.
4479 # Don't use installbsd from OSF since it installs stuff as root
4480 # by default.
4481 for ac_prog in ginstall scoinst install; do
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4484 if test $ac_prog = install &&
4485 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4486 # AIX install. It has an incompatible calling convention.
4488 elif test $ac_prog = install &&
4489 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4490 # program-specific install script used by HP pwplus--don't use.
4492 else
4493 rm -rf conftest.one conftest.two conftest.dir
4494 echo one > conftest.one
4495 echo two > conftest.two
4496 mkdir conftest.dir
4497 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4498 test -s conftest.one && test -s conftest.two &&
4499 test -s conftest.dir/conftest.one &&
4500 test -s conftest.dir/conftest.two
4501 then
4502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4503 break 3
4507 done
4508 done
4510 esac
4512 done
4513 IFS=$as_save_IFS
4515 rm -rf conftest.one conftest.two conftest.dir
4518 if test "${ac_cv_path_install+set}" = set; then
4519 INSTALL=$ac_cv_path_install
4520 else
4521 # As a last resort, use the slow shell script. Don't cache a
4522 # value for INSTALL within a source directory, because that will
4523 # break other packages using the cache if that directory is
4524 # removed, or if the value is a relative name.
4525 INSTALL=$ac_install_sh
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4529 $as_echo "$INSTALL" >&6; }
4531 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4532 # It thinks the first close brace ends the variable substitution.
4533 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4535 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4537 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4540 $as_echo_n "checking whether build environment is sane... " >&6; }
4541 # Just in case
4542 sleep 1
4543 echo timestamp > conftest.file
4544 # Reject unsafe characters in $srcdir or the absolute working directory
4545 # name. Accept space and tab only in the latter.
4546 am_lf='
4548 case `pwd` in
4549 *[\\\"\#\$\&\'\`$am_lf]*)
4550 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4551 esac
4552 case $srcdir in
4553 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4554 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4555 esac
4557 # Do `set' in a subshell so we don't clobber the current shell's
4558 # arguments. Must try -L first in case configure is actually a
4559 # symlink; some systems play weird games with the mod time of symlinks
4560 # (eg FreeBSD returns the mod time of the symlink's containing
4561 # directory).
4562 if (
4563 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4564 if test "$*" = "X"; then
4565 # -L didn't work.
4566 set X `ls -t "$srcdir/configure" conftest.file`
4568 rm -f conftest.file
4569 if test "$*" != "X $srcdir/configure conftest.file" \
4570 && test "$*" != "X conftest.file $srcdir/configure"; then
4572 # If neither matched, then we have a broken ls. This can happen
4573 # if, for instance, CONFIG_SHELL is bash and it inherits a
4574 # broken ls alias from the environment. This has actually
4575 # happened. Such a system could not be considered "sane".
4576 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4577 alias in your environment" "$LINENO" 5
4580 test "$2" = conftest.file
4582 then
4583 # Ok.
4585 else
4586 as_fn_error "newly created file is older than distributed files!
4587 Check your system clock" "$LINENO" 5
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4590 $as_echo "yes" >&6; }
4591 test "$program_prefix" != NONE &&
4592 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4593 # Use a double $ so make ignores it.
4594 test "$program_suffix" != NONE &&
4595 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4596 # Double any \ or $.
4597 # By default was `s,x,x', remove it if useless.
4598 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4599 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4601 # expand $ac_aux_dir to an absolute path
4602 am_aux_dir=`cd $ac_aux_dir && pwd`
4604 if test x"${MISSING+set}" != xset; then
4605 case $am_aux_dir in
4606 *\ * | *\ *)
4607 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4609 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4610 esac
4612 # Use eval to expand $SHELL
4613 if eval "$MISSING --run true"; then
4614 am_missing_run="$MISSING --run "
4615 else
4616 am_missing_run=
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4618 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4621 if test x"${install_sh}" != xset; then
4622 case $am_aux_dir in
4623 *\ * | *\ *)
4624 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4626 install_sh="\${SHELL} $am_aux_dir/install-sh"
4627 esac
4630 # Installed binaries are usually stripped using `strip' when the user
4631 # run `make install-strip'. However `strip' might not be the right
4632 # tool to use in cross-compilation environments, therefore Automake
4633 # will honor the `STRIP' environment variable to overrule this program.
4634 if test "$cross_compiling" != no; then
4635 if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}strip; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if test "${ac_cv_prog_STRIP+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 if test -n "$STRIP"; then
4644 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4657 done
4658 done
4659 IFS=$as_save_IFS
4663 STRIP=$ac_cv_prog_STRIP
4664 if test -n "$STRIP"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4666 $as_echo "$STRIP" >&6; }
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4674 if test -z "$ac_cv_prog_STRIP"; then
4675 ac_ct_STRIP=$STRIP
4676 # Extract the first word of "strip", so it can be a program name with args.
4677 set dummy strip; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$ac_ct_STRIP"; then
4684 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_ac_ct_STRIP="strip"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4699 IFS=$as_save_IFS
4703 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4704 if test -n "$ac_ct_STRIP"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4706 $as_echo "$ac_ct_STRIP" >&6; }
4707 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4712 if test "x$ac_ct_STRIP" = x; then
4713 STRIP=":"
4714 else
4715 case $cross_compiling:$ac_tool_warned in
4716 yes:)
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719 ac_tool_warned=yes ;;
4720 esac
4721 STRIP=$ac_ct_STRIP
4723 else
4724 STRIP="$ac_cv_prog_STRIP"
4728 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4731 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4732 if test -z "$MKDIR_P"; then
4733 if test "${ac_cv_path_mkdir+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_prog in mkdir gmkdir; do
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4744 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4745 'mkdir (GNU coreutils) '* | \
4746 'mkdir (coreutils) '* | \
4747 'mkdir (fileutils) '4.1*)
4748 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4749 break 3;;
4750 esac
4751 done
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 if test "${ac_cv_path_mkdir+set}" = set; then
4759 MKDIR_P="$ac_cv_path_mkdir -p"
4760 else
4761 # As a last resort, use the slow shell script. Don't cache a
4762 # value for MKDIR_P within a source directory, because that will
4763 # break other packages using the cache if that directory is
4764 # removed, or if the value is a relative name.
4765 test -d ./--version && rmdir ./--version
4766 MKDIR_P="$ac_install_sh -d"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4770 $as_echo "$MKDIR_P" >&6; }
4772 mkdir_p="$MKDIR_P"
4773 case $mkdir_p in
4774 [\\/$]* | ?:[\\/]*) ;;
4775 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4776 esac
4778 for ac_prog in gawk mawk nawk awk
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_prog_AWK+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$AWK"; then
4788 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_AWK="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4807 AWK=$ac_cv_prog_AWK
4808 if test -n "$AWK"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4810 $as_echo "$AWK" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4817 test -n "$AWK" && break
4818 done
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4821 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4822 set x ${MAKE-make}
4823 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4824 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 cat >conftest.make <<\_ACEOF
4828 SHELL = /bin/sh
4829 all:
4830 @echo '@@@%%%=$(MAKE)=@@@%%%'
4831 _ACEOF
4832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4833 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4834 *@@@%%%=?*=@@@%%%*)
4835 eval ac_cv_prog_make_${ac_make}_set=yes;;
4837 eval ac_cv_prog_make_${ac_make}_set=no;;
4838 esac
4839 rm -f conftest.make
4841 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4843 $as_echo "yes" >&6; }
4844 SET_MAKE=
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 SET_MAKE="MAKE=${MAKE-make}"
4851 rm -rf .tst 2>/dev/null
4852 mkdir .tst 2>/dev/null
4853 if test -d .tst; then
4854 am__leading_dot=.
4855 else
4856 am__leading_dot=_
4858 rmdir .tst 2>/dev/null
4860 DEPDIR="${am__leading_dot}deps"
4862 ac_config_commands="$ac_config_commands depfiles"
4865 am_make=${MAKE-make}
4866 cat > confinc << 'END'
4867 am__doit:
4868 @echo this is the am__doit target
4869 .PHONY: am__doit
4871 # If we don't find an include directive, just comment out the code.
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4873 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4874 am__include="#"
4875 am__quote=
4876 _am_result=none
4877 # First try GNU make style include.
4878 echo "include confinc" > confmf
4879 # Ignore all kinds of additional output from `make'.
4880 case `$am_make -s -f confmf 2> /dev/null` in #(
4881 *the\ am__doit\ target*)
4882 am__include=include
4883 am__quote=
4884 _am_result=GNU
4886 esac
4887 # Now try BSD make style include.
4888 if test "$am__include" = "#"; then
4889 echo '.include "confinc"' > confmf
4890 case `$am_make -s -f confmf 2> /dev/null` in #(
4891 *the\ am__doit\ target*)
4892 am__include=.include
4893 am__quote="\""
4894 _am_result=BSD
4896 esac
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4901 $as_echo "$_am_result" >&6; }
4902 rm -f confinc confmf
4904 # Check whether --enable-dependency-tracking was given.
4905 if test "${enable_dependency_tracking+set}" = set; then :
4906 enableval=$enable_dependency_tracking;
4909 if test "x$enable_dependency_tracking" != xno; then
4910 am_depcomp="$ac_aux_dir/depcomp"
4911 AMDEPBACKSLASH='\'
4912 am__nodep='_no'
4914 if test "x$enable_dependency_tracking" != xno; then
4915 AMDEP_TRUE=
4916 AMDEP_FALSE='#'
4917 else
4918 AMDEP_TRUE='#'
4919 AMDEP_FALSE=
4923 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4924 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4925 # is not polluted with repeated "-I."
4926 am__isrc=' -I$(srcdir)'
4927 # test to see if srcdir already configured
4928 if test -f $srcdir/config.status; then
4929 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4933 # test whether we have cygpath
4934 if test -z "$CYGPATH_W"; then
4935 if (cygpath --version) >/dev/null 2>/dev/null; then
4936 CYGPATH_W='cygpath -w'
4937 else
4938 CYGPATH_W=echo
4943 # Define the identity of the package.
4944 PACKAGE='libjava'
4945 VERSION='version-unused'
4948 cat >>confdefs.h <<_ACEOF
4949 #define PACKAGE "$PACKAGE"
4950 _ACEOF
4953 cat >>confdefs.h <<_ACEOF
4954 #define VERSION "$VERSION"
4955 _ACEOF
4957 # Some tools Automake needs.
4959 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4962 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4965 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4968 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4971 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4973 # We need awk for the "check" target. The system "awk" is bad on
4974 # some platforms.
4975 # Always define AMTAR for backward compatibility. Yes, it's still used
4976 # in the wild :-( We should find a proper way to deprecate it ...
4977 AMTAR='$${TAR-tar}'
4979 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4984 depcc="$CC" am_compiler_list=
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4987 $as_echo_n "checking dependency style of $depcc... " >&6; }
4988 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4992 # We make a subdir and do the tests there. Otherwise we can end up
4993 # making bogus files that we don't know about and never remove. For
4994 # instance it was reported that on HP-UX the gcc test will end up
4995 # making a dummy file named `D' -- because `-MD' means `put the output
4996 # in D'.
4997 rm -rf conftest.dir
4998 mkdir conftest.dir
4999 # Copy depcomp to subdir because otherwise we won't find it if we're
5000 # using a relative directory.
5001 cp "$am_depcomp" conftest.dir
5002 cd conftest.dir
5003 # We will build objects and dependencies in a subdirectory because
5004 # it helps to detect inapplicable dependency modes. For instance
5005 # both Tru64's cc and ICC support -MD to output dependencies as a
5006 # side effect of compilation, but ICC will put the dependencies in
5007 # the current directory while Tru64 will put them in the object
5008 # directory.
5009 mkdir sub
5011 am_cv_CC_dependencies_compiler_type=none
5012 if test "$am_compiler_list" = ""; then
5013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5015 am__universal=false
5016 case " $depcc " in #(
5017 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5018 esac
5020 for depmode in $am_compiler_list; do
5021 # Setup a source with many dependencies, because some compilers
5022 # like to wrap large dependency lists on column 80 (with \), and
5023 # we should not choose a depcomp mode which is confused by this.
5025 # We need to recreate these files for each test, as the compiler may
5026 # overwrite some of them when testing with obscure command lines.
5027 # This happens at least with the AIX C compiler.
5028 : > sub/conftest.c
5029 for i in 1 2 3 4 5 6; do
5030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5031 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5032 # Solaris 8's {/usr,}/bin/sh.
5033 touch sub/conftst$i.h
5034 done
5035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5037 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5038 # mode. It turns out that the SunPro C++ compiler does not properly
5039 # handle `-M -o', and we need to detect this. Also, some Intel
5040 # versions had trouble with output in subdirs
5041 am__obj=sub/conftest.${OBJEXT-o}
5042 am__minus_obj="-o $am__obj"
5043 case $depmode in
5044 gcc)
5045 # This depmode causes a compiler race in universal mode.
5046 test "$am__universal" = false || continue
5048 nosideeffect)
5049 # after this tag, mechanisms are not by side-effect, so they'll
5050 # only be used when explicitly requested
5051 if test "x$enable_dependency_tracking" = xyes; then
5052 continue
5053 else
5054 break
5057 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5058 # This compiler won't grok `-c -o', but also, the minuso test has
5059 # not run yet. These depmodes are late enough in the game, and
5060 # so weak that their functioning should not be impacted.
5061 am__obj=conftest.${OBJEXT-o}
5062 am__minus_obj=
5064 none) break ;;
5065 esac
5066 if depmode=$depmode \
5067 source=sub/conftest.c object=$am__obj \
5068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5069 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5070 >/dev/null 2>conftest.err &&
5071 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075 # icc doesn't choke on unknown options, it will just issue warnings
5076 # or remarks (even with -Werror). So we grep stderr for any message
5077 # that says an option was ignored or not supported.
5078 # When given -MP, icc 7.0 and 7.1 complain thusly:
5079 # icc: Command line warning: ignoring option '-M'; no argument required
5080 # The diagnosis changed in icc 8.0:
5081 # icc: Command line remark: option '-MP' not supported
5082 if (grep 'ignoring option' conftest.err ||
5083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084 am_cv_CC_dependencies_compiler_type=$depmode
5085 break
5088 done
5090 cd ..
5091 rm -rf conftest.dir
5092 else
5093 am_cv_CC_dependencies_compiler_type=none
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5098 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5099 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5102 test "x$enable_dependency_tracking" != xno \
5103 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5104 am__fastdepCC_TRUE=
5105 am__fastdepCC_FALSE='#'
5106 else
5107 am__fastdepCC_TRUE='#'
5108 am__fastdepCC_FALSE=
5112 depcc="$CXX" am_compiler_list=
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5115 $as_echo_n "checking dependency style of $depcc... " >&6; }
5116 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5120 # We make a subdir and do the tests there. Otherwise we can end up
5121 # making bogus files that we don't know about and never remove. For
5122 # instance it was reported that on HP-UX the gcc test will end up
5123 # making a dummy file named `D' -- because `-MD' means `put the output
5124 # in D'.
5125 rm -rf conftest.dir
5126 mkdir conftest.dir
5127 # Copy depcomp to subdir because otherwise we won't find it if we're
5128 # using a relative directory.
5129 cp "$am_depcomp" conftest.dir
5130 cd conftest.dir
5131 # We will build objects and dependencies in a subdirectory because
5132 # it helps to detect inapplicable dependency modes. For instance
5133 # both Tru64's cc and ICC support -MD to output dependencies as a
5134 # side effect of compilation, but ICC will put the dependencies in
5135 # the current directory while Tru64 will put them in the object
5136 # directory.
5137 mkdir sub
5139 am_cv_CXX_dependencies_compiler_type=none
5140 if test "$am_compiler_list" = ""; then
5141 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5143 am__universal=false
5144 case " $depcc " in #(
5145 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5146 esac
5148 for depmode in $am_compiler_list; do
5149 # Setup a source with many dependencies, because some compilers
5150 # like to wrap large dependency lists on column 80 (with \), and
5151 # we should not choose a depcomp mode which is confused by this.
5153 # We need to recreate these files for each test, as the compiler may
5154 # overwrite some of them when testing with obscure command lines.
5155 # This happens at least with the AIX C compiler.
5156 : > sub/conftest.c
5157 for i in 1 2 3 4 5 6; do
5158 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5159 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5160 # Solaris 8's {/usr,}/bin/sh.
5161 touch sub/conftst$i.h
5162 done
5163 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5165 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5166 # mode. It turns out that the SunPro C++ compiler does not properly
5167 # handle `-M -o', and we need to detect this. Also, some Intel
5168 # versions had trouble with output in subdirs
5169 am__obj=sub/conftest.${OBJEXT-o}
5170 am__minus_obj="-o $am__obj"
5171 case $depmode in
5172 gcc)
5173 # This depmode causes a compiler race in universal mode.
5174 test "$am__universal" = false || continue
5176 nosideeffect)
5177 # after this tag, mechanisms are not by side-effect, so they'll
5178 # only be used when explicitly requested
5179 if test "x$enable_dependency_tracking" = xyes; then
5180 continue
5181 else
5182 break
5185 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5186 # This compiler won't grok `-c -o', but also, the minuso test has
5187 # not run yet. These depmodes are late enough in the game, and
5188 # so weak that their functioning should not be impacted.
5189 am__obj=conftest.${OBJEXT-o}
5190 am__minus_obj=
5192 none) break ;;
5193 esac
5194 if depmode=$depmode \
5195 source=sub/conftest.c object=$am__obj \
5196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5197 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5198 >/dev/null 2>conftest.err &&
5199 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5201 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5203 # icc doesn't choke on unknown options, it will just issue warnings
5204 # or remarks (even with -Werror). So we grep stderr for any message
5205 # that says an option was ignored or not supported.
5206 # When given -MP, icc 7.0 and 7.1 complain thusly:
5207 # icc: Command line warning: ignoring option '-M'; no argument required
5208 # The diagnosis changed in icc 8.0:
5209 # icc: Command line remark: option '-MP' not supported
5210 if (grep 'ignoring option' conftest.err ||
5211 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5212 am_cv_CXX_dependencies_compiler_type=$depmode
5213 break
5216 done
5218 cd ..
5219 rm -rf conftest.dir
5220 else
5221 am_cv_CXX_dependencies_compiler_type=none
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5226 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5227 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5230 test "x$enable_dependency_tracking" != xno \
5231 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5232 am__fastdepCXX_TRUE=
5233 am__fastdepCXX_FALSE='#'
5234 else
5235 am__fastdepCXX_TRUE='#'
5236 am__fastdepCXX_FALSE=
5242 if test -n "$ac_tool_prefix"; then
5243 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5244 set dummy ${ac_tool_prefix}as; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_prog_AS+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$AS"; then
5251 ac_cv_prog_AS="$AS" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_AS="${ac_tool_prefix}as"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5264 done
5265 done
5266 IFS=$as_save_IFS
5270 AS=$ac_cv_prog_AS
5271 if test -n "$AS"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5273 $as_echo "$AS" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5281 if test -z "$ac_cv_prog_AS"; then
5282 ac_ct_AS=$AS
5283 # Extract the first word of "as", so it can be a program name with args.
5284 set dummy as; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$ac_ct_AS"; then
5291 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_ac_ct_AS="as"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5306 IFS=$as_save_IFS
5310 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5311 if test -n "$ac_ct_AS"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5313 $as_echo "$ac_ct_AS" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5319 if test "x$ac_ct_AS" = x; then
5320 AS=""
5321 else
5322 case $cross_compiling:$ac_tool_warned in
5323 yes:)
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5326 ac_tool_warned=yes ;;
5327 esac
5328 AS=$ac_ct_AS
5330 else
5331 AS="$ac_cv_prog_AS"
5334 if test -n "$ac_tool_prefix"; then
5335 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5336 set dummy ${ac_tool_prefix}ld; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if test "${ac_cv_prog_LD+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$LD"; then
5343 ac_cv_prog_LD="$LD" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352 ac_cv_prog_LD="${ac_tool_prefix}ld"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5356 done
5357 done
5358 IFS=$as_save_IFS
5362 LD=$ac_cv_prog_LD
5363 if test -n "$LD"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5365 $as_echo "$LD" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5373 if test -z "$ac_cv_prog_LD"; then
5374 ac_ct_LD=$LD
5375 # Extract the first word of "ld", so it can be a program name with args.
5376 set dummy ld; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 if test -n "$ac_ct_LD"; then
5383 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_prog_ac_ct_LD="ld"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5396 done
5397 done
5398 IFS=$as_save_IFS
5402 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5403 if test -n "$ac_ct_LD"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5405 $as_echo "$ac_ct_LD" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5411 if test "x$ac_ct_LD" = x; then
5412 LD=""
5413 else
5414 case $cross_compiling:$ac_tool_warned in
5415 yes:)
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5418 ac_tool_warned=yes ;;
5419 esac
5420 LD=$ac_ct_LD
5422 else
5423 LD="$ac_cv_prog_LD"
5426 if test -n "$ac_tool_prefix"; then
5427 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5428 set dummy ${ac_tool_prefix}ar; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if test "${ac_cv_prog_AR+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 if test -n "$AR"; then
5435 ac_cv_prog_AR="$AR" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444 ac_cv_prog_AR="${ac_tool_prefix}ar"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5448 done
5449 done
5450 IFS=$as_save_IFS
5454 AR=$ac_cv_prog_AR
5455 if test -n "$AR"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5457 $as_echo "$AR" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5465 if test -z "$ac_cv_prog_AR"; then
5466 ac_ct_AR=$AR
5467 # Extract the first word of "ar", so it can be a program name with args.
5468 set dummy ar; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 if test -n "$ac_ct_AR"; then
5475 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5476 else
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484 ac_cv_prog_ac_ct_AR="ar"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5488 done
5489 done
5490 IFS=$as_save_IFS
5494 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5495 if test -n "$ac_ct_AR"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5497 $as_echo "$ac_ct_AR" >&6; }
5498 else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5503 if test "x$ac_ct_AR" = x; then
5504 AR=""
5505 else
5506 case $cross_compiling:$ac_tool_warned in
5507 yes:)
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5510 ac_tool_warned=yes ;;
5511 esac
5512 AR=$ac_ct_AR
5514 else
5515 AR="$ac_cv_prog_AR"
5518 if test -n "$ac_tool_prefix"; then
5519 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5520 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -n "$RANLIB"; then
5527 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5540 done
5541 done
5542 IFS=$as_save_IFS
5546 RANLIB=$ac_cv_prog_RANLIB
5547 if test -n "$RANLIB"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5549 $as_echo "$RANLIB" >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5557 if test -z "$ac_cv_prog_RANLIB"; then
5558 ac_ct_RANLIB=$RANLIB
5559 # Extract the first word of "ranlib", so it can be a program name with args.
5560 set dummy ranlib; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$ac_ct_RANLIB"; then
5567 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_ac_ct_RANLIB="ranlib"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5580 done
5581 done
5582 IFS=$as_save_IFS
5586 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5587 if test -n "$ac_ct_RANLIB"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5589 $as_echo "$ac_ct_RANLIB" >&6; }
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5595 if test "x$ac_ct_RANLIB" = x; then
5596 RANLIB=":"
5597 else
5598 case $cross_compiling:$ac_tool_warned in
5599 yes:)
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5602 ac_tool_warned=yes ;;
5603 esac
5604 RANLIB=$ac_ct_RANLIB
5606 else
5607 RANLIB="$ac_cv_prog_RANLIB"
5610 if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5612 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if test -n "$DLLTOOL"; then
5619 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5632 done
5633 done
5634 IFS=$as_save_IFS
5638 DLLTOOL=$ac_cv_prog_DLLTOOL
5639 if test -n "$DLLTOOL"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5641 $as_echo "$DLLTOOL" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5649 if test -z "$ac_cv_prog_DLLTOOL"; then
5650 ac_ct_DLLTOOL=$DLLTOOL
5651 # Extract the first word of "dlltool", so it can be a program name with args.
5652 set dummy dlltool; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$ac_ct_DLLTOOL"; then
5659 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5672 done
5673 done
5674 IFS=$as_save_IFS
5678 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5679 if test -n "$ac_ct_DLLTOOL"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5681 $as_echo "$ac_ct_DLLTOOL" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5687 if test "x$ac_ct_DLLTOOL" = x; then
5688 DLLTOOL=":"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691 yes:)
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694 ac_tool_warned=yes ;;
5695 esac
5696 DLLTOOL=$ac_ct_DLLTOOL
5698 else
5699 DLLTOOL="$ac_cv_prog_DLLTOOL"
5702 for ac_prog in gawk mawk nawk awk
5704 # Extract the first word of "$ac_prog", so it can be a program name with args.
5705 set dummy $ac_prog; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if test "${ac_cv_prog_AWK+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if test -n "$AWK"; then
5712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721 ac_cv_prog_AWK="$ac_prog"
5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5725 done
5726 done
5727 IFS=$as_save_IFS
5731 AWK=$ac_cv_prog_AWK
5732 if test -n "$AWK"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5734 $as_echo "$AWK" >&6; }
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5741 test -n "$AWK" && break
5742 done
5744 for ac_prog in jar fastjar gjar
5746 # Extract the first word of "$ac_prog", so it can be a program name with args.
5747 set dummy $ac_prog; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if test "${ac_cv_prog_JAR+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 if test -n "$JAR"; then
5754 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 ac_cv_prog_JAR="$ac_prog"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5767 done
5768 done
5769 IFS=$as_save_IFS
5773 JAR=$ac_cv_prog_JAR
5774 if test -n "$JAR"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5776 $as_echo "$JAR" >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5783 test -n "$JAR" && break
5784 done
5785 test -n "$JAR" || JAR="no"
5787 # Extract the first word of "zip", so it can be a program name with args.
5788 set dummy zip; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if test "${ac_cv_path_ZIP+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 case $ZIP in
5795 [\\/]* | ?:[\\/]*)
5796 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5810 done
5811 done
5812 IFS=$as_save_IFS
5814 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5816 esac
5818 ZIP=$ac_cv_path_ZIP
5819 if test -n "$ZIP"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5821 $as_echo "$ZIP" >&6; }
5822 else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5828 # Extract the first word of "unzip", so it can be a program name with args.
5829 set dummy unzip; ac_word=$2
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831 $as_echo_n "checking for $ac_word... " >&6; }
5832 if test "${ac_cv_path_UNZIP+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 case $UNZIP in
5836 [\\/]* | ?:[\\/]*)
5837 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5851 done
5852 done
5853 IFS=$as_save_IFS
5855 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5857 esac
5859 UNZIP=$ac_cv_path_UNZIP
5860 if test -n "$UNZIP"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5862 $as_echo "$UNZIP" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5870 # We need a jar that supports -@. This is a GNU extension.
5871 if test "$JAR" != no; then
5872 rm -f config-test.jar
5873 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar >/dev/null 2>&1
5874 if test -f config-test.jar; then
5875 rm -f config-test.jar
5876 else
5877 JAR=no
5881 # Prefer the jar we found, but fall back to our jar script.
5882 if test "$JAR" = no; then
5883 if test "$ZIP" = no; then
5884 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5885 else
5886 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5887 JAR=`pwd`/scripts/jar
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5895 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5896 # Check whether --enable-maintainer-mode was given.
5897 if test "${enable_maintainer_mode+set}" = set; then :
5898 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5899 else
5900 USE_MAINTAINER_MODE=no
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5904 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5905 if test $USE_MAINTAINER_MODE = yes; then
5906 MAINTAINER_MODE_TRUE=
5907 MAINTAINER_MODE_FALSE='#'
5908 else
5909 MAINTAINER_MODE_TRUE='#'
5910 MAINTAINER_MODE_FALSE=
5913 MAINT=$MAINTAINER_MODE_TRUE
5919 # configure.host sets the following important variables
5920 # libgcj_cflags - host specific C compiler flags
5921 # libgcj_cxxflags - host specific C++ compiler flags
5922 # libgcj_javaflags - host specific Java compiler flags
5923 # libgcj_sublib_ltflags - host specific Libtool flags
5924 # libgcj_sublib_core_extra_deps - host specific extra
5925 # dependencies for core sublib
5926 # (these last two only used when building sublibs)
5927 # and a number of others; see the list at the start of the file.
5929 libgcj_cflags=
5930 libgcj_cxxflags=
5931 libgcj_javaflags=
5932 libgcj_sublib_ltflags=
5933 libgcj_sublib_core_extra_deps=
5935 . ${srcdir}/configure.host
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5938 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5939 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5943 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5944 acl_cv_prog_gnu_ld=yes
5945 else
5946 acl_cv_prog_gnu_ld=no
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5950 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5951 with_gnu_ld=$acl_cv_prog_gnu_ld
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5954 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5955 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5959 acl_cv_prog_gnu_ld_symbolic=no
5961 if test x"$with_gnu_ld" = x"yes"; then
5962 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5963 acl_cv_prog_gnu_ld_symbolic=yes
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5968 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5969 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5970 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5971 else
5972 SYMBOLIC_LDFLAGS=''
5975 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5976 if test -z "$libgcj_ld_symbolic"; then
5977 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5980 # for windows native targets enforce export of all symbols for shared libgcj.
5981 libgcj_ld_export_all=
5982 case "$host" in
5983 *mingw*)
5984 libgcj_ld_export_all=-Wl,--export-all-symbols
5988 esac
5990 LIBGCJ_CFLAGS="${libgcj_cflags}"
5991 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5992 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5993 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5994 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5995 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5996 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5997 LIBGCJ_LD_EXPORT_ALL="${libgcj_ld_export_all}"
6007 # Only use libltdl for non-newlib builds.
6008 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
6010 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6011 library_names_spec=
6012 libname_spec='lib$name'
6013 soname_spec=
6014 shrext=".so"
6015 postinstall_cmds=
6016 postuninstall_cmds=
6017 finish_cmds=
6018 finish_eval=
6019 shlibpath_var=
6020 shlibpath_overrides_runpath=unknown
6021 version_type=none
6022 dynamic_linker="$host_os ld.so"
6023 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6024 if test "$GCC" = yes; then
6025 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6026 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6027 # if the path contains ";" then we assume it to be the separator
6028 # otherwise default to the standard path separator (i.e. ":") - it is
6029 # assumed that no part of a normal pathname contains ";" but that should
6030 # okay in the real world where ";" in dirpaths is itself problematic.
6031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6032 else
6033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6035 else
6036 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6038 need_lib_prefix=unknown
6039 hardcode_into_libs=no
6041 # when you set need_version to no, make sure it does not cause -set_version
6042 # flags to be left without arguments
6043 need_version=unknown
6045 case $host_os in
6046 aix3*)
6047 version_type=linux
6048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6049 shlibpath_var=LIBPATH
6051 # AIX 3 has no versioning support, so we append a major version to the name.
6052 soname_spec='${libname}${release}${shared_ext}$major'
6055 aix[4-9]*)
6056 version_type=linux
6057 need_lib_prefix=no
6058 need_version=no
6059 hardcode_into_libs=yes
6060 if test "$host_cpu" = ia64; then
6061 # AIX 5 supports IA64
6062 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6063 shlibpath_var=LD_LIBRARY_PATH
6064 else
6065 # With GCC up to 2.95.x, collect2 would create an import file
6066 # for dependence libraries. The import file would start with
6067 # the line `#! .'. This would cause the generated library to
6068 # depend on `.', always an invalid library. This was fixed in
6069 # development snapshots of GCC prior to 3.0.
6070 case $host_os in
6071 aix4 | aix4.[01] | aix4.[01].*)
6072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6073 echo ' yes '
6074 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6076 else
6077 can_build_shared=no
6080 esac
6081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6082 # soname into executable. Probably we can add versioning support to
6083 # collect2, so additional links can be useful in future.
6084 if test "$aix_use_runtimelinking" = yes; then
6085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6086 # instead of lib<name>.a to let people know that these are not
6087 # typical AIX shared libraries.
6088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6089 else
6090 # We preserve .a as extension for shared libraries through AIX4.2
6091 # and later when we are not doing run time linking.
6092 library_names_spec='${libname}${release}.a $libname.a'
6093 soname_spec='${libname}${release}${shared_ext}$major'
6095 shlibpath_var=LIBPATH
6099 amigaos*)
6100 library_names_spec='$libname.ixlibrary $libname.a'
6101 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6102 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'
6105 beos*)
6106 library_names_spec='${libname}${shared_ext}'
6107 dynamic_linker="$host_os ld.so"
6108 shlibpath_var=LIBRARY_PATH
6111 bsdi4*)
6112 version_type=linux
6113 need_version=no
6114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6115 soname_spec='${libname}${release}${shared_ext}$major'
6116 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6117 shlibpath_var=LD_LIBRARY_PATH
6118 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6119 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6120 # the default ld.so.conf also contains /usr/contrib/lib and
6121 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6122 # libtool to hard-code these into programs
6125 cygwin* | mingw* | pw32*)
6126 version_type=windows
6127 shrext=".dll"
6128 need_version=no
6129 need_lib_prefix=no
6131 case $GCC,$host_os in
6132 yes,cygwin* | yes,mingw* | yes,pw32*)
6133 library_names_spec='$libname.dll.a'
6134 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6135 postinstall_cmds='base_file=`basename \${file}`~
6136 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6137 dldir=$destdir/`dirname \$dlpath`~
6138 test -d \$dldir || mkdir -p \$dldir~
6139 $install_prog $dir/$dlname \$dldir/$dlname'
6140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6141 dlpath=$dir/\$dldll~
6142 $rm \$dlpath'
6143 shlibpath_overrides_runpath=yes
6145 case $host_os in
6146 cygwin*)
6147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6149 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6151 mingw*)
6152 # MinGW DLLs use traditional 'lib' prefix
6153 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6154 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6155 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6156 # It is most probably a Windows format PATH printed by
6157 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6158 # path with ; separators, and with drive letters. We can handle the
6159 # drive letters (cygwin fileutils understands them), so leave them,
6160 # especially as we might pass files found there to a mingw objdump,
6161 # which wouldn't understand a cygwinified path. Ahh.
6162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6163 else
6164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6167 pw32*)
6168 # pw32 DLLs use 'pw' prefix rather than 'lib'
6169 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6171 esac
6175 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6177 esac
6178 dynamic_linker='Win32 ld.exe'
6179 # FIXME: first we should search . and the directory the executable is in
6180 shlibpath_var=PATH
6183 darwin* | rhapsody*)
6184 dynamic_linker="$host_os dyld"
6185 version_type=darwin
6186 need_lib_prefix=no
6187 need_version=no
6188 # FIXME: Relying on posixy $() will cause problems for
6189 # cross-compilation, but unfortunately the echo tests do not
6190 # yet detect zsh echo's removal of \ escapes.
6191 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6192 soname_spec='${libname}${release}${major}$shared_ext'
6193 shlibpath_overrides_runpath=yes
6194 shlibpath_var=DYLD_LIBRARY_PATH
6195 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6196 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6197 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6198 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"`
6200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6203 dgux*)
6204 version_type=linux
6205 need_lib_prefix=no
6206 need_version=no
6207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6208 soname_spec='${libname}${release}${shared_ext}$major'
6209 shlibpath_var=LD_LIBRARY_PATH
6212 freebsd*)
6213 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6214 version_type=freebsd-$objformat
6215 case $version_type in
6216 freebsd-elf*)
6217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6218 need_version=no
6219 need_lib_prefix=no
6221 freebsd-*)
6222 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6223 need_version=yes
6225 esac
6226 shlibpath_var=LD_LIBRARY_PATH
6227 case $host_os in
6228 freebsd2*)
6229 shlibpath_overrides_runpath=yes
6231 freebsd3.01* | freebsdelf3.01*)
6232 shlibpath_overrides_runpath=yes
6233 hardcode_into_libs=yes
6235 *) # from 3.2 on
6236 shlibpath_overrides_runpath=no
6237 hardcode_into_libs=yes
6239 esac
6242 gnu*)
6243 version_type=linux
6244 need_lib_prefix=no
6245 need_version=no
6246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6247 soname_spec='${libname}${release}${shared_ext}$major'
6248 shlibpath_var=LD_LIBRARY_PATH
6249 hardcode_into_libs=yes
6252 hpux9* | hpux10* | hpux11*)
6253 # Give a soname corresponding to the major version so that dld.sl refuses to
6254 # link against other versions.
6255 version_type=sunos
6256 need_lib_prefix=no
6257 need_version=no
6258 case "$host_cpu" in
6259 ia64*)
6260 shrext='.so'
6261 hardcode_into_libs=yes
6262 dynamic_linker="$host_os dld.so"
6263 shlibpath_var=LD_LIBRARY_PATH
6264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6266 soname_spec='${libname}${release}${shared_ext}$major'
6267 if test "X$HPUX_IA64_MODE" = X32; then
6268 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6269 else
6270 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6274 hppa*64*)
6275 shrext='.sl'
6276 hardcode_into_libs=yes
6277 dynamic_linker="$host_os dld.sl"
6278 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6281 soname_spec='${libname}${release}${shared_ext}$major'
6282 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6286 shrext='.sl'
6287 dynamic_linker="$host_os dld.sl"
6288 shlibpath_var=SHLIB_PATH
6289 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6291 soname_spec='${libname}${release}${shared_ext}$major'
6293 esac
6294 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6295 postinstall_cmds='chmod 555 $lib'
6298 irix5* | irix6* | nonstopux*)
6299 case $host_os in
6300 nonstopux*) version_type=nonstopux ;;
6302 if test "$lt_cv_prog_gnu_ld" = yes; then
6303 version_type=linux
6304 else
6305 version_type=irix
6306 fi ;;
6307 esac
6308 need_lib_prefix=no
6309 need_version=no
6310 soname_spec='${libname}${release}${shared_ext}$major'
6311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6312 case $host_os in
6313 irix5* | nonstopux*)
6314 libsuff= shlibsuff=
6317 case $LD in # libtool.m4 will add one of these switches to LD
6318 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6319 libsuff= shlibsuff= libmagic=32-bit;;
6320 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6321 libsuff=32 shlibsuff=N32 libmagic=N32;;
6322 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6323 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6324 *) libsuff= shlibsuff= libmagic=never-match;;
6325 esac
6327 esac
6328 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6329 shlibpath_overrides_runpath=no
6330 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6331 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6332 hardcode_into_libs=yes
6335 # No shared lib support for Linux oldld, aout, or coff.
6336 linux*oldld* | linux*aout* | linux*coff*)
6337 dynamic_linker=no
6340 # This must be Linux ELF.
6341 linux*|k*bsd*-gnu)
6342 version_type=linux
6343 need_lib_prefix=no
6344 need_version=no
6345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6346 soname_spec='${libname}${release}${shared_ext}$major'
6347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6348 shlibpath_var=LD_LIBRARY_PATH
6349 shlibpath_overrides_runpath=no
6350 # This implies no fast_install, which is unacceptable.
6351 # Some rework will be needed to allow for fast_install
6352 # before this can be enabled.
6353 hardcode_into_libs=yes
6355 # We used to test for /lib/ld.so.1 and disable shared libraries on
6356 # powerpc, because MkLinux only supported shared libraries with the
6357 # GNU dynamic linker. Since this was broken with cross compilers,
6358 # most powerpc-linux boxes support dynamic linking these days and
6359 # people can always --disable-shared, the test was removed, and we
6360 # assume the GNU/Linux dynamic linker is in use.
6361 dynamic_linker='GNU/Linux ld.so'
6364 netbsd*)
6365 version_type=sunos
6366 need_lib_prefix=no
6367 need_version=no
6368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6371 dynamic_linker='NetBSD (a.out) ld.so'
6372 else
6373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6374 soname_spec='${libname}${release}${shared_ext}$major'
6375 dynamic_linker='NetBSD ld.elf_so'
6377 shlibpath_var=LD_LIBRARY_PATH
6378 shlibpath_overrides_runpath=yes
6379 hardcode_into_libs=yes
6382 newsos6)
6383 version_type=linux
6384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6385 shlibpath_var=LD_LIBRARY_PATH
6386 shlibpath_overrides_runpath=yes
6389 nto-qnx)
6390 version_type=linux
6391 need_lib_prefix=no
6392 need_version=no
6393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6394 soname_spec='${libname}${release}${shared_ext}$major'
6395 shlibpath_var=LD_LIBRARY_PATH
6396 shlibpath_overrides_runpath=yes
6399 openbsd*)
6400 version_type=sunos
6401 need_lib_prefix=no
6402 need_version=no
6403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6405 shlibpath_var=LD_LIBRARY_PATH
6406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6407 case $host_os in
6408 openbsd2.[89] | openbsd2.[89].*)
6409 shlibpath_overrides_runpath=no
6412 shlibpath_overrides_runpath=yes
6414 esac
6415 else
6416 shlibpath_overrides_runpath=yes
6420 os2*)
6421 libname_spec='$name'
6422 shrext=".dll"
6423 need_lib_prefix=no
6424 library_names_spec='$libname${shared_ext} $libname.a'
6425 dynamic_linker='OS/2 ld.exe'
6426 shlibpath_var=LIBPATH
6429 osf3* | osf4* | osf5*)
6430 version_type=osf
6431 need_lib_prefix=no
6432 need_version=no
6433 soname_spec='${libname}${release}${shared_ext}$major'
6434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6435 shlibpath_var=LD_LIBRARY_PATH
6436 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6437 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6440 sco3.2v5*)
6441 version_type=osf
6442 soname_spec='${libname}${release}${shared_ext}$major'
6443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6444 shlibpath_var=LD_LIBRARY_PATH
6447 solaris*)
6448 version_type=linux
6449 need_lib_prefix=no
6450 need_version=no
6451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6452 soname_spec='${libname}${release}${shared_ext}$major'
6453 shlibpath_var=LD_LIBRARY_PATH
6454 shlibpath_overrides_runpath=yes
6455 hardcode_into_libs=yes
6456 # ldd complains unless libraries are executable
6457 postinstall_cmds='chmod +x $lib'
6460 sunos4*)
6461 version_type=sunos
6462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6464 shlibpath_var=LD_LIBRARY_PATH
6465 shlibpath_overrides_runpath=yes
6466 if test "$with_gnu_ld" = yes; then
6467 need_lib_prefix=no
6469 need_version=yes
6472 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6473 version_type=linux
6474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6475 soname_spec='${libname}${release}${shared_ext}$major'
6476 shlibpath_var=LD_LIBRARY_PATH
6477 case $host_vendor in
6478 sni)
6479 shlibpath_overrides_runpath=no
6480 need_lib_prefix=no
6481 export_dynamic_flag_spec='${wl}-Blargedynsym'
6482 runpath_var=LD_RUN_PATH
6484 siemens)
6485 need_lib_prefix=no
6487 motorola)
6488 need_lib_prefix=no
6489 need_version=no
6490 shlibpath_overrides_runpath=no
6491 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6493 esac
6496 sysv4*MP*)
6497 if test -d /usr/nec ;then
6498 version_type=linux
6499 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6500 soname_spec='$libname${shared_ext}.$major'
6501 shlibpath_var=LD_LIBRARY_PATH
6505 uts4*)
6506 version_type=linux
6507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6508 soname_spec='${libname}${release}${shared_ext}$major'
6509 shlibpath_var=LD_LIBRARY_PATH
6513 dynamic_linker=no
6515 esac
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6517 $as_echo "$dynamic_linker" >&6; }
6518 test "$dynamic_linker" = no && can_build_shared=no
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6522 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6523 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 libltdl_cv_shlibpath_var="$shlibpath_var"
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6529 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6530 if test -n "$libltdl_cv_shlibpath_var"; then
6532 cat >>confdefs.h <<_ACEOF
6533 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6534 _ACEOF
6540 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6543 # Possibly build libgcj as many sub-libraries.
6544 # Check whether --enable-libgcj-sublibs was given.
6545 if test "${enable_libgcj_sublibs+set}" = set; then :
6546 enableval=$enable_libgcj_sublibs;
6550 if test -z "$enable_libgcj_sublibs"; then
6551 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6553 if test "$enable_libgcj_sublibs" = yes; then
6554 BUILD_SUBLIBS_TRUE=
6555 BUILD_SUBLIBS_FALSE='#'
6556 else
6557 BUILD_SUBLIBS_TRUE='#'
6558 BUILD_SUBLIBS_FALSE=
6561 if test "$enable_libgcj_sublibs" = yes ; then
6562 # In theory we could make do with only one override and simply
6563 # tag "_bc" onto the end of it when we use it to generate the
6564 # spec, but that's an ugly thing to do when there are multiple
6565 # words in the string and you're relying on the ordering to
6566 # append the correct one.
6567 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6568 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6572 # See if the user has requested runtime debugging.
6573 LIBGCJDEBUG="disable"
6575 # Check whether --enable-libgcj-debug was given.
6576 if test "${enable_libgcj_debug+set}" = set; then :
6577 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6579 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6581 LIBGCJDEBUG="enable"
6587 # Check whether --with-escher was given.
6588 if test "${with_escher+set}" = set; then :
6589 withval=$with_escher;
6592 case "$with_escher" in
6594 use_escher=false
6596 "no")
6597 use_escher=false
6599 "yes")
6600 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6603 use_escher=true
6605 esac
6607 # Determine which AWT peer libraries to build
6608 # Check whether --enable-java-awt was given.
6609 if test "${enable_java_awt+set}" = set; then :
6610 enableval=$enable_java_awt;
6614 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6615 use_xlib_awt=""
6616 use_gtk_awt=""
6617 use_qt_awt=""
6618 use_x_awt=""
6619 # The default toolkit to use is the first one specified.
6620 TOOLKIT=
6623 for peer in $peerlibs ; do
6624 case $peer in
6625 xlib)
6626 if test "$no_x" = yes; then
6627 echo "*** xlib peers requested but no X library available" 1>&2
6628 exit 1
6629 else
6630 use_xlib_awt="yes"
6631 if test -z "$TOOLKIT"; then
6632 TOOLKIT=gnu.awt.xlib.XToolkit
6636 gtk)
6637 if test "$no_x" = yes; then
6638 echo "*** gtk peers requested but no X library available" 1>&2
6639 exit 1
6640 else
6641 use_gtk_awt=yes
6642 if test -z "$TOOLKIT"; then
6643 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6648 if test "$no_x" = yes; then
6649 # Perhaps we should admit the possibility of embedded Qt.
6650 echo "*** Qt peers requested but no X library available" 1>&2
6651 exit 1
6652 else
6653 use_qt_awt=yes
6654 if test -z "$TOOLKIT"; then
6655 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6660 use_x_awt=yes
6661 if test -z "$TOOLKIT"; then
6662 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6666 use_xlib_awt=
6667 use_gtk_awt=
6668 use_qt_awt=
6669 use_x_awt=
6670 break
6673 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6674 exit 1
6675 esac
6676 done
6678 if test "$use_xlib_awt" = yes; then
6679 XLIB_AWT_TRUE=
6680 XLIB_AWT_FALSE='#'
6681 else
6682 XLIB_AWT_TRUE='#'
6683 XLIB_AWT_FALSE=
6686 if test "$use_x_awt" = yes; then
6687 X_AWT_TRUE=
6688 X_AWT_FALSE='#'
6689 else
6690 X_AWT_TRUE='#'
6691 X_AWT_FALSE=
6696 cat >>confdefs.h <<_ACEOF
6697 #define AWT_TOOLKIT "$TOOLKIT"
6698 _ACEOF
6701 expanded_prefix=$prefix
6702 if test "X$prefix" = XNONE; then
6703 expanded_prefix=${ac_default_prefix}
6707 cat >>confdefs.h <<_ACEOF
6708 #define LIBGCJ_PREFIX "$expanded_prefix"
6709 _ACEOF
6712 # Create standard.omit based on decisions we just made.
6713 cp $srcdir/standard.omit.in standard.omit
6714 if test "$use_xlib_awt" != yes; then
6715 echo gnu/awt/xlib >> standard.omit
6716 echo gnu/gcj/xlib >> standard.omit
6718 if test "$use_x_awt" != yes; then
6719 echo gnu/java/awt/peer/x >> standard.omit
6722 # Tools that need to be compiled against classpath's tools classes
6723 : > vm-tools-packages
6724 for package in gnu/gcj/tools/gc_analyze ; do
6725 echo $package >> standard.omit
6726 echo $package >> vm-tools-packages
6727 done
6729 if test -z "${with_multisubdir}"; then
6730 builddotdot=.
6731 else
6732 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6735 NATIVE=yes
6737 # Which gcj and host gcj (for ecjx) do we use?
6738 which_gcj=default
6739 host_exeext=${ac_exeext}
6740 GCJ_FOR_ECJX='$(GCJ)'
6741 GCC_FOR_ECJX='$(CXX)'
6742 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6743 if test -n "${with_cross_host}"; then
6744 # We are being configured with a cross compiler. We can't
6745 # use ac_exeext, because that is for the target platform.
6746 NATIVE=no
6747 cross_host_exeext=
6748 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6749 GCC_FOR_ECJX="${with_cross_host}-gcc"
6750 case "${with_cross_host}" in
6751 *mingw* | *cygwin*)
6752 cross_host_exeext=.exe
6754 esac
6755 host_exeext=${cross_host_exeext}
6756 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6757 if test x"$build_noncanonical" = x"$with_cross_host"; then
6758 # Ordinary cross (host!=target and host=build)
6759 which_gcj=built
6760 else
6761 # Canadian cross (host!=target and host!=build)
6762 which_gcj=cross
6764 else
6765 which_gcj=cross
6767 else
6768 # We are being configured with a native or crossed-native compiler
6769 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6770 if test x"$build" = x"$host"; then
6771 # True native build (host=target and host=build)
6772 which_gcj=built
6773 else
6774 # Crossed-native build (host=target and host!=build)
6775 which_gcj=cross
6777 else
6778 which_gcj=path
6781 libgcjdir=`${PWDCMD-pwd}`
6782 case $GCJ in
6783 *" -B"*)
6784 # Just in case there is a comma in the build dir, quote it for the
6785 # sed command below.
6786 case $libgcjdir in
6787 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6788 *) qlibgcjdir=$libgcjdir;;
6789 esac
6790 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6793 GCJ=$GCJ" -B$libgcjdir/"
6795 esac
6796 case "${which_gcj}" in
6797 built)
6798 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6800 cross)
6801 if test "x${with_newlib}" = "xyes"; then
6802 # FIXME (comment): Why is this needed?
6803 LIBGCC_UNWIND_INCLUDE=
6805 GCJH='$(target_noncanonical)-gcjh'
6807 path)
6808 GCJH=gcjh
6810 esac
6811 JAVAC="$GCJ -C"
6812 export JAVAC
6819 # Create it, so that compile/link tests don't fail
6820 test -f libgcj.spec || touch libgcj.spec
6824 # Set up to configure Classpath.
6825 # FIXME: no supported way to pass args in autoconf.
6826 # Disable tool wrappers to avoid ltdl.h configure check.
6827 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6828 ac_configure_args="$ac_configure_args --disable-load-library"
6829 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6830 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6831 dir1=`cd $srcdir && pwd`
6832 dir2=`pwd`
6833 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6834 ac_configure_args="$ac_configure_args --disable-core-jni"
6835 ac_configure_args="$ac_configure_args --disable-examples"
6836 ac_configure_args="$ac_configure_args --with-glibj=build"
6837 if test "$browser_plugin_enabled" != yes; then
6838 ac_configure_args="$ac_configure_args --disable-plugin"
6839 else
6840 ac_configure_args="$ac_configure_args --enable-plugin"
6842 if test "$gconf_enabled" != yes; then
6843 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6844 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6846 if test "$use_gtk_awt" != yes; then
6847 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6849 if test "$use_qt_awt" != yes; then
6850 ac_configure_args="$ac_configure_args --disable-qt-peer"
6851 else
6852 # We need this as qt is disabled by default in classpath.
6853 ac_configure_args="$ac_configure_args --enable-qt-peer"
6855 if test "$use_x_awt" != yes; then
6856 ac_configure_args="$ac_configure_args --without-escher"
6857 else
6858 # We need this as escher is disabled by default in classpath.
6859 if test "$use_escher" != true; then
6860 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6861 else
6862 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6865 if test "x$BUILD_GJDOC" = xno; then
6866 ac_configure_args="$ac_configure_args --disable-gjdoc"
6868 # -Werror causes unavoidable problems in code using alsa.
6869 ac_configure_args="$ac_configure_args --disable-regen-headers"
6870 ac_configure_args="$ac_configure_args --disable-Werror"
6872 # Only use libltdl for non-newlib builds.
6873 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6874 case $enable_ltdl_convenience in
6875 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6876 "") enable_ltdl_convenience=yes
6877 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6878 esac
6879 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6880 LTDLINCL='-I${top_srcdir}/''libltdl'
6881 # For backwards non-gettext consistent compatibility...
6882 INCLTDL="$LTDLINCL"
6884 enable_dlopen=yes
6888 DIRLTDL=libltdl
6890 $as_echo "#define USE_LTDL 1" >>confdefs.h
6892 # Sigh. Libtool's macro doesn't do the right thing.
6893 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6894 # FIXME: this is a hack.
6895 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6896 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6901 case `pwd` in
6902 *\ * | *\ *)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6904 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6905 esac
6909 macro_version='2.2.7a'
6910 macro_revision='1.3134'
6924 ltmain="$ac_aux_dir/ltmain.sh"
6926 # Backslashify metacharacters that are still active within
6927 # double-quoted strings.
6928 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6930 # Same as above, but do not quote variable references.
6931 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6933 # Sed substitution to delay expansion of an escaped shell variable in a
6934 # double_quote_subst'ed string.
6935 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6937 # Sed substitution to delay expansion of an escaped single quote.
6938 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6940 # Sed substitution to avoid accidental globbing in evaled expressions
6941 no_glob_subst='s/\*/\\\*/g'
6943 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6944 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6945 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6948 $as_echo_n "checking how to print strings... " >&6; }
6949 # Test print first, because it will be a builtin if present.
6950 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6951 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6952 ECHO='print -r --'
6953 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6954 ECHO='printf %s\n'
6955 else
6956 # Use this function as a fallback that always works.
6957 func_fallback_echo ()
6959 eval 'cat <<_LTECHO_EOF
6961 _LTECHO_EOF'
6963 ECHO='func_fallback_echo'
6966 # func_echo_all arg...
6967 # Invoke $ECHO with all args, space-separated.
6968 func_echo_all ()
6970 $ECHO ""
6973 case "$ECHO" in
6974 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6975 $as_echo "printf" >&6; } ;;
6976 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6977 $as_echo "print -r" >&6; } ;;
6978 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6979 $as_echo "cat" >&6; } ;;
6980 esac
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6996 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6997 if test "${ac_cv_path_SED+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7001 for ac_i in 1 2 3 4 5 6 7; do
7002 ac_script="$ac_script$as_nl$ac_script"
7003 done
7004 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7005 { ac_script=; unset ac_script;}
7006 if test -z "$SED"; then
7007 ac_path_SED_found=false
7008 # Loop through the user's path and test for each of PROGNAME-LIST
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_prog in sed gsed; do
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7017 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7018 # Check for GNU ac_path_SED and select it if it is found.
7019 # Check for GNU $ac_path_SED
7020 case `"$ac_path_SED" --version 2>&1` in
7021 *GNU*)
7022 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7024 ac_count=0
7025 $as_echo_n 0123456789 >"conftest.in"
7026 while :
7028 cat "conftest.in" "conftest.in" >"conftest.tmp"
7029 mv "conftest.tmp" "conftest.in"
7030 cp "conftest.in" "conftest.nl"
7031 $as_echo '' >> "conftest.nl"
7032 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7034 as_fn_arith $ac_count + 1 && ac_count=$as_val
7035 if test $ac_count -gt ${ac_path_SED_max-0}; then
7036 # Best one so far, save it but keep looking for a better one
7037 ac_cv_path_SED="$ac_path_SED"
7038 ac_path_SED_max=$ac_count
7040 # 10*(2^10) chars as input seems more than enough
7041 test $ac_count -gt 10 && break
7042 done
7043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7044 esac
7046 $ac_path_SED_found && break 3
7047 done
7048 done
7049 done
7050 IFS=$as_save_IFS
7051 if test -z "$ac_cv_path_SED"; then
7052 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7054 else
7055 ac_cv_path_SED=$SED
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7060 $as_echo "$ac_cv_path_SED" >&6; }
7061 SED="$ac_cv_path_SED"
7062 rm -f conftest.sed
7064 test -z "$SED" && SED=sed
7065 Xsed="$SED -e 1s/^X//"
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7078 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7079 if test "${ac_cv_path_GREP+set}" = set; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 if test -z "$GREP"; then
7083 ac_path_GREP_found=false
7084 # Loop through the user's path and test for each of PROGNAME-LIST
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_prog in grep ggrep; do
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7093 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7094 # Check for GNU ac_path_GREP and select it if it is found.
7095 # Check for GNU $ac_path_GREP
7096 case `"$ac_path_GREP" --version 2>&1` in
7097 *GNU*)
7098 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7100 ac_count=0
7101 $as_echo_n 0123456789 >"conftest.in"
7102 while :
7104 cat "conftest.in" "conftest.in" >"conftest.tmp"
7105 mv "conftest.tmp" "conftest.in"
7106 cp "conftest.in" "conftest.nl"
7107 $as_echo 'GREP' >> "conftest.nl"
7108 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7110 as_fn_arith $ac_count + 1 && ac_count=$as_val
7111 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7112 # Best one so far, save it but keep looking for a better one
7113 ac_cv_path_GREP="$ac_path_GREP"
7114 ac_path_GREP_max=$ac_count
7116 # 10*(2^10) chars as input seems more than enough
7117 test $ac_count -gt 10 && break
7118 done
7119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7120 esac
7122 $ac_path_GREP_found && break 3
7123 done
7124 done
7125 done
7126 IFS=$as_save_IFS
7127 if test -z "$ac_cv_path_GREP"; then
7128 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7130 else
7131 ac_cv_path_GREP=$GREP
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7136 $as_echo "$ac_cv_path_GREP" >&6; }
7137 GREP="$ac_cv_path_GREP"
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7141 $as_echo_n "checking for egrep... " >&6; }
7142 if test "${ac_cv_path_EGREP+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7146 then ac_cv_path_EGREP="$GREP -E"
7147 else
7148 if test -z "$EGREP"; then
7149 ac_path_EGREP_found=false
7150 # Loop through the user's path and test for each of PROGNAME-LIST
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_prog in egrep; do
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7159 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7160 # Check for GNU ac_path_EGREP and select it if it is found.
7161 # Check for GNU $ac_path_EGREP
7162 case `"$ac_path_EGREP" --version 2>&1` in
7163 *GNU*)
7164 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7166 ac_count=0
7167 $as_echo_n 0123456789 >"conftest.in"
7168 while :
7170 cat "conftest.in" "conftest.in" >"conftest.tmp"
7171 mv "conftest.tmp" "conftest.in"
7172 cp "conftest.in" "conftest.nl"
7173 $as_echo 'EGREP' >> "conftest.nl"
7174 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7176 as_fn_arith $ac_count + 1 && ac_count=$as_val
7177 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7178 # Best one so far, save it but keep looking for a better one
7179 ac_cv_path_EGREP="$ac_path_EGREP"
7180 ac_path_EGREP_max=$ac_count
7182 # 10*(2^10) chars as input seems more than enough
7183 test $ac_count -gt 10 && break
7184 done
7185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7186 esac
7188 $ac_path_EGREP_found && break 3
7189 done
7190 done
7191 done
7192 IFS=$as_save_IFS
7193 if test -z "$ac_cv_path_EGREP"; then
7194 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7196 else
7197 ac_cv_path_EGREP=$EGREP
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7203 $as_echo "$ac_cv_path_EGREP" >&6; }
7204 EGREP="$ac_cv_path_EGREP"
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7208 $as_echo_n "checking for fgrep... " >&6; }
7209 if test "${ac_cv_path_FGREP+set}" = set; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7213 then ac_cv_path_FGREP="$GREP -F"
7214 else
7215 if test -z "$FGREP"; then
7216 ac_path_FGREP_found=false
7217 # Loop through the user's path and test for each of PROGNAME-LIST
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_prog in fgrep; do
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7226 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7227 # Check for GNU ac_path_FGREP and select it if it is found.
7228 # Check for GNU $ac_path_FGREP
7229 case `"$ac_path_FGREP" --version 2>&1` in
7230 *GNU*)
7231 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7233 ac_count=0
7234 $as_echo_n 0123456789 >"conftest.in"
7235 while :
7237 cat "conftest.in" "conftest.in" >"conftest.tmp"
7238 mv "conftest.tmp" "conftest.in"
7239 cp "conftest.in" "conftest.nl"
7240 $as_echo 'FGREP' >> "conftest.nl"
7241 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7243 as_fn_arith $ac_count + 1 && ac_count=$as_val
7244 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7245 # Best one so far, save it but keep looking for a better one
7246 ac_cv_path_FGREP="$ac_path_FGREP"
7247 ac_path_FGREP_max=$ac_count
7249 # 10*(2^10) chars as input seems more than enough
7250 test $ac_count -gt 10 && break
7251 done
7252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7253 esac
7255 $ac_path_FGREP_found && break 3
7256 done
7257 done
7258 done
7259 IFS=$as_save_IFS
7260 if test -z "$ac_cv_path_FGREP"; then
7261 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7263 else
7264 ac_cv_path_FGREP=$FGREP
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7270 $as_echo "$ac_cv_path_FGREP" >&6; }
7271 FGREP="$ac_cv_path_FGREP"
7274 test -z "$GREP" && GREP=grep
7294 # Check whether --with-gnu-ld was given.
7295 if test "${with_gnu_ld+set}" = set; then :
7296 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7297 else
7298 with_gnu_ld=no
7301 ac_prog=ld
7302 if test "$GCC" = yes; then
7303 # Check if gcc -print-prog-name=ld gives a path.
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7305 $as_echo_n "checking for ld used by $CC... " >&6; }
7306 case $host in
7307 *-*-mingw*)
7308 # gcc leaves a trailing carriage return which upsets mingw
7309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7312 esac
7313 case $ac_prog in
7314 # Accept absolute paths.
7315 [\\/]* | ?:[\\/]*)
7316 re_direlt='/[^/][^/]*/\.\./'
7317 # Canonicalize the pathname of ld
7318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7321 done
7322 test -z "$LD" && LD="$ac_prog"
7325 # If it fails, then pretend we aren't using GCC.
7326 ac_prog=ld
7329 # If it is relative, then search for the first ld in PATH.
7330 with_gnu_ld=unknown
7332 esac
7333 elif test "$with_gnu_ld" = yes; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7335 $as_echo_n "checking for GNU ld... " >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7338 $as_echo_n "checking for non-GNU ld... " >&6; }
7340 if test "${lt_cv_path_LD+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343 if test -z "$LD"; then
7344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7345 for ac_dir in $PATH; do
7346 IFS="$lt_save_ifs"
7347 test -z "$ac_dir" && ac_dir=.
7348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7349 lt_cv_path_LD="$ac_dir/$ac_prog"
7350 # Check to see if the program is GNU ld. I'd rather use --version,
7351 # but apparently some variants of GNU ld only accept -v.
7352 # Break only if it was the GNU/non-GNU ld that we prefer.
7353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7354 *GNU* | *'with BFD'*)
7355 test "$with_gnu_ld" != no && break
7358 test "$with_gnu_ld" != yes && break
7360 esac
7362 done
7363 IFS="$lt_save_ifs"
7364 else
7365 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7369 LD="$lt_cv_path_LD"
7370 if test -n "$LD"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7372 $as_echo "$LD" >&6; }
7373 else
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7377 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7379 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7380 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7384 case `$LD -v 2>&1 </dev/null` in
7385 *GNU* | *'with BFD'*)
7386 lt_cv_prog_gnu_ld=yes
7389 lt_cv_prog_gnu_ld=no
7391 esac
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7394 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7395 with_gnu_ld=$lt_cv_prog_gnu_ld
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7406 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7407 if test "${lt_cv_path_NM+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 if test -n "$NM"; then
7411 # Let the user override the test.
7412 lt_cv_path_NM="$NM"
7413 else
7414 lt_nm_to_check="${ac_tool_prefix}nm"
7415 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7416 lt_nm_to_check="$lt_nm_to_check nm"
7418 for lt_tmp_nm in $lt_nm_to_check; do
7419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7420 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7421 IFS="$lt_save_ifs"
7422 test -z "$ac_dir" && ac_dir=.
7423 tmp_nm="$ac_dir/$lt_tmp_nm"
7424 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7425 # Check to see if the nm accepts a BSD-compat flag.
7426 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7427 # nm: unknown option "B" ignored
7428 # Tru64's nm complains that /dev/null is an invalid object file
7429 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7430 */dev/null* | *'Invalid file or object type'*)
7431 lt_cv_path_NM="$tmp_nm -B"
7432 break
7435 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7436 */dev/null*)
7437 lt_cv_path_NM="$tmp_nm -p"
7438 break
7441 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7442 continue # so that we can try to find one that supports BSD flags
7444 esac
7446 esac
7448 done
7449 IFS="$lt_save_ifs"
7450 done
7451 : ${lt_cv_path_NM=no}
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7455 $as_echo "$lt_cv_path_NM" >&6; }
7456 if test "$lt_cv_path_NM" != "no"; then
7457 NM="$lt_cv_path_NM"
7458 else
7459 # Didn't find any BSD compatible name lister, look for dumpbin.
7460 if test -n "$DUMPBIN"; then :
7461 # Let the user override the test.
7462 else
7463 if test -n "$ac_tool_prefix"; then
7464 for ac_prog in dumpbin "link -dump"
7466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$DUMPBIN"; then
7474 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7487 done
7488 done
7489 IFS=$as_save_IFS
7493 DUMPBIN=$ac_cv_prog_DUMPBIN
7494 if test -n "$DUMPBIN"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7496 $as_echo "$DUMPBIN" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7503 test -n "$DUMPBIN" && break
7504 done
7506 if test -z "$DUMPBIN"; then
7507 ac_ct_DUMPBIN=$DUMPBIN
7508 for ac_prog in dumpbin "link -dump"
7510 # Extract the first word of "$ac_prog", so it can be a program name with args.
7511 set dummy $ac_prog; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 if test -n "$ac_ct_DUMPBIN"; then
7518 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 break 2
7531 done
7532 done
7533 IFS=$as_save_IFS
7537 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7538 if test -n "$ac_ct_DUMPBIN"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7540 $as_echo "$ac_ct_DUMPBIN" >&6; }
7541 else
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7547 test -n "$ac_ct_DUMPBIN" && break
7548 done
7550 if test "x$ac_ct_DUMPBIN" = x; then
7551 DUMPBIN=":"
7552 else
7553 case $cross_compiling:$ac_tool_warned in
7554 yes:)
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7558 esac
7559 DUMPBIN=$ac_ct_DUMPBIN
7563 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7564 *COFF*)
7565 DUMPBIN="$DUMPBIN -symbols"
7568 DUMPBIN=:
7570 esac
7573 if test "$DUMPBIN" != ":"; then
7574 NM="$DUMPBIN"
7577 test -z "$NM" && NM=nm
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7585 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7586 if test "${lt_cv_nm_interface+set}" = set; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 lt_cv_nm_interface="BSD nm"
7590 echo "int some_variable = 0;" > conftest.$ac_ext
7591 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7592 (eval "$ac_compile" 2>conftest.err)
7593 cat conftest.err >&5
7594 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7595 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7596 cat conftest.err >&5
7597 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7598 cat conftest.out >&5
7599 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7600 lt_cv_nm_interface="MS dumpbin"
7602 rm -f conftest*
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7605 $as_echo "$lt_cv_nm_interface" >&6; }
7607 # find the maximum length of command line arguments
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7609 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7610 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7614 teststring="ABCD"
7616 case $build_os in
7617 msdosdjgpp*)
7618 # On DJGPP, this test can blow up pretty badly due to problems in libc
7619 # (any single argument exceeding 2000 bytes causes a buffer overrun
7620 # during glob expansion). Even if it were fixed, the result of this
7621 # check would be larger than it should be.
7622 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7625 gnu*)
7626 # Under GNU Hurd, this test is not required because there is
7627 # no limit to the length of command line arguments.
7628 # Libtool will interpret -1 as no limit whatsoever
7629 lt_cv_sys_max_cmd_len=-1;
7632 cygwin* | mingw* | cegcc*)
7633 # On Win9x/ME, this test blows up -- it succeeds, but takes
7634 # about 5 minutes as the teststring grows exponentially.
7635 # Worse, since 9x/ME are not pre-emptively multitasking,
7636 # you end up with a "frozen" computer, even though with patience
7637 # the test eventually succeeds (with a max line length of 256k).
7638 # Instead, let's just punt: use the minimum linelength reported by
7639 # all of the supported platforms: 8192 (on NT/2K/XP).
7640 lt_cv_sys_max_cmd_len=8192;
7643 mint*)
7644 # On MiNT this can take a long time and run out of memory.
7645 lt_cv_sys_max_cmd_len=8192;
7648 amigaos*)
7649 # On AmigaOS with pdksh, this test takes hours, literally.
7650 # So we just punt and use a minimum line length of 8192.
7651 lt_cv_sys_max_cmd_len=8192;
7654 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7655 # This has been around since 386BSD, at least. Likely further.
7656 if test -x /sbin/sysctl; then
7657 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7658 elif test -x /usr/sbin/sysctl; then
7659 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7660 else
7661 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7663 # And add a safety zone
7664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7668 interix*)
7669 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7670 lt_cv_sys_max_cmd_len=196608
7673 osf*)
7674 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7675 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7676 # nice to cause kernel panics so lets avoid the loop below.
7677 # First set a reasonable default.
7678 lt_cv_sys_max_cmd_len=16384
7680 if test -x /sbin/sysconfig; then
7681 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7682 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7683 esac
7686 sco3.2v5*)
7687 lt_cv_sys_max_cmd_len=102400
7689 sysv5* | sco5v6* | sysv4.2uw2*)
7690 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7691 if test -n "$kargmax"; then
7692 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7693 else
7694 lt_cv_sys_max_cmd_len=32768
7698 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7699 if test -n "$lt_cv_sys_max_cmd_len"; then
7700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7702 else
7703 # Make teststring a little bigger before we do anything with it.
7704 # a 1K string should be a reasonable start.
7705 for i in 1 2 3 4 5 6 7 8 ; do
7706 teststring=$teststring$teststring
7707 done
7708 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7709 # If test is not a shell built-in, we'll probably end up computing a
7710 # maximum length that is only half of the actual maximum length, but
7711 # we can't tell.
7712 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7713 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7714 test $i != 17 # 1/2 MB should be enough
7716 i=`expr $i + 1`
7717 teststring=$teststring$teststring
7718 done
7719 # Only check the string length outside the loop.
7720 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7721 teststring=
7722 # Add a significant safety factor because C++ compilers can tack on
7723 # massive amounts of additional arguments before passing them to the
7724 # linker. It appears as though 1/2 is a usable value.
7725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7728 esac
7732 if test -n $lt_cv_sys_max_cmd_len ; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7734 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7737 $as_echo "none" >&6; }
7739 max_cmd_len=$lt_cv_sys_max_cmd_len
7746 : ${CP="cp -f"}
7747 : ${MV="mv -f"}
7748 : ${RM="rm -f"}
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7751 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7752 # Try some XSI features
7753 xsi_shell=no
7754 ( _lt_dummy="a/b/c"
7755 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7756 = c,a/b,, \
7757 && eval 'test $(( 1 + 1 )) -eq 2 \
7758 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7759 && xsi_shell=yes
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7761 $as_echo "$xsi_shell" >&6; }
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7765 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7766 lt_shell_append=no
7767 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7768 >/dev/null 2>&1 \
7769 && lt_shell_append=yes
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7771 $as_echo "$lt_shell_append" >&6; }
7774 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7775 lt_unset=unset
7776 else
7777 lt_unset=false
7784 # test EBCDIC or ASCII
7785 case `echo X|tr X '\101'` in
7786 A) # ASCII based system
7787 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7788 lt_SP2NL='tr \040 \012'
7789 lt_NL2SP='tr \015\012 \040\040'
7791 *) # EBCDIC based system
7792 lt_SP2NL='tr \100 \n'
7793 lt_NL2SP='tr \r\n \100\100'
7795 esac
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7806 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7807 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 lt_cv_ld_reload_flag='-r'
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7813 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7814 reload_flag=$lt_cv_ld_reload_flag
7815 case $reload_flag in
7816 "" | " "*) ;;
7817 *) reload_flag=" $reload_flag" ;;
7818 esac
7819 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7820 case $host_os in
7821 darwin*)
7822 if test "$GCC" = yes; then
7823 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7824 else
7825 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7828 esac
7838 if test -n "$ac_tool_prefix"; then
7839 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7840 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 if test -n "$OBJDUMP"; then
7847 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7848 else
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7860 done
7861 done
7862 IFS=$as_save_IFS
7866 OBJDUMP=$ac_cv_prog_OBJDUMP
7867 if test -n "$OBJDUMP"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7869 $as_echo "$OBJDUMP" >&6; }
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7877 if test -z "$ac_cv_prog_OBJDUMP"; then
7878 ac_ct_OBJDUMP=$OBJDUMP
7879 # Extract the first word of "objdump", so it can be a program name with args.
7880 set dummy objdump; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 if test -n "$ac_ct_OBJDUMP"; then
7887 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 break 2
7900 done
7901 done
7902 IFS=$as_save_IFS
7906 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7907 if test -n "$ac_ct_OBJDUMP"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7909 $as_echo "$ac_ct_OBJDUMP" >&6; }
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7915 if test "x$ac_ct_OBJDUMP" = x; then
7916 OBJDUMP="false"
7917 else
7918 case $cross_compiling:$ac_tool_warned in
7919 yes:)
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7922 ac_tool_warned=yes ;;
7923 esac
7924 OBJDUMP=$ac_ct_OBJDUMP
7926 else
7927 OBJDUMP="$ac_cv_prog_OBJDUMP"
7930 test -z "$OBJDUMP" && OBJDUMP=objdump
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7941 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7942 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 lt_cv_file_magic_cmd='$MAGIC_CMD'
7946 lt_cv_file_magic_test_file=
7947 lt_cv_deplibs_check_method='unknown'
7948 # Need to set the preceding variable on all platforms that support
7949 # interlibrary dependencies.
7950 # 'none' -- dependencies not supported.
7951 # `unknown' -- same as none, but documents that we really don't know.
7952 # 'pass_all' -- all dependencies passed with no checks.
7953 # 'test_compile' -- check by making test program.
7954 # 'file_magic [[regex]]' -- check by looking for files in library path
7955 # which responds to the $file_magic_cmd with a given extended regex.
7956 # If you have `file' or equivalent on your system and you're not sure
7957 # whether `pass_all' will *always* work, you probably want this one.
7959 case $host_os in
7960 aix[4-9]*)
7961 lt_cv_deplibs_check_method=pass_all
7964 beos*)
7965 lt_cv_deplibs_check_method=pass_all
7968 bsdi[45]*)
7969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7970 lt_cv_file_magic_cmd='/usr/bin/file -L'
7971 lt_cv_file_magic_test_file=/shlib/libc.so
7974 cygwin*)
7975 # func_win32_libid is a shell function defined in ltmain.sh
7976 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7977 lt_cv_file_magic_cmd='func_win32_libid'
7980 mingw* | pw32*)
7981 # Base MSYS/MinGW do not provide the 'file' command needed by
7982 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7983 # unless we find 'file', for example because we are cross-compiling.
7984 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7985 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7987 lt_cv_file_magic_cmd='func_win32_libid'
7988 else
7989 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7990 lt_cv_file_magic_cmd='$OBJDUMP -f'
7994 cegcc*)
7995 # use the weaker test based on 'objdump'. See mingw*.
7996 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7997 lt_cv_file_magic_cmd='$OBJDUMP -f'
8000 darwin* | rhapsody*)
8001 lt_cv_deplibs_check_method=pass_all
8004 freebsd* | dragonfly*)
8005 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8006 case $host_cpu in
8007 i*86 )
8008 # Not sure whether the presence of OpenBSD here was a mistake.
8009 # Let's accept both of them until this is cleared up.
8010 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8011 lt_cv_file_magic_cmd=/usr/bin/file
8012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8014 esac
8015 else
8016 lt_cv_deplibs_check_method=pass_all
8020 gnu*)
8021 lt_cv_deplibs_check_method=pass_all
8024 haiku*)
8025 lt_cv_deplibs_check_method=pass_all
8028 hpux10.20* | hpux11*)
8029 lt_cv_file_magic_cmd=/usr/bin/file
8030 case $host_cpu in
8031 ia64*)
8032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8033 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8035 hppa*64*)
8036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8037 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8043 esac
8046 interix[3-9]*)
8047 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8051 irix5* | irix6* | nonstopux*)
8052 case $LD in
8053 *-32|*"-32 ") libmagic=32-bit;;
8054 *-n32|*"-n32 ") libmagic=N32;;
8055 *-64|*"-64 ") libmagic=64-bit;;
8056 *) libmagic=never-match;;
8057 esac
8058 lt_cv_deplibs_check_method=pass_all
8061 # This must be Linux ELF.
8062 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8063 lt_cv_deplibs_check_method=pass_all
8066 netbsd*)
8067 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8069 else
8070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8074 newos6*)
8075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8076 lt_cv_file_magic_cmd=/usr/bin/file
8077 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8080 *nto* | *qnx*)
8081 lt_cv_deplibs_check_method=pass_all
8084 openbsd*)
8085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8087 else
8088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8092 osf3* | osf4* | osf5*)
8093 lt_cv_deplibs_check_method=pass_all
8096 rdos*)
8097 lt_cv_deplibs_check_method=pass_all
8100 solaris*)
8101 lt_cv_deplibs_check_method=pass_all
8104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8105 lt_cv_deplibs_check_method=pass_all
8108 sysv4 | sysv4.3*)
8109 case $host_vendor in
8110 motorola)
8111 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]'
8112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8114 ncr)
8115 lt_cv_deplibs_check_method=pass_all
8117 sequent)
8118 lt_cv_file_magic_cmd='/bin/file'
8119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8121 sni)
8122 lt_cv_file_magic_cmd='/bin/file'
8123 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8124 lt_cv_file_magic_test_file=/lib/libc.so
8126 siemens)
8127 lt_cv_deplibs_check_method=pass_all
8130 lt_cv_deplibs_check_method=pass_all
8132 esac
8135 tpf*)
8136 lt_cv_deplibs_check_method=pass_all
8138 esac
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8142 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8143 file_magic_cmd=$lt_cv_file_magic_cmd
8144 deplibs_check_method=$lt_cv_deplibs_check_method
8145 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8158 if test -n "$ac_tool_prefix"; then
8159 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8160 set dummy ${ac_tool_prefix}ar; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if test "${ac_cv_prog_AR+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 if test -n "$AR"; then
8167 ac_cv_prog_AR="$AR" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_prog_AR="${ac_tool_prefix}ar"
8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8180 done
8181 done
8182 IFS=$as_save_IFS
8186 AR=$ac_cv_prog_AR
8187 if test -n "$AR"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8189 $as_echo "$AR" >&6; }
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8197 if test -z "$ac_cv_prog_AR"; then
8198 ac_ct_AR=$AR
8199 # Extract the first word of "ar", so it can be a program name with args.
8200 set dummy ar; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$ac_ct_AR"; then
8207 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_prog_ac_ct_AR="ar"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8220 done
8221 done
8222 IFS=$as_save_IFS
8226 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8227 if test -n "$ac_ct_AR"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8229 $as_echo "$ac_ct_AR" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8235 if test "x$ac_ct_AR" = x; then
8236 AR="false"
8237 else
8238 case $cross_compiling:$ac_tool_warned in
8239 yes:)
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8242 ac_tool_warned=yes ;;
8243 esac
8244 AR=$ac_ct_AR
8246 else
8247 AR="$ac_cv_prog_AR"
8250 test -z "$AR" && AR=ar
8251 test -z "$AR_FLAGS" && AR_FLAGS=cru
8263 if test -n "$ac_tool_prefix"; then
8264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8265 set dummy ${ac_tool_prefix}strip; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if test "${ac_cv_prog_STRIP+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 if test -n "$STRIP"; then
8272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8285 done
8286 done
8287 IFS=$as_save_IFS
8291 STRIP=$ac_cv_prog_STRIP
8292 if test -n "$STRIP"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8294 $as_echo "$STRIP" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8302 if test -z "$ac_cv_prog_STRIP"; then
8303 ac_ct_STRIP=$STRIP
8304 # Extract the first word of "strip", so it can be a program name with args.
8305 set dummy strip; ac_word=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 if test -n "$ac_ct_STRIP"; then
8312 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8313 else
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
8319 for ac_exec_ext in '' $ac_executable_extensions; do
8320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8321 ac_cv_prog_ac_ct_STRIP="strip"
8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 break 2
8325 done
8326 done
8327 IFS=$as_save_IFS
8331 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8332 if test -n "$ac_ct_STRIP"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8334 $as_echo "$ac_ct_STRIP" >&6; }
8335 else
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8340 if test "x$ac_ct_STRIP" = x; then
8341 STRIP=":"
8342 else
8343 case $cross_compiling:$ac_tool_warned in
8344 yes:)
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8347 ac_tool_warned=yes ;;
8348 esac
8349 STRIP=$ac_ct_STRIP
8351 else
8352 STRIP="$ac_cv_prog_STRIP"
8355 test -z "$STRIP" && STRIP=:
8362 if test -n "$ac_tool_prefix"; then
8363 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8364 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 if test -n "$RANLIB"; then
8371 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8380 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8384 done
8385 done
8386 IFS=$as_save_IFS
8390 RANLIB=$ac_cv_prog_RANLIB
8391 if test -n "$RANLIB"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8393 $as_echo "$RANLIB" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8401 if test -z "$ac_cv_prog_RANLIB"; then
8402 ac_ct_RANLIB=$RANLIB
8403 # Extract the first word of "ranlib", so it can be a program name with args.
8404 set dummy ranlib; ac_word=$2
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406 $as_echo_n "checking for $ac_word... " >&6; }
8407 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 if test -n "$ac_ct_RANLIB"; then
8411 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8412 else
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8420 ac_cv_prog_ac_ct_RANLIB="ranlib"
8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8424 done
8425 done
8426 IFS=$as_save_IFS
8430 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8431 if test -n "$ac_ct_RANLIB"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8433 $as_echo "$ac_ct_RANLIB" >&6; }
8434 else
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8439 if test "x$ac_ct_RANLIB" = x; then
8440 RANLIB=":"
8441 else
8442 case $cross_compiling:$ac_tool_warned in
8443 yes:)
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8446 ac_tool_warned=yes ;;
8447 esac
8448 RANLIB=$ac_ct_RANLIB
8450 else
8451 RANLIB="$ac_cv_prog_RANLIB"
8454 test -z "$RANLIB" && RANLIB=:
8461 # Determine commands to create old-style static archives.
8462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8463 old_postinstall_cmds='chmod 644 $oldlib'
8464 old_postuninstall_cmds=
8466 if test -n "$RANLIB"; then
8467 case $host_os in
8468 openbsd*)
8469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8472 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8474 esac
8475 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8478 case $host_os in
8479 darwin*)
8480 lock_old_archive_extraction=yes ;;
8482 lock_old_archive_extraction=no ;;
8483 esac
8523 # If no C compiler was specified, use CC.
8524 LTCC=${LTCC-"$CC"}
8526 # If no C compiler flags were specified, use CFLAGS.
8527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8529 # Allow CC to be a program name with arguments.
8530 compiler=$CC
8533 # Check for command to grab the raw symbol name followed by C symbol from nm.
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8535 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8536 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8540 # These are sane defaults that work on at least a few old systems.
8541 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8543 # Character class describing NM global symbol codes.
8544 symcode='[BCDEGRST]'
8546 # Regexp to match symbols that can be accessed directly from C.
8547 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8549 # Define system-specific variables.
8550 case $host_os in
8551 aix*)
8552 symcode='[BCDT]'
8554 cygwin* | mingw* | pw32* | cegcc*)
8555 symcode='[ABCDGISTW]'
8557 hpux*)
8558 if test "$host_cpu" = ia64; then
8559 symcode='[ABCDEGRST]'
8562 irix* | nonstopux*)
8563 symcode='[BCDEGRST]'
8565 osf*)
8566 symcode='[BCDEGQRST]'
8568 solaris*)
8569 symcode='[BDRT]'
8571 sco3.2v5*)
8572 symcode='[DT]'
8574 sysv4.2uw2*)
8575 symcode='[DT]'
8577 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8578 symcode='[ABDT]'
8580 sysv4)
8581 symcode='[DFNSTU]'
8583 esac
8585 # If we're using GNU nm, then use its standard symbol codes.
8586 case `$NM -V 2>&1` in
8587 *GNU* | *'with BFD'*)
8588 symcode='[ABCDGIRSTW]' ;;
8589 esac
8591 # Transform an extracted symbol line into a proper C declaration.
8592 # Some systems (esp. on ia64) link data and code symbols differently,
8593 # so use this general approach.
8594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8596 # Transform an extracted symbol line into symbol name and symbol address
8597 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8598 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8600 # Handle CRLF in mingw tool chain
8601 opt_cr=
8602 case $build_os in
8603 mingw*)
8604 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8606 esac
8608 # Try without a prefix underscore, then with it.
8609 for ac_symprfx in "" "_"; do
8611 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8612 symxfrm="\\1 $ac_symprfx\\2 \\2"
8614 # Write the raw and C identifiers.
8615 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8616 # Fake it for dumpbin and say T for any non-static function
8617 # and D for any global variable.
8618 # Also find C++ and __fastcall symbols from MSVC++,
8619 # which start with @ or ?.
8620 lt_cv_sys_global_symbol_pipe="$AWK '"\
8621 " {last_section=section; section=\$ 3};"\
8622 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8623 " \$ 0!~/External *\|/{next};"\
8624 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8625 " {if(hide[section]) next};"\
8626 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8627 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8628 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8629 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8630 " ' prfx=^$ac_symprfx"
8631 else
8632 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8635 # Check to see that the pipe works correctly.
8636 pipe_works=no
8638 rm -f conftest*
8639 cat > conftest.$ac_ext <<_LT_EOF
8640 #ifdef __cplusplus
8641 extern "C" {
8642 #endif
8643 char nm_test_var;
8644 void nm_test_func(void);
8645 void nm_test_func(void){}
8646 #ifdef __cplusplus
8648 #endif
8649 int main(){nm_test_var='a';nm_test_func();return(0);}
8650 _LT_EOF
8652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8653 (eval $ac_compile) 2>&5
8654 ac_status=$?
8655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8656 test $ac_status = 0; }; then
8657 # Now try to grab the symbols.
8658 nlist=conftest.nm
8659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8660 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8661 ac_status=$?
8662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8663 test $ac_status = 0; } && test -s "$nlist"; then
8664 # Try sorting and uniquifying the output.
8665 if sort "$nlist" | uniq > "$nlist"T; then
8666 mv -f "$nlist"T "$nlist"
8667 else
8668 rm -f "$nlist"T
8671 # Make sure that we snagged all the symbols we need.
8672 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8673 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8674 cat <<_LT_EOF > conftest.$ac_ext
8675 #ifdef __cplusplus
8676 extern "C" {
8677 #endif
8679 _LT_EOF
8680 # Now generate the symbol file.
8681 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8683 cat <<_LT_EOF >> conftest.$ac_ext
8685 /* The mapping between symbol names and symbols. */
8686 const struct {
8687 const char *name;
8688 void *address;
8690 lt__PROGRAM__LTX_preloaded_symbols[] =
8692 { "@PROGRAM@", (void *) 0 },
8693 _LT_EOF
8694 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8695 cat <<\_LT_EOF >> conftest.$ac_ext
8696 {0, (void *) 0}
8699 /* This works around a problem in FreeBSD linker */
8700 #ifdef FREEBSD_WORKAROUND
8701 static const void *lt_preloaded_setup() {
8702 return lt__PROGRAM__LTX_preloaded_symbols;
8704 #endif
8706 #ifdef __cplusplus
8708 #endif
8709 _LT_EOF
8710 # Now try linking the two files.
8711 mv conftest.$ac_objext conftstm.$ac_objext
8712 lt_save_LIBS="$LIBS"
8713 lt_save_CFLAGS="$CFLAGS"
8714 LIBS="conftstm.$ac_objext"
8715 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8717 (eval $ac_link) 2>&5
8718 ac_status=$?
8719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8720 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8721 pipe_works=yes
8723 LIBS="$lt_save_LIBS"
8724 CFLAGS="$lt_save_CFLAGS"
8725 else
8726 echo "cannot find nm_test_func in $nlist" >&5
8728 else
8729 echo "cannot find nm_test_var in $nlist" >&5
8731 else
8732 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8734 else
8735 echo "$progname: failed program was:" >&5
8736 cat conftest.$ac_ext >&5
8738 rm -rf conftest* conftst*
8740 # Do not use the global_symbol_pipe unless it works.
8741 if test "$pipe_works" = yes; then
8742 break
8743 else
8744 lt_cv_sys_global_symbol_pipe=
8746 done
8750 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8751 lt_cv_sys_global_symbol_to_cdecl=
8753 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8755 $as_echo "failed" >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8758 $as_echo "ok" >&6; }
8783 # Check whether --enable-libtool-lock was given.
8784 if test "${enable_libtool_lock+set}" = set; then :
8785 enableval=$enable_libtool_lock;
8788 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8790 # Some flags need to be propagated to the compiler or linker for good
8791 # libtool support.
8792 case $host in
8793 ia64-*-hpux*)
8794 # Find out which ABI we are using.
8795 echo 'int i;' > conftest.$ac_ext
8796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8797 (eval $ac_compile) 2>&5
8798 ac_status=$?
8799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8800 test $ac_status = 0; }; then
8801 case `/usr/bin/file conftest.$ac_objext` in
8802 *ELF-32*)
8803 HPUX_IA64_MODE="32"
8805 *ELF-64*)
8806 HPUX_IA64_MODE="64"
8808 esac
8810 rm -rf conftest*
8812 *-*-irix6*)
8813 # Find out which ABI we are using.
8814 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8816 (eval $ac_compile) 2>&5
8817 ac_status=$?
8818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8819 test $ac_status = 0; }; then
8820 if test "$lt_cv_prog_gnu_ld" = yes; then
8821 case `/usr/bin/file conftest.$ac_objext` in
8822 *32-bit*)
8823 LD="${LD-ld} -melf32bsmip"
8825 *N32*)
8826 LD="${LD-ld} -melf32bmipn32"
8828 *64-bit*)
8829 LD="${LD-ld} -melf64bmip"
8831 esac
8832 else
8833 case `/usr/bin/file conftest.$ac_objext` in
8834 *32-bit*)
8835 LD="${LD-ld} -32"
8837 *N32*)
8838 LD="${LD-ld} -n32"
8840 *64-bit*)
8841 LD="${LD-ld} -64"
8843 esac
8846 rm -rf conftest*
8849 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8850 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8851 # Find out which ABI we are using.
8852 echo 'int i;' > conftest.$ac_ext
8853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8854 (eval $ac_compile) 2>&5
8855 ac_status=$?
8856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8857 test $ac_status = 0; }; then
8858 case `/usr/bin/file conftest.o` in
8859 *32-bit*)
8860 case $host in
8861 x86_64-*kfreebsd*-gnu)
8862 LD="${LD-ld} -m elf_i386_fbsd"
8864 x86_64-*linux*)
8865 case `/usr/bin/file conftest.o` in
8866 *x86-64*)
8867 LD="${LD-ld} -m elf32_x86_64"
8870 LD="${LD-ld} -m elf_i386"
8872 esac
8874 powerpc64le-*linux*)
8875 LD="${LD-ld} -m elf32lppclinux"
8877 powerpc64-*linux*)
8878 LD="${LD-ld} -m elf32ppclinux"
8880 s390x-*linux*)
8881 LD="${LD-ld} -m elf_s390"
8883 sparc64-*linux*)
8884 LD="${LD-ld} -m elf32_sparc"
8886 esac
8888 *64-bit*)
8889 case $host in
8890 x86_64-*kfreebsd*-gnu)
8891 LD="${LD-ld} -m elf_x86_64_fbsd"
8893 x86_64-*linux*)
8894 LD="${LD-ld} -m elf_x86_64"
8896 powerpcle-*linux*)
8897 LD="${LD-ld} -m elf64lppc"
8899 powerpc-*linux*)
8900 LD="${LD-ld} -m elf64ppc"
8902 s390*-*linux*|s390*-*tpf*)
8903 LD="${LD-ld} -m elf64_s390"
8905 sparc*-*linux*)
8906 LD="${LD-ld} -m elf64_sparc"
8908 esac
8910 esac
8912 rm -rf conftest*
8915 *-*-sco3.2v5*)
8916 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8917 SAVE_CFLAGS="$CFLAGS"
8918 CFLAGS="$CFLAGS -belf"
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8920 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8921 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 ac_ext=c
8925 ac_cpp='$CPP $CPPFLAGS'
8926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8930 if test x$gcc_no_link = xyes; then
8931 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8937 main ()
8941 return 0;
8943 _ACEOF
8944 if ac_fn_c_try_link "$LINENO"; then :
8945 lt_cv_cc_needs_belf=yes
8946 else
8947 lt_cv_cc_needs_belf=no
8949 rm -f core conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 ac_ext=c
8952 ac_cpp='$CPP $CPPFLAGS'
8953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8959 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8960 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8961 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8962 CFLAGS="$SAVE_CFLAGS"
8965 sparc*-*solaris*)
8966 # Find out which ABI we are using.
8967 echo 'int i;' > conftest.$ac_ext
8968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8969 (eval $ac_compile) 2>&5
8970 ac_status=$?
8971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8972 test $ac_status = 0; }; then
8973 case `/usr/bin/file conftest.o` in
8974 *64-bit*)
8975 case $lt_cv_prog_gnu_ld in
8976 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8978 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8979 LD="${LD-ld} -64"
8982 esac
8984 esac
8986 rm -rf conftest*
8988 esac
8990 need_locks="$enable_libtool_lock"
8993 case $host_os in
8994 rhapsody* | darwin*)
8995 if test -n "$ac_tool_prefix"; then
8996 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8997 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999 $as_echo_n "checking for $ac_word... " >&6; }
9000 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 if test -n "$DSYMUTIL"; then
9004 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9005 else
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007 for as_dir in $PATH
9009 IFS=$as_save_IFS
9010 test -z "$as_dir" && as_dir=.
9011 for ac_exec_ext in '' $ac_executable_extensions; do
9012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9013 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 break 2
9017 done
9018 done
9019 IFS=$as_save_IFS
9023 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9024 if test -n "$DSYMUTIL"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9026 $as_echo "$DSYMUTIL" >&6; }
9027 else
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029 $as_echo "no" >&6; }
9034 if test -z "$ac_cv_prog_DSYMUTIL"; then
9035 ac_ct_DSYMUTIL=$DSYMUTIL
9036 # Extract the first word of "dsymutil", so it can be a program name with args.
9037 set dummy dsymutil; ac_word=$2
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039 $as_echo_n "checking for $ac_word... " >&6; }
9040 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 if test -n "$ac_ct_DSYMUTIL"; then
9044 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9045 else
9046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047 for as_dir in $PATH
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9053 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 break 2
9057 done
9058 done
9059 IFS=$as_save_IFS
9063 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9064 if test -n "$ac_ct_DSYMUTIL"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9066 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9067 else
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 $as_echo "no" >&6; }
9072 if test "x$ac_ct_DSYMUTIL" = x; then
9073 DSYMUTIL=":"
9074 else
9075 case $cross_compiling:$ac_tool_warned in
9076 yes:)
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9079 ac_tool_warned=yes ;;
9080 esac
9081 DSYMUTIL=$ac_ct_DSYMUTIL
9083 else
9084 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9087 if test -n "$ac_tool_prefix"; then
9088 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9089 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091 $as_echo_n "checking for $ac_word... " >&6; }
9092 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 if test -n "$NMEDIT"; then
9096 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9097 else
9098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099 for as_dir in $PATH
9101 IFS=$as_save_IFS
9102 test -z "$as_dir" && as_dir=.
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9105 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 break 2
9109 done
9110 done
9111 IFS=$as_save_IFS
9115 NMEDIT=$ac_cv_prog_NMEDIT
9116 if test -n "$NMEDIT"; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9118 $as_echo "$NMEDIT" >&6; }
9119 else
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 $as_echo "no" >&6; }
9126 if test -z "$ac_cv_prog_NMEDIT"; then
9127 ac_ct_NMEDIT=$NMEDIT
9128 # Extract the first word of "nmedit", so it can be a program name with args.
9129 set dummy nmedit; ac_word=$2
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131 $as_echo_n "checking for $ac_word... " >&6; }
9132 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 if test -n "$ac_ct_NMEDIT"; then
9136 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9137 else
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9141 IFS=$as_save_IFS
9142 test -z "$as_dir" && as_dir=.
9143 for ac_exec_ext in '' $ac_executable_extensions; do
9144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9145 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 break 2
9149 done
9150 done
9151 IFS=$as_save_IFS
9155 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9156 if test -n "$ac_ct_NMEDIT"; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9158 $as_echo "$ac_ct_NMEDIT" >&6; }
9159 else
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 $as_echo "no" >&6; }
9164 if test "x$ac_ct_NMEDIT" = x; then
9165 NMEDIT=":"
9166 else
9167 case $cross_compiling:$ac_tool_warned in
9168 yes:)
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9171 ac_tool_warned=yes ;;
9172 esac
9173 NMEDIT=$ac_ct_NMEDIT
9175 else
9176 NMEDIT="$ac_cv_prog_NMEDIT"
9179 if test -n "$ac_tool_prefix"; then
9180 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9181 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if test "${ac_cv_prog_LIPO+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 if test -n "$LIPO"; then
9188 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9189 else
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH
9193 IFS=$as_save_IFS
9194 test -z "$as_dir" && as_dir=.
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9197 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199 break 2
9201 done
9202 done
9203 IFS=$as_save_IFS
9207 LIPO=$ac_cv_prog_LIPO
9208 if test -n "$LIPO"; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9210 $as_echo "$LIPO" >&6; }
9211 else
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 $as_echo "no" >&6; }
9218 if test -z "$ac_cv_prog_LIPO"; then
9219 ac_ct_LIPO=$LIPO
9220 # Extract the first word of "lipo", so it can be a program name with args.
9221 set dummy lipo; ac_word=$2
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9223 $as_echo_n "checking for $ac_word... " >&6; }
9224 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 if test -n "$ac_ct_LIPO"; then
9228 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9229 else
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 for as_dir in $PATH
9233 IFS=$as_save_IFS
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9237 ac_cv_prog_ac_ct_LIPO="lipo"
9238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 break 2
9241 done
9242 done
9243 IFS=$as_save_IFS
9247 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9248 if test -n "$ac_ct_LIPO"; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9250 $as_echo "$ac_ct_LIPO" >&6; }
9251 else
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9256 if test "x$ac_ct_LIPO" = x; then
9257 LIPO=":"
9258 else
9259 case $cross_compiling:$ac_tool_warned in
9260 yes:)
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9263 ac_tool_warned=yes ;;
9264 esac
9265 LIPO=$ac_ct_LIPO
9267 else
9268 LIPO="$ac_cv_prog_LIPO"
9271 if test -n "$ac_tool_prefix"; then
9272 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9273 set dummy ${ac_tool_prefix}otool; ac_word=$2
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9275 $as_echo_n "checking for $ac_word... " >&6; }
9276 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 if test -n "$OTOOL"; then
9280 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9281 else
9282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283 for as_dir in $PATH
9285 IFS=$as_save_IFS
9286 test -z "$as_dir" && as_dir=.
9287 for ac_exec_ext in '' $ac_executable_extensions; do
9288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9289 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9291 break 2
9293 done
9294 done
9295 IFS=$as_save_IFS
9299 OTOOL=$ac_cv_prog_OTOOL
9300 if test -n "$OTOOL"; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9302 $as_echo "$OTOOL" >&6; }
9303 else
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9310 if test -z "$ac_cv_prog_OTOOL"; then
9311 ac_ct_OTOOL=$OTOOL
9312 # Extract the first word of "otool", so it can be a program name with args.
9313 set dummy otool; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 if test -n "$ac_ct_OTOOL"; then
9320 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9321 else
9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH
9325 IFS=$as_save_IFS
9326 test -z "$as_dir" && as_dir=.
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9329 ac_cv_prog_ac_ct_OTOOL="otool"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 break 2
9333 done
9334 done
9335 IFS=$as_save_IFS
9339 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9340 if test -n "$ac_ct_OTOOL"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9342 $as_echo "$ac_ct_OTOOL" >&6; }
9343 else
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 $as_echo "no" >&6; }
9348 if test "x$ac_ct_OTOOL" = x; then
9349 OTOOL=":"
9350 else
9351 case $cross_compiling:$ac_tool_warned in
9352 yes:)
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9355 ac_tool_warned=yes ;;
9356 esac
9357 OTOOL=$ac_ct_OTOOL
9359 else
9360 OTOOL="$ac_cv_prog_OTOOL"
9363 if test -n "$ac_tool_prefix"; then
9364 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9365 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367 $as_echo_n "checking for $ac_word... " >&6; }
9368 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 if test -n "$OTOOL64"; then
9372 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9373 else
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375 for as_dir in $PATH
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9381 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9383 break 2
9385 done
9386 done
9387 IFS=$as_save_IFS
9391 OTOOL64=$ac_cv_prog_OTOOL64
9392 if test -n "$OTOOL64"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9394 $as_echo "$OTOOL64" >&6; }
9395 else
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9402 if test -z "$ac_cv_prog_OTOOL64"; then
9403 ac_ct_OTOOL64=$OTOOL64
9404 # Extract the first word of "otool64", so it can be a program name with args.
9405 set dummy otool64; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 if test -n "$ac_ct_OTOOL64"; then
9412 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9413 else
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9421 ac_cv_prog_ac_ct_OTOOL64="otool64"
9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9425 done
9426 done
9427 IFS=$as_save_IFS
9431 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9432 if test -n "$ac_ct_OTOOL64"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9434 $as_echo "$ac_ct_OTOOL64" >&6; }
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9440 if test "x$ac_ct_OTOOL64" = x; then
9441 OTOOL64=":"
9442 else
9443 case $cross_compiling:$ac_tool_warned in
9444 yes:)
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9447 ac_tool_warned=yes ;;
9448 esac
9449 OTOOL64=$ac_ct_OTOOL64
9451 else
9452 OTOOL64="$ac_cv_prog_OTOOL64"
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9482 $as_echo_n "checking for -single_module linker flag... " >&6; }
9483 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9485 else
9486 lt_cv_apple_cc_single_mod=no
9487 if test -z "${LT_MULTI_MODULE}"; then
9488 # By default we will add the -single_module flag. You can override
9489 # by either setting the environment variable LT_MULTI_MODULE
9490 # non-empty at configure time, or by adding -multi_module to the
9491 # link flags.
9492 rm -rf libconftest.dylib*
9493 echo "int foo(void){return 1;}" > conftest.c
9494 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9495 -dynamiclib -Wl,-single_module conftest.c" >&5
9496 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9497 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9498 _lt_result=$?
9499 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9500 lt_cv_apple_cc_single_mod=yes
9501 else
9502 cat conftest.err >&5
9504 rm -rf libconftest.dylib*
9505 rm -f conftest.*
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9509 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9511 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9512 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 lt_cv_ld_exported_symbols_list=no
9516 save_LDFLAGS=$LDFLAGS
9517 echo "_main" > conftest.sym
9518 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9519 if test x$gcc_no_link = xyes; then
9520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9526 main ()
9530 return 0;
9532 _ACEOF
9533 if ac_fn_c_try_link "$LINENO"; then :
9534 lt_cv_ld_exported_symbols_list=yes
9535 else
9536 lt_cv_ld_exported_symbols_list=no
9538 rm -f core conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext conftest.$ac_ext
9540 LDFLAGS="$save_LDFLAGS"
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9544 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9546 $as_echo_n "checking for -force_load linker flag... " >&6; }
9547 if test "${lt_cv_ld_force_load+set}" = set; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 lt_cv_ld_force_load=no
9551 cat > conftest.c << _LT_EOF
9552 int forced_loaded() { return 2;}
9553 _LT_EOF
9554 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9555 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9556 echo "$AR cru libconftest.a conftest.o" >&5
9557 $AR cru libconftest.a conftest.o 2>&5
9558 cat > conftest.c << _LT_EOF
9559 int main() { return 0;}
9560 _LT_EOF
9561 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9562 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9563 _lt_result=$?
9564 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9565 lt_cv_ld_force_load=yes
9566 else
9567 cat conftest.err >&5
9569 rm -f conftest.err libconftest.a conftest conftest.c
9570 rm -rf conftest.dSYM
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9574 $as_echo "$lt_cv_ld_force_load" >&6; }
9575 case $host_os in
9576 rhapsody* | darwin1.[012])
9577 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9578 darwin1.*)
9579 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9580 darwin*) # darwin 5.x on
9581 # if running on 10.5 or later, the deployment target defaults
9582 # to the OS version, if on x86, and 10.4, the deployment
9583 # target defaults to 10.4. Don't you love it?
9584 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9585 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9586 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9587 10.[012][,.]*)
9588 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9589 10.*)
9590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9591 esac
9593 esac
9594 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9595 _lt_dar_single_mod='$single_module'
9597 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9598 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9599 else
9600 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9602 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9603 _lt_dsymutil='~$DSYMUTIL $lib || :'
9604 else
9605 _lt_dsymutil=
9608 esac
9610 ac_ext=c
9611 ac_cpp='$CPP $CPPFLAGS'
9612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9616 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9617 # On Suns, sometimes $CPP names a directory.
9618 if test -n "$CPP" && test -d "$CPP"; then
9619 CPP=
9621 if test -z "$CPP"; then
9622 if test "${ac_cv_prog_CPP+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 # Double quotes because CPP needs to be expanded
9626 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9628 ac_preproc_ok=false
9629 for ac_c_preproc_warn_flag in '' yes
9631 # Use a header file that comes with gcc, so configuring glibc
9632 # with a fresh cross-compiler works.
9633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9634 # <limits.h> exists even on freestanding compilers.
9635 # On the NeXT, cc -E runs the code through the compiler's parser,
9636 # not just through cpp. "Syntax error" is here to catch this case.
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9639 #ifdef __STDC__
9640 # include <limits.h>
9641 #else
9642 # include <assert.h>
9643 #endif
9644 Syntax error
9645 _ACEOF
9646 if ac_fn_c_try_cpp "$LINENO"; then :
9648 else
9649 # Broken: fails on valid input.
9650 continue
9652 rm -f conftest.err conftest.$ac_ext
9654 # OK, works on sane cases. Now check whether nonexistent headers
9655 # can be detected and how.
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 #include <ac_nonexistent.h>
9659 _ACEOF
9660 if ac_fn_c_try_cpp "$LINENO"; then :
9661 # Broken: success on invalid input.
9662 continue
9663 else
9664 # Passes both tests.
9665 ac_preproc_ok=:
9666 break
9668 rm -f conftest.err conftest.$ac_ext
9670 done
9671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9672 rm -f conftest.err conftest.$ac_ext
9673 if $ac_preproc_ok; then :
9674 break
9677 done
9678 ac_cv_prog_CPP=$CPP
9681 CPP=$ac_cv_prog_CPP
9682 else
9683 ac_cv_prog_CPP=$CPP
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9686 $as_echo "$CPP" >&6; }
9687 ac_preproc_ok=false
9688 for ac_c_preproc_warn_flag in '' yes
9690 # Use a header file that comes with gcc, so configuring glibc
9691 # with a fresh cross-compiler works.
9692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693 # <limits.h> exists even on freestanding compilers.
9694 # On the NeXT, cc -E runs the code through the compiler's parser,
9695 # not just through cpp. "Syntax error" is here to catch this case.
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698 #ifdef __STDC__
9699 # include <limits.h>
9700 #else
9701 # include <assert.h>
9702 #endif
9703 Syntax error
9704 _ACEOF
9705 if ac_fn_c_try_cpp "$LINENO"; then :
9707 else
9708 # Broken: fails on valid input.
9709 continue
9711 rm -f conftest.err conftest.$ac_ext
9713 # OK, works on sane cases. Now check whether nonexistent headers
9714 # can be detected and how.
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9717 #include <ac_nonexistent.h>
9718 _ACEOF
9719 if ac_fn_c_try_cpp "$LINENO"; then :
9720 # Broken: success on invalid input.
9721 continue
9722 else
9723 # Passes both tests.
9724 ac_preproc_ok=:
9725 break
9727 rm -f conftest.err conftest.$ac_ext
9729 done
9730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9731 rm -f conftest.err conftest.$ac_ext
9732 if $ac_preproc_ok; then :
9734 else
9735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9737 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9738 See \`config.log' for more details." "$LINENO" 5; }
9741 ac_ext=c
9742 ac_cpp='$CPP $CPPFLAGS'
9743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9749 $as_echo_n "checking for ANSI C header files... " >&6; }
9750 if test "${ac_cv_header_stdc+set}" = set; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 #include <stdlib.h>
9756 #include <stdarg.h>
9757 #include <string.h>
9758 #include <float.h>
9761 main ()
9765 return 0;
9767 _ACEOF
9768 if ac_fn_c_try_compile "$LINENO"; then :
9769 ac_cv_header_stdc=yes
9770 else
9771 ac_cv_header_stdc=no
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775 if test $ac_cv_header_stdc = yes; then
9776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779 #include <string.h>
9781 _ACEOF
9782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9783 $EGREP "memchr" >/dev/null 2>&1; then :
9785 else
9786 ac_cv_header_stdc=no
9788 rm -f conftest*
9792 if test $ac_cv_header_stdc = yes; then
9793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9796 #include <stdlib.h>
9798 _ACEOF
9799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9800 $EGREP "free" >/dev/null 2>&1; then :
9802 else
9803 ac_cv_header_stdc=no
9805 rm -f conftest*
9809 if test $ac_cv_header_stdc = yes; then
9810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9811 if test "$cross_compiling" = yes; then :
9813 else
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 #include <ctype.h>
9817 #include <stdlib.h>
9818 #if ((' ' & 0x0FF) == 0x020)
9819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9821 #else
9822 # define ISLOWER(c) \
9823 (('a' <= (c) && (c) <= 'i') \
9824 || ('j' <= (c) && (c) <= 'r') \
9825 || ('s' <= (c) && (c) <= 'z'))
9826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9827 #endif
9829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9831 main ()
9833 int i;
9834 for (i = 0; i < 256; i++)
9835 if (XOR (islower (i), ISLOWER (i))
9836 || toupper (i) != TOUPPER (i))
9837 return 2;
9838 return 0;
9840 _ACEOF
9841 if ac_fn_c_try_run "$LINENO"; then :
9843 else
9844 ac_cv_header_stdc=no
9846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9847 conftest.$ac_objext conftest.beam conftest.$ac_ext
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9853 $as_echo "$ac_cv_header_stdc" >&6; }
9854 if test $ac_cv_header_stdc = yes; then
9856 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9860 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9861 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9862 inttypes.h stdint.h unistd.h
9863 do :
9864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9865 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9867 eval as_val=\$$as_ac_Header
9868 if test "x$as_val" = x""yes; then :
9869 cat >>confdefs.h <<_ACEOF
9870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9871 _ACEOF
9875 done
9878 for ac_header in dlfcn.h
9879 do :
9880 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9882 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9883 cat >>confdefs.h <<_ACEOF
9884 #define HAVE_DLFCN_H 1
9885 _ACEOF
9889 done
9896 # Set options
9901 enable_win32_dll=no
9904 # Check whether --enable-shared was given.
9905 if test "${enable_shared+set}" = set; then :
9906 enableval=$enable_shared; p=${PACKAGE-default}
9907 case $enableval in
9908 yes) enable_shared=yes ;;
9909 no) enable_shared=no ;;
9911 enable_shared=no
9912 # Look at the argument we got. We use all the common list separators.
9913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9914 for pkg in $enableval; do
9915 IFS="$lt_save_ifs"
9916 if test "X$pkg" = "X$p"; then
9917 enable_shared=yes
9919 done
9920 IFS="$lt_save_ifs"
9922 esac
9923 else
9924 enable_shared=yes
9935 # Check whether --enable-static was given.
9936 if test "${enable_static+set}" = set; then :
9937 enableval=$enable_static; p=${PACKAGE-default}
9938 case $enableval in
9939 yes) enable_static=yes ;;
9940 no) enable_static=no ;;
9942 enable_static=no
9943 # Look at the argument we got. We use all the common list separators.
9944 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9945 for pkg in $enableval; do
9946 IFS="$lt_save_ifs"
9947 if test "X$pkg" = "X$p"; then
9948 enable_static=yes
9950 done
9951 IFS="$lt_save_ifs"
9953 esac
9954 else
9955 enable_static=yes
9967 # Check whether --with-pic was given.
9968 if test "${with_pic+set}" = set; then :
9969 withval=$with_pic; pic_mode="$withval"
9970 else
9971 pic_mode=default
9975 test -z "$pic_mode" && pic_mode=default
9983 # Check whether --enable-fast-install was given.
9984 if test "${enable_fast_install+set}" = set; then :
9985 enableval=$enable_fast_install; p=${PACKAGE-default}
9986 case $enableval in
9987 yes) enable_fast_install=yes ;;
9988 no) enable_fast_install=no ;;
9990 enable_fast_install=no
9991 # Look at the argument we got. We use all the common list separators.
9992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9993 for pkg in $enableval; do
9994 IFS="$lt_save_ifs"
9995 if test "X$pkg" = "X$p"; then
9996 enable_fast_install=yes
9998 done
9999 IFS="$lt_save_ifs"
10001 esac
10002 else
10003 enable_fast_install=yes
10016 # This can be used to rebuild libtool when needed
10017 LIBTOOL_DEPS="$ltmain"
10019 # Always use our own libtool.
10020 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10047 test -z "$LN_S" && LN_S="ln -s"
10062 if test -n "${ZSH_VERSION+set}" ; then
10063 setopt NO_GLOB_SUBST
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10067 $as_echo_n "checking for objdir... " >&6; }
10068 if test "${lt_cv_objdir+set}" = set; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 rm -f .libs 2>/dev/null
10072 mkdir .libs 2>/dev/null
10073 if test -d .libs; then
10074 lt_cv_objdir=.libs
10075 else
10076 # MS-DOS does not allow filenames that begin with a dot.
10077 lt_cv_objdir=_libs
10079 rmdir .libs 2>/dev/null
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10082 $as_echo "$lt_cv_objdir" >&6; }
10083 objdir=$lt_cv_objdir
10089 cat >>confdefs.h <<_ACEOF
10090 #define LT_OBJDIR "$lt_cv_objdir/"
10091 _ACEOF
10096 case $host_os in
10097 aix3*)
10098 # AIX sometimes has problems with the GCC collect2 program. For some
10099 # reason, if we set the COLLECT_NAMES environment variable, the problems
10100 # vanish in a puff of smoke.
10101 if test "X${COLLECT_NAMES+set}" != Xset; then
10102 COLLECT_NAMES=
10103 export COLLECT_NAMES
10106 esac
10108 # Global variables:
10109 ofile=libtool
10110 can_build_shared=yes
10112 # All known linkers require a `.a' archive for static linking (except MSVC,
10113 # which needs '.lib').
10114 libext=a
10116 with_gnu_ld="$lt_cv_prog_gnu_ld"
10118 old_CC="$CC"
10119 old_CFLAGS="$CFLAGS"
10121 # Set sane defaults for various variables
10122 test -z "$CC" && CC=cc
10123 test -z "$LTCC" && LTCC=$CC
10124 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10125 test -z "$LD" && LD=ld
10126 test -z "$ac_objext" && ac_objext=o
10128 for cc_temp in $compiler""; do
10129 case $cc_temp in
10130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10132 \-*) ;;
10133 *) break;;
10134 esac
10135 done
10136 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10139 # Only perform the check for file, if the check method requires it
10140 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10141 case $deplibs_check_method in
10142 file_magic*)
10143 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10145 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10146 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 case $MAGIC_CMD in
10150 [\\/*] | ?:[\\/]*)
10151 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10154 lt_save_MAGIC_CMD="$MAGIC_CMD"
10155 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10156 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10157 for ac_dir in $ac_dummy; do
10158 IFS="$lt_save_ifs"
10159 test -z "$ac_dir" && ac_dir=.
10160 if test -f $ac_dir/${ac_tool_prefix}file; then
10161 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10162 if test -n "$file_magic_test_file"; then
10163 case $deplibs_check_method in
10164 "file_magic "*)
10165 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10166 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10167 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10168 $EGREP "$file_magic_regex" > /dev/null; then
10170 else
10171 cat <<_LT_EOF 1>&2
10173 *** Warning: the command libtool uses to detect shared libraries,
10174 *** $file_magic_cmd, produces output that libtool cannot recognize.
10175 *** The result is that libtool may fail to recognize shared libraries
10176 *** as such. This will affect the creation of libtool libraries that
10177 *** depend on shared libraries, but programs linked with such libtool
10178 *** libraries will work regardless of this problem. Nevertheless, you
10179 *** may want to report the problem to your system manager and/or to
10180 *** bug-libtool@gnu.org
10182 _LT_EOF
10183 fi ;;
10184 esac
10186 break
10188 done
10189 IFS="$lt_save_ifs"
10190 MAGIC_CMD="$lt_save_MAGIC_CMD"
10192 esac
10195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10196 if test -n "$MAGIC_CMD"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10198 $as_echo "$MAGIC_CMD" >&6; }
10199 else
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10208 if test -z "$lt_cv_path_MAGIC_CMD"; then
10209 if test -n "$ac_tool_prefix"; then
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10211 $as_echo_n "checking for file... " >&6; }
10212 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 case $MAGIC_CMD in
10216 [\\/*] | ?:[\\/]*)
10217 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10220 lt_save_MAGIC_CMD="$MAGIC_CMD"
10221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10222 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10223 for ac_dir in $ac_dummy; do
10224 IFS="$lt_save_ifs"
10225 test -z "$ac_dir" && ac_dir=.
10226 if test -f $ac_dir/file; then
10227 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10228 if test -n "$file_magic_test_file"; then
10229 case $deplibs_check_method in
10230 "file_magic "*)
10231 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10233 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10234 $EGREP "$file_magic_regex" > /dev/null; then
10236 else
10237 cat <<_LT_EOF 1>&2
10239 *** Warning: the command libtool uses to detect shared libraries,
10240 *** $file_magic_cmd, produces output that libtool cannot recognize.
10241 *** The result is that libtool may fail to recognize shared libraries
10242 *** as such. This will affect the creation of libtool libraries that
10243 *** depend on shared libraries, but programs linked with such libtool
10244 *** libraries will work regardless of this problem. Nevertheless, you
10245 *** may want to report the problem to your system manager and/or to
10246 *** bug-libtool@gnu.org
10248 _LT_EOF
10249 fi ;;
10250 esac
10252 break
10254 done
10255 IFS="$lt_save_ifs"
10256 MAGIC_CMD="$lt_save_MAGIC_CMD"
10258 esac
10261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10262 if test -n "$MAGIC_CMD"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10264 $as_echo "$MAGIC_CMD" >&6; }
10265 else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10271 else
10272 MAGIC_CMD=:
10278 esac
10280 # Use C for the default configuration in the libtool script
10282 lt_save_CC="$CC"
10283 ac_ext=c
10284 ac_cpp='$CPP $CPPFLAGS'
10285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10290 # Source file extension for C test sources.
10291 ac_ext=c
10293 # Object file extension for compiled C test sources.
10294 objext=o
10295 objext=$objext
10297 # Code to be used in simple compile tests
10298 lt_simple_compile_test_code="int some_variable = 0;"
10300 # Code to be used in simple link tests
10301 lt_simple_link_test_code='int main(){return(0);}'
10309 # If no C compiler was specified, use CC.
10310 LTCC=${LTCC-"$CC"}
10312 # If no C compiler flags were specified, use CFLAGS.
10313 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10315 # Allow CC to be a program name with arguments.
10316 compiler=$CC
10318 # Save the default compiler, since it gets overwritten when the other
10319 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10320 compiler_DEFAULT=$CC
10322 # save warnings/boilerplate of simple test code
10323 ac_outfile=conftest.$ac_objext
10324 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10325 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10326 _lt_compiler_boilerplate=`cat conftest.err`
10327 $RM conftest*
10329 ac_outfile=conftest.$ac_objext
10330 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10331 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10332 _lt_linker_boilerplate=`cat conftest.err`
10333 $RM -r conftest*
10336 ## CAVEAT EMPTOR:
10337 ## There is no encapsulation within the following macros, do not change
10338 ## the running order or otherwise move them around unless you know exactly
10339 ## what you are doing...
10340 if test -n "$compiler"; then
10342 lt_prog_compiler_no_builtin_flag=
10344 if test "$GCC" = yes; then
10345 case $cc_basename in
10346 nvcc*)
10347 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10349 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10350 esac
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10353 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10354 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 lt_cv_prog_compiler_rtti_exceptions=no
10358 ac_outfile=conftest.$ac_objext
10359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10360 lt_compiler_flag="-fno-rtti -fno-exceptions"
10361 # Insert the option either (1) after the last *FLAGS variable, or
10362 # (2) before a word containing "conftest.", or (3) at the end.
10363 # Note that $ac_compile itself does not contain backslashes and begins
10364 # with a dollar sign (not a hyphen), so the echo should work correctly.
10365 # The option is referenced via a variable to avoid confusing sed.
10366 lt_compile=`echo "$ac_compile" | $SED \
10367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10369 -e 's:$: $lt_compiler_flag:'`
10370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10371 (eval "$lt_compile" 2>conftest.err)
10372 ac_status=$?
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 if (exit $ac_status) && test -s "$ac_outfile"; then
10376 # The compiler can only warn and ignore the option if not recognized
10377 # So say no if there are warnings other than the usual output.
10378 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10380 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10381 lt_cv_prog_compiler_rtti_exceptions=yes
10384 $RM conftest*
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10388 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10390 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10391 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10392 else
10403 lt_prog_compiler_wl=
10404 lt_prog_compiler_pic=
10405 lt_prog_compiler_static=
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10408 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10410 if test "$GCC" = yes; then
10411 lt_prog_compiler_wl='-Wl,'
10412 lt_prog_compiler_static='-static'
10414 case $host_os in
10415 aix*)
10416 # All AIX code is PIC.
10417 if test "$host_cpu" = ia64; then
10418 # AIX 5 now supports IA64 processor
10419 lt_prog_compiler_static='-Bstatic'
10421 lt_prog_compiler_pic='-fPIC'
10424 amigaos*)
10425 case $host_cpu in
10426 powerpc)
10427 # see comment about AmigaOS4 .so support
10428 lt_prog_compiler_pic='-fPIC'
10430 m68k)
10431 # FIXME: we need at least 68020 code to build shared libraries, but
10432 # adding the `-m68020' flag to GCC prevents building anything better,
10433 # like `-m68040'.
10434 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10436 esac
10439 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10440 # PIC is the default for these OSes.
10443 mingw* | cygwin* | pw32* | os2* | cegcc*)
10444 # This hack is so that the source file can tell whether it is being
10445 # built for inclusion in a dll (and should export symbols for example).
10446 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10447 # (--disable-auto-import) libraries
10448 lt_prog_compiler_pic='-DDLL_EXPORT'
10451 darwin* | rhapsody*)
10452 # PIC is the default on this platform
10453 # Common symbols not allowed in MH_DYLIB files
10454 lt_prog_compiler_pic='-fno-common'
10457 haiku*)
10458 # PIC is the default for Haiku.
10459 # The "-static" flag exists, but is broken.
10460 lt_prog_compiler_static=
10463 hpux*)
10464 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10465 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10466 # sets the default TLS model and affects inlining.
10467 case $host_cpu in
10468 hppa*64*)
10469 # +Z the default
10472 lt_prog_compiler_pic='-fPIC'
10474 esac
10477 interix[3-9]*)
10478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10479 # Instead, we relocate shared libraries at runtime.
10482 msdosdjgpp*)
10483 # Just because we use GCC doesn't mean we suddenly get shared libraries
10484 # on systems that don't support them.
10485 lt_prog_compiler_can_build_shared=no
10486 enable_shared=no
10489 *nto* | *qnx*)
10490 # QNX uses GNU C++, but need to define -shared option too, otherwise
10491 # it will coredump.
10492 lt_prog_compiler_pic='-fPIC -shared'
10495 sysv4*MP*)
10496 if test -d /usr/nec; then
10497 lt_prog_compiler_pic=-Kconform_pic
10502 lt_prog_compiler_pic='-fPIC'
10504 esac
10506 case $cc_basename in
10507 nvcc*) # Cuda Compiler Driver 2.2
10508 lt_prog_compiler_wl='-Xlinker '
10509 lt_prog_compiler_pic='-Xcompiler -fPIC'
10511 esac
10512 else
10513 # PORTME Check for flag to pass linker flags through the system compiler.
10514 case $host_os in
10515 aix*)
10516 lt_prog_compiler_wl='-Wl,'
10517 if test "$host_cpu" = ia64; then
10518 # AIX 5 now supports IA64 processor
10519 lt_prog_compiler_static='-Bstatic'
10520 else
10521 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10525 mingw* | cygwin* | pw32* | os2* | cegcc*)
10526 # This hack is so that the source file can tell whether it is being
10527 # built for inclusion in a dll (and should export symbols for example).
10528 lt_prog_compiler_pic='-DDLL_EXPORT'
10531 hpux9* | hpux10* | hpux11*)
10532 lt_prog_compiler_wl='-Wl,'
10533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10534 # not for PA HP-UX.
10535 case $host_cpu in
10536 hppa*64*|ia64*)
10537 # +Z the default
10540 lt_prog_compiler_pic='+Z'
10542 esac
10543 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10544 lt_prog_compiler_static='${wl}-a ${wl}archive'
10547 irix5* | irix6* | nonstopux*)
10548 lt_prog_compiler_wl='-Wl,'
10549 # PIC (with -KPIC) is the default.
10550 lt_prog_compiler_static='-non_shared'
10553 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10554 case $cc_basename in
10555 # old Intel for x86_64 which still supported -KPIC.
10556 ecc*)
10557 lt_prog_compiler_wl='-Wl,'
10558 lt_prog_compiler_pic='-KPIC'
10559 lt_prog_compiler_static='-static'
10561 # icc used to be incompatible with GCC.
10562 # ICC 10 doesn't accept -KPIC any more.
10563 icc* | ifort*)
10564 lt_prog_compiler_wl='-Wl,'
10565 lt_prog_compiler_pic='-fPIC'
10566 lt_prog_compiler_static='-static'
10568 # Lahey Fortran 8.1.
10569 lf95*)
10570 lt_prog_compiler_wl='-Wl,'
10571 lt_prog_compiler_pic='--shared'
10572 lt_prog_compiler_static='--static'
10574 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10575 # Portland Group compilers (*not* the Pentium gcc compiler,
10576 # which looks to be a dead project)
10577 lt_prog_compiler_wl='-Wl,'
10578 lt_prog_compiler_pic='-fpic'
10579 lt_prog_compiler_static='-Bstatic'
10581 ccc*)
10582 lt_prog_compiler_wl='-Wl,'
10583 # All Alpha code is PIC.
10584 lt_prog_compiler_static='-non_shared'
10586 xl* | bgxl* | bgf* | mpixl*)
10587 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10588 lt_prog_compiler_wl='-Wl,'
10589 lt_prog_compiler_pic='-qpic'
10590 lt_prog_compiler_static='-qstaticlink'
10593 case `$CC -V 2>&1 | sed 5q` in
10594 *Sun\ F* | *Sun*Fortran*)
10595 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10596 lt_prog_compiler_pic='-KPIC'
10597 lt_prog_compiler_static='-Bstatic'
10598 lt_prog_compiler_wl=''
10600 *Sun\ C*)
10601 # Sun C 5.9
10602 lt_prog_compiler_pic='-KPIC'
10603 lt_prog_compiler_static='-Bstatic'
10604 lt_prog_compiler_wl='-Wl,'
10606 esac
10608 esac
10611 newsos6)
10612 lt_prog_compiler_pic='-KPIC'
10613 lt_prog_compiler_static='-Bstatic'
10616 *nto* | *qnx*)
10617 # QNX uses GNU C++, but need to define -shared option too, otherwise
10618 # it will coredump.
10619 lt_prog_compiler_pic='-fPIC -shared'
10622 osf3* | osf4* | osf5*)
10623 lt_prog_compiler_wl='-Wl,'
10624 # All OSF/1 code is PIC.
10625 lt_prog_compiler_static='-non_shared'
10628 rdos*)
10629 lt_prog_compiler_static='-non_shared'
10632 solaris*)
10633 lt_prog_compiler_pic='-KPIC'
10634 lt_prog_compiler_static='-Bstatic'
10635 case $cc_basename in
10636 f77* | f90* | f95*)
10637 lt_prog_compiler_wl='-Qoption ld ';;
10639 lt_prog_compiler_wl='-Wl,';;
10640 esac
10643 sunos4*)
10644 lt_prog_compiler_wl='-Qoption ld '
10645 lt_prog_compiler_pic='-PIC'
10646 lt_prog_compiler_static='-Bstatic'
10649 sysv4 | sysv4.2uw2* | sysv4.3*)
10650 lt_prog_compiler_wl='-Wl,'
10651 lt_prog_compiler_pic='-KPIC'
10652 lt_prog_compiler_static='-Bstatic'
10655 sysv4*MP*)
10656 if test -d /usr/nec ;then
10657 lt_prog_compiler_pic='-Kconform_pic'
10658 lt_prog_compiler_static='-Bstatic'
10662 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10663 lt_prog_compiler_wl='-Wl,'
10664 lt_prog_compiler_pic='-KPIC'
10665 lt_prog_compiler_static='-Bstatic'
10668 unicos*)
10669 lt_prog_compiler_wl='-Wl,'
10670 lt_prog_compiler_can_build_shared=no
10673 uts4*)
10674 lt_prog_compiler_pic='-pic'
10675 lt_prog_compiler_static='-Bstatic'
10679 lt_prog_compiler_can_build_shared=no
10681 esac
10684 case $host_os in
10685 # For platforms which do not support PIC, -DPIC is meaningless:
10686 *djgpp*)
10687 lt_prog_compiler_pic=
10690 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10692 esac
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10694 $as_echo "$lt_prog_compiler_pic" >&6; }
10702 # Check to make sure the PIC flag actually works.
10704 if test -n "$lt_prog_compiler_pic"; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10706 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10707 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 lt_cv_prog_compiler_pic_works=no
10711 ac_outfile=conftest.$ac_objext
10712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10713 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10714 # Insert the option either (1) after the last *FLAGS variable, or
10715 # (2) before a word containing "conftest.", or (3) at the end.
10716 # Note that $ac_compile itself does not contain backslashes and begins
10717 # with a dollar sign (not a hyphen), so the echo should work correctly.
10718 # The option is referenced via a variable to avoid confusing sed.
10719 lt_compile=`echo "$ac_compile" | $SED \
10720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10722 -e 's:$: $lt_compiler_flag:'`
10723 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10724 (eval "$lt_compile" 2>conftest.err)
10725 ac_status=$?
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 if (exit $ac_status) && test -s "$ac_outfile"; then
10729 # The compiler can only warn and ignore the option if not recognized
10730 # So say no if there are warnings other than the usual output.
10731 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10733 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10734 lt_cv_prog_compiler_pic_works=yes
10737 $RM conftest*
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10741 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10743 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10744 case $lt_prog_compiler_pic in
10745 "" | " "*) ;;
10746 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10747 esac
10748 else
10749 lt_prog_compiler_pic=
10750 lt_prog_compiler_can_build_shared=no
10761 # Check to make sure the static flag actually works.
10763 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10765 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10766 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 lt_cv_prog_compiler_static_works=no
10770 save_LDFLAGS="$LDFLAGS"
10771 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10772 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10773 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10774 # The linker can only warn and ignore the option if not recognized
10775 # So say no if there are warnings
10776 if test -s conftest.err; then
10777 # Append any errors to the config.log.
10778 cat conftest.err 1>&5
10779 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10781 if diff conftest.exp conftest.er2 >/dev/null; then
10782 lt_cv_prog_compiler_static_works=yes
10784 else
10785 lt_cv_prog_compiler_static_works=yes
10788 $RM -r conftest*
10789 LDFLAGS="$save_LDFLAGS"
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10793 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10795 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10797 else
10798 lt_prog_compiler_static=
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10808 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10809 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 lt_cv_prog_compiler_c_o=no
10813 $RM -r conftest 2>/dev/null
10814 mkdir conftest
10815 cd conftest
10816 mkdir out
10817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10819 lt_compiler_flag="-o out/conftest2.$ac_objext"
10820 # Insert the option either (1) after the last *FLAGS variable, or
10821 # (2) before a word containing "conftest.", or (3) at the end.
10822 # Note that $ac_compile itself does not contain backslashes and begins
10823 # with a dollar sign (not a hyphen), so the echo should work correctly.
10824 lt_compile=`echo "$ac_compile" | $SED \
10825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10827 -e 's:$: $lt_compiler_flag:'`
10828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10829 (eval "$lt_compile" 2>out/conftest.err)
10830 ac_status=$?
10831 cat out/conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10834 then
10835 # The compiler can only warn and ignore the option if not recognized
10836 # So say no if there are warnings
10837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10840 lt_cv_prog_compiler_c_o=yes
10843 chmod u+w . 2>&5
10844 $RM conftest*
10845 # SGI C++ compiler will create directory out/ii_files/ for
10846 # template instantiation
10847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10848 $RM out/* && rmdir out
10849 cd ..
10850 $RM -r conftest
10851 $RM conftest*
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10855 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10864 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 lt_cv_prog_compiler_c_o=no
10868 $RM -r conftest 2>/dev/null
10869 mkdir conftest
10870 cd conftest
10871 mkdir out
10872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10874 lt_compiler_flag="-o out/conftest2.$ac_objext"
10875 # Insert the option either (1) after the last *FLAGS variable, or
10876 # (2) before a word containing "conftest.", or (3) at the end.
10877 # Note that $ac_compile itself does not contain backslashes and begins
10878 # with a dollar sign (not a hyphen), so the echo should work correctly.
10879 lt_compile=`echo "$ac_compile" | $SED \
10880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10882 -e 's:$: $lt_compiler_flag:'`
10883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10884 (eval "$lt_compile" 2>out/conftest.err)
10885 ac_status=$?
10886 cat out/conftest.err >&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10889 then
10890 # The compiler can only warn and ignore the option if not recognized
10891 # So say no if there are warnings
10892 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10895 lt_cv_prog_compiler_c_o=yes
10898 chmod u+w . 2>&5
10899 $RM conftest*
10900 # SGI C++ compiler will create directory out/ii_files/ for
10901 # template instantiation
10902 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10903 $RM out/* && rmdir out
10904 cd ..
10905 $RM -r conftest
10906 $RM conftest*
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10910 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10915 hard_links="nottested"
10916 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10917 # do not overwrite the value of need_locks provided by the user
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10919 $as_echo_n "checking if we can lock with hard links... " >&6; }
10920 hard_links=yes
10921 $RM conftest*
10922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10923 touch conftest.a
10924 ln conftest.a conftest.b 2>&5 || hard_links=no
10925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10927 $as_echo "$hard_links" >&6; }
10928 if test "$hard_links" = no; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10930 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10931 need_locks=warn
10933 else
10934 need_locks=no
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10943 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10945 runpath_var=
10946 allow_undefined_flag=
10947 always_export_symbols=no
10948 archive_cmds=
10949 archive_expsym_cmds=
10950 compiler_needs_object=no
10951 enable_shared_with_static_runtimes=no
10952 export_dynamic_flag_spec=
10953 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10954 hardcode_automatic=no
10955 hardcode_direct=no
10956 hardcode_direct_absolute=no
10957 hardcode_libdir_flag_spec=
10958 hardcode_libdir_flag_spec_ld=
10959 hardcode_libdir_separator=
10960 hardcode_minus_L=no
10961 hardcode_shlibpath_var=unsupported
10962 inherit_rpath=no
10963 link_all_deplibs=unknown
10964 module_cmds=
10965 module_expsym_cmds=
10966 old_archive_from_new_cmds=
10967 old_archive_from_expsyms_cmds=
10968 thread_safe_flag_spec=
10969 whole_archive_flag_spec=
10970 # include_expsyms should be a list of space-separated symbols to be *always*
10971 # included in the symbol list
10972 include_expsyms=
10973 # exclude_expsyms can be an extended regexp of symbols to exclude
10974 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10975 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10976 # as well as any symbol that contains `d'.
10977 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10978 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10979 # platforms (ab)use it in PIC code, but their linkers get confused if
10980 # the symbol is explicitly referenced. Since portable code cannot
10981 # rely on this symbol name, it's probably fine to never include it in
10982 # preloaded symbol tables.
10983 # Exclude shared library initialization/finalization symbols.
10984 extract_expsyms_cmds=
10986 case $host_os in
10987 cygwin* | mingw* | pw32* | cegcc*)
10988 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10989 # When not using gcc, we currently assume that we are using
10990 # Microsoft Visual C++.
10991 if test "$GCC" != yes; then
10992 with_gnu_ld=no
10995 interix*)
10996 # we just hope/assume this is gcc and not c89 (= MSVC++)
10997 with_gnu_ld=yes
10999 openbsd*)
11000 with_gnu_ld=no
11002 esac
11004 ld_shlibs=yes
11006 # On some targets, GNU ld is compatible enough with the native linker
11007 # that we're better off using the native interface for both.
11008 lt_use_gnu_ld_interface=no
11009 if test "$with_gnu_ld" = yes; then
11010 case $host_os in
11011 aix*)
11012 # The AIX port of GNU ld has always aspired to compatibility
11013 # with the native linker. However, as the warning in the GNU ld
11014 # block says, versions before 2.19.5* couldn't really create working
11015 # shared libraries, regardless of the interface used.
11016 case `$LD -v 2>&1` in
11017 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11018 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11019 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11021 lt_use_gnu_ld_interface=yes
11023 esac
11026 lt_use_gnu_ld_interface=yes
11028 esac
11031 if test "$lt_use_gnu_ld_interface" = yes; then
11032 # If archive_cmds runs LD, not CC, wlarc should be empty
11033 wlarc='${wl}'
11035 # Set some defaults for GNU ld with shared library support. These
11036 # are reset later if shared libraries are not supported. Putting them
11037 # here allows them to be overridden if necessary.
11038 runpath_var=LD_RUN_PATH
11039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11040 export_dynamic_flag_spec='${wl}--export-dynamic'
11041 # ancient GNU ld didn't support --whole-archive et. al.
11042 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11043 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11044 else
11045 whole_archive_flag_spec=
11047 supports_anon_versioning=no
11048 case `$LD -v 2>&1` in
11049 *GNU\ gold*) supports_anon_versioning=yes ;;
11050 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11051 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11052 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11053 *\ 2.11.*) ;; # other 2.11 versions
11054 *) supports_anon_versioning=yes ;;
11055 esac
11057 # See if GNU ld supports shared libraries.
11058 case $host_os in
11059 aix[3-9]*)
11060 # On AIX/PPC, the GNU linker is very broken
11061 if test "$host_cpu" != ia64; then
11062 ld_shlibs=no
11063 cat <<_LT_EOF 1>&2
11065 *** Warning: the GNU linker, at least up to release 2.19, is reported
11066 *** to be unable to reliably create shared libraries on AIX.
11067 *** Therefore, libtool is disabling shared libraries support. If you
11068 *** really care for shared libraries, you may want to install binutils
11069 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11070 *** You will then need to restart the configuration process.
11072 _LT_EOF
11076 amigaos*)
11077 case $host_cpu in
11078 powerpc)
11079 # see comment about AmigaOS4 .so support
11080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11081 archive_expsym_cmds=''
11083 m68k)
11084 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)'
11085 hardcode_libdir_flag_spec='-L$libdir'
11086 hardcode_minus_L=yes
11088 esac
11091 beos*)
11092 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11093 allow_undefined_flag=unsupported
11094 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11095 # support --undefined. This deserves some investigation. FIXME
11096 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11097 else
11098 ld_shlibs=no
11102 cygwin* | mingw* | pw32* | cegcc*)
11103 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11104 # as there is no search path for DLLs.
11105 hardcode_libdir_flag_spec='-L$libdir'
11106 export_dynamic_flag_spec='${wl}--export-all-symbols'
11107 allow_undefined_flag=unsupported
11108 always_export_symbols=no
11109 enable_shared_with_static_runtimes=yes
11110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11112 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11114 # If the export-symbols file already is a .def file (1st line
11115 # is EXPORTS), use it as is; otherwise, prepend...
11116 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11117 cp $export_symbols $output_objdir/$soname.def;
11118 else
11119 echo EXPORTS > $output_objdir/$soname.def;
11120 cat $export_symbols >> $output_objdir/$soname.def;
11122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11123 else
11124 ld_shlibs=no
11128 haiku*)
11129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11130 link_all_deplibs=yes
11133 interix[3-9]*)
11134 hardcode_direct=no
11135 hardcode_shlibpath_var=no
11136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11137 export_dynamic_flag_spec='${wl}-E'
11138 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11139 # Instead, shared libraries are loaded at an image base (0x10000000 by
11140 # default) and relocated if they conflict, which is a slow very memory
11141 # consuming and fragmenting process. To avoid this, we pick a random,
11142 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11143 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11145 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'
11148 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11149 tmp_diet=no
11150 if test "$host_os" = linux-dietlibc; then
11151 case $cc_basename in
11152 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11153 esac
11155 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11156 && test "$tmp_diet" = no
11157 then
11158 tmp_addflag=' $pic_flag'
11159 tmp_sharedflag='-shared'
11160 case $cc_basename,$host_cpu in
11161 pgcc*) # Portland Group C compiler
11162 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11163 tmp_addflag=' $pic_flag'
11165 pgf77* | pgf90* | pgf95* | pgfortran*)
11166 # Portland Group f77 and f90 compilers
11167 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11168 tmp_addflag=' $pic_flag -Mnomain' ;;
11169 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11170 tmp_addflag=' -i_dynamic' ;;
11171 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11172 tmp_addflag=' -i_dynamic -nofor_main' ;;
11173 ifc* | ifort*) # Intel Fortran compiler
11174 tmp_addflag=' -nofor_main' ;;
11175 lf95*) # Lahey Fortran 8.1
11176 whole_archive_flag_spec=
11177 tmp_sharedflag='--shared' ;;
11178 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11179 tmp_sharedflag='-qmkshrobj'
11180 tmp_addflag= ;;
11181 nvcc*) # Cuda Compiler Driver 2.2
11182 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11183 compiler_needs_object=yes
11185 esac
11186 case `$CC -V 2>&1 | sed 5q` in
11187 *Sun\ C*) # Sun C 5.9
11188 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11189 compiler_needs_object=yes
11190 tmp_sharedflag='-G' ;;
11191 *Sun\ F*) # Sun Fortran 8.3
11192 tmp_sharedflag='-G' ;;
11193 esac
11194 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11196 if test "x$supports_anon_versioning" = xyes; then
11197 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11198 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11199 echo "local: *; };" >> $output_objdir/$libname.ver~
11200 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11203 case $cc_basename in
11204 xlf* | bgf* | bgxlf* | mpixlf*)
11205 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11206 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11207 hardcode_libdir_flag_spec=
11208 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11209 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11210 if test "x$supports_anon_versioning" = xyes; then
11211 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11212 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11213 echo "local: *; };" >> $output_objdir/$libname.ver~
11214 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11217 esac
11218 else
11219 ld_shlibs=no
11223 netbsd*)
11224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11225 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11226 wlarc=
11227 else
11228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11229 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11233 solaris*)
11234 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11235 ld_shlibs=no
11236 cat <<_LT_EOF 1>&2
11238 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11239 *** create shared libraries on Solaris systems. Therefore, libtool
11240 *** is disabling shared libraries support. We urge you to upgrade GNU
11241 *** binutils to release 2.9.1 or newer. Another option is to modify
11242 *** your PATH or compiler configuration so that the native linker is
11243 *** used, and then restart.
11245 _LT_EOF
11246 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11249 else
11250 ld_shlibs=no
11254 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11255 case `$LD -v 2>&1` in
11256 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11257 ld_shlibs=no
11258 cat <<_LT_EOF 1>&2
11260 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11261 *** reliably create shared libraries on SCO systems. Therefore, libtool
11262 *** is disabling shared libraries support. We urge you to upgrade GNU
11263 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11264 *** your PATH or compiler configuration so that the native linker is
11265 *** used, and then restart.
11267 _LT_EOF
11270 # For security reasons, it is highly recommended that you always
11271 # use absolute paths for naming shared libraries, and exclude the
11272 # DT_RUNPATH tag from executables and libraries. But doing so
11273 # requires that you compile everything twice, which is a pain.
11274 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11278 else
11279 ld_shlibs=no
11282 esac
11285 sunos4*)
11286 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11287 wlarc=
11288 hardcode_direct=yes
11289 hardcode_shlibpath_var=no
11293 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11295 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11296 else
11297 ld_shlibs=no
11300 esac
11302 if test "$ld_shlibs" = no; then
11303 runpath_var=
11304 hardcode_libdir_flag_spec=
11305 export_dynamic_flag_spec=
11306 whole_archive_flag_spec=
11308 else
11309 # PORTME fill in a description of your system's linker (not GNU ld)
11310 case $host_os in
11311 aix3*)
11312 allow_undefined_flag=unsupported
11313 always_export_symbols=yes
11314 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'
11315 # Note: this linker hardcodes the directories in LIBPATH if there
11316 # are no directories specified by -L.
11317 hardcode_minus_L=yes
11318 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11319 # Neither direct hardcoding nor static linking is supported with a
11320 # broken collect2.
11321 hardcode_direct=unsupported
11325 aix[4-9]*)
11326 if test "$host_cpu" = ia64; then
11327 # On IA64, the linker does run time linking by default, so we don't
11328 # have to do anything special.
11329 aix_use_runtimelinking=no
11330 exp_sym_flag='-Bexport'
11331 no_entry_flag=""
11332 else
11333 # If we're using GNU nm, then we don't want the "-C" option.
11334 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11335 # Also, AIX nm treats weak defined symbols like other global
11336 # defined symbols, whereas GNU nm marks them as "W".
11337 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11338 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11339 else
11340 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'
11342 aix_use_runtimelinking=no
11344 # Test if we are trying to use run time linking or normal
11345 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11346 # need to do runtime linking.
11347 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11348 for ld_flag in $LDFLAGS; do
11349 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11350 aix_use_runtimelinking=yes
11351 break
11353 done
11355 esac
11357 exp_sym_flag='-bexport'
11358 no_entry_flag='-bnoentry'
11361 # When large executables or shared objects are built, AIX ld can
11362 # have problems creating the table of contents. If linking a library
11363 # or program results in "error TOC overflow" add -mminimal-toc to
11364 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11365 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11367 archive_cmds=''
11368 hardcode_direct=yes
11369 hardcode_direct_absolute=yes
11370 hardcode_libdir_separator=':'
11371 link_all_deplibs=yes
11372 file_list_spec='${wl}-f,'
11374 if test "$GCC" = yes; then
11375 case $host_os in aix4.[012]|aix4.[012].*)
11376 # We only want to do this on AIX 4.2 and lower, the check
11377 # below for broken collect2 doesn't work under 4.3+
11378 collect2name=`${CC} -print-prog-name=collect2`
11379 if test -f "$collect2name" &&
11380 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11381 then
11382 # We have reworked collect2
11384 else
11385 # We have old collect2
11386 hardcode_direct=unsupported
11387 # It fails to find uninstalled libraries when the uninstalled
11388 # path is not listed in the libpath. Setting hardcode_minus_L
11389 # to unsupported forces relinking
11390 hardcode_minus_L=yes
11391 hardcode_libdir_flag_spec='-L$libdir'
11392 hardcode_libdir_separator=
11395 esac
11396 shared_flag='-shared'
11397 if test "$aix_use_runtimelinking" = yes; then
11398 shared_flag="$shared_flag "'${wl}-G'
11400 else
11401 # not using gcc
11402 if test "$host_cpu" = ia64; then
11403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11404 # chokes on -Wl,-G. The following line is correct:
11405 shared_flag='-G'
11406 else
11407 if test "$aix_use_runtimelinking" = yes; then
11408 shared_flag='${wl}-G'
11409 else
11410 shared_flag='${wl}-bM:SRE'
11415 export_dynamic_flag_spec='${wl}-bexpall'
11416 # It seems that -bexpall does not export symbols beginning with
11417 # underscore (_), so it is better to generate a list of symbols to export.
11418 always_export_symbols=yes
11419 if test "$aix_use_runtimelinking" = yes; then
11420 # Warning - without using the other runtime loading flags (-brtl),
11421 # -berok will link without error, but may produce a broken library.
11422 allow_undefined_flag='-berok'
11423 # Determine the default libpath from the value encoded in an
11424 # empty executable.
11425 if test x$gcc_no_link = xyes; then
11426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11432 main ()
11436 return 0;
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11441 lt_aix_libpath_sed='
11442 /Import File Strings/,/^$/ {
11443 /^0/ {
11444 s/^0 *\(.*\)$/\1/
11448 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11449 # Check for a 64-bit object if we didn't find anything.
11450 if test -z "$aix_libpath"; then
11451 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11454 rm -f core conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11459 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11460 else
11461 if test "$host_cpu" = ia64; then
11462 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11463 allow_undefined_flag="-z nodefs"
11464 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"
11465 else
11466 # Determine the default libpath from the value encoded in an
11467 # empty executable.
11468 if test x$gcc_no_link = xyes; then
11469 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11475 main ()
11479 return 0;
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11484 lt_aix_libpath_sed='
11485 /Import File Strings/,/^$/ {
11486 /^0/ {
11487 s/^0 *\(.*\)$/\1/
11491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11492 # Check for a 64-bit object if we didn't find anything.
11493 if test -z "$aix_libpath"; then
11494 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11497 rm -f core conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext conftest.$ac_ext
11499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11501 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11502 # Warning - without using the other run time loading flags,
11503 # -berok will link without error, but may produce a broken library.
11504 no_undefined_flag=' ${wl}-bernotok'
11505 allow_undefined_flag=' ${wl}-berok'
11506 if test "$with_gnu_ld" = yes; then
11507 # We only use this code for GNU lds that support --whole-archive.
11508 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11509 else
11510 # Exported symbols can be pulled into shared objects from archives
11511 whole_archive_flag_spec='$convenience'
11513 archive_cmds_need_lc=yes
11514 # This is similar to how AIX traditionally builds its shared libraries.
11515 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'
11520 amigaos*)
11521 case $host_cpu in
11522 powerpc)
11523 # see comment about AmigaOS4 .so support
11524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11525 archive_expsym_cmds=''
11527 m68k)
11528 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)'
11529 hardcode_libdir_flag_spec='-L$libdir'
11530 hardcode_minus_L=yes
11532 esac
11535 bsdi[45]*)
11536 export_dynamic_flag_spec=-rdynamic
11539 cygwin* | mingw* | pw32* | cegcc*)
11540 # When not using gcc, we currently assume that we are using
11541 # Microsoft Visual C++.
11542 # hardcode_libdir_flag_spec is actually meaningless, as there is
11543 # no search path for DLLs.
11544 hardcode_libdir_flag_spec=' '
11545 allow_undefined_flag=unsupported
11546 # Tell ltmain to make .lib files, not .a files.
11547 libext=lib
11548 # Tell ltmain to make .dll files, not .so files.
11549 shrext_cmds=".dll"
11550 # FIXME: Setting linknames here is a bad hack.
11551 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11552 # The linker will automatically build a .lib file if we build a DLL.
11553 old_archive_from_new_cmds='true'
11554 # FIXME: Should let the user specify the lib program.
11555 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11556 fix_srcfile_path='`cygpath -w "$srcfile"`'
11557 enable_shared_with_static_runtimes=yes
11560 darwin* | rhapsody*)
11563 archive_cmds_need_lc=no
11564 hardcode_direct=no
11565 hardcode_automatic=yes
11566 hardcode_shlibpath_var=unsupported
11567 if test "$lt_cv_ld_force_load" = "yes"; then
11568 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11569 else
11570 whole_archive_flag_spec=''
11572 link_all_deplibs=yes
11573 allow_undefined_flag="$_lt_dar_allow_undefined"
11574 case $cc_basename in
11575 ifort*) _lt_dar_can_shared=yes ;;
11576 *) _lt_dar_can_shared=$GCC ;;
11577 esac
11578 if test "$_lt_dar_can_shared" = "yes"; then
11579 output_verbose_link_cmd=func_echo_all
11580 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11581 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11582 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11583 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11585 else
11586 ld_shlibs=no
11591 dgux*)
11592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11593 hardcode_libdir_flag_spec='-L$libdir'
11594 hardcode_shlibpath_var=no
11597 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11598 # support. Future versions do this automatically, but an explicit c++rt0.o
11599 # does not break anything, and helps significantly (at the cost of a little
11600 # extra space).
11601 freebsd2.2*)
11602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11603 hardcode_libdir_flag_spec='-R$libdir'
11604 hardcode_direct=yes
11605 hardcode_shlibpath_var=no
11608 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11609 freebsd2.*)
11610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11611 hardcode_direct=yes
11612 hardcode_minus_L=yes
11613 hardcode_shlibpath_var=no
11616 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11617 freebsd* | dragonfly*)
11618 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11619 hardcode_libdir_flag_spec='-R$libdir'
11620 hardcode_direct=yes
11621 hardcode_shlibpath_var=no
11624 hpux9*)
11625 if test "$GCC" = yes; then
11626 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'
11627 else
11628 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'
11630 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11631 hardcode_libdir_separator=:
11632 hardcode_direct=yes
11634 # hardcode_minus_L: Not really in the search PATH,
11635 # but as the default location of the library.
11636 hardcode_minus_L=yes
11637 export_dynamic_flag_spec='${wl}-E'
11640 hpux10*)
11641 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11642 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11643 else
11644 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11646 if test "$with_gnu_ld" = no; then
11647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11648 hardcode_libdir_flag_spec_ld='+b $libdir'
11649 hardcode_libdir_separator=:
11650 hardcode_direct=yes
11651 hardcode_direct_absolute=yes
11652 export_dynamic_flag_spec='${wl}-E'
11653 # hardcode_minus_L: Not really in the search PATH,
11654 # but as the default location of the library.
11655 hardcode_minus_L=yes
11659 hpux11*)
11660 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11661 case $host_cpu in
11662 hppa*64*)
11663 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11665 ia64*)
11666 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11669 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11671 esac
11672 else
11673 case $host_cpu in
11674 hppa*64*)
11675 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11677 ia64*)
11678 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11682 # Older versions of the 11.00 compiler do not understand -b yet
11683 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11685 $as_echo_n "checking if $CC understands -b... " >&6; }
11686 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 lt_cv_prog_compiler__b=no
11690 save_LDFLAGS="$LDFLAGS"
11691 LDFLAGS="$LDFLAGS -b"
11692 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11693 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11694 # The linker can only warn and ignore the option if not recognized
11695 # So say no if there are warnings
11696 if test -s conftest.err; then
11697 # Append any errors to the config.log.
11698 cat conftest.err 1>&5
11699 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11701 if diff conftest.exp conftest.er2 >/dev/null; then
11702 lt_cv_prog_compiler__b=yes
11704 else
11705 lt_cv_prog_compiler__b=yes
11708 $RM -r conftest*
11709 LDFLAGS="$save_LDFLAGS"
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11713 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11715 if test x"$lt_cv_prog_compiler__b" = xyes; then
11716 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11717 else
11718 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11722 esac
11724 if test "$with_gnu_ld" = no; then
11725 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11726 hardcode_libdir_separator=:
11728 case $host_cpu in
11729 hppa*64*|ia64*)
11730 hardcode_direct=no
11731 hardcode_shlibpath_var=no
11734 hardcode_direct=yes
11735 hardcode_direct_absolute=yes
11736 export_dynamic_flag_spec='${wl}-E'
11738 # hardcode_minus_L: Not really in the search PATH,
11739 # but as the default location of the library.
11740 hardcode_minus_L=yes
11742 esac
11746 irix5* | irix6* | nonstopux*)
11747 if test "$GCC" = yes; then
11748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11749 # Try to use the -exported_symbol ld option, if it does not
11750 # work, assume that -exports_file does not work either and
11751 # implicitly export all symbols.
11752 save_LDFLAGS="$LDFLAGS"
11753 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11754 if test x$gcc_no_link = xyes; then
11755 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11759 int foo(void) {}
11760 _ACEOF
11761 if ac_fn_c_try_link "$LINENO"; then :
11762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11765 rm -f core conftest.err conftest.$ac_objext \
11766 conftest$ac_exeext conftest.$ac_ext
11767 LDFLAGS="$save_LDFLAGS"
11768 else
11769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11772 archive_cmds_need_lc='no'
11773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11774 hardcode_libdir_separator=:
11775 inherit_rpath=yes
11776 link_all_deplibs=yes
11779 netbsd*)
11780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11782 else
11783 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11785 hardcode_libdir_flag_spec='-R$libdir'
11786 hardcode_direct=yes
11787 hardcode_shlibpath_var=no
11790 newsos6)
11791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11792 hardcode_direct=yes
11793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11794 hardcode_libdir_separator=:
11795 hardcode_shlibpath_var=no
11798 *nto* | *qnx*)
11801 openbsd*)
11802 if test -f /usr/libexec/ld.so; then
11803 hardcode_direct=yes
11804 hardcode_shlibpath_var=no
11805 hardcode_direct_absolute=yes
11806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11808 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11810 export_dynamic_flag_spec='${wl}-E'
11811 else
11812 case $host_os in
11813 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11815 hardcode_libdir_flag_spec='-R$libdir'
11818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11821 esac
11823 else
11824 ld_shlibs=no
11828 os2*)
11829 hardcode_libdir_flag_spec='-L$libdir'
11830 hardcode_minus_L=yes
11831 allow_undefined_flag=unsupported
11832 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'
11833 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11836 osf3*)
11837 if test "$GCC" = yes; then
11838 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11839 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11840 else
11841 allow_undefined_flag=' -expect_unresolved \*'
11842 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11844 archive_cmds_need_lc='no'
11845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11846 hardcode_libdir_separator=:
11849 osf4* | osf5*) # as osf3* with the addition of -msym flag
11850 if test "$GCC" = yes; then
11851 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11852 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11854 else
11855 allow_undefined_flag=' -expect_unresolved \*'
11856 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11857 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~
11858 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11860 # Both c and cxx compiler support -rpath directly
11861 hardcode_libdir_flag_spec='-rpath $libdir'
11863 archive_cmds_need_lc='no'
11864 hardcode_libdir_separator=:
11867 solaris*)
11868 no_undefined_flag=' -z defs'
11869 if test "$GCC" = yes; then
11870 wlarc='${wl}'
11871 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11873 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11874 else
11875 case `$CC -V 2>&1` in
11876 *"Compilers 5.0"*)
11877 wlarc=''
11878 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11880 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11883 wlarc='${wl}'
11884 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11885 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11886 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11888 esac
11890 hardcode_libdir_flag_spec='-R$libdir'
11891 hardcode_shlibpath_var=no
11892 case $host_os in
11893 solaris2.[0-5] | solaris2.[0-5].*) ;;
11895 # The compiler driver will combine and reorder linker options,
11896 # but understands `-z linker_flag'. GCC discards it without `$wl',
11897 # but is careful enough not to reorder.
11898 # Supported since Solaris 2.6 (maybe 2.5.1?)
11899 if test "$GCC" = yes; then
11900 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11901 else
11902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11905 esac
11906 link_all_deplibs=yes
11909 sunos4*)
11910 if test "x$host_vendor" = xsequent; then
11911 # Use $CC to link under sequent, because it throws in some extra .o
11912 # files that make .init and .fini sections work.
11913 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11914 else
11915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11917 hardcode_libdir_flag_spec='-L$libdir'
11918 hardcode_direct=yes
11919 hardcode_minus_L=yes
11920 hardcode_shlibpath_var=no
11923 sysv4)
11924 case $host_vendor in
11925 sni)
11926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11927 hardcode_direct=yes # is this really true???
11929 siemens)
11930 ## LD is ld it makes a PLAMLIB
11931 ## CC just makes a GrossModule.
11932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11933 reload_cmds='$CC -r -o $output$reload_objs'
11934 hardcode_direct=no
11936 motorola)
11937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11940 esac
11941 runpath_var='LD_RUN_PATH'
11942 hardcode_shlibpath_var=no
11945 sysv4.3*)
11946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11947 hardcode_shlibpath_var=no
11948 export_dynamic_flag_spec='-Bexport'
11951 sysv4*MP*)
11952 if test -d /usr/nec; then
11953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11954 hardcode_shlibpath_var=no
11955 runpath_var=LD_RUN_PATH
11956 hardcode_runpath_var=yes
11957 ld_shlibs=yes
11961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11962 no_undefined_flag='${wl}-z,text'
11963 archive_cmds_need_lc=no
11964 hardcode_shlibpath_var=no
11965 runpath_var='LD_RUN_PATH'
11967 if test "$GCC" = yes; then
11968 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11970 else
11971 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11976 sysv5* | sco3.2v5* | sco5v6*)
11977 # Note: We can NOT use -z defs as we might desire, because we do not
11978 # link with -lc, and that would cause any symbols used from libc to
11979 # always be unresolved, which means just about no library would
11980 # ever link correctly. If we're not using GNU ld we use -z text
11981 # though, which does catch some bad symbols but isn't as heavy-handed
11982 # as -z defs.
11983 no_undefined_flag='${wl}-z,text'
11984 allow_undefined_flag='${wl}-z,nodefs'
11985 archive_cmds_need_lc=no
11986 hardcode_shlibpath_var=no
11987 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11988 hardcode_libdir_separator=':'
11989 link_all_deplibs=yes
11990 export_dynamic_flag_spec='${wl}-Bexport'
11991 runpath_var='LD_RUN_PATH'
11993 if test "$GCC" = yes; then
11994 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11995 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11996 else
11997 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11998 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12002 uts4*)
12003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12004 hardcode_libdir_flag_spec='-L$libdir'
12005 hardcode_shlibpath_var=no
12009 ld_shlibs=no
12011 esac
12013 if test x$host_vendor = xsni; then
12014 case $host in
12015 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12016 export_dynamic_flag_spec='${wl}-Blargedynsym'
12018 esac
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12023 $as_echo "$ld_shlibs" >&6; }
12024 test "$ld_shlibs" = no && can_build_shared=no
12026 with_gnu_ld=$with_gnu_ld
12043 # Do we need to explicitly link libc?
12045 case "x$archive_cmds_need_lc" in
12046 x|xyes)
12047 # Assume -lc should be added
12048 archive_cmds_need_lc=yes
12050 if test "$enable_shared" = yes && test "$GCC" = yes; then
12051 case $archive_cmds in
12052 *'~'*)
12053 # FIXME: we may have to deal with multi-command sequences.
12055 '$CC '*)
12056 # Test whether the compiler implicitly links with -lc since on some
12057 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12058 # to ld, don't add -lc before -lgcc.
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12060 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12061 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 $RM conftest*
12065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12068 (eval $ac_compile) 2>&5
12069 ac_status=$?
12070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12071 test $ac_status = 0; } 2>conftest.err; then
12072 soname=conftest
12073 lib=conftest
12074 libobjs=conftest.$ac_objext
12075 deplibs=
12076 wl=$lt_prog_compiler_wl
12077 pic_flag=$lt_prog_compiler_pic
12078 compiler_flags=-v
12079 linker_flags=-v
12080 verstring=
12081 output_objdir=.
12082 libname=conftest
12083 lt_save_allow_undefined_flag=$allow_undefined_flag
12084 allow_undefined_flag=
12085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12086 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12087 ac_status=$?
12088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12089 test $ac_status = 0; }
12090 then
12091 lt_cv_archive_cmds_need_lc=no
12092 else
12093 lt_cv_archive_cmds_need_lc=yes
12095 allow_undefined_flag=$lt_save_allow_undefined_flag
12096 else
12097 cat conftest.err 1>&5
12099 $RM conftest*
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12103 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12104 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12106 esac
12109 esac
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12268 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12270 if test "$GCC" = yes; then
12271 case $host_os in
12272 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12273 *) lt_awk_arg="/^libraries:/" ;;
12274 esac
12275 case $host_os in
12276 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12277 *) lt_sed_strip_eq="s,=/,/,g" ;;
12278 esac
12279 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12280 case $lt_search_path_spec in
12281 *\;*)
12282 # if the path contains ";" then we assume it to be the separator
12283 # otherwise default to the standard path separator (i.e. ":") - it is
12284 # assumed that no part of a normal pathname contains ";" but that should
12285 # okay in the real world where ";" in dirpaths is itself problematic.
12286 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12289 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12291 esac
12292 # Ok, now we have the path, separated by spaces, we can step through it
12293 # and add multilib dir if necessary.
12294 lt_tmp_lt_search_path_spec=
12295 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12296 for lt_sys_path in $lt_search_path_spec; do
12297 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12299 else
12300 test -d "$lt_sys_path" && \
12301 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12303 done
12304 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12305 BEGIN {RS=" "; FS="/|\n";} {
12306 lt_foo="";
12307 lt_count=0;
12308 for (lt_i = NF; lt_i > 0; lt_i--) {
12309 if ($lt_i != "" && $lt_i != ".") {
12310 if ($lt_i == "..") {
12311 lt_count++;
12312 } else {
12313 if (lt_count == 0) {
12314 lt_foo="/" $lt_i lt_foo;
12315 } else {
12316 lt_count--;
12321 if (lt_foo != "") { lt_freq[lt_foo]++; }
12322 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12324 # AWK program above erroneously prepends '/' to C:/dos/paths
12325 # for these hosts.
12326 case $host_os in
12327 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12328 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12329 esac
12330 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12331 else
12332 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12334 library_names_spec=
12335 libname_spec='lib$name'
12336 soname_spec=
12337 shrext_cmds=".so"
12338 postinstall_cmds=
12339 postuninstall_cmds=
12340 finish_cmds=
12341 finish_eval=
12342 shlibpath_var=
12343 shlibpath_overrides_runpath=unknown
12344 version_type=none
12345 dynamic_linker="$host_os ld.so"
12346 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12347 need_lib_prefix=unknown
12348 hardcode_into_libs=no
12350 # when you set need_version to no, make sure it does not cause -set_version
12351 # flags to be left without arguments
12352 need_version=unknown
12354 case $host_os in
12355 aix3*)
12356 version_type=linux
12357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12358 shlibpath_var=LIBPATH
12360 # AIX 3 has no versioning support, so we append a major version to the name.
12361 soname_spec='${libname}${release}${shared_ext}$major'
12364 aix[4-9]*)
12365 version_type=linux
12366 need_lib_prefix=no
12367 need_version=no
12368 hardcode_into_libs=yes
12369 if test "$host_cpu" = ia64; then
12370 # AIX 5 supports IA64
12371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12372 shlibpath_var=LD_LIBRARY_PATH
12373 else
12374 # With GCC up to 2.95.x, collect2 would create an import file
12375 # for dependence libraries. The import file would start with
12376 # the line `#! .'. This would cause the generated library to
12377 # depend on `.', always an invalid library. This was fixed in
12378 # development snapshots of GCC prior to 3.0.
12379 case $host_os in
12380 aix4 | aix4.[01] | aix4.[01].*)
12381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12382 echo ' yes '
12383 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12385 else
12386 can_build_shared=no
12389 esac
12390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12391 # soname into executable. Probably we can add versioning support to
12392 # collect2, so additional links can be useful in future.
12393 if test "$aix_use_runtimelinking" = yes; then
12394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12395 # instead of lib<name>.a to let people know that these are not
12396 # typical AIX shared libraries.
12397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12398 else
12399 # We preserve .a as extension for shared libraries through AIX4.2
12400 # and later when we are not doing run time linking.
12401 library_names_spec='${libname}${release}.a $libname.a'
12402 soname_spec='${libname}${release}${shared_ext}$major'
12404 shlibpath_var=LIBPATH
12408 amigaos*)
12409 case $host_cpu in
12410 powerpc)
12411 # Since July 2007 AmigaOS4 officially supports .so libraries.
12412 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12415 m68k)
12416 library_names_spec='$libname.ixlibrary $libname.a'
12417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12418 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
12420 esac
12423 beos*)
12424 library_names_spec='${libname}${shared_ext}'
12425 dynamic_linker="$host_os ld.so"
12426 shlibpath_var=LIBRARY_PATH
12429 bsdi[45]*)
12430 version_type=linux
12431 need_version=no
12432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12433 soname_spec='${libname}${release}${shared_ext}$major'
12434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12435 shlibpath_var=LD_LIBRARY_PATH
12436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12438 # the default ld.so.conf also contains /usr/contrib/lib and
12439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12440 # libtool to hard-code these into programs
12443 cygwin* | mingw* | pw32* | cegcc*)
12444 version_type=windows
12445 shrext_cmds=".dll"
12446 need_version=no
12447 need_lib_prefix=no
12449 case $GCC,$host_os in
12450 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12451 library_names_spec='$libname.dll.a'
12452 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12453 postinstall_cmds='base_file=`basename \${file}`~
12454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12455 dldir=$destdir/`dirname \$dlpath`~
12456 test -d \$dldir || mkdir -p \$dldir~
12457 $install_prog $dir/$dlname \$dldir/$dlname~
12458 chmod a+x \$dldir/$dlname~
12459 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12460 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12463 dlpath=$dir/\$dldll~
12464 $RM \$dlpath'
12465 shlibpath_overrides_runpath=yes
12467 case $host_os in
12468 cygwin*)
12469 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12470 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12472 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12474 mingw* | cegcc*)
12475 # MinGW DLLs use traditional 'lib' prefix
12476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12478 pw32*)
12479 # pw32 DLLs use 'pw' prefix rather than 'lib'
12480 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12482 esac
12486 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12488 esac
12489 dynamic_linker='Win32 ld.exe'
12490 # FIXME: first we should search . and the directory the executable is in
12491 shlibpath_var=PATH
12494 darwin* | rhapsody*)
12495 dynamic_linker="$host_os dyld"
12496 version_type=darwin
12497 need_lib_prefix=no
12498 need_version=no
12499 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12500 soname_spec='${libname}${release}${major}$shared_ext'
12501 shlibpath_overrides_runpath=yes
12502 shlibpath_var=DYLD_LIBRARY_PATH
12503 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12505 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12506 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12509 dgux*)
12510 version_type=linux
12511 need_lib_prefix=no
12512 need_version=no
12513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12514 soname_spec='${libname}${release}${shared_ext}$major'
12515 shlibpath_var=LD_LIBRARY_PATH
12518 freebsd* | dragonfly*)
12519 # DragonFly does not have aout. When/if they implement a new
12520 # versioning mechanism, adjust this.
12521 if test -x /usr/bin/objformat; then
12522 objformat=`/usr/bin/objformat`
12523 else
12524 case $host_os in
12525 freebsd[23].*) objformat=aout ;;
12526 *) objformat=elf ;;
12527 esac
12529 version_type=freebsd-$objformat
12530 case $version_type in
12531 freebsd-elf*)
12532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12533 need_version=no
12534 need_lib_prefix=no
12536 freebsd-*)
12537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12538 need_version=yes
12540 esac
12541 shlibpath_var=LD_LIBRARY_PATH
12542 case $host_os in
12543 freebsd2.*)
12544 shlibpath_overrides_runpath=yes
12546 freebsd3.[01]* | freebsdelf3.[01]*)
12547 shlibpath_overrides_runpath=yes
12548 hardcode_into_libs=yes
12550 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12551 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12552 shlibpath_overrides_runpath=no
12553 hardcode_into_libs=yes
12555 *) # from 4.6 on, and DragonFly
12556 shlibpath_overrides_runpath=yes
12557 hardcode_into_libs=yes
12559 esac
12562 gnu*)
12563 version_type=linux
12564 need_lib_prefix=no
12565 need_version=no
12566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12567 soname_spec='${libname}${release}${shared_ext}$major'
12568 shlibpath_var=LD_LIBRARY_PATH
12569 hardcode_into_libs=yes
12572 haiku*)
12573 version_type=linux
12574 need_lib_prefix=no
12575 need_version=no
12576 dynamic_linker="$host_os runtime_loader"
12577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12578 soname_spec='${libname}${release}${shared_ext}$major'
12579 shlibpath_var=LIBRARY_PATH
12580 shlibpath_overrides_runpath=yes
12581 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12582 hardcode_into_libs=yes
12585 hpux9* | hpux10* | hpux11*)
12586 # Give a soname corresponding to the major version so that dld.sl refuses to
12587 # link against other versions.
12588 version_type=sunos
12589 need_lib_prefix=no
12590 need_version=no
12591 case $host_cpu in
12592 ia64*)
12593 shrext_cmds='.so'
12594 hardcode_into_libs=yes
12595 dynamic_linker="$host_os dld.so"
12596 shlibpath_var=LD_LIBRARY_PATH
12597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12599 soname_spec='${libname}${release}${shared_ext}$major'
12600 if test "X$HPUX_IA64_MODE" = X32; then
12601 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12602 else
12603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12607 hppa*64*)
12608 shrext_cmds='.sl'
12609 hardcode_into_libs=yes
12610 dynamic_linker="$host_os dld.sl"
12611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12614 soname_spec='${libname}${release}${shared_ext}$major'
12615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12619 shrext_cmds='.sl'
12620 dynamic_linker="$host_os dld.sl"
12621 shlibpath_var=SHLIB_PATH
12622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12624 soname_spec='${libname}${release}${shared_ext}$major'
12626 esac
12627 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12628 postinstall_cmds='chmod 555 $lib'
12629 # or fails outright, so override atomically:
12630 install_override_mode=555
12633 interix[3-9]*)
12634 version_type=linux
12635 need_lib_prefix=no
12636 need_version=no
12637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12638 soname_spec='${libname}${release}${shared_ext}$major'
12639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12640 shlibpath_var=LD_LIBRARY_PATH
12641 shlibpath_overrides_runpath=no
12642 hardcode_into_libs=yes
12645 irix5* | irix6* | nonstopux*)
12646 case $host_os in
12647 nonstopux*) version_type=nonstopux ;;
12649 if test "$lt_cv_prog_gnu_ld" = yes; then
12650 version_type=linux
12651 else
12652 version_type=irix
12653 fi ;;
12654 esac
12655 need_lib_prefix=no
12656 need_version=no
12657 soname_spec='${libname}${release}${shared_ext}$major'
12658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12659 case $host_os in
12660 irix5* | nonstopux*)
12661 libsuff= shlibsuff=
12664 case $LD in # libtool.m4 will add one of these switches to LD
12665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12666 libsuff= shlibsuff= libmagic=32-bit;;
12667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12668 libsuff=32 shlibsuff=N32 libmagic=N32;;
12669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12670 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12671 *) libsuff= shlibsuff= libmagic=never-match;;
12672 esac
12674 esac
12675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12676 shlibpath_overrides_runpath=no
12677 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12678 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12679 hardcode_into_libs=yes
12682 # No shared lib support for Linux oldld, aout, or coff.
12683 linux*oldld* | linux*aout* | linux*coff*)
12684 dynamic_linker=no
12687 # This must be Linux ELF.
12688 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12689 version_type=linux
12690 need_lib_prefix=no
12691 need_version=no
12692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12693 soname_spec='${libname}${release}${shared_ext}$major'
12694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12695 shlibpath_var=LD_LIBRARY_PATH
12696 shlibpath_overrides_runpath=no
12698 # Some binutils ld are patched to set DT_RUNPATH
12699 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 lt_cv_shlibpath_overrides_runpath=no
12703 save_LDFLAGS=$LDFLAGS
12704 save_libdir=$libdir
12705 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12706 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12707 if test x$gcc_no_link = xyes; then
12708 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12714 main ()
12718 return 0;
12720 _ACEOF
12721 if ac_fn_c_try_link "$LINENO"; then :
12722 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12723 lt_cv_shlibpath_overrides_runpath=yes
12726 rm -f core conftest.err conftest.$ac_objext \
12727 conftest$ac_exeext conftest.$ac_ext
12728 LDFLAGS=$save_LDFLAGS
12729 libdir=$save_libdir
12733 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12735 # This implies no fast_install, which is unacceptable.
12736 # Some rework will be needed to allow for fast_install
12737 # before this can be enabled.
12738 hardcode_into_libs=yes
12740 # Append ld.so.conf contents to the search path
12741 if test -f /etc/ld.so.conf; then
12742 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12743 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12746 # We used to test for /lib/ld.so.1 and disable shared libraries on
12747 # powerpc, because MkLinux only supported shared libraries with the
12748 # GNU dynamic linker. Since this was broken with cross compilers,
12749 # most powerpc-linux boxes support dynamic linking these days and
12750 # people can always --disable-shared, the test was removed, and we
12751 # assume the GNU/Linux dynamic linker is in use.
12752 dynamic_linker='GNU/Linux ld.so'
12755 netbsd*)
12756 version_type=sunos
12757 need_lib_prefix=no
12758 need_version=no
12759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12762 dynamic_linker='NetBSD (a.out) ld.so'
12763 else
12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12765 soname_spec='${libname}${release}${shared_ext}$major'
12766 dynamic_linker='NetBSD ld.elf_so'
12768 shlibpath_var=LD_LIBRARY_PATH
12769 shlibpath_overrides_runpath=yes
12770 hardcode_into_libs=yes
12773 newsos6)
12774 version_type=linux
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12776 shlibpath_var=LD_LIBRARY_PATH
12777 shlibpath_overrides_runpath=yes
12780 *nto* | *qnx*)
12781 version_type=qnx
12782 need_lib_prefix=no
12783 need_version=no
12784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12785 soname_spec='${libname}${release}${shared_ext}$major'
12786 shlibpath_var=LD_LIBRARY_PATH
12787 shlibpath_overrides_runpath=no
12788 hardcode_into_libs=yes
12789 dynamic_linker='ldqnx.so'
12792 openbsd*)
12793 version_type=sunos
12794 sys_lib_dlsearch_path_spec="/usr/lib"
12795 need_lib_prefix=no
12796 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12797 case $host_os in
12798 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12799 *) need_version=no ;;
12800 esac
12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12803 shlibpath_var=LD_LIBRARY_PATH
12804 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12805 case $host_os in
12806 openbsd2.[89] | openbsd2.[89].*)
12807 shlibpath_overrides_runpath=no
12810 shlibpath_overrides_runpath=yes
12812 esac
12813 else
12814 shlibpath_overrides_runpath=yes
12818 os2*)
12819 libname_spec='$name'
12820 shrext_cmds=".dll"
12821 need_lib_prefix=no
12822 library_names_spec='$libname${shared_ext} $libname.a'
12823 dynamic_linker='OS/2 ld.exe'
12824 shlibpath_var=LIBPATH
12827 osf3* | osf4* | osf5*)
12828 version_type=osf
12829 need_lib_prefix=no
12830 need_version=no
12831 soname_spec='${libname}${release}${shared_ext}$major'
12832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12833 shlibpath_var=LD_LIBRARY_PATH
12834 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12835 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12838 rdos*)
12839 dynamic_linker=no
12842 solaris*)
12843 version_type=linux
12844 need_lib_prefix=no
12845 need_version=no
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847 soname_spec='${libname}${release}${shared_ext}$major'
12848 shlibpath_var=LD_LIBRARY_PATH
12849 shlibpath_overrides_runpath=yes
12850 hardcode_into_libs=yes
12851 # ldd complains unless libraries are executable
12852 postinstall_cmds='chmod +x $lib'
12855 sunos4*)
12856 version_type=sunos
12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 shlibpath_overrides_runpath=yes
12861 if test "$with_gnu_ld" = yes; then
12862 need_lib_prefix=no
12864 need_version=yes
12867 sysv4 | sysv4.3*)
12868 version_type=linux
12869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12870 soname_spec='${libname}${release}${shared_ext}$major'
12871 shlibpath_var=LD_LIBRARY_PATH
12872 case $host_vendor in
12873 sni)
12874 shlibpath_overrides_runpath=no
12875 need_lib_prefix=no
12876 runpath_var=LD_RUN_PATH
12878 siemens)
12879 need_lib_prefix=no
12881 motorola)
12882 need_lib_prefix=no
12883 need_version=no
12884 shlibpath_overrides_runpath=no
12885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12887 esac
12890 sysv4*MP*)
12891 if test -d /usr/nec ;then
12892 version_type=linux
12893 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12894 soname_spec='$libname${shared_ext}.$major'
12895 shlibpath_var=LD_LIBRARY_PATH
12899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12900 version_type=freebsd-elf
12901 need_lib_prefix=no
12902 need_version=no
12903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12904 soname_spec='${libname}${release}${shared_ext}$major'
12905 shlibpath_var=LD_LIBRARY_PATH
12906 shlibpath_overrides_runpath=yes
12907 hardcode_into_libs=yes
12908 if test "$with_gnu_ld" = yes; then
12909 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12910 else
12911 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12912 case $host_os in
12913 sco3.2v5*)
12914 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12916 esac
12918 sys_lib_dlsearch_path_spec='/usr/lib'
12921 tpf*)
12922 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12923 version_type=linux
12924 need_lib_prefix=no
12925 need_version=no
12926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12927 shlibpath_var=LD_LIBRARY_PATH
12928 shlibpath_overrides_runpath=no
12929 hardcode_into_libs=yes
12932 uts4*)
12933 version_type=linux
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12935 soname_spec='${libname}${release}${shared_ext}$major'
12936 shlibpath_var=LD_LIBRARY_PATH
12940 dynamic_linker=no
12942 esac
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12944 $as_echo "$dynamic_linker" >&6; }
12945 test "$dynamic_linker" = no && can_build_shared=no
12947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12948 if test "$GCC" = yes; then
12949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12952 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12953 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12955 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12956 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13051 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13052 hardcode_action=
13053 if test -n "$hardcode_libdir_flag_spec" ||
13054 test -n "$runpath_var" ||
13055 test "X$hardcode_automatic" = "Xyes" ; then
13057 # We can hardcode non-existent directories.
13058 if test "$hardcode_direct" != no &&
13059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13060 # have to relink, otherwise we might link with an installed library
13061 # when we should be linking with a yet-to-be-installed one
13062 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13063 test "$hardcode_minus_L" != no; then
13064 # Linking always hardcodes the temporary library directory.
13065 hardcode_action=relink
13066 else
13067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13068 hardcode_action=immediate
13070 else
13071 # We cannot hardcode anything, or else we can only hardcode existing
13072 # directories.
13073 hardcode_action=unsupported
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13076 $as_echo "$hardcode_action" >&6; }
13078 if test "$hardcode_action" = relink ||
13079 test "$inherit_rpath" = yes; then
13080 # Fast installation is not supported
13081 enable_fast_install=no
13082 elif test "$shlibpath_overrides_runpath" = yes ||
13083 test "$enable_shared" = no; then
13084 # Fast installation is not necessary
13085 enable_fast_install=needless
13093 if test "x$enable_dlopen" != xyes; then
13094 enable_dlopen=unknown
13095 enable_dlopen_self=unknown
13096 enable_dlopen_self_static=unknown
13097 else
13098 lt_cv_dlopen=no
13099 lt_cv_dlopen_libs=
13101 case $host_os in
13102 beos*)
13103 lt_cv_dlopen="load_add_on"
13104 lt_cv_dlopen_libs=
13105 lt_cv_dlopen_self=yes
13108 mingw* | pw32* | cegcc*)
13109 lt_cv_dlopen="LoadLibrary"
13110 lt_cv_dlopen_libs=
13113 cygwin*)
13114 lt_cv_dlopen="dlopen"
13115 lt_cv_dlopen_libs=
13118 darwin*)
13119 # if libdl is installed we need to link against it
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13121 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13122 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 ac_check_lib_save_LIBS=$LIBS
13126 LIBS="-ldl $LIBS"
13127 if test x$gcc_no_link = xyes; then
13128 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13133 /* Override any GCC internal prototype to avoid an error.
13134 Use char because int might match the return type of a GCC
13135 builtin and then its argument prototype would still apply. */
13136 #ifdef __cplusplus
13137 extern "C"
13138 #endif
13139 char dlopen ();
13141 main ()
13143 return dlopen ();
13145 return 0;
13147 _ACEOF
13148 if ac_fn_c_try_link "$LINENO"; then :
13149 ac_cv_lib_dl_dlopen=yes
13150 else
13151 ac_cv_lib_dl_dlopen=no
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155 LIBS=$ac_check_lib_save_LIBS
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13158 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13159 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13160 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13161 else
13163 lt_cv_dlopen="dyld"
13164 lt_cv_dlopen_libs=
13165 lt_cv_dlopen_self=yes
13172 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13173 if test "x$ac_cv_func_shl_load" = x""yes; then :
13174 lt_cv_dlopen="shl_load"
13175 else
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13177 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13178 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 ac_check_lib_save_LIBS=$LIBS
13182 LIBS="-ldld $LIBS"
13183 if test x$gcc_no_link = xyes; then
13184 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13189 /* Override any GCC internal prototype to avoid an error.
13190 Use char because int might match the return type of a GCC
13191 builtin and then its argument prototype would still apply. */
13192 #ifdef __cplusplus
13193 extern "C"
13194 #endif
13195 char shl_load ();
13197 main ()
13199 return shl_load ();
13201 return 0;
13203 _ACEOF
13204 if ac_fn_c_try_link "$LINENO"; then :
13205 ac_cv_lib_dld_shl_load=yes
13206 else
13207 ac_cv_lib_dld_shl_load=no
13209 rm -f core conftest.err conftest.$ac_objext \
13210 conftest$ac_exeext conftest.$ac_ext
13211 LIBS=$ac_check_lib_save_LIBS
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13214 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13215 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13216 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13217 else
13218 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13219 if test "x$ac_cv_func_dlopen" = x""yes; then :
13220 lt_cv_dlopen="dlopen"
13221 else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13223 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13224 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 ac_check_lib_save_LIBS=$LIBS
13228 LIBS="-ldl $LIBS"
13229 if test x$gcc_no_link = xyes; then
13230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13235 /* Override any GCC internal prototype to avoid an error.
13236 Use char because int might match the return type of a GCC
13237 builtin and then its argument prototype would still apply. */
13238 #ifdef __cplusplus
13239 extern "C"
13240 #endif
13241 char dlopen ();
13243 main ()
13245 return dlopen ();
13247 return 0;
13249 _ACEOF
13250 if ac_fn_c_try_link "$LINENO"; then :
13251 ac_cv_lib_dl_dlopen=yes
13252 else
13253 ac_cv_lib_dl_dlopen=no
13255 rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13257 LIBS=$ac_check_lib_save_LIBS
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13260 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13261 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13263 else
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13265 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13266 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 ac_check_lib_save_LIBS=$LIBS
13270 LIBS="-lsvld $LIBS"
13271 if test x$gcc_no_link = xyes; then
13272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13277 /* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
13280 #ifdef __cplusplus
13281 extern "C"
13282 #endif
13283 char dlopen ();
13285 main ()
13287 return dlopen ();
13289 return 0;
13291 _ACEOF
13292 if ac_fn_c_try_link "$LINENO"; then :
13293 ac_cv_lib_svld_dlopen=yes
13294 else
13295 ac_cv_lib_svld_dlopen=no
13297 rm -f core conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13299 LIBS=$ac_check_lib_save_LIBS
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13302 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13303 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13305 else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13307 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13308 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-ldld $LIBS"
13313 if test x$gcc_no_link = xyes; then
13314 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13319 /* Override any GCC internal prototype to avoid an error.
13320 Use char because int might match the return type of a GCC
13321 builtin and then its argument prototype would still apply. */
13322 #ifdef __cplusplus
13323 extern "C"
13324 #endif
13325 char dld_link ();
13327 main ()
13329 return dld_link ();
13331 return 0;
13333 _ACEOF
13334 if ac_fn_c_try_link "$LINENO"; then :
13335 ac_cv_lib_dld_dld_link=yes
13336 else
13337 ac_cv_lib_dld_dld_link=no
13339 rm -f core conftest.err conftest.$ac_objext \
13340 conftest$ac_exeext conftest.$ac_ext
13341 LIBS=$ac_check_lib_save_LIBS
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13344 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13345 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13346 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13365 esac
13367 if test "x$lt_cv_dlopen" != xno; then
13368 enable_dlopen=yes
13369 else
13370 enable_dlopen=no
13373 case $lt_cv_dlopen in
13374 dlopen)
13375 save_CPPFLAGS="$CPPFLAGS"
13376 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13378 save_LDFLAGS="$LDFLAGS"
13379 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13381 save_LIBS="$LIBS"
13382 LIBS="$lt_cv_dlopen_libs $LIBS"
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13385 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13386 if test "${lt_cv_dlopen_self+set}" = set; then :
13387 $as_echo_n "(cached) " >&6
13388 else
13389 if test "$cross_compiling" = yes; then :
13390 lt_cv_dlopen_self=cross
13391 else
13392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13393 lt_status=$lt_dlunknown
13394 cat > conftest.$ac_ext <<_LT_EOF
13395 #line 13395 "configure"
13396 #include "confdefs.h"
13398 #if HAVE_DLFCN_H
13399 #include <dlfcn.h>
13400 #endif
13402 #include <stdio.h>
13404 #ifdef RTLD_GLOBAL
13405 # define LT_DLGLOBAL RTLD_GLOBAL
13406 #else
13407 # ifdef DL_GLOBAL
13408 # define LT_DLGLOBAL DL_GLOBAL
13409 # else
13410 # define LT_DLGLOBAL 0
13411 # endif
13412 #endif
13414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13415 find out it does not work in some platform. */
13416 #ifndef LT_DLLAZY_OR_NOW
13417 # ifdef RTLD_LAZY
13418 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13419 # else
13420 # ifdef DL_LAZY
13421 # define LT_DLLAZY_OR_NOW DL_LAZY
13422 # else
13423 # ifdef RTLD_NOW
13424 # define LT_DLLAZY_OR_NOW RTLD_NOW
13425 # else
13426 # ifdef DL_NOW
13427 # define LT_DLLAZY_OR_NOW DL_NOW
13428 # else
13429 # define LT_DLLAZY_OR_NOW 0
13430 # endif
13431 # endif
13432 # endif
13433 # endif
13434 #endif
13436 /* When -fvisbility=hidden is used, assume the code has been annotated
13437 correspondingly for the symbols needed. */
13438 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13439 void fnord () __attribute__((visibility("default")));
13440 #endif
13442 void fnord () { int i=42; }
13443 int main ()
13445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13446 int status = $lt_dlunknown;
13448 if (self)
13450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13451 else
13453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13454 else puts (dlerror ());
13456 /* dlclose (self); */
13458 else
13459 puts (dlerror ());
13461 return status;
13463 _LT_EOF
13464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13465 (eval $ac_link) 2>&5
13466 ac_status=$?
13467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13469 (./conftest; exit; ) >&5 2>/dev/null
13470 lt_status=$?
13471 case x$lt_status in
13472 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13473 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13474 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13475 esac
13476 else :
13477 # compilation failed
13478 lt_cv_dlopen_self=no
13481 rm -fr conftest*
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13486 $as_echo "$lt_cv_dlopen_self" >&6; }
13488 if test "x$lt_cv_dlopen_self" = xyes; then
13489 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13491 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13492 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 if test "$cross_compiling" = yes; then :
13496 lt_cv_dlopen_self_static=cross
13497 else
13498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13499 lt_status=$lt_dlunknown
13500 cat > conftest.$ac_ext <<_LT_EOF
13501 #line 13501 "configure"
13502 #include "confdefs.h"
13504 #if HAVE_DLFCN_H
13505 #include <dlfcn.h>
13506 #endif
13508 #include <stdio.h>
13510 #ifdef RTLD_GLOBAL
13511 # define LT_DLGLOBAL RTLD_GLOBAL
13512 #else
13513 # ifdef DL_GLOBAL
13514 # define LT_DLGLOBAL DL_GLOBAL
13515 # else
13516 # define LT_DLGLOBAL 0
13517 # endif
13518 #endif
13520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13521 find out it does not work in some platform. */
13522 #ifndef LT_DLLAZY_OR_NOW
13523 # ifdef RTLD_LAZY
13524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13525 # else
13526 # ifdef DL_LAZY
13527 # define LT_DLLAZY_OR_NOW DL_LAZY
13528 # else
13529 # ifdef RTLD_NOW
13530 # define LT_DLLAZY_OR_NOW RTLD_NOW
13531 # else
13532 # ifdef DL_NOW
13533 # define LT_DLLAZY_OR_NOW DL_NOW
13534 # else
13535 # define LT_DLLAZY_OR_NOW 0
13536 # endif
13537 # endif
13538 # endif
13539 # endif
13540 #endif
13542 /* When -fvisbility=hidden is used, assume the code has been annotated
13543 correspondingly for the symbols needed. */
13544 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13545 void fnord () __attribute__((visibility("default")));
13546 #endif
13548 void fnord () { int i=42; }
13549 int main ()
13551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13552 int status = $lt_dlunknown;
13554 if (self)
13556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13557 else
13559 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13560 else puts (dlerror ());
13562 /* dlclose (self); */
13564 else
13565 puts (dlerror ());
13567 return status;
13569 _LT_EOF
13570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13571 (eval $ac_link) 2>&5
13572 ac_status=$?
13573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13574 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13575 (./conftest; exit; ) >&5 2>/dev/null
13576 lt_status=$?
13577 case x$lt_status in
13578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13580 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13581 esac
13582 else :
13583 # compilation failed
13584 lt_cv_dlopen_self_static=no
13587 rm -fr conftest*
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13592 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13595 CPPFLAGS="$save_CPPFLAGS"
13596 LDFLAGS="$save_LDFLAGS"
13597 LIBS="$save_LIBS"
13599 esac
13601 case $lt_cv_dlopen_self in
13602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13603 *) enable_dlopen_self=unknown ;;
13604 esac
13606 case $lt_cv_dlopen_self_static in
13607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13608 *) enable_dlopen_self_static=unknown ;;
13609 esac
13628 striplib=
13629 old_striplib=
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13631 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13632 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13633 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13634 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636 $as_echo "yes" >&6; }
13637 else
13638 # FIXME - insert some real tests, host_os isn't really good enough
13639 case $host_os in
13640 darwin*)
13641 if test -n "$STRIP" ; then
13642 striplib="$STRIP -x"
13643 old_striplib="$STRIP -S"
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13645 $as_echo "yes" >&6; }
13646 else
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648 $as_echo "no" >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13655 esac
13669 # Report which library types will actually be built
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13671 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13673 $as_echo "$can_build_shared" >&6; }
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13676 $as_echo_n "checking whether to build shared libraries... " >&6; }
13677 test "$can_build_shared" = "no" && enable_shared=no
13679 # On AIX, shared libraries and static libraries use the same namespace, and
13680 # are all built from PIC.
13681 case $host_os in
13682 aix3*)
13683 test "$enable_shared" = yes && enable_static=no
13684 if test -n "$RANLIB"; then
13685 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13686 postinstall_cmds='$RANLIB $lib'
13690 aix[4-9]*)
13691 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13692 test "$enable_shared" = yes && enable_static=no
13695 esac
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13697 $as_echo "$enable_shared" >&6; }
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13700 $as_echo_n "checking whether to build static libraries... " >&6; }
13701 # Make sure either enable_shared or enable_static is yes.
13702 test "$enable_shared" = yes || enable_static=yes
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13704 $as_echo "$enable_static" >&6; }
13710 ac_ext=c
13711 ac_cpp='$CPP $CPPFLAGS'
13712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13716 CC="$lt_save_CC"
13718 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13719 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13720 (test "X$CXX" != "Xg++"))) ; then
13721 ac_ext=cpp
13722 ac_cpp='$CXXCPP $CPPFLAGS'
13723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13727 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13728 if test -z "$CXXCPP"; then
13729 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13730 $as_echo_n "(cached) " >&6
13731 else
13732 # Double quotes because CXXCPP needs to be expanded
13733 for CXXCPP in "$CXX -E" "/lib/cpp"
13735 ac_preproc_ok=false
13736 for ac_cxx_preproc_warn_flag in '' yes
13738 # Use a header file that comes with gcc, so configuring glibc
13739 # with a fresh cross-compiler works.
13740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13741 # <limits.h> exists even on freestanding compilers.
13742 # On the NeXT, cc -E runs the code through the compiler's parser,
13743 # not just through cpp. "Syntax error" is here to catch this case.
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746 #ifdef __STDC__
13747 # include <limits.h>
13748 #else
13749 # include <assert.h>
13750 #endif
13751 Syntax error
13752 _ACEOF
13753 if ac_fn_cxx_try_cpp "$LINENO"; then :
13755 else
13756 # Broken: fails on valid input.
13757 continue
13759 rm -f conftest.err conftest.$ac_ext
13761 # OK, works on sane cases. Now check whether nonexistent headers
13762 # can be detected and how.
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13765 #include <ac_nonexistent.h>
13766 _ACEOF
13767 if ac_fn_cxx_try_cpp "$LINENO"; then :
13768 # Broken: success on invalid input.
13769 continue
13770 else
13771 # Passes both tests.
13772 ac_preproc_ok=:
13773 break
13775 rm -f conftest.err conftest.$ac_ext
13777 done
13778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13779 rm -f conftest.err conftest.$ac_ext
13780 if $ac_preproc_ok; then :
13781 break
13784 done
13785 ac_cv_prog_CXXCPP=$CXXCPP
13788 CXXCPP=$ac_cv_prog_CXXCPP
13789 else
13790 ac_cv_prog_CXXCPP=$CXXCPP
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13793 $as_echo "$CXXCPP" >&6; }
13794 ac_preproc_ok=false
13795 for ac_cxx_preproc_warn_flag in '' yes
13797 # Use a header file that comes with gcc, so configuring glibc
13798 # with a fresh cross-compiler works.
13799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13800 # <limits.h> exists even on freestanding compilers.
13801 # On the NeXT, cc -E runs the code through the compiler's parser,
13802 # not just through cpp. "Syntax error" is here to catch this case.
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13805 #ifdef __STDC__
13806 # include <limits.h>
13807 #else
13808 # include <assert.h>
13809 #endif
13810 Syntax error
13811 _ACEOF
13812 if ac_fn_cxx_try_cpp "$LINENO"; then :
13814 else
13815 # Broken: fails on valid input.
13816 continue
13818 rm -f conftest.err conftest.$ac_ext
13820 # OK, works on sane cases. Now check whether nonexistent headers
13821 # can be detected and how.
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13824 #include <ac_nonexistent.h>
13825 _ACEOF
13826 if ac_fn_cxx_try_cpp "$LINENO"; then :
13827 # Broken: success on invalid input.
13828 continue
13829 else
13830 # Passes both tests.
13831 ac_preproc_ok=:
13832 break
13834 rm -f conftest.err conftest.$ac_ext
13836 done
13837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13838 rm -f conftest.err conftest.$ac_ext
13839 if $ac_preproc_ok; then :
13841 else
13842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13844 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13845 See \`config.log' for more details." "$LINENO" 5; }
13848 ac_ext=c
13849 ac_cpp='$CPP $CPPFLAGS'
13850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13854 else
13855 _lt_caught_CXX_error=yes
13858 ac_ext=cpp
13859 ac_cpp='$CXXCPP $CPPFLAGS'
13860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13864 archive_cmds_need_lc_CXX=no
13865 allow_undefined_flag_CXX=
13866 always_export_symbols_CXX=no
13867 archive_expsym_cmds_CXX=
13868 compiler_needs_object_CXX=no
13869 export_dynamic_flag_spec_CXX=
13870 hardcode_direct_CXX=no
13871 hardcode_direct_absolute_CXX=no
13872 hardcode_libdir_flag_spec_CXX=
13873 hardcode_libdir_flag_spec_ld_CXX=
13874 hardcode_libdir_separator_CXX=
13875 hardcode_minus_L_CXX=no
13876 hardcode_shlibpath_var_CXX=unsupported
13877 hardcode_automatic_CXX=no
13878 inherit_rpath_CXX=no
13879 module_cmds_CXX=
13880 module_expsym_cmds_CXX=
13881 link_all_deplibs_CXX=unknown
13882 old_archive_cmds_CXX=$old_archive_cmds
13883 reload_flag_CXX=$reload_flag
13884 reload_cmds_CXX=$reload_cmds
13885 no_undefined_flag_CXX=
13886 whole_archive_flag_spec_CXX=
13887 enable_shared_with_static_runtimes_CXX=no
13889 # Source file extension for C++ test sources.
13890 ac_ext=cpp
13892 # Object file extension for compiled C++ test sources.
13893 objext=o
13894 objext_CXX=$objext
13896 # No sense in running all these tests if we already determined that
13897 # the CXX compiler isn't working. Some variables (like enable_shared)
13898 # are currently assumed to apply to all compilers on this platform,
13899 # and will be corrupted by setting them based on a non-working compiler.
13900 if test "$_lt_caught_CXX_error" != yes; then
13901 # Code to be used in simple compile tests
13902 lt_simple_compile_test_code="int some_variable = 0;"
13904 # Code to be used in simple link tests
13905 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13914 # If no C compiler was specified, use CC.
13915 LTCC=${LTCC-"$CC"}
13917 # If no C compiler flags were specified, use CFLAGS.
13918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13920 # Allow CC to be a program name with arguments.
13921 compiler=$CC
13924 # save warnings/boilerplate of simple test code
13925 ac_outfile=conftest.$ac_objext
13926 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13928 _lt_compiler_boilerplate=`cat conftest.err`
13929 $RM conftest*
13931 ac_outfile=conftest.$ac_objext
13932 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13934 _lt_linker_boilerplate=`cat conftest.err`
13935 $RM -r conftest*
13938 # Allow CC to be a program name with arguments.
13939 lt_save_CC=$CC
13940 lt_save_LD=$LD
13941 lt_save_GCC=$GCC
13942 GCC=$GXX
13943 lt_save_with_gnu_ld=$with_gnu_ld
13944 lt_save_path_LD=$lt_cv_path_LD
13945 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13946 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13947 else
13948 $as_unset lt_cv_prog_gnu_ld
13950 if test -n "${lt_cv_path_LDCXX+set}"; then
13951 lt_cv_path_LD=$lt_cv_path_LDCXX
13952 else
13953 $as_unset lt_cv_path_LD
13955 test -z "${LDCXX+set}" || LD=$LDCXX
13956 CC=${CXX-"c++"}
13957 compiler=$CC
13958 compiler_CXX=$CC
13959 for cc_temp in $compiler""; do
13960 case $cc_temp in
13961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13963 \-*) ;;
13964 *) break;;
13965 esac
13966 done
13967 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13970 if test -n "$compiler"; then
13971 # We don't want -fno-exception when compiling C++ code, so set the
13972 # no_builtin_flag separately
13973 if test "$GXX" = yes; then
13974 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13975 else
13976 lt_prog_compiler_no_builtin_flag_CXX=
13979 if test "$GXX" = yes; then
13980 # Set up default GNU C++ configuration
13984 # Check whether --with-gnu-ld was given.
13985 if test "${with_gnu_ld+set}" = set; then :
13986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13987 else
13988 with_gnu_ld=no
13991 ac_prog=ld
13992 if test "$GCC" = yes; then
13993 # Check if gcc -print-prog-name=ld gives a path.
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13995 $as_echo_n "checking for ld used by $CC... " >&6; }
13996 case $host in
13997 *-*-mingw*)
13998 # gcc leaves a trailing carriage return which upsets mingw
13999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14002 esac
14003 case $ac_prog in
14004 # Accept absolute paths.
14005 [\\/]* | ?:[\\/]*)
14006 re_direlt='/[^/][^/]*/\.\./'
14007 # Canonicalize the pathname of ld
14008 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14009 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14010 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14011 done
14012 test -z "$LD" && LD="$ac_prog"
14015 # If it fails, then pretend we aren't using GCC.
14016 ac_prog=ld
14019 # If it is relative, then search for the first ld in PATH.
14020 with_gnu_ld=unknown
14022 esac
14023 elif test "$with_gnu_ld" = yes; then
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14025 $as_echo_n "checking for GNU ld... " >&6; }
14026 else
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14028 $as_echo_n "checking for non-GNU ld... " >&6; }
14030 if test "${lt_cv_path_LD+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 if test -z "$LD"; then
14034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14035 for ac_dir in $PATH; do
14036 IFS="$lt_save_ifs"
14037 test -z "$ac_dir" && ac_dir=.
14038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14039 lt_cv_path_LD="$ac_dir/$ac_prog"
14040 # Check to see if the program is GNU ld. I'd rather use --version,
14041 # but apparently some variants of GNU ld only accept -v.
14042 # Break only if it was the GNU/non-GNU ld that we prefer.
14043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14044 *GNU* | *'with BFD'*)
14045 test "$with_gnu_ld" != no && break
14048 test "$with_gnu_ld" != yes && break
14050 esac
14052 done
14053 IFS="$lt_save_ifs"
14054 else
14055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14059 LD="$lt_cv_path_LD"
14060 if test -n "$LD"; then
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14062 $as_echo "$LD" >&6; }
14063 else
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065 $as_echo "no" >&6; }
14067 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14069 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14070 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14071 $as_echo_n "(cached) " >&6
14072 else
14073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14074 case `$LD -v 2>&1 </dev/null` in
14075 *GNU* | *'with BFD'*)
14076 lt_cv_prog_gnu_ld=yes
14079 lt_cv_prog_gnu_ld=no
14081 esac
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14084 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14085 with_gnu_ld=$lt_cv_prog_gnu_ld
14093 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14094 # archiving commands below assume that GNU ld is being used.
14095 if test "$with_gnu_ld" = yes; then
14096 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14097 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14102 # If archive_cmds runs LD, not CC, wlarc should be empty
14103 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14104 # investigate it a little bit more. (MM)
14105 wlarc='${wl}'
14107 # ancient GNU ld didn't support --whole-archive et. al.
14108 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14109 $GREP 'no-whole-archive' > /dev/null; then
14110 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14111 else
14112 whole_archive_flag_spec_CXX=
14114 else
14115 with_gnu_ld=no
14116 wlarc=
14118 # A generic and very simple default shared library creation
14119 # command for GNU C++ for the case where it uses the native
14120 # linker, instead of GNU ld. If possible, this setting should
14121 # overridden to take advantage of the native linker features on
14122 # the platform it is being used on.
14123 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14126 # Commands to make compiler produce verbose output that lists
14127 # what "hidden" libraries, object files and flags are used when
14128 # linking a shared library.
14129 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14131 else
14132 GXX=no
14133 with_gnu_ld=no
14134 wlarc=
14137 # PORTME: fill in a description of your system's C++ link characteristics
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14139 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14140 ld_shlibs_CXX=yes
14141 case $host_os in
14142 aix3*)
14143 # FIXME: insert proper C++ library support
14144 ld_shlibs_CXX=no
14146 aix[4-9]*)
14147 if test "$host_cpu" = ia64; then
14148 # On IA64, the linker does run time linking by default, so we don't
14149 # have to do anything special.
14150 aix_use_runtimelinking=no
14151 exp_sym_flag='-Bexport'
14152 no_entry_flag=""
14153 else
14154 aix_use_runtimelinking=no
14156 # Test if we are trying to use run time linking or normal
14157 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14158 # need to do runtime linking.
14159 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14160 for ld_flag in $LDFLAGS; do
14161 case $ld_flag in
14162 *-brtl*)
14163 aix_use_runtimelinking=yes
14164 break
14166 esac
14167 done
14169 esac
14171 exp_sym_flag='-bexport'
14172 no_entry_flag='-bnoentry'
14175 # When large executables or shared objects are built, AIX ld can
14176 # have problems creating the table of contents. If linking a library
14177 # or program results in "error TOC overflow" add -mminimal-toc to
14178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14181 archive_cmds_CXX=''
14182 hardcode_direct_CXX=yes
14183 hardcode_direct_absolute_CXX=yes
14184 hardcode_libdir_separator_CXX=':'
14185 link_all_deplibs_CXX=yes
14186 file_list_spec_CXX='${wl}-f,'
14188 if test "$GXX" = yes; then
14189 case $host_os in aix4.[012]|aix4.[012].*)
14190 # We only want to do this on AIX 4.2 and lower, the check
14191 # below for broken collect2 doesn't work under 4.3+
14192 collect2name=`${CC} -print-prog-name=collect2`
14193 if test -f "$collect2name" &&
14194 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14195 then
14196 # We have reworked collect2
14198 else
14199 # We have old collect2
14200 hardcode_direct_CXX=unsupported
14201 # It fails to find uninstalled libraries when the uninstalled
14202 # path is not listed in the libpath. Setting hardcode_minus_L
14203 # to unsupported forces relinking
14204 hardcode_minus_L_CXX=yes
14205 hardcode_libdir_flag_spec_CXX='-L$libdir'
14206 hardcode_libdir_separator_CXX=
14208 esac
14209 shared_flag='-shared'
14210 if test "$aix_use_runtimelinking" = yes; then
14211 shared_flag="$shared_flag "'${wl}-G'
14213 else
14214 # not using gcc
14215 if test "$host_cpu" = ia64; then
14216 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14217 # chokes on -Wl,-G. The following line is correct:
14218 shared_flag='-G'
14219 else
14220 if test "$aix_use_runtimelinking" = yes; then
14221 shared_flag='${wl}-G'
14222 else
14223 shared_flag='${wl}-bM:SRE'
14228 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14229 # It seems that -bexpall does not export symbols beginning with
14230 # underscore (_), so it is better to generate a list of symbols to
14231 # export.
14232 always_export_symbols_CXX=yes
14233 if test "$aix_use_runtimelinking" = yes; then
14234 # Warning - without using the other runtime loading flags (-brtl),
14235 # -berok will link without error, but may produce a broken library.
14236 allow_undefined_flag_CXX='-berok'
14237 # Determine the default libpath from the value encoded in an empty
14238 # executable.
14239 if test x$gcc_no_link = xyes; then
14240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14246 main ()
14250 return 0;
14252 _ACEOF
14253 if ac_fn_cxx_try_link "$LINENO"; then :
14255 lt_aix_libpath_sed='
14256 /Import File Strings/,/^$/ {
14257 /^0/ {
14258 s/^0 *\(.*\)$/\1/
14262 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14263 # Check for a 64-bit object if we didn't find anything.
14264 if test -z "$aix_libpath"; then
14265 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14268 rm -f core conftest.err conftest.$ac_objext \
14269 conftest$ac_exeext conftest.$ac_ext
14270 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14272 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14274 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14275 else
14276 if test "$host_cpu" = ia64; then
14277 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14278 allow_undefined_flag_CXX="-z nodefs"
14279 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"
14280 else
14281 # Determine the default libpath from the value encoded in an
14282 # empty executable.
14283 if test x$gcc_no_link = xyes; then
14284 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14290 main ()
14294 return 0;
14296 _ACEOF
14297 if ac_fn_cxx_try_link "$LINENO"; then :
14299 lt_aix_libpath_sed='
14300 /Import File Strings/,/^$/ {
14301 /^0/ {
14302 s/^0 *\(.*\)$/\1/
14306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14307 # Check for a 64-bit object if we didn't find anything.
14308 if test -z "$aix_libpath"; then
14309 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14312 rm -f core conftest.err conftest.$ac_objext \
14313 conftest$ac_exeext conftest.$ac_ext
14314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14317 # Warning - without using the other run time loading flags,
14318 # -berok will link without error, but may produce a broken library.
14319 no_undefined_flag_CXX=' ${wl}-bernotok'
14320 allow_undefined_flag_CXX=' ${wl}-berok'
14321 if test "$with_gnu_ld" = yes; then
14322 # We only use this code for GNU lds that support --whole-archive.
14323 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14324 else
14325 # Exported symbols can be pulled into shared objects from archives
14326 whole_archive_flag_spec_CXX='$convenience'
14328 archive_cmds_need_lc_CXX=yes
14329 # This is similar to how AIX traditionally builds its shared
14330 # libraries.
14331 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'
14336 beos*)
14337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14338 allow_undefined_flag_CXX=unsupported
14339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14340 # support --undefined. This deserves some investigation. FIXME
14341 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14342 else
14343 ld_shlibs_CXX=no
14347 chorus*)
14348 case $cc_basename in
14350 # FIXME: insert proper C++ library support
14351 ld_shlibs_CXX=no
14353 esac
14356 cygwin* | mingw* | pw32* | cegcc*)
14357 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14358 # as there is no search path for DLLs.
14359 hardcode_libdir_flag_spec_CXX='-L$libdir'
14360 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14361 allow_undefined_flag_CXX=unsupported
14362 always_export_symbols_CXX=no
14363 enable_shared_with_static_runtimes_CXX=yes
14365 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14366 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'
14367 # If the export-symbols file already is a .def file (1st line
14368 # is EXPORTS), use it as is; otherwise, prepend...
14369 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14370 cp $export_symbols $output_objdir/$soname.def;
14371 else
14372 echo EXPORTS > $output_objdir/$soname.def;
14373 cat $export_symbols >> $output_objdir/$soname.def;
14375 $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'
14376 else
14377 ld_shlibs_CXX=no
14380 darwin* | rhapsody*)
14383 archive_cmds_need_lc_CXX=no
14384 hardcode_direct_CXX=no
14385 hardcode_automatic_CXX=yes
14386 hardcode_shlibpath_var_CXX=unsupported
14387 if test "$lt_cv_ld_force_load" = "yes"; then
14388 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14389 else
14390 whole_archive_flag_spec_CXX=''
14392 link_all_deplibs_CXX=yes
14393 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14394 case $cc_basename in
14395 ifort*) _lt_dar_can_shared=yes ;;
14396 *) _lt_dar_can_shared=$GCC ;;
14397 esac
14398 if test "$_lt_dar_can_shared" = "yes"; then
14399 output_verbose_link_cmd=func_echo_all
14400 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14401 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14402 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14403 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14404 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14405 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14406 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14409 else
14410 ld_shlibs_CXX=no
14415 dgux*)
14416 case $cc_basename in
14417 ec++*)
14418 # FIXME: insert proper C++ library support
14419 ld_shlibs_CXX=no
14421 ghcx*)
14422 # Green Hills C++ Compiler
14423 # FIXME: insert proper C++ library support
14424 ld_shlibs_CXX=no
14427 # FIXME: insert proper C++ library support
14428 ld_shlibs_CXX=no
14430 esac
14433 freebsd2.*)
14434 # C++ shared libraries reported to be fairly broken before
14435 # switch to ELF
14436 ld_shlibs_CXX=no
14439 freebsd-elf*)
14440 archive_cmds_need_lc_CXX=no
14443 freebsd* | dragonfly*)
14444 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14445 # conventions
14446 ld_shlibs_CXX=yes
14449 gnu*)
14452 haiku*)
14453 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14454 link_all_deplibs_CXX=yes
14457 hpux9*)
14458 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14459 hardcode_libdir_separator_CXX=:
14460 export_dynamic_flag_spec_CXX='${wl}-E'
14461 hardcode_direct_CXX=yes
14462 hardcode_minus_L_CXX=yes # Not in the search PATH,
14463 # but as the default
14464 # location of the library.
14466 case $cc_basename in
14467 CC*)
14468 # FIXME: insert proper C++ library support
14469 ld_shlibs_CXX=no
14471 aCC*)
14472 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'
14473 # Commands to make compiler produce verbose output that lists
14474 # what "hidden" libraries, object files and flags are used when
14475 # linking a shared library.
14477 # There doesn't appear to be a way to prevent this compiler from
14478 # explicitly linking system object files so we need to strip them
14479 # from the output so that they don't get included in the library
14480 # dependencies.
14481 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; func_echo_all "$list"'
14484 if test "$GXX" = yes; then
14485 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'
14486 else
14487 # FIXME: insert proper C++ library support
14488 ld_shlibs_CXX=no
14491 esac
14494 hpux10*|hpux11*)
14495 if test $with_gnu_ld = no; then
14496 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14497 hardcode_libdir_separator_CXX=:
14499 case $host_cpu in
14500 hppa*64*|ia64*)
14503 export_dynamic_flag_spec_CXX='${wl}-E'
14505 esac
14507 case $host_cpu in
14508 hppa*64*|ia64*)
14509 hardcode_direct_CXX=no
14510 hardcode_shlibpath_var_CXX=no
14513 hardcode_direct_CXX=yes
14514 hardcode_direct_absolute_CXX=yes
14515 hardcode_minus_L_CXX=yes # Not in the search PATH,
14516 # but as the default
14517 # location of the library.
14519 esac
14521 case $cc_basename in
14522 CC*)
14523 # FIXME: insert proper C++ library support
14524 ld_shlibs_CXX=no
14526 aCC*)
14527 case $host_cpu in
14528 hppa*64*)
14529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14531 ia64*)
14532 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14535 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14537 esac
14538 # Commands to make compiler produce verbose output that lists
14539 # what "hidden" libraries, object files and flags are used when
14540 # linking a shared library.
14542 # There doesn't appear to be a way to prevent this compiler from
14543 # explicitly linking system object files so we need to strip them
14544 # from the output so that they don't get included in the library
14545 # dependencies.
14546 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; func_echo_all "$list"'
14549 if test "$GXX" = yes; then
14550 if test $with_gnu_ld = no; then
14551 case $host_cpu in
14552 hppa*64*)
14553 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14555 ia64*)
14556 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14559 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'
14561 esac
14563 else
14564 # FIXME: insert proper C++ library support
14565 ld_shlibs_CXX=no
14568 esac
14571 interix[3-9]*)
14572 hardcode_direct_CXX=no
14573 hardcode_shlibpath_var_CXX=no
14574 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14575 export_dynamic_flag_spec_CXX='${wl}-E'
14576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14577 # Instead, shared libraries are loaded at an image base (0x10000000 by
14578 # default) and relocated if they conflict, which is a slow very memory
14579 # consuming and fragmenting process. To avoid this, we pick a random,
14580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14582 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'
14583 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'
14585 irix5* | irix6*)
14586 case $cc_basename in
14587 CC*)
14588 # SGI C++
14589 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14591 # Archives containing C++ object files must be created using
14592 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14593 # necessary to make sure instantiated templates are included
14594 # in the archive.
14595 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14598 if test "$GXX" = yes; then
14599 if test "$with_gnu_ld" = no; then
14600 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14601 else
14602 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14605 link_all_deplibs_CXX=yes
14607 esac
14608 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14609 hardcode_libdir_separator_CXX=:
14610 inherit_rpath_CXX=yes
14613 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14614 case $cc_basename in
14615 KCC*)
14616 # Kuck and Associates, Inc. (KAI) C++ Compiler
14618 # KCC will only create a shared library if the output file
14619 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14620 # to its proper name (with version) after linking.
14621 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'
14622 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'
14623 # Commands to make compiler produce verbose output that lists
14624 # what "hidden" libraries, object files and flags are used when
14625 # linking a shared library.
14627 # There doesn't appear to be a way to prevent this compiler from
14628 # explicitly linking system object files so we need to strip them
14629 # from the output so that they don't get included in the library
14630 # dependencies.
14631 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; func_echo_all "$list"'
14633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14634 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14636 # Archives containing C++ object files must be created using
14637 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14638 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14640 icpc* | ecpc* )
14641 # Intel C++
14642 with_gnu_ld=yes
14643 # version 8.0 and above of icpc choke on multiply defined symbols
14644 # if we add $predep_objects and $postdep_objects, however 7.1 and
14645 # earlier do not add the objects themselves.
14646 case `$CC -V 2>&1` in
14647 *"Version 7."*)
14648 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14649 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'
14651 *) # Version 8.0 or newer
14652 tmp_idyn=
14653 case $host_cpu in
14654 ia64*) tmp_idyn=' -i_dynamic';;
14655 esac
14656 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14657 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'
14659 esac
14660 archive_cmds_need_lc_CXX=no
14661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14662 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14663 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14665 pgCC* | pgcpp*)
14666 # Portland Group C++ compiler
14667 case `$CC -V` in
14668 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14669 prelink_cmds_CXX='tpldir=Template.dir~
14670 rm -rf $tpldir~
14671 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14672 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14673 old_archive_cmds_CXX='tpldir=Template.dir~
14674 rm -rf $tpldir~
14675 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14676 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14677 $RANLIB $oldlib'
14678 archive_cmds_CXX='tpldir=Template.dir~
14679 rm -rf $tpldir~
14680 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14681 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14682 archive_expsym_cmds_CXX='tpldir=Template.dir~
14683 rm -rf $tpldir~
14684 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14685 $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'
14687 *) # Version 6 and above use weak symbols
14688 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14689 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'
14691 esac
14693 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14694 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14695 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14697 cxx*)
14698 # Compaq C++
14699 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14700 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'
14702 runpath_var=LD_RUN_PATH
14703 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14704 hardcode_libdir_separator_CXX=:
14706 # Commands to make compiler produce verbose output that lists
14707 # what "hidden" libraries, object files and flags are used when
14708 # linking a shared library.
14710 # There doesn't appear to be a way to prevent this compiler from
14711 # explicitly linking system object files so we need to strip them
14712 # from the output so that they don't get included in the library
14713 # dependencies.
14714 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14716 xl* | mpixl* | bgxl*)
14717 # IBM XL 8.0 on PPC, with GNU ld
14718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14719 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14720 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14721 if test "x$supports_anon_versioning" = xyes; then
14722 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14724 echo "local: *; };" >> $output_objdir/$libname.ver~
14725 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14729 case `$CC -V 2>&1 | sed 5q` in
14730 *Sun\ C*)
14731 # Sun C++ 5.9
14732 no_undefined_flag_CXX=' -zdefs'
14733 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14734 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'
14735 hardcode_libdir_flag_spec_CXX='-R$libdir'
14736 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14737 compiler_needs_object_CXX=yes
14739 # Not sure whether something based on
14740 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14741 # would be better.
14742 output_verbose_link_cmd='func_echo_all'
14744 # Archives containing C++ object files must be created using
14745 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14746 # necessary to make sure instantiated templates are included
14747 # in the archive.
14748 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14750 esac
14752 esac
14755 lynxos*)
14756 # FIXME: insert proper C++ library support
14757 ld_shlibs_CXX=no
14760 m88k*)
14761 # FIXME: insert proper C++ library support
14762 ld_shlibs_CXX=no
14765 mvs*)
14766 case $cc_basename in
14767 cxx*)
14768 # FIXME: insert proper C++ library support
14769 ld_shlibs_CXX=no
14772 # FIXME: insert proper C++ library support
14773 ld_shlibs_CXX=no
14775 esac
14778 netbsd*)
14779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14780 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14781 wlarc=
14782 hardcode_libdir_flag_spec_CXX='-R$libdir'
14783 hardcode_direct_CXX=yes
14784 hardcode_shlibpath_var_CXX=no
14786 # Workaround some broken pre-1.5 toolchains
14787 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14790 *nto* | *qnx*)
14791 ld_shlibs_CXX=yes
14794 openbsd2*)
14795 # C++ shared libraries are fairly broken
14796 ld_shlibs_CXX=no
14799 openbsd*)
14800 if test -f /usr/libexec/ld.so; then
14801 hardcode_direct_CXX=yes
14802 hardcode_shlibpath_var_CXX=no
14803 hardcode_direct_absolute_CXX=yes
14804 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14805 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14807 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14808 export_dynamic_flag_spec_CXX='${wl}-E'
14809 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14811 output_verbose_link_cmd=func_echo_all
14812 else
14813 ld_shlibs_CXX=no
14817 osf3* | osf4* | osf5*)
14818 case $cc_basename in
14819 KCC*)
14820 # Kuck and Associates, Inc. (KAI) C++ Compiler
14822 # KCC will only create a shared library if the output file
14823 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14824 # to its proper name (with version) after linking.
14825 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'
14827 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14828 hardcode_libdir_separator_CXX=:
14830 # Archives containing C++ object files must be created using
14831 # the KAI C++ compiler.
14832 case $host in
14833 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14834 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14835 esac
14837 RCC*)
14838 # Rational C++ 2.4.1
14839 # FIXME: insert proper C++ library support
14840 ld_shlibs_CXX=no
14842 cxx*)
14843 case $host in
14844 osf3*)
14845 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14846 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14850 allow_undefined_flag_CXX=' -expect_unresolved \*'
14851 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14852 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14853 echo "-hidden">> $lib.exp~
14854 $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14855 $RM $lib.exp'
14856 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14858 esac
14860 hardcode_libdir_separator_CXX=:
14862 # Commands to make compiler produce verbose output that lists
14863 # what "hidden" libraries, object files and flags are used when
14864 # linking a shared library.
14866 # There doesn't appear to be a way to prevent this compiler from
14867 # explicitly linking system object files so we need to strip them
14868 # from the output so that they don't get included in the library
14869 # dependencies.
14870 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14873 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14874 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14875 case $host in
14876 osf3*)
14877 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14880 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14882 esac
14884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14885 hardcode_libdir_separator_CXX=:
14887 # Commands to make compiler produce verbose output that lists
14888 # what "hidden" libraries, object files and flags are used when
14889 # linking a shared library.
14890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14892 else
14893 # FIXME: insert proper C++ library support
14894 ld_shlibs_CXX=no
14897 esac
14900 psos*)
14901 # FIXME: insert proper C++ library support
14902 ld_shlibs_CXX=no
14905 sunos4*)
14906 case $cc_basename in
14907 CC*)
14908 # Sun C++ 4.x
14909 # FIXME: insert proper C++ library support
14910 ld_shlibs_CXX=no
14912 lcc*)
14913 # Lucid
14914 # FIXME: insert proper C++ library support
14915 ld_shlibs_CXX=no
14918 # FIXME: insert proper C++ library support
14919 ld_shlibs_CXX=no
14921 esac
14924 solaris*)
14925 case $cc_basename in
14926 CC*)
14927 # Sun C++ 4.2, 5.x and Centerline C++
14928 archive_cmds_need_lc_CXX=yes
14929 no_undefined_flag_CXX=' -zdefs'
14930 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14931 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14932 $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'
14934 hardcode_libdir_flag_spec_CXX='-R$libdir'
14935 hardcode_shlibpath_var_CXX=no
14936 case $host_os in
14937 solaris2.[0-5] | solaris2.[0-5].*) ;;
14939 # The compiler driver will combine and reorder linker options,
14940 # but understands `-z linker_flag'.
14941 # Supported since Solaris 2.6 (maybe 2.5.1?)
14942 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14944 esac
14945 link_all_deplibs_CXX=yes
14947 output_verbose_link_cmd='func_echo_all'
14949 # Archives containing C++ object files must be created using
14950 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14951 # necessary to make sure instantiated templates are included
14952 # in the archive.
14953 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14955 gcx*)
14956 # Green Hills C++ Compiler
14957 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14959 # The C++ compiler must be used to create the archive.
14960 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14963 # GNU C++ compiler with Solaris linker
14964 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14965 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14966 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14967 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14968 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14969 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14971 # Commands to make compiler produce verbose output that lists
14972 # what "hidden" libraries, object files and flags are used when
14973 # linking a shared library.
14974 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14975 else
14976 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14977 # platform.
14978 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14979 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14980 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14982 # Commands to make compiler produce verbose output that lists
14983 # what "hidden" libraries, object files and flags are used when
14984 # linking a shared library.
14985 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14988 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14989 case $host_os in
14990 solaris2.[0-5] | solaris2.[0-5].*) ;;
14992 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14994 esac
14997 esac
15000 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15001 no_undefined_flag_CXX='${wl}-z,text'
15002 archive_cmds_need_lc_CXX=no
15003 hardcode_shlibpath_var_CXX=no
15004 runpath_var='LD_RUN_PATH'
15006 case $cc_basename in
15007 CC*)
15008 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15012 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15013 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15015 esac
15018 sysv5* | sco3.2v5* | sco5v6*)
15019 # Note: We can NOT use -z defs as we might desire, because we do not
15020 # link with -lc, and that would cause any symbols used from libc to
15021 # always be unresolved, which means just about no library would
15022 # ever link correctly. If we're not using GNU ld we use -z text
15023 # though, which does catch some bad symbols but isn't as heavy-handed
15024 # as -z defs.
15025 no_undefined_flag_CXX='${wl}-z,text'
15026 allow_undefined_flag_CXX='${wl}-z,nodefs'
15027 archive_cmds_need_lc_CXX=no
15028 hardcode_shlibpath_var_CXX=no
15029 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15030 hardcode_libdir_separator_CXX=':'
15031 link_all_deplibs_CXX=yes
15032 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15033 runpath_var='LD_RUN_PATH'
15035 case $cc_basename in
15036 CC*)
15037 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15038 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15039 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15040 '"$old_archive_cmds_CXX"
15041 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15042 '"$reload_cmds_CXX"
15045 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15046 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15048 esac
15051 tandem*)
15052 case $cc_basename in
15053 NCC*)
15054 # NonStop-UX NCC 3.20
15055 # FIXME: insert proper C++ library support
15056 ld_shlibs_CXX=no
15059 # FIXME: insert proper C++ library support
15060 ld_shlibs_CXX=no
15062 esac
15065 vxworks*)
15066 # FIXME: insert proper C++ library support
15067 ld_shlibs_CXX=no
15071 # FIXME: insert proper C++ library support
15072 ld_shlibs_CXX=no
15074 esac
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15077 $as_echo "$ld_shlibs_CXX" >&6; }
15078 test "$ld_shlibs_CXX" = no && can_build_shared=no
15080 GCC_CXX="$GXX"
15081 LD_CXX="$LD"
15083 ## CAVEAT EMPTOR:
15084 ## There is no encapsulation within the following macros, do not change
15085 ## the running order or otherwise move them around unless you know exactly
15086 ## what you are doing...
15087 # Dependencies to place before and after the object being linked:
15088 predep_objects_CXX=
15089 postdep_objects_CXX=
15090 predeps_CXX=
15091 postdeps_CXX=
15092 compiler_lib_search_path_CXX=
15094 cat > conftest.$ac_ext <<_LT_EOF
15095 class Foo
15097 public:
15098 Foo (void) { a = 0; }
15099 private:
15100 int a;
15102 _LT_EOF
15104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15105 (eval $ac_compile) 2>&5
15106 ac_status=$?
15107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15108 test $ac_status = 0; }; then
15109 # Parse the compiler output and extract the necessary
15110 # objects, libraries and library flags.
15112 # Sentinel used to keep track of whether or not we are before
15113 # the conftest object file.
15114 pre_test_object_deps_done=no
15116 for p in `eval "$output_verbose_link_cmd"`; do
15117 case $p in
15119 -L* | -R* | -l*)
15120 # Some compilers place space between "-{L,R}" and the path.
15121 # Remove the space.
15122 if test $p = "-L" ||
15123 test $p = "-R"; then
15124 prev=$p
15125 continue
15126 else
15127 prev=
15130 if test "$pre_test_object_deps_done" = no; then
15131 case $p in
15132 -L* | -R*)
15133 # Internal compiler library paths should come after those
15134 # provided the user. The postdeps already come after the
15135 # user supplied libs so there is no need to process them.
15136 if test -z "$compiler_lib_search_path_CXX"; then
15137 compiler_lib_search_path_CXX="${prev}${p}"
15138 else
15139 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15142 # The "-l" case would never come before the object being
15143 # linked, so don't bother handling this case.
15144 esac
15145 else
15146 if test -z "$postdeps_CXX"; then
15147 postdeps_CXX="${prev}${p}"
15148 else
15149 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15154 *.$objext)
15155 # This assumes that the test object file only shows up
15156 # once in the compiler output.
15157 if test "$p" = "conftest.$objext"; then
15158 pre_test_object_deps_done=yes
15159 continue
15162 if test "$pre_test_object_deps_done" = no; then
15163 if test -z "$predep_objects_CXX"; then
15164 predep_objects_CXX="$p"
15165 else
15166 predep_objects_CXX="$predep_objects_CXX $p"
15168 else
15169 if test -z "$postdep_objects_CXX"; then
15170 postdep_objects_CXX="$p"
15171 else
15172 postdep_objects_CXX="$postdep_objects_CXX $p"
15177 *) ;; # Ignore the rest.
15179 esac
15180 done
15182 # Clean up.
15183 rm -f a.out a.exe
15184 else
15185 echo "libtool.m4: error: problem compiling CXX test program"
15188 $RM -f confest.$objext
15190 # PORTME: override above test on systems where it is broken
15191 case $host_os in
15192 interix[3-9]*)
15193 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15194 # hack all around it, let's just trust "g++" to DTRT.
15195 predep_objects_CXX=
15196 postdep_objects_CXX=
15197 postdeps_CXX=
15200 linux*)
15201 case `$CC -V 2>&1 | sed 5q` in
15202 *Sun\ C*)
15203 # Sun C++ 5.9
15205 # The more standards-conforming stlport4 library is
15206 # incompatible with the Cstd library. Avoid specifying
15207 # it if it's in CXXFLAGS. Ignore libCrun as
15208 # -library=stlport4 depends on it.
15209 case " $CXX $CXXFLAGS " in
15210 *" -library=stlport4 "*)
15211 solaris_use_stlport4=yes
15213 esac
15215 if test "$solaris_use_stlport4" != yes; then
15216 postdeps_CXX='-library=Cstd -library=Crun'
15219 esac
15222 solaris*)
15223 case $cc_basename in
15224 CC*)
15225 # The more standards-conforming stlport4 library is
15226 # incompatible with the Cstd library. Avoid specifying
15227 # it if it's in CXXFLAGS. Ignore libCrun as
15228 # -library=stlport4 depends on it.
15229 case " $CXX $CXXFLAGS " in
15230 *" -library=stlport4 "*)
15231 solaris_use_stlport4=yes
15233 esac
15235 # Adding this requires a known-good setup of shared libraries for
15236 # Sun compiler versions before 5.6, else PIC objects from an old
15237 # archive will be linked into the output, leading to subtle bugs.
15238 if test "$solaris_use_stlport4" != yes; then
15239 postdeps_CXX='-library=Cstd -library=Crun'
15242 esac
15244 esac
15247 case " $postdeps_CXX " in
15248 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15249 esac
15250 compiler_lib_search_dirs_CXX=
15251 if test -n "${compiler_lib_search_path_CXX}"; then
15252 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15285 lt_prog_compiler_wl_CXX=
15286 lt_prog_compiler_pic_CXX=
15287 lt_prog_compiler_static_CXX=
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15290 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15292 # C++ specific cases for pic, static, wl, etc.
15293 if test "$GXX" = yes; then
15294 lt_prog_compiler_wl_CXX='-Wl,'
15295 lt_prog_compiler_static_CXX='-static'
15297 case $host_os in
15298 aix*)
15299 # All AIX code is PIC.
15300 if test "$host_cpu" = ia64; then
15301 # AIX 5 now supports IA64 processor
15302 lt_prog_compiler_static_CXX='-Bstatic'
15304 lt_prog_compiler_pic_CXX='-fPIC'
15307 amigaos*)
15308 case $host_cpu in
15309 powerpc)
15310 # see comment about AmigaOS4 .so support
15311 lt_prog_compiler_pic_CXX='-fPIC'
15313 m68k)
15314 # FIXME: we need at least 68020 code to build shared libraries, but
15315 # adding the `-m68020' flag to GCC prevents building anything better,
15316 # like `-m68040'.
15317 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15319 esac
15322 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15323 # PIC is the default for these OSes.
15325 mingw* | cygwin* | os2* | pw32* | cegcc*)
15326 # This hack is so that the source file can tell whether it is being
15327 # built for inclusion in a dll (and should export symbols for example).
15328 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15329 # (--disable-auto-import) libraries
15330 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15332 darwin* | rhapsody*)
15333 # PIC is the default on this platform
15334 # Common symbols not allowed in MH_DYLIB files
15335 lt_prog_compiler_pic_CXX='-fno-common'
15337 *djgpp*)
15338 # DJGPP does not support shared libraries at all
15339 lt_prog_compiler_pic_CXX=
15341 haiku*)
15342 # PIC is the default for Haiku.
15343 # The "-static" flag exists, but is broken.
15344 lt_prog_compiler_static_CXX=
15346 interix[3-9]*)
15347 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15348 # Instead, we relocate shared libraries at runtime.
15350 sysv4*MP*)
15351 if test -d /usr/nec; then
15352 lt_prog_compiler_pic_CXX=-Kconform_pic
15355 hpux*)
15356 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15357 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15358 # sets the default TLS model and affects inlining.
15359 case $host_cpu in
15360 hppa*64*)
15363 lt_prog_compiler_pic_CXX='-fPIC'
15365 esac
15367 *qnx* | *nto*)
15368 # QNX uses GNU C++, but need to define -shared option too, otherwise
15369 # it will coredump.
15370 lt_prog_compiler_pic_CXX='-fPIC -shared'
15373 lt_prog_compiler_pic_CXX='-fPIC'
15375 esac
15376 else
15377 case $host_os in
15378 aix[4-9]*)
15379 # All AIX code is PIC.
15380 if test "$host_cpu" = ia64; then
15381 # AIX 5 now supports IA64 processor
15382 lt_prog_compiler_static_CXX='-Bstatic'
15383 else
15384 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15387 chorus*)
15388 case $cc_basename in
15389 cxch68*)
15390 # Green Hills C++ Compiler
15391 # _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"
15393 esac
15395 dgux*)
15396 case $cc_basename in
15397 ec++*)
15398 lt_prog_compiler_pic_CXX='-KPIC'
15400 ghcx*)
15401 # Green Hills C++ Compiler
15402 lt_prog_compiler_pic_CXX='-pic'
15406 esac
15408 freebsd* | dragonfly*)
15409 # FreeBSD uses GNU C++
15411 hpux9* | hpux10* | hpux11*)
15412 case $cc_basename in
15413 CC*)
15414 lt_prog_compiler_wl_CXX='-Wl,'
15415 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15416 if test "$host_cpu" != ia64; then
15417 lt_prog_compiler_pic_CXX='+Z'
15420 aCC*)
15421 lt_prog_compiler_wl_CXX='-Wl,'
15422 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15423 case $host_cpu in
15424 hppa*64*|ia64*)
15425 # +Z the default
15428 lt_prog_compiler_pic_CXX='+Z'
15430 esac
15434 esac
15436 interix*)
15437 # This is c89, which is MS Visual C++ (no shared libs)
15438 # Anyone wants to do a port?
15440 irix5* | irix6* | nonstopux*)
15441 case $cc_basename in
15442 CC*)
15443 lt_prog_compiler_wl_CXX='-Wl,'
15444 lt_prog_compiler_static_CXX='-non_shared'
15445 # CC pic flag -KPIC is the default.
15449 esac
15451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15452 case $cc_basename in
15453 KCC*)
15454 # KAI C++ Compiler
15455 lt_prog_compiler_wl_CXX='--backend -Wl,'
15456 lt_prog_compiler_pic_CXX='-fPIC'
15458 ecpc* )
15459 # old Intel C++ for x86_64 which still supported -KPIC.
15460 lt_prog_compiler_wl_CXX='-Wl,'
15461 lt_prog_compiler_pic_CXX='-KPIC'
15462 lt_prog_compiler_static_CXX='-static'
15464 icpc* )
15465 # Intel C++, used to be incompatible with GCC.
15466 # ICC 10 doesn't accept -KPIC any more.
15467 lt_prog_compiler_wl_CXX='-Wl,'
15468 lt_prog_compiler_pic_CXX='-fPIC'
15469 lt_prog_compiler_static_CXX='-static'
15471 pgCC* | pgcpp*)
15472 # Portland Group C++ compiler
15473 lt_prog_compiler_wl_CXX='-Wl,'
15474 lt_prog_compiler_pic_CXX='-fpic'
15475 lt_prog_compiler_static_CXX='-Bstatic'
15477 cxx*)
15478 # Compaq C++
15479 # Make sure the PIC flag is empty. It appears that all Alpha
15480 # Linux and Compaq Tru64 Unix objects are PIC.
15481 lt_prog_compiler_pic_CXX=
15482 lt_prog_compiler_static_CXX='-non_shared'
15484 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15485 # IBM XL 8.0, 9.0 on PPC and BlueGene
15486 lt_prog_compiler_wl_CXX='-Wl,'
15487 lt_prog_compiler_pic_CXX='-qpic'
15488 lt_prog_compiler_static_CXX='-qstaticlink'
15491 case `$CC -V 2>&1 | sed 5q` in
15492 *Sun\ C*)
15493 # Sun C++ 5.9
15494 lt_prog_compiler_pic_CXX='-KPIC'
15495 lt_prog_compiler_static_CXX='-Bstatic'
15496 lt_prog_compiler_wl_CXX='-Qoption ld '
15498 esac
15500 esac
15502 lynxos*)
15504 m88k*)
15506 mvs*)
15507 case $cc_basename in
15508 cxx*)
15509 lt_prog_compiler_pic_CXX='-W c,exportall'
15513 esac
15515 netbsd*)
15517 *qnx* | *nto*)
15518 # QNX uses GNU C++, but need to define -shared option too, otherwise
15519 # it will coredump.
15520 lt_prog_compiler_pic_CXX='-fPIC -shared'
15522 osf3* | osf4* | osf5*)
15523 case $cc_basename in
15524 KCC*)
15525 lt_prog_compiler_wl_CXX='--backend -Wl,'
15527 RCC*)
15528 # Rational C++ 2.4.1
15529 lt_prog_compiler_pic_CXX='-pic'
15531 cxx*)
15532 # Digital/Compaq C++
15533 lt_prog_compiler_wl_CXX='-Wl,'
15534 # Make sure the PIC flag is empty. It appears that all Alpha
15535 # Linux and Compaq Tru64 Unix objects are PIC.
15536 lt_prog_compiler_pic_CXX=
15537 lt_prog_compiler_static_CXX='-non_shared'
15541 esac
15543 psos*)
15545 solaris*)
15546 case $cc_basename in
15547 CC*)
15548 # Sun C++ 4.2, 5.x and Centerline C++
15549 lt_prog_compiler_pic_CXX='-KPIC'
15550 lt_prog_compiler_static_CXX='-Bstatic'
15551 lt_prog_compiler_wl_CXX='-Qoption ld '
15553 gcx*)
15554 # Green Hills C++ Compiler
15555 lt_prog_compiler_pic_CXX='-PIC'
15559 esac
15561 sunos4*)
15562 case $cc_basename in
15563 CC*)
15564 # Sun C++ 4.x
15565 lt_prog_compiler_pic_CXX='-pic'
15566 lt_prog_compiler_static_CXX='-Bstatic'
15568 lcc*)
15569 # Lucid
15570 lt_prog_compiler_pic_CXX='-pic'
15574 esac
15576 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15577 case $cc_basename in
15578 CC*)
15579 lt_prog_compiler_wl_CXX='-Wl,'
15580 lt_prog_compiler_pic_CXX='-KPIC'
15581 lt_prog_compiler_static_CXX='-Bstatic'
15583 esac
15585 tandem*)
15586 case $cc_basename in
15587 NCC*)
15588 # NonStop-UX NCC 3.20
15589 lt_prog_compiler_pic_CXX='-KPIC'
15593 esac
15595 vxworks*)
15598 lt_prog_compiler_can_build_shared_CXX=no
15600 esac
15603 case $host_os in
15604 # For platforms which do not support PIC, -DPIC is meaningless:
15605 *djgpp*)
15606 lt_prog_compiler_pic_CXX=
15609 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15611 esac
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15613 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15618 # Check to make sure the PIC flag actually works.
15620 if test -n "$lt_prog_compiler_pic_CXX"; then
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15622 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15623 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15624 $as_echo_n "(cached) " >&6
15625 else
15626 lt_cv_prog_compiler_pic_works_CXX=no
15627 ac_outfile=conftest.$ac_objext
15628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15629 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15630 # Insert the option either (1) after the last *FLAGS variable, or
15631 # (2) before a word containing "conftest.", or (3) at the end.
15632 # Note that $ac_compile itself does not contain backslashes and begins
15633 # with a dollar sign (not a hyphen), so the echo should work correctly.
15634 # The option is referenced via a variable to avoid confusing sed.
15635 lt_compile=`echo "$ac_compile" | $SED \
15636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15638 -e 's:$: $lt_compiler_flag:'`
15639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15640 (eval "$lt_compile" 2>conftest.err)
15641 ac_status=$?
15642 cat conftest.err >&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 if (exit $ac_status) && test -s "$ac_outfile"; then
15645 # The compiler can only warn and ignore the option if not recognized
15646 # So say no if there are warnings other than the usual output.
15647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15649 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15650 lt_cv_prog_compiler_pic_works_CXX=yes
15653 $RM conftest*
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15657 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15659 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15660 case $lt_prog_compiler_pic_CXX in
15661 "" | " "*) ;;
15662 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15663 esac
15664 else
15665 lt_prog_compiler_pic_CXX=
15666 lt_prog_compiler_can_build_shared_CXX=no
15674 # Check to make sure the static flag actually works.
15676 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15678 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15679 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15680 $as_echo_n "(cached) " >&6
15681 else
15682 lt_cv_prog_compiler_static_works_CXX=no
15683 save_LDFLAGS="$LDFLAGS"
15684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15685 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15687 # The linker can only warn and ignore the option if not recognized
15688 # So say no if there are warnings
15689 if test -s conftest.err; then
15690 # Append any errors to the config.log.
15691 cat conftest.err 1>&5
15692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15694 if diff conftest.exp conftest.er2 >/dev/null; then
15695 lt_cv_prog_compiler_static_works_CXX=yes
15697 else
15698 lt_cv_prog_compiler_static_works_CXX=yes
15701 $RM -r conftest*
15702 LDFLAGS="$save_LDFLAGS"
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15706 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15708 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15710 else
15711 lt_prog_compiler_static_CXX=
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15719 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15720 $as_echo_n "(cached) " >&6
15721 else
15722 lt_cv_prog_compiler_c_o_CXX=no
15723 $RM -r conftest 2>/dev/null
15724 mkdir conftest
15725 cd conftest
15726 mkdir out
15727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15729 lt_compiler_flag="-o out/conftest2.$ac_objext"
15730 # Insert the option either (1) after the last *FLAGS variable, or
15731 # (2) before a word containing "conftest.", or (3) at the end.
15732 # Note that $ac_compile itself does not contain backslashes and begins
15733 # with a dollar sign (not a hyphen), so the echo should work correctly.
15734 lt_compile=`echo "$ac_compile" | $SED \
15735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15737 -e 's:$: $lt_compiler_flag:'`
15738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15739 (eval "$lt_compile" 2>out/conftest.err)
15740 ac_status=$?
15741 cat out/conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15744 then
15745 # The compiler can only warn and ignore the option if not recognized
15746 # So say no if there are warnings
15747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15750 lt_cv_prog_compiler_c_o_CXX=yes
15753 chmod u+w . 2>&5
15754 $RM conftest*
15755 # SGI C++ compiler will create directory out/ii_files/ for
15756 # template instantiation
15757 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15758 $RM out/* && rmdir out
15759 cd ..
15760 $RM -r conftest
15761 $RM conftest*
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15765 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15770 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15771 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15772 $as_echo_n "(cached) " >&6
15773 else
15774 lt_cv_prog_compiler_c_o_CXX=no
15775 $RM -r conftest 2>/dev/null
15776 mkdir conftest
15777 cd conftest
15778 mkdir out
15779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15781 lt_compiler_flag="-o out/conftest2.$ac_objext"
15782 # Insert the option either (1) after the last *FLAGS variable, or
15783 # (2) before a word containing "conftest.", or (3) at the end.
15784 # Note that $ac_compile itself does not contain backslashes and begins
15785 # with a dollar sign (not a hyphen), so the echo should work correctly.
15786 lt_compile=`echo "$ac_compile" | $SED \
15787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15789 -e 's:$: $lt_compiler_flag:'`
15790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15791 (eval "$lt_compile" 2>out/conftest.err)
15792 ac_status=$?
15793 cat out/conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15796 then
15797 # The compiler can only warn and ignore the option if not recognized
15798 # So say no if there are warnings
15799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15802 lt_cv_prog_compiler_c_o_CXX=yes
15805 chmod u+w . 2>&5
15806 $RM conftest*
15807 # SGI C++ compiler will create directory out/ii_files/ for
15808 # template instantiation
15809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15810 $RM out/* && rmdir out
15811 cd ..
15812 $RM -r conftest
15813 $RM conftest*
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15817 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15822 hard_links="nottested"
15823 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15824 # do not overwrite the value of need_locks provided by the user
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15826 $as_echo_n "checking if we can lock with hard links... " >&6; }
15827 hard_links=yes
15828 $RM conftest*
15829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15830 touch conftest.a
15831 ln conftest.a conftest.b 2>&5 || hard_links=no
15832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15834 $as_echo "$hard_links" >&6; }
15835 if test "$hard_links" = no; then
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15837 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15838 need_locks=warn
15840 else
15841 need_locks=no
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15849 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15850 case $host_os in
15851 aix[4-9]*)
15852 # If we're using GNU nm, then we don't want the "-C" option.
15853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15854 # Also, AIX nm treats weak defined symbols like other global defined
15855 # symbols, whereas GNU nm marks them as "W".
15856 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15857 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15858 else
15859 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'
15862 pw32*)
15863 export_symbols_cmds_CXX="$ltdll_cmds"
15865 cygwin* | mingw* | cegcc*)
15866 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'
15869 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15871 esac
15872 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15875 $as_echo "$ld_shlibs_CXX" >&6; }
15876 test "$ld_shlibs_CXX" = no && can_build_shared=no
15878 with_gnu_ld_CXX=$with_gnu_ld
15886 # Do we need to explicitly link libc?
15888 case "x$archive_cmds_need_lc_CXX" in
15889 x|xyes)
15890 # Assume -lc should be added
15891 archive_cmds_need_lc_CXX=yes
15893 if test "$enable_shared" = yes && test "$GCC" = yes; then
15894 case $archive_cmds_CXX in
15895 *'~'*)
15896 # FIXME: we may have to deal with multi-command sequences.
15898 '$CC '*)
15899 # Test whether the compiler implicitly links with -lc since on some
15900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15901 # to ld, don't add -lc before -lgcc.
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15903 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15904 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15905 $as_echo_n "(cached) " >&6
15906 else
15907 $RM conftest*
15908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15911 (eval $ac_compile) 2>&5
15912 ac_status=$?
15913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15914 test $ac_status = 0; } 2>conftest.err; then
15915 soname=conftest
15916 lib=conftest
15917 libobjs=conftest.$ac_objext
15918 deplibs=
15919 wl=$lt_prog_compiler_wl_CXX
15920 pic_flag=$lt_prog_compiler_pic_CXX
15921 compiler_flags=-v
15922 linker_flags=-v
15923 verstring=
15924 output_objdir=.
15925 libname=conftest
15926 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15927 allow_undefined_flag_CXX=
15928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15929 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15930 ac_status=$?
15931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15932 test $ac_status = 0; }
15933 then
15934 lt_cv_archive_cmds_need_lc_CXX=no
15935 else
15936 lt_cv_archive_cmds_need_lc_CXX=yes
15938 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15939 else
15940 cat conftest.err 1>&5
15942 $RM conftest*
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15946 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15947 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15949 esac
15952 esac
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16018 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16020 library_names_spec=
16021 libname_spec='lib$name'
16022 soname_spec=
16023 shrext_cmds=".so"
16024 postinstall_cmds=
16025 postuninstall_cmds=
16026 finish_cmds=
16027 finish_eval=
16028 shlibpath_var=
16029 shlibpath_overrides_runpath=unknown
16030 version_type=none
16031 dynamic_linker="$host_os ld.so"
16032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16033 need_lib_prefix=unknown
16034 hardcode_into_libs=no
16036 # when you set need_version to no, make sure it does not cause -set_version
16037 # flags to be left without arguments
16038 need_version=unknown
16040 case $host_os in
16041 aix3*)
16042 version_type=linux
16043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16044 shlibpath_var=LIBPATH
16046 # AIX 3 has no versioning support, so we append a major version to the name.
16047 soname_spec='${libname}${release}${shared_ext}$major'
16050 aix[4-9]*)
16051 version_type=linux
16052 need_lib_prefix=no
16053 need_version=no
16054 hardcode_into_libs=yes
16055 if test "$host_cpu" = ia64; then
16056 # AIX 5 supports IA64
16057 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 else
16060 # With GCC up to 2.95.x, collect2 would create an import file
16061 # for dependence libraries. The import file would start with
16062 # the line `#! .'. This would cause the generated library to
16063 # depend on `.', always an invalid library. This was fixed in
16064 # development snapshots of GCC prior to 3.0.
16065 case $host_os in
16066 aix4 | aix4.[01] | aix4.[01].*)
16067 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16068 echo ' yes '
16069 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16071 else
16072 can_build_shared=no
16075 esac
16076 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16077 # soname into executable. Probably we can add versioning support to
16078 # collect2, so additional links can be useful in future.
16079 if test "$aix_use_runtimelinking" = yes; then
16080 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16081 # instead of lib<name>.a to let people know that these are not
16082 # typical AIX shared libraries.
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 else
16085 # We preserve .a as extension for shared libraries through AIX4.2
16086 # and later when we are not doing run time linking.
16087 library_names_spec='${libname}${release}.a $libname.a'
16088 soname_spec='${libname}${release}${shared_ext}$major'
16090 shlibpath_var=LIBPATH
16094 amigaos*)
16095 case $host_cpu in
16096 powerpc)
16097 # Since July 2007 AmigaOS4 officially supports .so libraries.
16098 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16101 m68k)
16102 library_names_spec='$libname.ixlibrary $libname.a'
16103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16104 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
16106 esac
16109 beos*)
16110 library_names_spec='${libname}${shared_ext}'
16111 dynamic_linker="$host_os ld.so"
16112 shlibpath_var=LIBRARY_PATH
16115 bsdi[45]*)
16116 version_type=linux
16117 need_version=no
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16124 # the default ld.so.conf also contains /usr/contrib/lib and
16125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16126 # libtool to hard-code these into programs
16129 cygwin* | mingw* | pw32* | cegcc*)
16130 version_type=windows
16131 shrext_cmds=".dll"
16132 need_version=no
16133 need_lib_prefix=no
16135 case $GCC,$host_os in
16136 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16137 library_names_spec='$libname.dll.a'
16138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16139 postinstall_cmds='base_file=`basename \${file}`~
16140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16141 dldir=$destdir/`dirname \$dlpath`~
16142 test -d \$dldir || mkdir -p \$dldir~
16143 $install_prog $dir/$dlname \$dldir/$dlname~
16144 chmod a+x \$dldir/$dlname~
16145 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16146 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16149 dlpath=$dir/\$dldll~
16150 $RM \$dlpath'
16151 shlibpath_overrides_runpath=yes
16153 case $host_os in
16154 cygwin*)
16155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16156 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16159 mingw* | cegcc*)
16160 # MinGW DLLs use traditional 'lib' prefix
16161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16163 pw32*)
16164 # pw32 DLLs use 'pw' prefix rather than 'lib'
16165 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16167 esac
16171 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16173 esac
16174 dynamic_linker='Win32 ld.exe'
16175 # FIXME: first we should search . and the directory the executable is in
16176 shlibpath_var=PATH
16179 darwin* | rhapsody*)
16180 dynamic_linker="$host_os dyld"
16181 version_type=darwin
16182 need_lib_prefix=no
16183 need_version=no
16184 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16185 soname_spec='${libname}${release}${major}$shared_ext'
16186 shlibpath_overrides_runpath=yes
16187 shlibpath_var=DYLD_LIBRARY_PATH
16188 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16193 dgux*)
16194 version_type=linux
16195 need_lib_prefix=no
16196 need_version=no
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 shlibpath_var=LD_LIBRARY_PATH
16202 freebsd* | dragonfly*)
16203 # DragonFly does not have aout. When/if they implement a new
16204 # versioning mechanism, adjust this.
16205 if test -x /usr/bin/objformat; then
16206 objformat=`/usr/bin/objformat`
16207 else
16208 case $host_os in
16209 freebsd[23].*) objformat=aout ;;
16210 *) objformat=elf ;;
16211 esac
16213 version_type=freebsd-$objformat
16214 case $version_type in
16215 freebsd-elf*)
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16217 need_version=no
16218 need_lib_prefix=no
16220 freebsd-*)
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16222 need_version=yes
16224 esac
16225 shlibpath_var=LD_LIBRARY_PATH
16226 case $host_os in
16227 freebsd2.*)
16228 shlibpath_overrides_runpath=yes
16230 freebsd3.[01]* | freebsdelf3.[01]*)
16231 shlibpath_overrides_runpath=yes
16232 hardcode_into_libs=yes
16234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16236 shlibpath_overrides_runpath=no
16237 hardcode_into_libs=yes
16239 *) # from 4.6 on, and DragonFly
16240 shlibpath_overrides_runpath=yes
16241 hardcode_into_libs=yes
16243 esac
16246 gnu*)
16247 version_type=linux
16248 need_lib_prefix=no
16249 need_version=no
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16251 soname_spec='${libname}${release}${shared_ext}$major'
16252 shlibpath_var=LD_LIBRARY_PATH
16253 hardcode_into_libs=yes
16256 haiku*)
16257 version_type=linux
16258 need_lib_prefix=no
16259 need_version=no
16260 dynamic_linker="$host_os runtime_loader"
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 shlibpath_var=LIBRARY_PATH
16264 shlibpath_overrides_runpath=yes
16265 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16266 hardcode_into_libs=yes
16269 hpux9* | hpux10* | hpux11*)
16270 # Give a soname corresponding to the major version so that dld.sl refuses to
16271 # link against other versions.
16272 version_type=sunos
16273 need_lib_prefix=no
16274 need_version=no
16275 case $host_cpu in
16276 ia64*)
16277 shrext_cmds='.so'
16278 hardcode_into_libs=yes
16279 dynamic_linker="$host_os dld.so"
16280 shlibpath_var=LD_LIBRARY_PATH
16281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283 soname_spec='${libname}${release}${shared_ext}$major'
16284 if test "X$HPUX_IA64_MODE" = X32; then
16285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16286 else
16287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16291 hppa*64*)
16292 shrext_cmds='.sl'
16293 hardcode_into_libs=yes
16294 dynamic_linker="$host_os dld.sl"
16295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16303 shrext_cmds='.sl'
16304 dynamic_linker="$host_os dld.sl"
16305 shlibpath_var=SHLIB_PATH
16306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308 soname_spec='${libname}${release}${shared_ext}$major'
16310 esac
16311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16312 postinstall_cmds='chmod 555 $lib'
16313 # or fails outright, so override atomically:
16314 install_override_mode=555
16317 interix[3-9]*)
16318 version_type=linux
16319 need_lib_prefix=no
16320 need_version=no
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16324 shlibpath_var=LD_LIBRARY_PATH
16325 shlibpath_overrides_runpath=no
16326 hardcode_into_libs=yes
16329 irix5* | irix6* | nonstopux*)
16330 case $host_os in
16331 nonstopux*) version_type=nonstopux ;;
16333 if test "$lt_cv_prog_gnu_ld" = yes; then
16334 version_type=linux
16335 else
16336 version_type=irix
16337 fi ;;
16338 esac
16339 need_lib_prefix=no
16340 need_version=no
16341 soname_spec='${libname}${release}${shared_ext}$major'
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16343 case $host_os in
16344 irix5* | nonstopux*)
16345 libsuff= shlibsuff=
16348 case $LD in # libtool.m4 will add one of these switches to LD
16349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16350 libsuff= shlibsuff= libmagic=32-bit;;
16351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16352 libsuff=32 shlibsuff=N32 libmagic=N32;;
16353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16355 *) libsuff= shlibsuff= libmagic=never-match;;
16356 esac
16358 esac
16359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16360 shlibpath_overrides_runpath=no
16361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16363 hardcode_into_libs=yes
16366 # No shared lib support for Linux oldld, aout, or coff.
16367 linux*oldld* | linux*aout* | linux*coff*)
16368 dynamic_linker=no
16371 # This must be Linux ELF.
16372 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16373 version_type=linux
16374 need_lib_prefix=no
16375 need_version=no
16376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16377 soname_spec='${libname}${release}${shared_ext}$major'
16378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16379 shlibpath_var=LD_LIBRARY_PATH
16380 shlibpath_overrides_runpath=no
16382 # Some binutils ld are patched to set DT_RUNPATH
16383 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16384 $as_echo_n "(cached) " >&6
16385 else
16386 lt_cv_shlibpath_overrides_runpath=no
16387 save_LDFLAGS=$LDFLAGS
16388 save_libdir=$libdir
16389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16391 if test x$gcc_no_link = xyes; then
16392 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16398 main ()
16402 return 0;
16404 _ACEOF
16405 if ac_fn_cxx_try_link "$LINENO"; then :
16406 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16407 lt_cv_shlibpath_overrides_runpath=yes
16410 rm -f core conftest.err conftest.$ac_objext \
16411 conftest$ac_exeext conftest.$ac_ext
16412 LDFLAGS=$save_LDFLAGS
16413 libdir=$save_libdir
16417 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16419 # This implies no fast_install, which is unacceptable.
16420 # Some rework will be needed to allow for fast_install
16421 # before this can be enabled.
16422 hardcode_into_libs=yes
16424 # Append ld.so.conf contents to the search path
16425 if test -f /etc/ld.so.conf; then
16426 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16427 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16430 # We used to test for /lib/ld.so.1 and disable shared libraries on
16431 # powerpc, because MkLinux only supported shared libraries with the
16432 # GNU dynamic linker. Since this was broken with cross compilers,
16433 # most powerpc-linux boxes support dynamic linking these days and
16434 # people can always --disable-shared, the test was removed, and we
16435 # assume the GNU/Linux dynamic linker is in use.
16436 dynamic_linker='GNU/Linux ld.so'
16439 netbsd*)
16440 version_type=sunos
16441 need_lib_prefix=no
16442 need_version=no
16443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16446 dynamic_linker='NetBSD (a.out) ld.so'
16447 else
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 dynamic_linker='NetBSD ld.elf_so'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 shlibpath_overrides_runpath=yes
16454 hardcode_into_libs=yes
16457 newsos6)
16458 version_type=linux
16459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16460 shlibpath_var=LD_LIBRARY_PATH
16461 shlibpath_overrides_runpath=yes
16464 *nto* | *qnx*)
16465 version_type=qnx
16466 need_lib_prefix=no
16467 need_version=no
16468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469 soname_spec='${libname}${release}${shared_ext}$major'
16470 shlibpath_var=LD_LIBRARY_PATH
16471 shlibpath_overrides_runpath=no
16472 hardcode_into_libs=yes
16473 dynamic_linker='ldqnx.so'
16476 openbsd*)
16477 version_type=sunos
16478 sys_lib_dlsearch_path_spec="/usr/lib"
16479 need_lib_prefix=no
16480 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16481 case $host_os in
16482 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16483 *) need_version=no ;;
16484 esac
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16487 shlibpath_var=LD_LIBRARY_PATH
16488 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16489 case $host_os in
16490 openbsd2.[89] | openbsd2.[89].*)
16491 shlibpath_overrides_runpath=no
16494 shlibpath_overrides_runpath=yes
16496 esac
16497 else
16498 shlibpath_overrides_runpath=yes
16502 os2*)
16503 libname_spec='$name'
16504 shrext_cmds=".dll"
16505 need_lib_prefix=no
16506 library_names_spec='$libname${shared_ext} $libname.a'
16507 dynamic_linker='OS/2 ld.exe'
16508 shlibpath_var=LIBPATH
16511 osf3* | osf4* | osf5*)
16512 version_type=osf
16513 need_lib_prefix=no
16514 need_version=no
16515 soname_spec='${libname}${release}${shared_ext}$major'
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16517 shlibpath_var=LD_LIBRARY_PATH
16518 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16519 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16522 rdos*)
16523 dynamic_linker=no
16526 solaris*)
16527 version_type=linux
16528 need_lib_prefix=no
16529 need_version=no
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 shlibpath_var=LD_LIBRARY_PATH
16533 shlibpath_overrides_runpath=yes
16534 hardcode_into_libs=yes
16535 # ldd complains unless libraries are executable
16536 postinstall_cmds='chmod +x $lib'
16539 sunos4*)
16540 version_type=sunos
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16542 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 shlibpath_overrides_runpath=yes
16545 if test "$with_gnu_ld" = yes; then
16546 need_lib_prefix=no
16548 need_version=yes
16551 sysv4 | sysv4.3*)
16552 version_type=linux
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554 soname_spec='${libname}${release}${shared_ext}$major'
16555 shlibpath_var=LD_LIBRARY_PATH
16556 case $host_vendor in
16557 sni)
16558 shlibpath_overrides_runpath=no
16559 need_lib_prefix=no
16560 runpath_var=LD_RUN_PATH
16562 siemens)
16563 need_lib_prefix=no
16565 motorola)
16566 need_lib_prefix=no
16567 need_version=no
16568 shlibpath_overrides_runpath=no
16569 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16571 esac
16574 sysv4*MP*)
16575 if test -d /usr/nec ;then
16576 version_type=linux
16577 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16578 soname_spec='$libname${shared_ext}.$major'
16579 shlibpath_var=LD_LIBRARY_PATH
16583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16584 version_type=freebsd-elf
16585 need_lib_prefix=no
16586 need_version=no
16587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16588 soname_spec='${libname}${release}${shared_ext}$major'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 shlibpath_overrides_runpath=yes
16591 hardcode_into_libs=yes
16592 if test "$with_gnu_ld" = yes; then
16593 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16594 else
16595 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16596 case $host_os in
16597 sco3.2v5*)
16598 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16600 esac
16602 sys_lib_dlsearch_path_spec='/usr/lib'
16605 tpf*)
16606 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16607 version_type=linux
16608 need_lib_prefix=no
16609 need_version=no
16610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16611 shlibpath_var=LD_LIBRARY_PATH
16612 shlibpath_overrides_runpath=no
16613 hardcode_into_libs=yes
16616 uts4*)
16617 version_type=linux
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619 soname_spec='${libname}${release}${shared_ext}$major'
16620 shlibpath_var=LD_LIBRARY_PATH
16624 dynamic_linker=no
16626 esac
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16628 $as_echo "$dynamic_linker" >&6; }
16629 test "$dynamic_linker" = no && can_build_shared=no
16631 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16632 if test "$GCC" = yes; then
16633 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16636 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16637 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16639 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16640 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16681 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16682 hardcode_action_CXX=
16683 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16684 test -n "$runpath_var_CXX" ||
16685 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16687 # We can hardcode non-existent directories.
16688 if test "$hardcode_direct_CXX" != no &&
16689 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16690 # have to relink, otherwise we might link with an installed library
16691 # when we should be linking with a yet-to-be-installed one
16692 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16693 test "$hardcode_minus_L_CXX" != no; then
16694 # Linking always hardcodes the temporary library directory.
16695 hardcode_action_CXX=relink
16696 else
16697 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16698 hardcode_action_CXX=immediate
16700 else
16701 # We cannot hardcode anything, or else we can only hardcode existing
16702 # directories.
16703 hardcode_action_CXX=unsupported
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16706 $as_echo "$hardcode_action_CXX" >&6; }
16708 if test "$hardcode_action_CXX" = relink ||
16709 test "$inherit_rpath_CXX" = yes; then
16710 # Fast installation is not supported
16711 enable_fast_install=no
16712 elif test "$shlibpath_overrides_runpath" = yes ||
16713 test "$enable_shared" = no; then
16714 # Fast installation is not necessary
16715 enable_fast_install=needless
16724 fi # test -n "$compiler"
16726 CC=$lt_save_CC
16727 LDCXX=$LD
16728 LD=$lt_save_LD
16729 GCC=$lt_save_GCC
16730 with_gnu_ld=$lt_save_with_gnu_ld
16731 lt_cv_path_LDCXX=$lt_cv_path_LD
16732 lt_cv_path_LD=$lt_save_path_LD
16733 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16734 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16735 fi # test "$_lt_caught_CXX_error" != yes
16737 ac_ext=c
16738 ac_cpp='$CPP $CPPFLAGS'
16739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16755 ac_config_commands="$ac_config_commands libtool"
16760 # Only expand once:
16766 case $host in
16767 *-cygwin* | *-mingw*)
16768 # 'host' will be top-level target in the case of a target lib,
16769 # we must compare to with_cross_host to decide if this is a native
16770 # or cross-compiler and select where to install dlls appropriately.
16771 if test -n "$with_cross_host" &&
16772 test x"$with_cross_host" != x"no"; then
16773 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
16774 else
16775 lt_host_flags='-no-undefined -bindir "$(bindir)"';
16779 lt_host_flags=
16781 esac
16786 if test -n "$ac_tool_prefix"; then
16787 for ac_prog in gcj
16789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16792 $as_echo_n "checking for $ac_word... " >&6; }
16793 if test "${ac_cv_prog_GCJ+set}" = set; then :
16794 $as_echo_n "(cached) " >&6
16795 else
16796 if test -n "$GCJ"; then
16797 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16798 else
16799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16800 for as_dir in $PATH
16802 IFS=$as_save_IFS
16803 test -z "$as_dir" && as_dir=.
16804 for ac_exec_ext in '' $ac_executable_extensions; do
16805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16806 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16808 break 2
16810 done
16811 done
16812 IFS=$as_save_IFS
16816 GCJ=$ac_cv_prog_GCJ
16817 if test -n "$GCJ"; then
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16819 $as_echo "$GCJ" >&6; }
16820 else
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16822 $as_echo "no" >&6; }
16826 test -n "$GCJ" && break
16827 done
16829 if test -z "$GCJ"; then
16830 ac_ct_GCJ=$GCJ
16831 for ac_prog in gcj
16833 # Extract the first word of "$ac_prog", so it can be a program name with args.
16834 set dummy $ac_prog; ac_word=$2
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16836 $as_echo_n "checking for $ac_word... " >&6; }
16837 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16838 $as_echo_n "(cached) " >&6
16839 else
16840 if test -n "$ac_ct_GCJ"; then
16841 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16842 else
16843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16844 for as_dir in $PATH
16846 IFS=$as_save_IFS
16847 test -z "$as_dir" && as_dir=.
16848 for ac_exec_ext in '' $ac_executable_extensions; do
16849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16850 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16852 break 2
16854 done
16855 done
16856 IFS=$as_save_IFS
16860 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16861 if test -n "$ac_ct_GCJ"; then
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16863 $as_echo "$ac_ct_GCJ" >&6; }
16864 else
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16866 $as_echo "no" >&6; }
16870 test -n "$ac_ct_GCJ" && break
16871 done
16873 if test "x$ac_ct_GCJ" = x; then
16874 GCJ="gcj"
16875 else
16876 case $cross_compiling:$ac_tool_warned in
16877 yes:)
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16880 ac_tool_warned=yes ;;
16881 esac
16882 GCJ=$ac_ct_GCJ
16886 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16887 if test "x${GCJFLAGS-unset}" = xunset; then
16888 GCJFLAGS="-g -O2"
16892 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16895 $as_echo_n "checking dependency style of $depcc... " >&6; }
16896 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16897 $as_echo_n "(cached) " >&6
16898 else
16899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16900 # We make a subdir and do the tests there. Otherwise we can end up
16901 # making bogus files that we don't know about and never remove. For
16902 # instance it was reported that on HP-UX the gcc test will end up
16903 # making a dummy file named `D' -- because `-MD' means `put the output
16904 # in D'.
16905 rm -rf conftest.dir
16906 mkdir conftest.dir
16907 # Copy depcomp to subdir because otherwise we won't find it if we're
16908 # using a relative directory.
16909 cp "$am_depcomp" conftest.dir
16910 cd conftest.dir
16911 # We will build objects and dependencies in a subdirectory because
16912 # it helps to detect inapplicable dependency modes. For instance
16913 # both Tru64's cc and ICC support -MD to output dependencies as a
16914 # side effect of compilation, but ICC will put the dependencies in
16915 # the current directory while Tru64 will put them in the object
16916 # directory.
16917 mkdir sub
16919 am_cv_GCJ_dependencies_compiler_type=none
16920 if test "$am_compiler_list" = ""; then
16921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16923 am__universal=false
16926 for depmode in $am_compiler_list; do
16927 # Setup a source with many dependencies, because some compilers
16928 # like to wrap large dependency lists on column 80 (with \), and
16929 # we should not choose a depcomp mode which is confused by this.
16931 # We need to recreate these files for each test, as the compiler may
16932 # overwrite some of them when testing with obscure command lines.
16933 # This happens at least with the AIX C compiler.
16934 : > sub/conftest.c
16935 for i in 1 2 3 4 5 6; do
16936 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16937 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16938 # Solaris 8's {/usr,}/bin/sh.
16939 touch sub/conftst$i.h
16940 done
16941 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16943 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16944 # mode. It turns out that the SunPro C++ compiler does not properly
16945 # handle `-M -o', and we need to detect this. Also, some Intel
16946 # versions had trouble with output in subdirs
16947 am__obj=sub/conftest.${OBJEXT-o}
16948 am__minus_obj="-o $am__obj"
16949 case $depmode in
16950 gcc)
16951 # This depmode causes a compiler race in universal mode.
16952 test "$am__universal" = false || continue
16954 nosideeffect)
16955 # after this tag, mechanisms are not by side-effect, so they'll
16956 # only be used when explicitly requested
16957 if test "x$enable_dependency_tracking" = xyes; then
16958 continue
16959 else
16960 break
16963 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16964 # This compiler won't grok `-c -o', but also, the minuso test has
16965 # not run yet. These depmodes are late enough in the game, and
16966 # so weak that their functioning should not be impacted.
16967 am__obj=conftest.${OBJEXT-o}
16968 am__minus_obj=
16970 none) break ;;
16971 esac
16972 if depmode=$depmode \
16973 source=sub/conftest.c object=$am__obj \
16974 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16975 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16976 >/dev/null 2>conftest.err &&
16977 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16978 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16979 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16980 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16981 # icc doesn't choke on unknown options, it will just issue warnings
16982 # or remarks (even with -Werror). So we grep stderr for any message
16983 # that says an option was ignored or not supported.
16984 # When given -MP, icc 7.0 and 7.1 complain thusly:
16985 # icc: Command line warning: ignoring option '-M'; no argument required
16986 # The diagnosis changed in icc 8.0:
16987 # icc: Command line remark: option '-MP' not supported
16988 if (grep 'ignoring option' conftest.err ||
16989 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16990 am_cv_GCJ_dependencies_compiler_type=$depmode
16991 break
16994 done
16996 cd ..
16997 rm -rf conftest.dir
16998 else
16999 am_cv_GCJ_dependencies_compiler_type=none
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17004 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17005 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17008 test "x$enable_dependency_tracking" != xno \
17009 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17010 am__fastdepGCJ_TRUE=
17011 am__fastdepGCJ_FALSE='#'
17012 else
17013 am__fastdepGCJ_TRUE='#'
17014 am__fastdepGCJ_FALSE=
17019 if test -n "$ac_tool_prefix"; then
17020 for ac_prog in gcj
17022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17025 $as_echo_n "checking for $ac_word... " >&6; }
17026 if test "${ac_cv_prog_GCJ+set}" = set; then :
17027 $as_echo_n "(cached) " >&6
17028 else
17029 if test -n "$GCJ"; then
17030 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
17031 else
17032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17033 for as_dir in $PATH
17035 IFS=$as_save_IFS
17036 test -z "$as_dir" && as_dir=.
17037 for ac_exec_ext in '' $ac_executable_extensions; do
17038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17039 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
17040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17041 break 2
17043 done
17044 done
17045 IFS=$as_save_IFS
17049 GCJ=$ac_cv_prog_GCJ
17050 if test -n "$GCJ"; then
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
17052 $as_echo "$GCJ" >&6; }
17053 else
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17055 $as_echo "no" >&6; }
17059 test -n "$GCJ" && break
17060 done
17062 if test -z "$GCJ"; then
17063 ac_ct_GCJ=$GCJ
17064 for ac_prog in gcj
17066 # Extract the first word of "$ac_prog", so it can be a program name with args.
17067 set dummy $ac_prog; ac_word=$2
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17069 $as_echo_n "checking for $ac_word... " >&6; }
17070 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17071 $as_echo_n "(cached) " >&6
17072 else
17073 if test -n "$ac_ct_GCJ"; then
17074 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17075 else
17076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17077 for as_dir in $PATH
17079 IFS=$as_save_IFS
17080 test -z "$as_dir" && as_dir=.
17081 for ac_exec_ext in '' $ac_executable_extensions; do
17082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17083 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17085 break 2
17087 done
17088 done
17089 IFS=$as_save_IFS
17093 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17094 if test -n "$ac_ct_GCJ"; then
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17096 $as_echo "$ac_ct_GCJ" >&6; }
17097 else
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099 $as_echo "no" >&6; }
17103 test -n "$ac_ct_GCJ" && break
17104 done
17106 if test "x$ac_ct_GCJ" = x; then
17107 GCJ="gcj"
17108 else
17109 case $cross_compiling:$ac_tool_warned in
17110 yes:)
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17113 ac_tool_warned=yes ;;
17114 esac
17115 GCJ=$ac_ct_GCJ
17119 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17120 if test "x${GCJFLAGS-unset}" = xunset; then
17121 GCJFLAGS="-g -O2"
17125 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17128 $as_echo_n "checking dependency style of $depcc... " >&6; }
17129 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17130 $as_echo_n "(cached) " >&6
17131 else
17132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17133 # We make a subdir and do the tests there. Otherwise we can end up
17134 # making bogus files that we don't know about and never remove. For
17135 # instance it was reported that on HP-UX the gcc test will end up
17136 # making a dummy file named `D' -- because `-MD' means `put the output
17137 # in D'.
17138 rm -rf conftest.dir
17139 mkdir conftest.dir
17140 # Copy depcomp to subdir because otherwise we won't find it if we're
17141 # using a relative directory.
17142 cp "$am_depcomp" conftest.dir
17143 cd conftest.dir
17144 # We will build objects and dependencies in a subdirectory because
17145 # it helps to detect inapplicable dependency modes. For instance
17146 # both Tru64's cc and ICC support -MD to output dependencies as a
17147 # side effect of compilation, but ICC will put the dependencies in
17148 # the current directory while Tru64 will put them in the object
17149 # directory.
17150 mkdir sub
17152 am_cv_GCJ_dependencies_compiler_type=none
17153 if test "$am_compiler_list" = ""; then
17154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17156 am__universal=false
17159 for depmode in $am_compiler_list; do
17160 # Setup a source with many dependencies, because some compilers
17161 # like to wrap large dependency lists on column 80 (with \), and
17162 # we should not choose a depcomp mode which is confused by this.
17164 # We need to recreate these files for each test, as the compiler may
17165 # overwrite some of them when testing with obscure command lines.
17166 # This happens at least with the AIX C compiler.
17167 : > sub/conftest.c
17168 for i in 1 2 3 4 5 6; do
17169 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17170 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17171 # Solaris 8's {/usr,}/bin/sh.
17172 touch sub/conftst$i.h
17173 done
17174 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17176 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17177 # mode. It turns out that the SunPro C++ compiler does not properly
17178 # handle `-M -o', and we need to detect this. Also, some Intel
17179 # versions had trouble with output in subdirs
17180 am__obj=sub/conftest.${OBJEXT-o}
17181 am__minus_obj="-o $am__obj"
17182 case $depmode in
17183 gcc)
17184 # This depmode causes a compiler race in universal mode.
17185 test "$am__universal" = false || continue
17187 nosideeffect)
17188 # after this tag, mechanisms are not by side-effect, so they'll
17189 # only be used when explicitly requested
17190 if test "x$enable_dependency_tracking" = xyes; then
17191 continue
17192 else
17193 break
17196 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17197 # This compiler won't grok `-c -o', but also, the minuso test has
17198 # not run yet. These depmodes are late enough in the game, and
17199 # so weak that their functioning should not be impacted.
17200 am__obj=conftest.${OBJEXT-o}
17201 am__minus_obj=
17203 none) break ;;
17204 esac
17205 if depmode=$depmode \
17206 source=sub/conftest.c object=$am__obj \
17207 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17208 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17209 >/dev/null 2>conftest.err &&
17210 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17211 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17212 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17213 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17214 # icc doesn't choke on unknown options, it will just issue warnings
17215 # or remarks (even with -Werror). So we grep stderr for any message
17216 # that says an option was ignored or not supported.
17217 # When given -MP, icc 7.0 and 7.1 complain thusly:
17218 # icc: Command line warning: ignoring option '-M'; no argument required
17219 # The diagnosis changed in icc 8.0:
17220 # icc: Command line remark: option '-MP' not supported
17221 if (grep 'ignoring option' conftest.err ||
17222 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17223 am_cv_GCJ_dependencies_compiler_type=$depmode
17224 break
17227 done
17229 cd ..
17230 rm -rf conftest.dir
17231 else
17232 am_cv_GCJ_dependencies_compiler_type=none
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17237 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17238 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17241 test "x$enable_dependency_tracking" != xno \
17242 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17243 am__fastdepGCJ_TRUE=
17244 am__fastdepGCJ_FALSE='#'
17245 else
17246 am__fastdepGCJ_TRUE='#'
17247 am__fastdepGCJ_FALSE=
17254 # Source file extension for Java test sources.
17255 ac_ext=c
17257 # Object file extension for compiled Java test sources.
17258 objext=o
17259 objext_GCJ=$objext
17261 # Code to be used in simple compile tests
17262 lt_simple_compile_test_code="int some_variable = 0;"
17264 # Code to be used in simple link tests
17265 lt_simple_link_test_code='int main(){return(0);}'
17267 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17274 # If no C compiler was specified, use CC.
17275 LTCC=${LTCC-"$CC"}
17277 # If no C compiler flags were specified, use CFLAGS.
17278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17280 # Allow CC to be a program name with arguments.
17281 compiler=$CC
17284 # save warnings/boilerplate of simple test code
17285 ac_outfile=conftest.$ac_objext
17286 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17288 _lt_compiler_boilerplate=`cat conftest.err`
17289 $RM conftest*
17291 ac_outfile=conftest.$ac_objext
17292 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17294 _lt_linker_boilerplate=`cat conftest.err`
17295 $RM -r conftest*
17298 # Allow CC to be a program name with arguments.
17299 GCC=yes
17300 compiler=$CC
17301 compiler_GCJ=$CC
17302 for cc_temp in $compiler""; do
17303 case $cc_temp in
17304 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17305 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17306 \-*) ;;
17307 *) break;;
17308 esac
17309 done
17310 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17313 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17314 archive_cmds_need_lc_GCJ=no
17316 old_archive_cmds_GCJ=$old_archive_cmds
17318 ## CAVEAT EMPTOR:
17319 ## There is no encapsulation within the following macros, do not change
17320 ## the running order or otherwise move them around unless you know exactly
17321 ## what you are doing...
17322 if test -n "$compiler"; then
17324 lt_prog_compiler_no_builtin_flag_GCJ=
17326 if test "$GCC" = yes; then
17327 case $cc_basename in
17328 nvcc*)
17329 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17331 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17332 esac
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17335 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17336 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17337 $as_echo_n "(cached) " >&6
17338 else
17339 lt_cv_prog_compiler_rtti_exceptions=no
17340 ac_outfile=conftest.$ac_objext
17341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17342 lt_compiler_flag="-fno-rtti -fno-exceptions"
17343 # Insert the option either (1) after the last *FLAGS variable, or
17344 # (2) before a word containing "conftest.", or (3) at the end.
17345 # Note that $ac_compile itself does not contain backslashes and begins
17346 # with a dollar sign (not a hyphen), so the echo should work correctly.
17347 # The option is referenced via a variable to avoid confusing sed.
17348 lt_compile=`echo "$ac_compile" | $SED \
17349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17351 -e 's:$: $lt_compiler_flag:'`
17352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17353 (eval "$lt_compile" 2>conftest.err)
17354 ac_status=$?
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 if (exit $ac_status) && test -s "$ac_outfile"; then
17358 # The compiler can only warn and ignore the option if not recognized
17359 # So say no if there are warnings other than the usual output.
17360 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17362 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17363 lt_cv_prog_compiler_rtti_exceptions=yes
17366 $RM conftest*
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17370 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17372 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17373 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17374 else
17382 lt_prog_compiler_wl_GCJ=
17383 lt_prog_compiler_pic_GCJ=
17384 lt_prog_compiler_static_GCJ=
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17387 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17389 if test "$GCC" = yes; then
17390 lt_prog_compiler_wl_GCJ='-Wl,'
17391 lt_prog_compiler_static_GCJ='-static'
17393 case $host_os in
17394 aix*)
17395 # All AIX code is PIC.
17396 if test "$host_cpu" = ia64; then
17397 # AIX 5 now supports IA64 processor
17398 lt_prog_compiler_static_GCJ='-Bstatic'
17400 lt_prog_compiler_pic_GCJ='-fPIC'
17403 amigaos*)
17404 case $host_cpu in
17405 powerpc)
17406 # see comment about AmigaOS4 .so support
17407 lt_prog_compiler_pic_GCJ='-fPIC'
17409 m68k)
17410 # FIXME: we need at least 68020 code to build shared libraries, but
17411 # adding the `-m68020' flag to GCC prevents building anything better,
17412 # like `-m68040'.
17413 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17415 esac
17418 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17419 # PIC is the default for these OSes.
17422 mingw* | cygwin* | pw32* | os2* | cegcc*)
17423 # This hack is so that the source file can tell whether it is being
17424 # built for inclusion in a dll (and should export symbols for example).
17425 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17426 # (--disable-auto-import) libraries
17430 darwin* | rhapsody*)
17431 # PIC is the default on this platform
17432 # Common symbols not allowed in MH_DYLIB files
17433 lt_prog_compiler_pic_GCJ='-fno-common'
17436 haiku*)
17437 # PIC is the default for Haiku.
17438 # The "-static" flag exists, but is broken.
17439 lt_prog_compiler_static_GCJ=
17442 hpux*)
17443 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17444 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17445 # sets the default TLS model and affects inlining.
17446 case $host_cpu in
17447 hppa*64*)
17448 # +Z the default
17451 lt_prog_compiler_pic_GCJ='-fPIC'
17453 esac
17456 interix[3-9]*)
17457 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17458 # Instead, we relocate shared libraries at runtime.
17461 msdosdjgpp*)
17462 # Just because we use GCC doesn't mean we suddenly get shared libraries
17463 # on systems that don't support them.
17464 lt_prog_compiler_can_build_shared_GCJ=no
17465 enable_shared=no
17468 *nto* | *qnx*)
17469 # QNX uses GNU C++, but need to define -shared option too, otherwise
17470 # it will coredump.
17471 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17474 sysv4*MP*)
17475 if test -d /usr/nec; then
17476 lt_prog_compiler_pic_GCJ=-Kconform_pic
17481 lt_prog_compiler_pic_GCJ='-fPIC'
17483 esac
17485 case $cc_basename in
17486 nvcc*) # Cuda Compiler Driver 2.2
17487 lt_prog_compiler_wl_GCJ='-Xlinker '
17488 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17490 esac
17491 else
17492 # PORTME Check for flag to pass linker flags through the system compiler.
17493 case $host_os in
17494 aix*)
17495 lt_prog_compiler_wl_GCJ='-Wl,'
17496 if test "$host_cpu" = ia64; then
17497 # AIX 5 now supports IA64 processor
17498 lt_prog_compiler_static_GCJ='-Bstatic'
17499 else
17500 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17504 mingw* | cygwin* | pw32* | os2* | cegcc*)
17505 # This hack is so that the source file can tell whether it is being
17506 # built for inclusion in a dll (and should export symbols for example).
17510 hpux9* | hpux10* | hpux11*)
17511 lt_prog_compiler_wl_GCJ='-Wl,'
17512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17513 # not for PA HP-UX.
17514 case $host_cpu in
17515 hppa*64*|ia64*)
17516 # +Z the default
17519 lt_prog_compiler_pic_GCJ='+Z'
17521 esac
17522 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17523 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17526 irix5* | irix6* | nonstopux*)
17527 lt_prog_compiler_wl_GCJ='-Wl,'
17528 # PIC (with -KPIC) is the default.
17529 lt_prog_compiler_static_GCJ='-non_shared'
17532 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17533 case $cc_basename in
17534 # old Intel for x86_64 which still supported -KPIC.
17535 ecc*)
17536 lt_prog_compiler_wl_GCJ='-Wl,'
17537 lt_prog_compiler_pic_GCJ='-KPIC'
17538 lt_prog_compiler_static_GCJ='-static'
17540 # icc used to be incompatible with GCC.
17541 # ICC 10 doesn't accept -KPIC any more.
17542 icc* | ifort*)
17543 lt_prog_compiler_wl_GCJ='-Wl,'
17544 lt_prog_compiler_pic_GCJ='-fPIC'
17545 lt_prog_compiler_static_GCJ='-static'
17547 # Lahey Fortran 8.1.
17548 lf95*)
17549 lt_prog_compiler_wl_GCJ='-Wl,'
17550 lt_prog_compiler_pic_GCJ='--shared'
17551 lt_prog_compiler_static_GCJ='--static'
17553 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17554 # Portland Group compilers (*not* the Pentium gcc compiler,
17555 # which looks to be a dead project)
17556 lt_prog_compiler_wl_GCJ='-Wl,'
17557 lt_prog_compiler_pic_GCJ='-fpic'
17558 lt_prog_compiler_static_GCJ='-Bstatic'
17560 ccc*)
17561 lt_prog_compiler_wl_GCJ='-Wl,'
17562 # All Alpha code is PIC.
17563 lt_prog_compiler_static_GCJ='-non_shared'
17565 xl* | bgxl* | bgf* | mpixl*)
17566 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17567 lt_prog_compiler_wl_GCJ='-Wl,'
17568 lt_prog_compiler_pic_GCJ='-qpic'
17569 lt_prog_compiler_static_GCJ='-qstaticlink'
17572 case `$CC -V 2>&1 | sed 5q` in
17573 *Sun\ F* | *Sun*Fortran*)
17574 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17575 lt_prog_compiler_pic_GCJ='-KPIC'
17576 lt_prog_compiler_static_GCJ='-Bstatic'
17577 lt_prog_compiler_wl_GCJ=''
17579 *Sun\ C*)
17580 # Sun C 5.9
17581 lt_prog_compiler_pic_GCJ='-KPIC'
17582 lt_prog_compiler_static_GCJ='-Bstatic'
17583 lt_prog_compiler_wl_GCJ='-Wl,'
17585 esac
17587 esac
17590 newsos6)
17591 lt_prog_compiler_pic_GCJ='-KPIC'
17592 lt_prog_compiler_static_GCJ='-Bstatic'
17595 *nto* | *qnx*)
17596 # QNX uses GNU C++, but need to define -shared option too, otherwise
17597 # it will coredump.
17598 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17601 osf3* | osf4* | osf5*)
17602 lt_prog_compiler_wl_GCJ='-Wl,'
17603 # All OSF/1 code is PIC.
17604 lt_prog_compiler_static_GCJ='-non_shared'
17607 rdos*)
17608 lt_prog_compiler_static_GCJ='-non_shared'
17611 solaris*)
17612 lt_prog_compiler_pic_GCJ='-KPIC'
17613 lt_prog_compiler_static_GCJ='-Bstatic'
17614 case $cc_basename in
17615 f77* | f90* | f95*)
17616 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17618 lt_prog_compiler_wl_GCJ='-Wl,';;
17619 esac
17622 sunos4*)
17623 lt_prog_compiler_wl_GCJ='-Qoption ld '
17624 lt_prog_compiler_pic_GCJ='-PIC'
17625 lt_prog_compiler_static_GCJ='-Bstatic'
17628 sysv4 | sysv4.2uw2* | sysv4.3*)
17629 lt_prog_compiler_wl_GCJ='-Wl,'
17630 lt_prog_compiler_pic_GCJ='-KPIC'
17631 lt_prog_compiler_static_GCJ='-Bstatic'
17634 sysv4*MP*)
17635 if test -d /usr/nec ;then
17636 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17637 lt_prog_compiler_static_GCJ='-Bstatic'
17641 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17642 lt_prog_compiler_wl_GCJ='-Wl,'
17643 lt_prog_compiler_pic_GCJ='-KPIC'
17644 lt_prog_compiler_static_GCJ='-Bstatic'
17647 unicos*)
17648 lt_prog_compiler_wl_GCJ='-Wl,'
17649 lt_prog_compiler_can_build_shared_GCJ=no
17652 uts4*)
17653 lt_prog_compiler_pic_GCJ='-pic'
17654 lt_prog_compiler_static_GCJ='-Bstatic'
17658 lt_prog_compiler_can_build_shared_GCJ=no
17660 esac
17663 case $host_os in
17664 # For platforms which do not support PIC, -DPIC is meaningless:
17665 *djgpp*)
17666 lt_prog_compiler_pic_GCJ=
17669 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17671 esac
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17673 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17678 # Check to make sure the PIC flag actually works.
17680 if test -n "$lt_prog_compiler_pic_GCJ"; then
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17682 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17683 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17684 $as_echo_n "(cached) " >&6
17685 else
17686 lt_cv_prog_compiler_pic_works_GCJ=no
17687 ac_outfile=conftest.$ac_objext
17688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17689 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17690 # Insert the option either (1) after the last *FLAGS variable, or
17691 # (2) before a word containing "conftest.", or (3) at the end.
17692 # Note that $ac_compile itself does not contain backslashes and begins
17693 # with a dollar sign (not a hyphen), so the echo should work correctly.
17694 # The option is referenced via a variable to avoid confusing sed.
17695 lt_compile=`echo "$ac_compile" | $SED \
17696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17698 -e 's:$: $lt_compiler_flag:'`
17699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17700 (eval "$lt_compile" 2>conftest.err)
17701 ac_status=$?
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 if (exit $ac_status) && test -s "$ac_outfile"; then
17705 # The compiler can only warn and ignore the option if not recognized
17706 # So say no if there are warnings other than the usual output.
17707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17710 lt_cv_prog_compiler_pic_works_GCJ=yes
17713 $RM conftest*
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17717 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17719 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17720 case $lt_prog_compiler_pic_GCJ in
17721 "" | " "*) ;;
17722 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17723 esac
17724 else
17725 lt_prog_compiler_pic_GCJ=
17726 lt_prog_compiler_can_build_shared_GCJ=no
17734 # Check to make sure the static flag actually works.
17736 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17738 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17739 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17740 $as_echo_n "(cached) " >&6
17741 else
17742 lt_cv_prog_compiler_static_works_GCJ=no
17743 save_LDFLAGS="$LDFLAGS"
17744 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17745 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17747 # The linker can only warn and ignore the option if not recognized
17748 # So say no if there are warnings
17749 if test -s conftest.err; then
17750 # Append any errors to the config.log.
17751 cat conftest.err 1>&5
17752 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17754 if diff conftest.exp conftest.er2 >/dev/null; then
17755 lt_cv_prog_compiler_static_works_GCJ=yes
17757 else
17758 lt_cv_prog_compiler_static_works_GCJ=yes
17761 $RM -r conftest*
17762 LDFLAGS="$save_LDFLAGS"
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17766 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17768 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17770 else
17771 lt_prog_compiler_static_GCJ=
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17779 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17780 $as_echo_n "(cached) " >&6
17781 else
17782 lt_cv_prog_compiler_c_o_GCJ=no
17783 $RM -r conftest 2>/dev/null
17784 mkdir conftest
17785 cd conftest
17786 mkdir out
17787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17789 lt_compiler_flag="-o out/conftest2.$ac_objext"
17790 # Insert the option either (1) after the last *FLAGS variable, or
17791 # (2) before a word containing "conftest.", or (3) at the end.
17792 # Note that $ac_compile itself does not contain backslashes and begins
17793 # with a dollar sign (not a hyphen), so the echo should work correctly.
17794 lt_compile=`echo "$ac_compile" | $SED \
17795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17797 -e 's:$: $lt_compiler_flag:'`
17798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17799 (eval "$lt_compile" 2>out/conftest.err)
17800 ac_status=$?
17801 cat out/conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17804 then
17805 # The compiler can only warn and ignore the option if not recognized
17806 # So say no if there are warnings
17807 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17810 lt_cv_prog_compiler_c_o_GCJ=yes
17813 chmod u+w . 2>&5
17814 $RM conftest*
17815 # SGI C++ compiler will create directory out/ii_files/ for
17816 # template instantiation
17817 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17818 $RM out/* && rmdir out
17819 cd ..
17820 $RM -r conftest
17821 $RM conftest*
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17825 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17830 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17831 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17832 $as_echo_n "(cached) " >&6
17833 else
17834 lt_cv_prog_compiler_c_o_GCJ=no
17835 $RM -r conftest 2>/dev/null
17836 mkdir conftest
17837 cd conftest
17838 mkdir out
17839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17841 lt_compiler_flag="-o out/conftest2.$ac_objext"
17842 # Insert the option either (1) after the last *FLAGS variable, or
17843 # (2) before a word containing "conftest.", or (3) at the end.
17844 # Note that $ac_compile itself does not contain backslashes and begins
17845 # with a dollar sign (not a hyphen), so the echo should work correctly.
17846 lt_compile=`echo "$ac_compile" | $SED \
17847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17849 -e 's:$: $lt_compiler_flag:'`
17850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17851 (eval "$lt_compile" 2>out/conftest.err)
17852 ac_status=$?
17853 cat out/conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17856 then
17857 # The compiler can only warn and ignore the option if not recognized
17858 # So say no if there are warnings
17859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17862 lt_cv_prog_compiler_c_o_GCJ=yes
17865 chmod u+w . 2>&5
17866 $RM conftest*
17867 # SGI C++ compiler will create directory out/ii_files/ for
17868 # template instantiation
17869 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17870 $RM out/* && rmdir out
17871 cd ..
17872 $RM -r conftest
17873 $RM conftest*
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17877 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17882 hard_links="nottested"
17883 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17884 # do not overwrite the value of need_locks provided by the user
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17886 $as_echo_n "checking if we can lock with hard links... " >&6; }
17887 hard_links=yes
17888 $RM conftest*
17889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17890 touch conftest.a
17891 ln conftest.a conftest.b 2>&5 || hard_links=no
17892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17894 $as_echo "$hard_links" >&6; }
17895 if test "$hard_links" = no; then
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17897 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17898 need_locks=warn
17900 else
17901 need_locks=no
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17907 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17909 runpath_var=
17910 allow_undefined_flag_GCJ=
17911 always_export_symbols_GCJ=no
17912 archive_cmds_GCJ=
17913 archive_expsym_cmds_GCJ=
17914 compiler_needs_object_GCJ=no
17915 enable_shared_with_static_runtimes_GCJ=no
17916 export_dynamic_flag_spec_GCJ=
17917 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17918 hardcode_automatic_GCJ=no
17919 hardcode_direct_GCJ=no
17920 hardcode_direct_absolute_GCJ=no
17921 hardcode_libdir_flag_spec_GCJ=
17922 hardcode_libdir_flag_spec_ld_GCJ=
17923 hardcode_libdir_separator_GCJ=
17924 hardcode_minus_L_GCJ=no
17925 hardcode_shlibpath_var_GCJ=unsupported
17926 inherit_rpath_GCJ=no
17927 link_all_deplibs_GCJ=unknown
17928 module_cmds_GCJ=
17929 module_expsym_cmds_GCJ=
17930 old_archive_from_new_cmds_GCJ=
17931 old_archive_from_expsyms_cmds_GCJ=
17932 thread_safe_flag_spec_GCJ=
17933 whole_archive_flag_spec_GCJ=
17934 # include_expsyms should be a list of space-separated symbols to be *always*
17935 # included in the symbol list
17936 include_expsyms_GCJ=
17937 # exclude_expsyms can be an extended regexp of symbols to exclude
17938 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17939 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17940 # as well as any symbol that contains `d'.
17941 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17942 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17943 # platforms (ab)use it in PIC code, but their linkers get confused if
17944 # the symbol is explicitly referenced. Since portable code cannot
17945 # rely on this symbol name, it's probably fine to never include it in
17946 # preloaded symbol tables.
17947 # Exclude shared library initialization/finalization symbols.
17948 extract_expsyms_cmds=
17950 case $host_os in
17951 cygwin* | mingw* | pw32* | cegcc*)
17952 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17953 # When not using gcc, we currently assume that we are using
17954 # Microsoft Visual C++.
17955 if test "$GCC" != yes; then
17956 with_gnu_ld=no
17959 interix*)
17960 # we just hope/assume this is gcc and not c89 (= MSVC++)
17961 with_gnu_ld=yes
17963 openbsd*)
17964 with_gnu_ld=no
17966 esac
17968 ld_shlibs_GCJ=yes
17970 # On some targets, GNU ld is compatible enough with the native linker
17971 # that we're better off using the native interface for both.
17972 lt_use_gnu_ld_interface=no
17973 if test "$with_gnu_ld" = yes; then
17974 case $host_os in
17975 aix*)
17976 # The AIX port of GNU ld has always aspired to compatibility
17977 # with the native linker. However, as the warning in the GNU ld
17978 # block says, versions before 2.19.5* couldn't really create working
17979 # shared libraries, regardless of the interface used.
17980 case `$LD -v 2>&1` in
17981 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17982 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17983 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17985 lt_use_gnu_ld_interface=yes
17987 esac
17990 lt_use_gnu_ld_interface=yes
17992 esac
17995 if test "$lt_use_gnu_ld_interface" = yes; then
17996 # If archive_cmds runs LD, not CC, wlarc should be empty
17997 wlarc='${wl}'
17999 # Set some defaults for GNU ld with shared library support. These
18000 # are reset later if shared libraries are not supported. Putting them
18001 # here allows them to be overridden if necessary.
18002 runpath_var=LD_RUN_PATH
18003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18004 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18005 # ancient GNU ld didn't support --whole-archive et. al.
18006 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18007 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18008 else
18009 whole_archive_flag_spec_GCJ=
18011 supports_anon_versioning=no
18012 case `$LD -v 2>&1` in
18013 *GNU\ gold*) supports_anon_versioning=yes ;;
18014 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18015 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18016 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18017 *\ 2.11.*) ;; # other 2.11 versions
18018 *) supports_anon_versioning=yes ;;
18019 esac
18021 # See if GNU ld supports shared libraries.
18022 case $host_os in
18023 aix[3-9]*)
18024 # On AIX/PPC, the GNU linker is very broken
18025 if test "$host_cpu" != ia64; then
18026 ld_shlibs_GCJ=no
18027 cat <<_LT_EOF 1>&2
18029 *** Warning: the GNU linker, at least up to release 2.19, is reported
18030 *** to be unable to reliably create shared libraries on AIX.
18031 *** Therefore, libtool is disabling shared libraries support. If you
18032 *** really care for shared libraries, you may want to install binutils
18033 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18034 *** You will then need to restart the configuration process.
18036 _LT_EOF
18040 amigaos*)
18041 case $host_cpu in
18042 powerpc)
18043 # see comment about AmigaOS4 .so support
18044 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18045 archive_expsym_cmds_GCJ=''
18047 m68k)
18048 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)'
18049 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18050 hardcode_minus_L_GCJ=yes
18052 esac
18055 beos*)
18056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18057 allow_undefined_flag_GCJ=unsupported
18058 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18059 # support --undefined. This deserves some investigation. FIXME
18060 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18061 else
18062 ld_shlibs_GCJ=no
18066 cygwin* | mingw* | pw32* | cegcc*)
18067 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18068 # as there is no search path for DLLs.
18069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18070 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18071 allow_undefined_flag_GCJ=unsupported
18072 always_export_symbols_GCJ=no
18073 enable_shared_with_static_runtimes_GCJ=yes
18074 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18076 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18077 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18078 # If the export-symbols file already is a .def file (1st line
18079 # is EXPORTS), use it as is; otherwise, prepend...
18080 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18081 cp $export_symbols $output_objdir/$soname.def;
18082 else
18083 echo EXPORTS > $output_objdir/$soname.def;
18084 cat $export_symbols >> $output_objdir/$soname.def;
18086 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18087 else
18088 ld_shlibs_GCJ=no
18092 haiku*)
18093 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18094 link_all_deplibs_GCJ=yes
18097 interix[3-9]*)
18098 hardcode_direct_GCJ=no
18099 hardcode_shlibpath_var_GCJ=no
18100 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18101 export_dynamic_flag_spec_GCJ='${wl}-E'
18102 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18103 # Instead, shared libraries are loaded at an image base (0x10000000 by
18104 # default) and relocated if they conflict, which is a slow very memory
18105 # consuming and fragmenting process. To avoid this, we pick a random,
18106 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18107 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18108 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'
18109 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'
18112 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18113 tmp_diet=no
18114 if test "$host_os" = linux-dietlibc; then
18115 case $cc_basename in
18116 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18117 esac
18119 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18120 && test "$tmp_diet" = no
18121 then
18122 tmp_addflag=' $pic_flag'
18123 tmp_sharedflag='-shared'
18124 case $cc_basename,$host_cpu in
18125 pgcc*) # Portland Group C compiler
18126 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18127 tmp_addflag=' $pic_flag'
18129 pgf77* | pgf90* | pgf95* | pgfortran*)
18130 # Portland Group f77 and f90 compilers
18131 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18132 tmp_addflag=' $pic_flag -Mnomain' ;;
18133 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18134 tmp_addflag=' -i_dynamic' ;;
18135 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18136 tmp_addflag=' -i_dynamic -nofor_main' ;;
18137 ifc* | ifort*) # Intel Fortran compiler
18138 tmp_addflag=' -nofor_main' ;;
18139 lf95*) # Lahey Fortran 8.1
18140 whole_archive_flag_spec_GCJ=
18141 tmp_sharedflag='--shared' ;;
18142 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18143 tmp_sharedflag='-qmkshrobj'
18144 tmp_addflag= ;;
18145 nvcc*) # Cuda Compiler Driver 2.2
18146 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18147 compiler_needs_object_GCJ=yes
18149 esac
18150 case `$CC -V 2>&1 | sed 5q` in
18151 *Sun\ C*) # Sun C 5.9
18152 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18153 compiler_needs_object_GCJ=yes
18154 tmp_sharedflag='-G' ;;
18155 *Sun\ F*) # Sun Fortran 8.3
18156 tmp_sharedflag='-G' ;;
18157 esac
18158 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18160 if test "x$supports_anon_versioning" = xyes; then
18161 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18163 echo "local: *; };" >> $output_objdir/$libname.ver~
18164 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18167 case $cc_basename in
18168 xlf* | bgf* | bgxlf* | mpixlf*)
18169 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18170 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18171 hardcode_libdir_flag_spec_GCJ=
18172 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18173 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18174 if test "x$supports_anon_versioning" = xyes; then
18175 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18176 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18177 echo "local: *; };" >> $output_objdir/$libname.ver~
18178 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18181 esac
18182 else
18183 ld_shlibs_GCJ=no
18187 netbsd*)
18188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18189 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18190 wlarc=
18191 else
18192 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18193 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18197 solaris*)
18198 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18199 ld_shlibs_GCJ=no
18200 cat <<_LT_EOF 1>&2
18202 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18203 *** create shared libraries on Solaris systems. Therefore, libtool
18204 *** is disabling shared libraries support. We urge you to upgrade GNU
18205 *** binutils to release 2.9.1 or newer. Another option is to modify
18206 *** your PATH or compiler configuration so that the native linker is
18207 *** used, and then restart.
18209 _LT_EOF
18210 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18211 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18212 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18213 else
18214 ld_shlibs_GCJ=no
18218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18219 case `$LD -v 2>&1` in
18220 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18221 ld_shlibs_GCJ=no
18222 cat <<_LT_EOF 1>&2
18224 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18225 *** reliably create shared libraries on SCO systems. Therefore, libtool
18226 *** is disabling shared libraries support. We urge you to upgrade GNU
18227 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18228 *** your PATH or compiler configuration so that the native linker is
18229 *** used, and then restart.
18231 _LT_EOF
18234 # For security reasons, it is highly recommended that you always
18235 # use absolute paths for naming shared libraries, and exclude the
18236 # DT_RUNPATH tag from executables and libraries. But doing so
18237 # requires that you compile everything twice, which is a pain.
18238 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18239 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18240 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18241 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18242 else
18243 ld_shlibs_GCJ=no
18246 esac
18249 sunos4*)
18250 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18251 wlarc=
18252 hardcode_direct_GCJ=yes
18253 hardcode_shlibpath_var_GCJ=no
18257 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18258 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18259 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18260 else
18261 ld_shlibs_GCJ=no
18264 esac
18266 if test "$ld_shlibs_GCJ" = no; then
18267 runpath_var=
18268 hardcode_libdir_flag_spec_GCJ=
18269 export_dynamic_flag_spec_GCJ=
18270 whole_archive_flag_spec_GCJ=
18272 else
18273 # PORTME fill in a description of your system's linker (not GNU ld)
18274 case $host_os in
18275 aix3*)
18276 allow_undefined_flag_GCJ=unsupported
18277 always_export_symbols_GCJ=yes
18278 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'
18279 # Note: this linker hardcodes the directories in LIBPATH if there
18280 # are no directories specified by -L.
18281 hardcode_minus_L_GCJ=yes
18282 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18283 # Neither direct hardcoding nor static linking is supported with a
18284 # broken collect2.
18285 hardcode_direct_GCJ=unsupported
18289 aix[4-9]*)
18290 if test "$host_cpu" = ia64; then
18291 # On IA64, the linker does run time linking by default, so we don't
18292 # have to do anything special.
18293 aix_use_runtimelinking=no
18294 exp_sym_flag='-Bexport'
18295 no_entry_flag=""
18296 else
18297 # If we're using GNU nm, then we don't want the "-C" option.
18298 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18299 # Also, AIX nm treats weak defined symbols like other global
18300 # defined symbols, whereas GNU nm marks them as "W".
18301 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18302 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18303 else
18304 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'
18306 aix_use_runtimelinking=no
18308 # Test if we are trying to use run time linking or normal
18309 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18310 # need to do runtime linking.
18311 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18312 for ld_flag in $LDFLAGS; do
18313 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18314 aix_use_runtimelinking=yes
18315 break
18317 done
18319 esac
18321 exp_sym_flag='-bexport'
18322 no_entry_flag='-bnoentry'
18325 # When large executables or shared objects are built, AIX ld can
18326 # have problems creating the table of contents. If linking a library
18327 # or program results in "error TOC overflow" add -mminimal-toc to
18328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18331 archive_cmds_GCJ=''
18332 hardcode_direct_GCJ=yes
18333 hardcode_direct_absolute_GCJ=yes
18334 hardcode_libdir_separator_GCJ=':'
18335 link_all_deplibs_GCJ=yes
18336 file_list_spec_GCJ='${wl}-f,'
18338 if test "$GCC" = yes; then
18339 case $host_os in aix4.[012]|aix4.[012].*)
18340 # We only want to do this on AIX 4.2 and lower, the check
18341 # below for broken collect2 doesn't work under 4.3+
18342 collect2name=`${CC} -print-prog-name=collect2`
18343 if test -f "$collect2name" &&
18344 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18345 then
18346 # We have reworked collect2
18348 else
18349 # We have old collect2
18350 hardcode_direct_GCJ=unsupported
18351 # It fails to find uninstalled libraries when the uninstalled
18352 # path is not listed in the libpath. Setting hardcode_minus_L
18353 # to unsupported forces relinking
18354 hardcode_minus_L_GCJ=yes
18355 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18356 hardcode_libdir_separator_GCJ=
18359 esac
18360 shared_flag='-shared'
18361 if test "$aix_use_runtimelinking" = yes; then
18362 shared_flag="$shared_flag "'${wl}-G'
18364 else
18365 # not using gcc
18366 if test "$host_cpu" = ia64; then
18367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18368 # chokes on -Wl,-G. The following line is correct:
18369 shared_flag='-G'
18370 else
18371 if test "$aix_use_runtimelinking" = yes; then
18372 shared_flag='${wl}-G'
18373 else
18374 shared_flag='${wl}-bM:SRE'
18379 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18380 # It seems that -bexpall does not export symbols beginning with
18381 # underscore (_), so it is better to generate a list of symbols to export.
18382 always_export_symbols_GCJ=yes
18383 if test "$aix_use_runtimelinking" = yes; then
18384 # Warning - without using the other runtime loading flags (-brtl),
18385 # -berok will link without error, but may produce a broken library.
18386 allow_undefined_flag_GCJ='-berok'
18387 # Determine the default libpath from the value encoded in an
18388 # empty executable.
18389 if test x$gcc_no_link = xyes; then
18390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18396 main ()
18400 return 0;
18402 _ACEOF
18403 if ac_fn_c_try_link "$LINENO"; then :
18405 lt_aix_libpath_sed='
18406 /Import File Strings/,/^$/ {
18407 /^0/ {
18408 s/^0 *\(.*\)$/\1/
18412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18413 # Check for a 64-bit object if we didn't find anything.
18414 if test -z "$aix_libpath"; then
18415 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18418 rm -f core conftest.err conftest.$ac_objext \
18419 conftest$ac_exeext conftest.$ac_ext
18420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18422 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18423 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18424 else
18425 if test "$host_cpu" = ia64; then
18426 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18427 allow_undefined_flag_GCJ="-z nodefs"
18428 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"
18429 else
18430 # Determine the default libpath from the value encoded in an
18431 # empty executable.
18432 if test x$gcc_no_link = xyes; then
18433 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h. */
18439 main ()
18443 return 0;
18445 _ACEOF
18446 if ac_fn_c_try_link "$LINENO"; then :
18448 lt_aix_libpath_sed='
18449 /Import File Strings/,/^$/ {
18450 /^0/ {
18451 s/^0 *\(.*\)$/\1/
18455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18456 # Check for a 64-bit object if we didn't find anything.
18457 if test -z "$aix_libpath"; then
18458 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18461 rm -f core conftest.err conftest.$ac_objext \
18462 conftest$ac_exeext conftest.$ac_ext
18463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18465 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18466 # Warning - without using the other run time loading flags,
18467 # -berok will link without error, but may produce a broken library.
18468 no_undefined_flag_GCJ=' ${wl}-bernotok'
18469 allow_undefined_flag_GCJ=' ${wl}-berok'
18470 if test "$with_gnu_ld" = yes; then
18471 # We only use this code for GNU lds that support --whole-archive.
18472 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18473 else
18474 # Exported symbols can be pulled into shared objects from archives
18475 whole_archive_flag_spec_GCJ='$convenience'
18477 archive_cmds_need_lc_GCJ=yes
18478 # This is similar to how AIX traditionally builds its shared libraries.
18479 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'
18484 amigaos*)
18485 case $host_cpu in
18486 powerpc)
18487 # see comment about AmigaOS4 .so support
18488 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18489 archive_expsym_cmds_GCJ=''
18491 m68k)
18492 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)'
18493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18494 hardcode_minus_L_GCJ=yes
18496 esac
18499 bsdi[45]*)
18500 export_dynamic_flag_spec_GCJ=-rdynamic
18503 cygwin* | mingw* | pw32* | cegcc*)
18504 # When not using gcc, we currently assume that we are using
18505 # Microsoft Visual C++.
18506 # hardcode_libdir_flag_spec is actually meaningless, as there is
18507 # no search path for DLLs.
18508 hardcode_libdir_flag_spec_GCJ=' '
18509 allow_undefined_flag_GCJ=unsupported
18510 # Tell ltmain to make .lib files, not .a files.
18511 libext=lib
18512 # Tell ltmain to make .dll files, not .so files.
18513 shrext_cmds=".dll"
18514 # FIXME: Setting linknames here is a bad hack.
18515 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18516 # The linker will automatically build a .lib file if we build a DLL.
18517 old_archive_from_new_cmds_GCJ='true'
18518 # FIXME: Should let the user specify the lib program.
18519 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18520 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18521 enable_shared_with_static_runtimes_GCJ=yes
18524 darwin* | rhapsody*)
18527 archive_cmds_need_lc_GCJ=no
18528 hardcode_direct_GCJ=no
18529 hardcode_automatic_GCJ=yes
18530 hardcode_shlibpath_var_GCJ=unsupported
18531 if test "$lt_cv_ld_force_load" = "yes"; then
18532 whole_archive_flag_spec_GCJ='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18533 else
18534 whole_archive_flag_spec_GCJ=''
18536 link_all_deplibs_GCJ=yes
18537 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18538 case $cc_basename in
18539 ifort*) _lt_dar_can_shared=yes ;;
18540 *) _lt_dar_can_shared=$GCC ;;
18541 esac
18542 if test "$_lt_dar_can_shared" = "yes"; then
18543 output_verbose_link_cmd=func_echo_all
18544 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18545 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18546 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18547 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18549 else
18550 ld_shlibs_GCJ=no
18555 dgux*)
18556 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18557 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18558 hardcode_shlibpath_var_GCJ=no
18561 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18562 # support. Future versions do this automatically, but an explicit c++rt0.o
18563 # does not break anything, and helps significantly (at the cost of a little
18564 # extra space).
18565 freebsd2.2*)
18566 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18567 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18568 hardcode_direct_GCJ=yes
18569 hardcode_shlibpath_var_GCJ=no
18572 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18573 freebsd2.*)
18574 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18575 hardcode_direct_GCJ=yes
18576 hardcode_minus_L_GCJ=yes
18577 hardcode_shlibpath_var_GCJ=no
18580 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18581 freebsd* | dragonfly*)
18582 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18583 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18584 hardcode_direct_GCJ=yes
18585 hardcode_shlibpath_var_GCJ=no
18588 hpux9*)
18589 if test "$GCC" = yes; then
18590 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'
18591 else
18592 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'
18594 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18595 hardcode_libdir_separator_GCJ=:
18596 hardcode_direct_GCJ=yes
18598 # hardcode_minus_L: Not really in the search PATH,
18599 # but as the default location of the library.
18600 hardcode_minus_L_GCJ=yes
18601 export_dynamic_flag_spec_GCJ='${wl}-E'
18604 hpux10*)
18605 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18606 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18607 else
18608 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18610 if test "$with_gnu_ld" = no; then
18611 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18612 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18613 hardcode_libdir_separator_GCJ=:
18614 hardcode_direct_GCJ=yes
18615 hardcode_direct_absolute_GCJ=yes
18616 export_dynamic_flag_spec_GCJ='${wl}-E'
18617 # hardcode_minus_L: Not really in the search PATH,
18618 # but as the default location of the library.
18619 hardcode_minus_L_GCJ=yes
18623 hpux11*)
18624 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18625 case $host_cpu in
18626 hppa*64*)
18627 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18629 ia64*)
18630 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18633 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18635 esac
18636 else
18637 case $host_cpu in
18638 hppa*64*)
18639 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18641 ia64*)
18642 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18645 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18647 esac
18649 if test "$with_gnu_ld" = no; then
18650 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18651 hardcode_libdir_separator_GCJ=:
18653 case $host_cpu in
18654 hppa*64*|ia64*)
18655 hardcode_direct_GCJ=no
18656 hardcode_shlibpath_var_GCJ=no
18659 hardcode_direct_GCJ=yes
18660 hardcode_direct_absolute_GCJ=yes
18661 export_dynamic_flag_spec_GCJ='${wl}-E'
18663 # hardcode_minus_L: Not really in the search PATH,
18664 # but as the default location of the library.
18665 hardcode_minus_L_GCJ=yes
18667 esac
18671 irix5* | irix6* | nonstopux*)
18672 if test "$GCC" = yes; then
18673 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18674 # Try to use the -exported_symbol ld option, if it does not
18675 # work, assume that -exports_file does not work either and
18676 # implicitly export all symbols.
18677 save_LDFLAGS="$LDFLAGS"
18678 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18679 if test x$gcc_no_link = xyes; then
18680 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h. */
18684 int foo(void) {}
18685 _ACEOF
18686 if ac_fn_c_try_link "$LINENO"; then :
18687 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
18690 rm -f core conftest.err conftest.$ac_objext \
18691 conftest$ac_exeext conftest.$ac_ext
18692 LDFLAGS="$save_LDFLAGS"
18693 else
18694 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18695 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
18697 archive_cmds_need_lc_GCJ='no'
18698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18699 hardcode_libdir_separator_GCJ=:
18700 inherit_rpath_GCJ=yes
18701 link_all_deplibs_GCJ=yes
18704 netbsd*)
18705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18706 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18707 else
18708 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18710 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18711 hardcode_direct_GCJ=yes
18712 hardcode_shlibpath_var_GCJ=no
18715 newsos6)
18716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18717 hardcode_direct_GCJ=yes
18718 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18719 hardcode_libdir_separator_GCJ=:
18720 hardcode_shlibpath_var_GCJ=no
18723 *nto* | *qnx*)
18726 openbsd*)
18727 if test -f /usr/libexec/ld.so; then
18728 hardcode_direct_GCJ=yes
18729 hardcode_shlibpath_var_GCJ=no
18730 hardcode_direct_absolute_GCJ=yes
18731 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18732 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18733 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18735 export_dynamic_flag_spec_GCJ='${wl}-E'
18736 else
18737 case $host_os in
18738 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18739 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18740 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18743 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18744 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18746 esac
18748 else
18749 ld_shlibs_GCJ=no
18753 os2*)
18754 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18755 hardcode_minus_L_GCJ=yes
18756 allow_undefined_flag_GCJ=unsupported
18757 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'
18758 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18761 osf3*)
18762 if test "$GCC" = yes; then
18763 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18764 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18765 else
18766 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18767 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18769 archive_cmds_need_lc_GCJ='no'
18770 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18771 hardcode_libdir_separator_GCJ=:
18774 osf4* | osf5*) # as osf3* with the addition of -msym flag
18775 if test "$GCC" = yes; then
18776 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18777 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18778 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18779 else
18780 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18781 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18782 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~
18783 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18785 # Both c and cxx compiler support -rpath directly
18786 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18788 archive_cmds_need_lc_GCJ='no'
18789 hardcode_libdir_separator_GCJ=:
18792 solaris*)
18793 no_undefined_flag_GCJ=' -z defs'
18794 if test "$GCC" = yes; then
18795 wlarc='${wl}'
18796 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18797 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18798 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18799 else
18800 case `$CC -V 2>&1` in
18801 *"Compilers 5.0"*)
18802 wlarc=''
18803 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18804 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18805 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18808 wlarc='${wl}'
18809 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18810 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18811 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18813 esac
18815 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18816 hardcode_shlibpath_var_GCJ=no
18817 case $host_os in
18818 solaris2.[0-5] | solaris2.[0-5].*) ;;
18820 # The compiler driver will combine and reorder linker options,
18821 # but understands `-z linker_flag'. GCC discards it without `$wl',
18822 # but is careful enough not to reorder.
18823 # Supported since Solaris 2.6 (maybe 2.5.1?)
18824 if test "$GCC" = yes; then
18825 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18826 else
18827 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18830 esac
18831 link_all_deplibs_GCJ=yes
18834 sunos4*)
18835 if test "x$host_vendor" = xsequent; then
18836 # Use $CC to link under sequent, because it throws in some extra .o
18837 # files that make .init and .fini sections work.
18838 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18839 else
18840 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18842 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18843 hardcode_direct_GCJ=yes
18844 hardcode_minus_L_GCJ=yes
18845 hardcode_shlibpath_var_GCJ=no
18848 sysv4)
18849 case $host_vendor in
18850 sni)
18851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18852 hardcode_direct_GCJ=yes # is this really true???
18854 siemens)
18855 ## LD is ld it makes a PLAMLIB
18856 ## CC just makes a GrossModule.
18857 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18858 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18859 hardcode_direct_GCJ=no
18861 motorola)
18862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18863 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18865 esac
18866 runpath_var='LD_RUN_PATH'
18867 hardcode_shlibpath_var_GCJ=no
18870 sysv4.3*)
18871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18872 hardcode_shlibpath_var_GCJ=no
18873 export_dynamic_flag_spec_GCJ='-Bexport'
18876 sysv4*MP*)
18877 if test -d /usr/nec; then
18878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18879 hardcode_shlibpath_var_GCJ=no
18880 runpath_var=LD_RUN_PATH
18881 hardcode_runpath_var=yes
18882 ld_shlibs_GCJ=yes
18886 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18887 no_undefined_flag_GCJ='${wl}-z,text'
18888 archive_cmds_need_lc_GCJ=no
18889 hardcode_shlibpath_var_GCJ=no
18890 runpath_var='LD_RUN_PATH'
18892 if test "$GCC" = yes; then
18893 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18894 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18895 else
18896 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18897 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18901 sysv5* | sco3.2v5* | sco5v6*)
18902 # Note: We can NOT use -z defs as we might desire, because we do not
18903 # link with -lc, and that would cause any symbols used from libc to
18904 # always be unresolved, which means just about no library would
18905 # ever link correctly. If we're not using GNU ld we use -z text
18906 # though, which does catch some bad symbols but isn't as heavy-handed
18907 # as -z defs.
18908 no_undefined_flag_GCJ='${wl}-z,text'
18909 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18910 archive_cmds_need_lc_GCJ=no
18911 hardcode_shlibpath_var_GCJ=no
18912 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18913 hardcode_libdir_separator_GCJ=':'
18914 link_all_deplibs_GCJ=yes
18915 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18916 runpath_var='LD_RUN_PATH'
18918 if test "$GCC" = yes; then
18919 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18920 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18921 else
18922 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18923 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18927 uts4*)
18928 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18929 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18930 hardcode_shlibpath_var_GCJ=no
18934 ld_shlibs_GCJ=no
18936 esac
18938 if test x$host_vendor = xsni; then
18939 case $host in
18940 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18941 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18943 esac
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18948 $as_echo "$ld_shlibs_GCJ" >&6; }
18949 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18951 with_gnu_ld_GCJ=$with_gnu_ld
18959 # Do we need to explicitly link libc?
18961 case "x$archive_cmds_need_lc_GCJ" in
18962 x|xyes)
18963 # Assume -lc should be added
18964 archive_cmds_need_lc_GCJ=yes
18966 if test "$enable_shared" = yes && test "$GCC" = yes; then
18967 case $archive_cmds_GCJ in
18968 *'~'*)
18969 # FIXME: we may have to deal with multi-command sequences.
18971 '$CC '*)
18972 # Test whether the compiler implicitly links with -lc since on some
18973 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18974 # to ld, don't add -lc before -lgcc.
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18976 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18977 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18978 $as_echo_n "(cached) " >&6
18979 else
18980 $RM conftest*
18981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18984 (eval $ac_compile) 2>&5
18985 ac_status=$?
18986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18987 test $ac_status = 0; } 2>conftest.err; then
18988 soname=conftest
18989 lib=conftest
18990 libobjs=conftest.$ac_objext
18991 deplibs=
18992 wl=$lt_prog_compiler_wl_GCJ
18993 pic_flag=$lt_prog_compiler_pic_GCJ
18994 compiler_flags=-v
18995 linker_flags=-v
18996 verstring=
18997 output_objdir=.
18998 libname=conftest
18999 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19000 allow_undefined_flag_GCJ=
19001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19002 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19003 ac_status=$?
19004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19005 test $ac_status = 0; }
19006 then
19007 lt_cv_archive_cmds_need_lc_GCJ=no
19008 else
19009 lt_cv_archive_cmds_need_lc_GCJ=yes
19011 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19012 else
19013 cat conftest.err 1>&5
19015 $RM conftest*
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
19019 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
19020 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
19022 esac
19025 esac
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19091 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19092 hardcode_action_GCJ=
19093 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19094 test -n "$runpath_var_GCJ" ||
19095 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19097 # We can hardcode non-existent directories.
19098 if test "$hardcode_direct_GCJ" != no &&
19099 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19100 # have to relink, otherwise we might link with an installed library
19101 # when we should be linking with a yet-to-be-installed one
19102 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19103 test "$hardcode_minus_L_GCJ" != no; then
19104 # Linking always hardcodes the temporary library directory.
19105 hardcode_action_GCJ=relink
19106 else
19107 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19108 hardcode_action_GCJ=immediate
19110 else
19111 # We cannot hardcode anything, or else we can only hardcode existing
19112 # directories.
19113 hardcode_action_GCJ=unsupported
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19116 $as_echo "$hardcode_action_GCJ" >&6; }
19118 if test "$hardcode_action_GCJ" = relink ||
19119 test "$inherit_rpath_GCJ" = yes; then
19120 # Fast installation is not supported
19121 enable_fast_install=no
19122 elif test "$shlibpath_overrides_runpath" = yes ||
19123 test "$enable_shared" = no; then
19124 # Fast installation is not necessary
19125 enable_fast_install=needless
19136 compiler_GCJ=${GCJ-gcj}
19137 ac_ext=c
19138 ac_cpp='$CPP $CPPFLAGS'
19139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19144 if test "x$CC" != xcc; then
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19146 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19147 else
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19149 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19151 set dummy $CC; ac_cc=`$as_echo "$2" |
19152 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19153 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19154 $as_echo_n "(cached) " >&6
19155 else
19156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19157 /* end confdefs.h. */
19160 main ()
19164 return 0;
19166 _ACEOF
19167 # Make sure it works both with $CC and with simple cc.
19168 # We do the test twice because some compilers refuse to overwrite an
19169 # existing .o file with -o, though they will create one.
19170 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19171 rm -f conftest2.*
19172 if { { case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19175 esac
19176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19177 $as_echo "$ac_try_echo"; } >&5
19178 (eval "$ac_try") 2>&5
19179 ac_status=$?
19180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19181 test $ac_status = 0; } &&
19182 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185 esac
19186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19187 $as_echo "$ac_try_echo"; } >&5
19188 (eval "$ac_try") 2>&5
19189 ac_status=$?
19190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19191 test $ac_status = 0; };
19192 then
19193 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19194 if test "x$CC" != xcc; then
19195 # Test first that cc exists at all.
19196 if { ac_try='cc -c conftest.$ac_ext >&5'
19197 { { case "(($ac_try" in
19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199 *) ac_try_echo=$ac_try;;
19200 esac
19201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19202 $as_echo "$ac_try_echo"; } >&5
19203 (eval "$ac_try") 2>&5
19204 ac_status=$?
19205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19206 test $ac_status = 0; }; }; then
19207 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19208 rm -f conftest2.*
19209 if { { case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19212 esac
19213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19214 $as_echo "$ac_try_echo"; } >&5
19215 (eval "$ac_try") 2>&5
19216 ac_status=$?
19217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19218 test $ac_status = 0; } &&
19219 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19222 esac
19223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19224 $as_echo "$ac_try_echo"; } >&5
19225 (eval "$ac_try") 2>&5
19226 ac_status=$?
19227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19228 test $ac_status = 0; };
19229 then
19230 # cc works too.
19232 else
19233 # cc exists but doesn't like -o.
19234 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19238 else
19239 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19241 rm -f core conftest*
19244 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19246 $as_echo "yes" >&6; }
19247 else
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19249 $as_echo "no" >&6; }
19251 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19255 # FIXME: we rely on the cache variable name because
19256 # there is no other way.
19257 set dummy $CC
19258 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19259 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19260 if test "$am_t" != yes; then
19261 # Losing compiler, so override with the script.
19262 # FIXME: It is wrong to rewrite CC.
19263 # But if we don't then we get into trouble of one sort or another.
19264 # A longer-term fix would be to have automake use am__CC in this case,
19265 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19266 CC="$am_aux_dir/compile $CC"
19273 subdirs="$subdirs classpath libltdl"
19276 # The -no-testsuite modules omit the test subdir.
19277 if test -d $srcdir/testsuite; then
19278 TESTSUBDIR_TRUE=
19279 TESTSUBDIR_FALSE='#'
19280 else
19281 TESTSUBDIR_TRUE='#'
19282 TESTSUBDIR_FALSE=
19286 # Should the runtime set system properties by examining the
19287 # environment variable GCJ_PROPERTIES?
19288 # Check whether --enable-getenv-properties was given.
19289 if test "${enable_getenv_properties+set}" = set; then :
19290 enableval=$enable_getenv_properties;
19294 # Whether GCJ_PROPERTIES is used depends on the target.
19295 if test -z "$enable_getenv_properties"; then
19296 enable_getenv_properties=${enable_getenv_properties_default-yes}
19298 if test "$enable_getenv_properties" = no; then
19300 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19304 # Whether we should use arguments to main()
19305 if test -z "$enable_main_args"; then
19306 enable_main_args=${enable_main_args_default-yes}
19308 if test "$enable_main_args" = no; then
19310 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19315 # Should we use hashtable-based synchronization?
19316 # Currently works only for Linux X86/ia64
19317 # Typically faster and more space-efficient
19318 # Check whether --enable-hash-synchronization was given.
19319 if test "${enable_hash_synchronization+set}" = set; then :
19320 enableval=$enable_hash_synchronization;
19324 if test -z "$enable_hash_synchronization"; then
19325 enable_hash_synchronization=$enable_hash_synchronization_default
19329 install_ecj_jar=no
19330 ECJ_BUILD_JAR=
19331 ECJ_JAR=
19333 # Check whether --with-ecj-jar was given.
19334 if test "${with_ecj_jar+set}" = set; then :
19335 withval=$with_ecj_jar; ECJ_JAR=$withval
19336 else
19337 if test -f $multi_basedir/ecj.jar; then
19338 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19339 ECJ_JAR='$(jardir)/ecj.jar'
19340 install_ecj_jar=yes
19346 if test "$ECJ_JAR" != ""; then
19347 BUILD_ECJ1_TRUE=
19348 BUILD_ECJ1_FALSE='#'
19349 else
19350 BUILD_ECJ1_TRUE='#'
19351 BUILD_ECJ1_FALSE=
19354 if test $install_ecj_jar = yes; then
19355 INSTALL_ECJ_JAR_TRUE=
19356 INSTALL_ECJ_JAR_FALSE='#'
19357 else
19358 INSTALL_ECJ_JAR_TRUE='#'
19359 INSTALL_ECJ_JAR_FALSE=
19364 # Check whether --with-java-home was given.
19365 if test "${with_java_home+set}" = set; then :
19366 withval=$with_java_home; JAVA_HOME="${withval}"
19367 else
19368 JAVA_HOME=""
19371 if test ! -z "$JAVA_HOME"; then
19372 JAVA_HOME_SET_TRUE=
19373 JAVA_HOME_SET_FALSE='#'
19374 else
19375 JAVA_HOME_SET_TRUE='#'
19376 JAVA_HOME_SET_FALSE=
19381 suppress_libgcj_bc=no
19382 # Check whether --enable-libgcj-bc was given.
19383 if test "${enable_libgcj_bc+set}" = set; then :
19384 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19385 suppress_libgcj_bc=yes
19389 if test "$suppress_libgcj_bc" = "yes"; then
19390 SUPPRESS_LIBGCJ_BC_TRUE=
19391 SUPPRESS_LIBGCJ_BC_FALSE='#'
19392 else
19393 SUPPRESS_LIBGCJ_BC_TRUE='#'
19394 SUPPRESS_LIBGCJ_BC_FALSE=
19398 build_libgcj_reduced_reflection=no
19399 # Check whether --enable-reduced-reflection was given.
19400 if test "${enable_reduced_reflection+set}" = set; then :
19401 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19402 build_libgcj_reduced_reflection=yes
19406 if test "$build_libgcj_reduced_reflection" = "yes"; then
19407 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19408 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19409 else
19410 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19411 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19415 # What is the native OS API for MinGW?
19417 # Check whether --with-win32-nlsapi was given.
19418 if test "${with_win32_nlsapi+set}" = set; then :
19419 withval=$with_win32_nlsapi; case "${withval}" in
19420 ansi) with_win32_nlsapi=ansi ;;
19421 unicows) with_win32_nlsapi=unicows ;;
19422 unicode) with_win32_nlsapi=unicode ;;
19423 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19424 esac
19425 else
19426 with_win32_nlsapi=ansi
19430 case "${with_win32_nlsapi}" in
19431 unicows | unicode)
19433 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19436 esac
19438 # configure.host sets slow_pthread_self if the synchronization code should
19439 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19440 if test "${slow_pthread_self}" = "yes"; then
19442 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19446 # Check for gc debugging. This option is handled both here and in the GC.
19447 # Check whether --enable-gc-debug was given.
19448 if test "${enable_gc_debug+set}" = set; then :
19449 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19451 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19457 # See if the user has the interpreter included.
19458 # Check whether --enable-interpreter was given.
19459 if test "${enable_interpreter+set}" = set; then :
19460 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19461 # This can also be set in configure.host.
19462 libgcj_interpreter=yes
19463 elif test "$enable_interpreter" = no; then
19464 libgcj_interpreter=no
19469 if test "$libgcj_interpreter" = yes; then
19471 $as_echo "#define INTERPRETER 1" >>confdefs.h
19474 INTERPRETER="$libgcj_interpreter"
19476 if test "$libgcj_interpreter" = yes; then
19477 INTERPRETER_TRUE=
19478 INTERPRETER_FALSE='#'
19479 else
19480 INTERPRETER_TRUE='#'
19481 INTERPRETER_FALSE=
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19486 $as_echo_n "checking for exception model to use... " >&6; }
19487 ac_ext=cpp
19488 ac_cpp='$CXXCPP $CPPFLAGS'
19489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19493 # Check whether --enable-sjlj-exceptions was given.
19494 if test "${enable_sjlj_exceptions+set}" = set; then :
19495 enableval=$enable_sjlj_exceptions; :
19496 else
19497 cat > conftest.$ac_ext << EOF
19498 #line 19498 "configure"
19499 struct S { ~S(); };
19500 void bar();
19501 void foo()
19503 S s;
19504 bar();
19507 old_CXXFLAGS="$CXXFLAGS"
19508 CXXFLAGS=-S
19509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19510 (eval $ac_compile) 2>&5
19511 ac_status=$?
19512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19513 test $ac_status = 0; }; then
19514 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19515 enable_sjlj_exceptions=yes
19516 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19517 enable_sjlj_exceptions=no
19518 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19519 # ARM EH ABI.
19520 enable_sjlj_exceptions=no
19523 CXXFLAGS="$old_CXXFLAGS"
19524 rm -f conftest*
19527 if test x$enable_sjlj_exceptions = xyes; then
19529 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19531 ac_exception_model_name=sjlj
19532 elif test x$enable_sjlj_exceptions = xno; then
19533 ac_exception_model_name="call frame"
19534 else
19535 as_fn_error "unable to detect exception model" "$LINENO" 5
19537 ac_ext=c
19538 ac_cpp='$CPP $CPPFLAGS'
19539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19544 $as_echo "$ac_exception_model_name" >&6; }
19546 # If we are non using SJLJ exceptions, and this host does not have support
19547 # for unwinding from a signal handler, enable checked dereferences and divides.
19548 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19549 CHECKREFSPEC=-fcheck-references
19550 DIVIDESPEC=-fuse-divide-subroutine
19551 EXCEPTIONSPEC=
19554 # See if the user wants to disable java.net. This is the mildly
19555 # ugly way that we admit that target-side configuration sucks.
19556 # Check whether --enable-java-net was given.
19557 if test "${enable_java_net+set}" = set; then :
19558 enableval=$enable_java_net;
19562 # Whether java.net is built by default can depend on the target.
19563 if test -z "$enable_java_net"; then
19564 enable_java_net=${enable_java_net_default-yes}
19566 if test "$enable_java_net" = no; then
19568 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19572 # See if the user wants to configure without libffi. Some
19573 # architectures don't support it, and default values are set in
19574 # configure.host.
19576 # Check whether --with-libffi was given.
19577 if test "${with_libffi+set}" = set; then :
19578 withval=$with_libffi; :
19579 else
19580 with_libffi=${with_libffi_default-yes}
19584 LIBFFI=
19585 LIBFFIINCS=
19586 if test "$with_libffi" != no; then
19588 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19590 LIBFFI=../libffi/libffi_convenience.la
19591 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19596 # See if the user wants to disable JVMPI support.
19597 # Check whether --enable-jvmpi was given.
19598 if test "${enable_jvmpi+set}" = set; then :
19599 enableval=$enable_jvmpi;
19603 if test "$enable_jvmpi" != no; then
19605 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19609 # If the target is an eCos system, use the appropriate eCos
19610 # I/O routines.
19611 # FIXME: this should not be a local option but a global target
19612 # system; at present there is no eCos target.
19613 TARGET_ECOS=${PROCESS-"no"}
19615 # Check whether --with-ecos was given.
19616 if test "${with_ecos+set}" = set; then :
19617 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19622 case "$TARGET_ECOS" in
19623 no) case "$host" in
19624 *mingw*)
19625 PLATFORM=Win32
19626 PLATFORMNET=Win32
19627 PLATFORMH=win32.h
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19630 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19631 LD_PROG=`$CC --print-prog-name=ld`
19632 LD_VERSION=`$LD_PROG --version`
19633 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19634 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19635 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19636 LD_OK="ok"
19637 else
19638 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19639 LD_OK="ok"
19642 if test "x$LD_OK" != x; then
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19644 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19645 else
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19647 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19649 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19651 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19656 PLATFORM=Posix
19657 PLATFORMNET=Posix
19658 PLATFORMH=posix.h
19660 esac
19663 PLATFORM=Ecos
19664 PLATFORMNET=NoNet
19666 $as_echo "#define ECOS 1" >>confdefs.h
19668 PLATFORMH=posix.h
19670 esac
19672 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19676 /* end confdefs.h. */
19677 #include <stdint.h>
19679 _ACEOF
19680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19681 $EGREP "uint32_t" >/dev/null 2>&1; then :
19683 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19686 rm -f conftest*
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19690 #include <inttypes.h>
19692 _ACEOF
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694 $EGREP "uint32_t" >/dev/null 2>&1; then :
19696 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19699 rm -f conftest*
19701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19702 /* end confdefs.h. */
19703 #include <sys/types.h>
19705 _ACEOF
19706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19707 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19709 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19712 rm -f conftest*
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19716 #include <sys/config.h>
19718 _ACEOF
19719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19720 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19722 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19725 rm -f conftest*
19728 if test "$PLATFORM" = Win32; then
19729 USING_WIN32_PLATFORM_TRUE=
19730 USING_WIN32_PLATFORM_FALSE='#'
19731 else
19732 USING_WIN32_PLATFORM_TRUE='#'
19733 USING_WIN32_PLATFORM_FALSE=
19736 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19737 USING_POSIX_PLATFORM_TRUE=
19738 USING_POSIX_PLATFORM_FALSE='#'
19739 else
19740 USING_POSIX_PLATFORM_TRUE='#'
19741 USING_POSIX_PLATFORM_FALSE=
19745 case "$host" in
19746 *-darwin*) DARWIN_CRT=true ;;
19747 *) DARWIN_CRT=false ;;
19748 esac
19749 if $DARWIN_CRT; then
19750 USING_DARWIN_CRT_TRUE=
19751 USING_DARWIN_CRT_FALSE='#'
19752 else
19753 USING_DARWIN_CRT_TRUE='#'
19754 USING_DARWIN_CRT_FALSE=
19758 # This may not be defined in a non-ANS conformant embedded system.
19759 # FIXME: Should these case a runtime exception in that case?
19760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19761 /* end confdefs.h. */
19762 #include <time.h>
19764 _ACEOF
19765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19766 $EGREP "localtime" >/dev/null 2>&1; then :
19768 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19771 rm -f conftest*
19774 # Create the subdirectory for natFile.cc, or the attempt
19775 # to create the link will fail.
19776 test -d java || mkdir java
19777 test -d java/io || mkdir java/io
19778 test -d gnu || mkdir gnu
19779 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19782 # Likewise for natConcreteProcess.cc.
19783 test -d java/lang || mkdir java/lang
19784 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19787 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19788 test -d java/net || mkdir java/net
19789 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19791 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19794 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19795 test -d gnu/java || mkdir gnu/java
19796 test -d gnu/java/net || mkdir gnu/java/net
19797 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19799 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19802 # Likewise for natVMPipe.cc and natVMSelector.cc.
19803 test -d gnu/java/nio || mkdir gnu/java/nio
19804 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19806 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19809 # Likewise for natFileChannelImpl.cc
19810 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19811 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19814 # Likewise for natVMSecureRandom.cc
19815 test -d gnu/java/security || mkdir gnu/java/security
19816 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19817 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19818 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19821 case "${host}" in
19822 *mingw*)
19823 SYSTEMSPEC="-lgdi32 -lws2_32"
19824 if test "${with_win32_nlsapi}" = "unicows"; then
19825 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19828 *-*-darwin[912]*)
19829 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19832 SYSTEMSPEC=
19834 esac
19838 # Check whether --with-system-zlib was given.
19839 if test "${with_system_zlib+set}" = set; then :
19840 withval=$with_system_zlib;
19843 ZLIBSPEC=
19845 ZLIBTESTSPEC=
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19849 $as_echo_n "checking for X... " >&6; }
19852 # Check whether --with-x was given.
19853 if test "${with_x+set}" = set; then :
19854 withval=$with_x;
19857 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19858 if test "x$with_x" = xno; then
19859 # The user explicitly disabled X.
19860 have_x=disabled
19861 else
19862 case $x_includes,$x_libraries in #(
19863 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19864 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19865 $as_echo_n "(cached) " >&6
19866 else
19867 # One or both of the vars are not set, and there is no cached value.
19868 ac_x_includes=no ac_x_libraries=no
19869 rm -f -r conftest.dir
19870 if mkdir conftest.dir; then
19871 cd conftest.dir
19872 cat >Imakefile <<'_ACEOF'
19873 incroot:
19874 @echo incroot='${INCROOT}'
19875 usrlibdir:
19876 @echo usrlibdir='${USRLIBDIR}'
19877 libdir:
19878 @echo libdir='${LIBDIR}'
19879 _ACEOF
19880 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19882 for ac_var in incroot usrlibdir libdir; do
19883 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19884 done
19885 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19886 for ac_extension in a so sl dylib la dll; do
19887 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19888 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19889 ac_im_usrlibdir=$ac_im_libdir; break
19891 done
19892 # Screen out bogus values from the imake configuration. They are
19893 # bogus both because they are the default anyway, and because
19894 # using them would break gcc on systems where it needs fixed includes.
19895 case $ac_im_incroot in
19896 /usr/include) ac_x_includes= ;;
19897 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19898 esac
19899 case $ac_im_usrlibdir in
19900 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19901 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19902 esac
19904 cd ..
19905 rm -f -r conftest.dir
19908 # Standard set of common directories for X headers.
19909 # Check X11 before X11Rn because it is often a symlink to the current release.
19910 ac_x_header_dirs='
19911 /usr/X11/include
19912 /usr/X11R7/include
19913 /usr/X11R6/include
19914 /usr/X11R5/include
19915 /usr/X11R4/include
19917 /usr/include/X11
19918 /usr/include/X11R7
19919 /usr/include/X11R6
19920 /usr/include/X11R5
19921 /usr/include/X11R4
19923 /usr/local/X11/include
19924 /usr/local/X11R7/include
19925 /usr/local/X11R6/include
19926 /usr/local/X11R5/include
19927 /usr/local/X11R4/include
19929 /usr/local/include/X11
19930 /usr/local/include/X11R7
19931 /usr/local/include/X11R6
19932 /usr/local/include/X11R5
19933 /usr/local/include/X11R4
19935 /usr/X386/include
19936 /usr/x386/include
19937 /usr/XFree86/include/X11
19939 /usr/include
19940 /usr/local/include
19941 /usr/unsupported/include
19942 /usr/athena/include
19943 /usr/local/x11r5/include
19944 /usr/lpp/Xamples/include
19946 /usr/openwin/include
19947 /usr/openwin/share/include'
19949 if test "$ac_x_includes" = no; then
19950 # Guess where to find include files, by looking for Xlib.h.
19951 # First, try using that file with no special directory specified.
19952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19953 /* end confdefs.h. */
19954 #include <X11/Xlib.h>
19955 _ACEOF
19956 if ac_fn_c_try_cpp "$LINENO"; then :
19957 # We can compile using X headers with no special include directory.
19958 ac_x_includes=
19959 else
19960 for ac_dir in $ac_x_header_dirs; do
19961 if test -r "$ac_dir/X11/Xlib.h"; then
19962 ac_x_includes=$ac_dir
19963 break
19965 done
19967 rm -f conftest.err conftest.$ac_ext
19968 fi # $ac_x_includes = no
19970 if test "$ac_x_libraries" = no; then
19971 # Check for the libraries.
19972 # See if we find them without any special options.
19973 # Don't add to $LIBS permanently.
19974 ac_save_LIBS=$LIBS
19975 LIBS="-lX11 $LIBS"
19976 if test x$gcc_no_link = xyes; then
19977 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19980 /* end confdefs.h. */
19981 #include <X11/Xlib.h>
19983 main ()
19985 XrmInitialize ()
19987 return 0;
19989 _ACEOF
19990 if ac_fn_c_try_link "$LINENO"; then :
19991 LIBS=$ac_save_LIBS
19992 # We can link X programs with no special library path.
19993 ac_x_libraries=
19994 else
19995 LIBS=$ac_save_LIBS
19996 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19998 # Don't even attempt the hair of trying to link an X program!
19999 for ac_extension in a so sl dylib la dll; do
20000 if test -r "$ac_dir/libX11.$ac_extension"; then
20001 ac_x_libraries=$ac_dir
20002 break 2
20004 done
20005 done
20007 rm -f core conftest.err conftest.$ac_objext \
20008 conftest$ac_exeext conftest.$ac_ext
20009 fi # $ac_x_libraries = no
20011 case $ac_x_includes,$ac_x_libraries in #(
20012 no,* | *,no | *\'*)
20013 # Didn't find X, or a directory has "'" in its name.
20014 ac_cv_have_x="have_x=no";; #(
20016 # Record where we found X for the cache.
20017 ac_cv_have_x="have_x=yes\
20018 ac_x_includes='$ac_x_includes'\
20019 ac_x_libraries='$ac_x_libraries'"
20020 esac
20022 ;; #(
20023 *) have_x=yes;;
20024 esac
20025 eval "$ac_cv_have_x"
20026 fi # $with_x != no
20028 if test "$have_x" != yes; then
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
20030 $as_echo "$have_x" >&6; }
20031 no_x=yes
20032 else
20033 # If each of the values was on the command line, it overrides each guess.
20034 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20035 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20036 # Update the cache value to reflect the command line values.
20037 ac_cv_have_x="have_x=yes\
20038 ac_x_includes='$x_includes'\
20039 ac_x_libraries='$x_libraries'"
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20041 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20044 if test "$no_x" = yes; then
20045 # Not all programs may use this symbol, but it does not hurt to define it.
20047 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20049 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20050 else
20051 if test -n "$x_includes"; then
20052 X_CFLAGS="$X_CFLAGS -I$x_includes"
20055 # It would also be nice to do this for all -L options, not just this one.
20056 if test -n "$x_libraries"; then
20057 X_LIBS="$X_LIBS -L$x_libraries"
20058 # For Solaris; some versions of Sun CC require a space after -R and
20059 # others require no space. Words are not sufficient . . . .
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20061 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20062 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20063 ac_xsave_c_werror_flag=$ac_c_werror_flag
20064 ac_c_werror_flag=yes
20065 if test x$gcc_no_link = xyes; then
20066 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h. */
20072 main ()
20076 return 0;
20078 _ACEOF
20079 if ac_fn_c_try_link "$LINENO"; then :
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20081 $as_echo "no" >&6; }
20082 X_LIBS="$X_LIBS -R$x_libraries"
20083 else
20084 LIBS="$ac_xsave_LIBS -R $x_libraries"
20085 if test x$gcc_no_link = xyes; then
20086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20089 /* end confdefs.h. */
20092 main ()
20096 return 0;
20098 _ACEOF
20099 if ac_fn_c_try_link "$LINENO"; then :
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20101 $as_echo "yes" >&6; }
20102 X_LIBS="$X_LIBS -R $x_libraries"
20103 else
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20105 $as_echo "neither works" >&6; }
20107 rm -f core conftest.err conftest.$ac_objext \
20108 conftest$ac_exeext conftest.$ac_ext
20110 rm -f core conftest.err conftest.$ac_objext \
20111 conftest$ac_exeext conftest.$ac_ext
20112 ac_c_werror_flag=$ac_xsave_c_werror_flag
20113 LIBS=$ac_xsave_LIBS
20116 # Check for system-dependent libraries X programs must link with.
20117 # Do this before checking for the system-independent R6 libraries
20118 # (-lICE), since we may need -lsocket or whatever for X linking.
20120 if test "$ISC" = yes; then
20121 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20122 else
20123 # Martyn Johnson says this is needed for Ultrix, if the X
20124 # libraries were built with DECnet support. And Karl Berry says
20125 # the Alpha needs dnet_stub (dnet does not exist).
20126 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20127 if test x$gcc_no_link = xyes; then
20128 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h. */
20133 /* Override any GCC internal prototype to avoid an error.
20134 Use char because int might match the return type of a GCC
20135 builtin and then its argument prototype would still apply. */
20136 #ifdef __cplusplus
20137 extern "C"
20138 #endif
20139 char XOpenDisplay ();
20141 main ()
20143 return XOpenDisplay ();
20145 return 0;
20147 _ACEOF
20148 if ac_fn_c_try_link "$LINENO"; then :
20150 else
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20152 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20153 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20154 $as_echo_n "(cached) " >&6
20155 else
20156 ac_check_lib_save_LIBS=$LIBS
20157 LIBS="-ldnet $LIBS"
20158 if test x$gcc_no_link = xyes; then
20159 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162 /* end confdefs.h. */
20164 /* Override any GCC internal prototype to avoid an error.
20165 Use char because int might match the return type of a GCC
20166 builtin and then its argument prototype would still apply. */
20167 #ifdef __cplusplus
20168 extern "C"
20169 #endif
20170 char dnet_ntoa ();
20172 main ()
20174 return dnet_ntoa ();
20176 return 0;
20178 _ACEOF
20179 if ac_fn_c_try_link "$LINENO"; then :
20180 ac_cv_lib_dnet_dnet_ntoa=yes
20181 else
20182 ac_cv_lib_dnet_dnet_ntoa=no
20184 rm -f core conftest.err conftest.$ac_objext \
20185 conftest$ac_exeext conftest.$ac_ext
20186 LIBS=$ac_check_lib_save_LIBS
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20189 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20190 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20191 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20194 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20196 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20197 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20198 $as_echo_n "(cached) " >&6
20199 else
20200 ac_check_lib_save_LIBS=$LIBS
20201 LIBS="-ldnet_stub $LIBS"
20202 if test x$gcc_no_link = xyes; then
20203 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20206 /* end confdefs.h. */
20208 /* Override any GCC internal prototype to avoid an error.
20209 Use char because int might match the return type of a GCC
20210 builtin and then its argument prototype would still apply. */
20211 #ifdef __cplusplus
20212 extern "C"
20213 #endif
20214 char dnet_ntoa ();
20216 main ()
20218 return dnet_ntoa ();
20220 return 0;
20222 _ACEOF
20223 if ac_fn_c_try_link "$LINENO"; then :
20224 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20225 else
20226 ac_cv_lib_dnet_stub_dnet_ntoa=no
20228 rm -f core conftest.err conftest.$ac_objext \
20229 conftest$ac_exeext conftest.$ac_ext
20230 LIBS=$ac_check_lib_save_LIBS
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20233 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20234 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20235 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20240 rm -f core conftest.err conftest.$ac_objext \
20241 conftest$ac_exeext conftest.$ac_ext
20242 LIBS="$ac_xsave_LIBS"
20244 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20245 # to get the SysV transport functions.
20246 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20247 # needs -lnsl.
20248 # The nsl library prevents programs from opening the X display
20249 # on Irix 5.2, according to T.E. Dickey.
20250 # The functions gethostbyname, getservbyname, and inet_addr are
20251 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20252 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20253 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20257 if test $ac_cv_func_gethostbyname = no; then
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20259 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20260 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20261 $as_echo_n "(cached) " >&6
20262 else
20263 ac_check_lib_save_LIBS=$LIBS
20264 LIBS="-lnsl $LIBS"
20265 if test x$gcc_no_link = xyes; then
20266 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269 /* end confdefs.h. */
20271 /* Override any GCC internal prototype to avoid an error.
20272 Use char because int might match the return type of a GCC
20273 builtin and then its argument prototype would still apply. */
20274 #ifdef __cplusplus
20275 extern "C"
20276 #endif
20277 char gethostbyname ();
20279 main ()
20281 return gethostbyname ();
20283 return 0;
20285 _ACEOF
20286 if ac_fn_c_try_link "$LINENO"; then :
20287 ac_cv_lib_nsl_gethostbyname=yes
20288 else
20289 ac_cv_lib_nsl_gethostbyname=no
20291 rm -f core conftest.err conftest.$ac_objext \
20292 conftest$ac_exeext conftest.$ac_ext
20293 LIBS=$ac_check_lib_save_LIBS
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20296 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20297 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20301 if test $ac_cv_lib_nsl_gethostbyname = no; then
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20303 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20304 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20305 $as_echo_n "(cached) " >&6
20306 else
20307 ac_check_lib_save_LIBS=$LIBS
20308 LIBS="-lbsd $LIBS"
20309 if test x$gcc_no_link = xyes; then
20310 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h. */
20315 /* Override any GCC internal prototype to avoid an error.
20316 Use char because int might match the return type of a GCC
20317 builtin and then its argument prototype would still apply. */
20318 #ifdef __cplusplus
20319 extern "C"
20320 #endif
20321 char gethostbyname ();
20323 main ()
20325 return gethostbyname ();
20327 return 0;
20329 _ACEOF
20330 if ac_fn_c_try_link "$LINENO"; then :
20331 ac_cv_lib_bsd_gethostbyname=yes
20332 else
20333 ac_cv_lib_bsd_gethostbyname=no
20335 rm -f core conftest.err conftest.$ac_objext \
20336 conftest$ac_exeext conftest.$ac_ext
20337 LIBS=$ac_check_lib_save_LIBS
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20340 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20341 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20342 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20348 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20349 # socket/setsockopt and other routines are undefined under SCO ODT
20350 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20351 # on later versions), says Simon Leinen: it contains gethostby*
20352 # variants that don't use the name server (or something). -lsocket
20353 # must be given before -lnsl if both are needed. We assume that
20354 # if connect needs -lnsl, so does gethostbyname.
20355 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20356 if test "x$ac_cv_func_connect" = x""yes; then :
20360 if test $ac_cv_func_connect = no; then
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20362 $as_echo_n "checking for connect in -lsocket... " >&6; }
20363 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20364 $as_echo_n "(cached) " >&6
20365 else
20366 ac_check_lib_save_LIBS=$LIBS
20367 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20368 if test x$gcc_no_link = xyes; then
20369 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20372 /* end confdefs.h. */
20374 /* Override any GCC internal prototype to avoid an error.
20375 Use char because int might match the return type of a GCC
20376 builtin and then its argument prototype would still apply. */
20377 #ifdef __cplusplus
20378 extern "C"
20379 #endif
20380 char connect ();
20382 main ()
20384 return connect ();
20386 return 0;
20388 _ACEOF
20389 if ac_fn_c_try_link "$LINENO"; then :
20390 ac_cv_lib_socket_connect=yes
20391 else
20392 ac_cv_lib_socket_connect=no
20394 rm -f core conftest.err conftest.$ac_objext \
20395 conftest$ac_exeext conftest.$ac_ext
20396 LIBS=$ac_check_lib_save_LIBS
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20399 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20400 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20401 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20406 # Guillermo Gomez says -lposix is necessary on A/UX.
20407 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20408 if test "x$ac_cv_func_remove" = x""yes; then :
20412 if test $ac_cv_func_remove = no; then
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20414 $as_echo_n "checking for remove in -lposix... " >&6; }
20415 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20416 $as_echo_n "(cached) " >&6
20417 else
20418 ac_check_lib_save_LIBS=$LIBS
20419 LIBS="-lposix $LIBS"
20420 if test x$gcc_no_link = xyes; then
20421 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h. */
20426 /* Override any GCC internal prototype to avoid an error.
20427 Use char because int might match the return type of a GCC
20428 builtin and then its argument prototype would still apply. */
20429 #ifdef __cplusplus
20430 extern "C"
20431 #endif
20432 char remove ();
20434 main ()
20436 return remove ();
20438 return 0;
20440 _ACEOF
20441 if ac_fn_c_try_link "$LINENO"; then :
20442 ac_cv_lib_posix_remove=yes
20443 else
20444 ac_cv_lib_posix_remove=no
20446 rm -f core conftest.err conftest.$ac_objext \
20447 conftest$ac_exeext conftest.$ac_ext
20448 LIBS=$ac_check_lib_save_LIBS
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20451 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20452 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20453 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20458 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20459 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20460 if test "x$ac_cv_func_shmat" = x""yes; then :
20464 if test $ac_cv_func_shmat = no; then
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20466 $as_echo_n "checking for shmat in -lipc... " >&6; }
20467 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20468 $as_echo_n "(cached) " >&6
20469 else
20470 ac_check_lib_save_LIBS=$LIBS
20471 LIBS="-lipc $LIBS"
20472 if test x$gcc_no_link = xyes; then
20473 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20476 /* end confdefs.h. */
20478 /* Override any GCC internal prototype to avoid an error.
20479 Use char because int might match the return type of a GCC
20480 builtin and then its argument prototype would still apply. */
20481 #ifdef __cplusplus
20482 extern "C"
20483 #endif
20484 char shmat ();
20486 main ()
20488 return shmat ();
20490 return 0;
20492 _ACEOF
20493 if ac_fn_c_try_link "$LINENO"; then :
20494 ac_cv_lib_ipc_shmat=yes
20495 else
20496 ac_cv_lib_ipc_shmat=no
20498 rm -f core conftest.err conftest.$ac_objext \
20499 conftest$ac_exeext conftest.$ac_ext
20500 LIBS=$ac_check_lib_save_LIBS
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20503 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20504 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20505 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20511 # Check for libraries that X11R6 Xt/Xaw programs need.
20512 ac_save_LDFLAGS=$LDFLAGS
20513 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20514 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20515 # check for ICE first), but we must link in the order -lSM -lICE or
20516 # we get undefined symbols. So assume we have SM if we have ICE.
20517 # These have to be linked with before -lX11, unlike the other
20518 # libraries we check for below, so use a different variable.
20519 # John Interrante, Karl Berry
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20521 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20522 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20523 $as_echo_n "(cached) " >&6
20524 else
20525 ac_check_lib_save_LIBS=$LIBS
20526 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20527 if test x$gcc_no_link = xyes; then
20528 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20531 /* end confdefs.h. */
20533 /* Override any GCC internal prototype to avoid an error.
20534 Use char because int might match the return type of a GCC
20535 builtin and then its argument prototype would still apply. */
20536 #ifdef __cplusplus
20537 extern "C"
20538 #endif
20539 char IceConnectionNumber ();
20541 main ()
20543 return IceConnectionNumber ();
20545 return 0;
20547 _ACEOF
20548 if ac_fn_c_try_link "$LINENO"; then :
20549 ac_cv_lib_ICE_IceConnectionNumber=yes
20550 else
20551 ac_cv_lib_ICE_IceConnectionNumber=no
20553 rm -f core conftest.err conftest.$ac_objext \
20554 conftest$ac_exeext conftest.$ac_ext
20555 LIBS=$ac_check_lib_save_LIBS
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20558 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20559 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20560 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20563 LDFLAGS=$ac_save_LDFLAGS
20568 # FIXME: this should be _libs on some hosts.
20569 libsubdir=.libs
20571 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20573 LIBSTDCXXSPEC=
20574 # extra LD Flags which are required for targets
20575 case "${host}" in
20576 *-*-darwin[0-7].*)
20577 # For now we have to disable it on darwin[8-9] because it slows down
20578 # the linking phase. A possible bug in ld?
20579 # on Darwin -single_module speeds up loading of the dynamic libraries.
20580 extra_ldflags_libjava=-Wl,-single_module
20582 arm*-*-linux-*)
20583 # Some of the ARM unwinder code is actually in libstdc++. We
20584 # could in principle replicate it in libgcj, but it's better to
20585 # have a dependency on libstdc++.
20586 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20587 LIBSTDCXXSPEC=-lstdc++
20588 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20590 *-*-cygwin)
20591 extra_ldflags_libjava=-liconv
20593 *-*-mingw*)
20594 extra_ldflags_libjava=-lws2_32
20596 esac
20598 LIBMATHSPEC=
20599 # extra LD Flags which are required for targets
20600 case "${host}" in
20601 *-*-darwin*)
20604 LIBMATHSPEC=-lm
20606 esac
20608 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20610 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20611 if test "${libgcj_cv_exidx+set}" = set; then :
20612 $as_echo_n "(cached) " >&6
20613 else
20614 saved_ldflags="$LDFLAGS"
20615 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20616 if test x$gcc_no_link = xyes; then
20617 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20620 /* end confdefs.h. */
20621 int main(void){ return 0;}
20622 _ACEOF
20623 if ac_fn_c_try_link "$LINENO"; then :
20624 eval "libgcj_cv_exidx=yes"
20625 else
20626 eval "libgcj_cv_exidx=no"
20628 rm -f core conftest.err conftest.$ac_objext \
20629 conftest$ac_exeext conftest.$ac_ext
20630 LDFLAGS="${saved_ldflags}"
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20634 $as_echo "$libgcj_cv_exidx" >&6; }
20635 if test "${libgcj_cv_exidx}" = "yes"; then
20636 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20637 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20647 # Allow the GC to be disabled. Can be useful when debugging.
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20649 $as_echo_n "checking for garbage collector to use... " >&6; }
20650 # Check whether --enable-java-gc was given.
20651 if test "${enable_java_gc+set}" = set; then :
20652 enableval=$enable_java_gc; GC=$enableval
20653 else
20654 GC=boehm
20657 GCLIBS=
20658 GCINCS=
20659 GCDEPS=
20660 GCSPEC=
20661 JC1GCSPEC=
20662 GCTESTSPEC=
20663 case "$GC" in
20664 boehm)
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20666 $as_echo "boehm" >&6; }
20667 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20668 JC1GCSPEC='-fuse-boehm-gc'
20669 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20670 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20671 GCOBJS=boehm.lo
20672 GCHDR=boehm-gc.h
20673 # The POSIX thread support needs to know this.
20675 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20680 $as_echo "none" >&6; }
20681 GCHDR=no-gc.h
20684 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20686 esac
20693 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20695 if test "$GC" = boehm; then
20696 USING_BOEHMGC_TRUE=
20697 USING_BOEHMGC_FALSE='#'
20698 else
20699 USING_BOEHMGC_TRUE='#'
20700 USING_BOEHMGC_FALSE=
20703 if test "$GC" = no; then
20704 USING_NOGC_TRUE=
20705 USING_NOGC_FALSE='#'
20706 else
20707 USING_NOGC_TRUE='#'
20708 USING_NOGC_FALSE=
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20714 $as_echo_n "checking for thread model used by GCC... " >&6; }
20715 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20717 $as_echo "$THREADS" >&6; }
20719 case "$THREADS" in
20720 no | none | single)
20721 THREADS=none
20723 aix | posix | pthreads)
20724 THREADS=posix
20725 case "$host" in
20726 *-*-linux*)
20728 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20731 esac
20733 win32)
20735 dce | vxworks)
20736 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20739 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20741 esac
20743 THREADCXXFLAGS=
20744 THREADLDFLAGS=
20745 THREADLIBS=
20746 THREADINCS=
20747 THREADDEPS=
20748 THREADH=
20749 THREADSPEC=
20750 THREADSTARTFILESPEC=
20751 case "$THREADS" in
20752 posix)
20753 case "$host" in
20754 *-*-cygwin*)
20755 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20757 *-*-freebsd[34].*)
20758 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20759 # merely adds pthread_* functions) but it does have a -pthread switch
20760 # which is required at link-time to select -lc_r *instead* of -lc.
20761 THREADLDFLAGS=-pthread
20762 # Don't set THREADSPEC here as might be expected since -pthread is
20763 # not processed when found within a spec file, it must come from
20764 # the command line. For now, the user must provide the -pthread
20765 # switch to link code compiled with gcj. In future, consider adding
20766 # support for weak references to pthread_* functions ala gthr.h API.
20767 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20769 *-*-freebsd*)
20770 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20771 # systems which support threads and -lpthread.
20772 THREADLDFLAGS=-pthread
20773 THREADSPEC=-lpthread
20775 hppa*-hp-hpux*)
20776 THREADCXXFLAGS=-pthread
20777 # boehm-gc needs some functions from librt, so link that too.
20778 THREADLIBS='-lpthread -lrt'
20779 THREADSPEC='-lpthread -lrt'
20781 *-*-darwin*)
20782 # Don't set THREADLIBS or THREADSPEC as Darwin already
20783 # provides pthread via libSystem.
20786 THREADLIBS=-lpthread
20787 THREADSPEC=-lpthread
20789 esac
20790 THREADH=posix-threads.h
20791 # MIT pthreads doesn't seem to have the mutexattr functions.
20792 # But for now we don't check for it. We just assume you aren't
20793 # using MIT pthreads.
20795 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20798 # If we're using the Boehm GC, then we happen to know that it
20799 # defines _REENTRANT, so we don't bother. Eww.
20800 if test "$GC" != boehm; then
20802 $as_echo "#define _REENTRANT 1" >>confdefs.h
20806 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20810 win32)
20811 THREADH=win32-threads.h
20812 THREADCXXFLAGS=-mthreads
20813 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20814 # But we do not want the executables created to be dependent on
20815 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20816 # exception handling contexts. The following kludge achieves this effect
20817 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20818 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20819 # A workaround is to explicitly use -mthreads while linking Java programs.
20820 # See PR libgcj/28263.
20822 # FIXME: In Java we are able to detect thread death at the end of
20823 # Thread.run() so we should be able to clean up the exception handling
20824 # contexts ourselves.
20825 case "$host" in
20826 *-w64-mingw*)
20829 THREADSTARTFILESPEC='crtmt%O%s'
20831 esac
20833 none)
20834 THREADH=no-threads.h
20836 esac
20837 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20846 if test "$THREADS" = posix; then
20847 USING_POSIX_THREADS_TRUE=
20848 USING_POSIX_THREADS_FALSE='#'
20849 else
20850 USING_POSIX_THREADS_TRUE='#'
20851 USING_POSIX_THREADS_FALSE=
20854 if test "$THREADS" = win32; then
20855 USING_WIN32_THREADS_TRUE=
20856 USING_WIN32_THREADS_FALSE='#'
20857 else
20858 USING_WIN32_THREADS_TRUE='#'
20859 USING_WIN32_THREADS_FALSE=
20862 if test "$THREADS" = none; then
20863 USING_NO_THREADS_TRUE=
20864 USING_NO_THREADS_FALSE='#'
20865 else
20866 USING_NO_THREADS_TRUE='#'
20867 USING_NO_THREADS_FALSE=
20870 if test "$enable_shared" != yes; then
20871 use_libgcj_bc=no
20873 if test "$use_libgcj_bc" = yes; then
20874 USE_LIBGCJ_BC_TRUE=
20875 USE_LIBGCJ_BC_FALSE='#'
20876 else
20877 USE_LIBGCJ_BC_TRUE='#'
20878 USE_LIBGCJ_BC_FALSE=
20882 if test -d sysdep; then true; else mkdir sysdep; fi
20883 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20885 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20887 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20890 LIBGCJ_SPEC_LGCJ=-lgcj
20891 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20892 if test x"$libgcj_spec_lgcj_override" != x ; then
20893 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20895 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20896 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20898 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20899 if test "$use_libgcj_bc" = yes; then
20900 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20901 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20906 HASH_SYNC_SPEC=
20907 # Hash synchronization is only useful with posix threads right now.
20908 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20909 HASH_SYNC_SPEC=-fhash-synchronization
20911 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20916 if test "$GCC" = yes; then
20917 USING_GCC_TRUE=
20918 USING_GCC_FALSE='#'
20919 else
20920 USING_GCC_TRUE='#'
20921 USING_GCC_FALSE=
20925 # We're in the tree with libgcc, and need to include some of its headers.
20926 LIBGCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../libgcc'
20928 if test "x${with_newlib}" = "xyes"; then
20929 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20930 # may not work correctly, because the compiler may not be able to
20931 # link executables.
20933 # We assume newlib. This lets us hard-code the functions we know
20934 # we'll have.
20936 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20939 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20942 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20945 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20948 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20951 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20953 # This is only for POSIX threads.
20955 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20958 # Assume we do not have getuid and friends.
20960 $as_echo "#define NO_GETUID 1" >>confdefs.h
20962 PLATFORMNET=NoNet
20963 else
20964 for ac_func in strerror_r select fstat open fsync sleep opendir \
20965 localtime_r getpwuid_r getcwd \
20966 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20967 nl_langinfo setlocale \
20968 inet_pton uname inet_ntoa \
20969 getrlimit sigaction ftruncate mmap \
20970 getifaddrs
20971 do :
20972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20974 eval as_val=\$$as_ac_var
20975 if test "x$as_val" = x""yes; then :
20976 cat >>confdefs.h <<_ACEOF
20977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20978 _ACEOF
20981 done
20983 for ac_func in inet_aton inet_addr
20984 do :
20985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20986 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20987 eval as_val=\$$as_ac_var
20988 if test "x$as_val" = x""yes; then :
20989 cat >>confdefs.h <<_ACEOF
20990 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20991 _ACEOF
20992 break
20994 done
20996 for ac_header in unistd.h dlfcn.h sys/resource.h
20997 do :
20998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20999 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21000 eval as_val=\$$as_ac_Header
21001 if test "x$as_val" = x""yes; then :
21002 cat >>confdefs.h <<_ACEOF
21003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21004 _ACEOF
21008 done
21010 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
21012 $as_echo_n "checking for dladdr in -ldl... " >&6; }
21013 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
21014 $as_echo_n "(cached) " >&6
21015 else
21016 ac_check_lib_save_LIBS=$LIBS
21017 LIBS="-ldl $LIBS"
21018 if test x$gcc_no_link = xyes; then
21019 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21022 /* end confdefs.h. */
21024 /* Override any GCC internal prototype to avoid an error.
21025 Use char because int might match the return type of a GCC
21026 builtin and then its argument prototype would still apply. */
21027 #ifdef __cplusplus
21028 extern "C"
21029 #endif
21030 char dladdr ();
21032 main ()
21034 return dladdr ();
21036 return 0;
21038 _ACEOF
21039 if ac_fn_c_try_link "$LINENO"; then :
21040 ac_cv_lib_dl_dladdr=yes
21041 else
21042 ac_cv_lib_dl_dladdr=no
21044 rm -f core conftest.err conftest.$ac_objext \
21045 conftest$ac_exeext conftest.$ac_ext
21046 LIBS=$ac_check_lib_save_LIBS
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21049 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21050 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
21053 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21055 else
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21058 $as_echo_n "checking for dladdr in -ldld... " >&6; }
21059 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21060 $as_echo_n "(cached) " >&6
21061 else
21062 ac_check_lib_save_LIBS=$LIBS
21063 LIBS="-ldld $LIBS"
21064 if test x$gcc_no_link = xyes; then
21065 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21068 /* end confdefs.h. */
21070 /* Override any GCC internal prototype to avoid an error.
21071 Use char because int might match the return type of a GCC
21072 builtin and then its argument prototype would still apply. */
21073 #ifdef __cplusplus
21074 extern "C"
21075 #endif
21076 char dladdr ();
21078 main ()
21080 return dladdr ();
21082 return 0;
21084 _ACEOF
21085 if ac_fn_c_try_link "$LINENO"; then :
21086 ac_cv_lib_dld_dladdr=yes
21087 else
21088 ac_cv_lib_dld_dladdr=no
21090 rm -f core conftest.err conftest.$ac_objext \
21091 conftest$ac_exeext conftest.$ac_ext
21092 LIBS=$ac_check_lib_save_LIBS
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21095 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21096 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21099 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21106 if test x"$cross_compiling" = x"no"; then
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21108 $as_echo_n "checking for /proc/self/exe... " >&6; }
21109 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21110 $as_echo_n "(cached) " >&6
21111 else
21112 test "$cross_compiling" = yes &&
21113 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21114 if test -r "/proc/self/exe"; then
21115 ac_cv_file__proc_self_exe=yes
21116 else
21117 ac_cv_file__proc_self_exe=no
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21121 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21122 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21124 cat >>confdefs.h <<_ACEOF
21125 #define HAVE__PROC_SELF_EXE 1
21126 _ACEOF
21129 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21134 $as_echo_n "checking for /proc/self/maps... " >&6; }
21135 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21136 $as_echo_n "(cached) " >&6
21137 else
21138 test "$cross_compiling" = yes &&
21139 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21140 if test -r "/proc/self/maps"; then
21141 ac_cv_file__proc_self_maps=yes
21142 else
21143 ac_cv_file__proc_self_maps=no
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21147 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21148 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21150 cat >>confdefs.h <<_ACEOF
21151 #define HAVE__PROC_SELF_MAPS 1
21152 _ACEOF
21155 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21159 else
21160 case $host in
21161 *-linux*)
21163 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21166 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21169 esac
21173 if test "X$prefix" = "XNONE"; then
21174 acl_final_prefix="$ac_default_prefix"
21175 else
21176 acl_final_prefix="$prefix"
21178 if test "X$exec_prefix" = "XNONE"; then
21179 acl_final_exec_prefix='${prefix}'
21180 else
21181 acl_final_exec_prefix="$exec_prefix"
21183 acl_save_prefix="$prefix"
21184 prefix="$acl_final_prefix"
21185 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21186 prefix="$acl_save_prefix"
21189 # Check whether --with-gnu-ld was given.
21190 if test "${with_gnu_ld+set}" = set; then :
21191 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21192 else
21193 with_gnu_ld=no
21196 # Prepare PATH_SEPARATOR.
21197 # The user is always right.
21198 if test "${PATH_SEPARATOR+set}" != set; then
21199 echo "#! /bin/sh" >conf$$.sh
21200 echo "exit 0" >>conf$$.sh
21201 chmod +x conf$$.sh
21202 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21203 PATH_SEPARATOR=';'
21204 else
21205 PATH_SEPARATOR=:
21207 rm -f conf$$.sh
21209 ac_prog=ld
21210 if test "$GCC" = yes; then
21211 # Check if gcc -print-prog-name=ld gives a path.
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21213 $as_echo_n "checking for ld used by GCC... " >&6; }
21214 case $host in
21215 *-*-mingw*)
21216 # gcc leaves a trailing carriage return which upsets mingw
21217 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21219 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21220 esac
21221 case $ac_prog in
21222 # Accept absolute paths.
21223 [\\/]* | [A-Za-z]:[\\/]*)
21224 re_direlt='/[^/][^/]*/\.\./'
21225 # Canonicalize the path of ld
21226 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21227 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21228 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21229 done
21230 test -z "$LD" && LD="$ac_prog"
21233 # If it fails, then pretend we aren't using GCC.
21234 ac_prog=ld
21237 # If it is relative, then search for the first ld in PATH.
21238 with_gnu_ld=unknown
21240 esac
21241 elif test "$with_gnu_ld" = yes; then
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21243 $as_echo_n "checking for GNU ld... " >&6; }
21244 else
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21246 $as_echo_n "checking for non-GNU ld... " >&6; }
21248 if test "${acl_cv_path_LD+set}" = set; then :
21249 $as_echo_n "(cached) " >&6
21250 else
21251 if test -z "$LD"; then
21252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21253 for ac_dir in $PATH; do
21254 test -z "$ac_dir" && ac_dir=.
21255 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21256 acl_cv_path_LD="$ac_dir/$ac_prog"
21257 # Check to see if the program is GNU ld. I'd rather use --version,
21258 # but apparently some GNU ld's only accept -v.
21259 # Break only if it was the GNU/non-GNU ld that we prefer.
21260 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21261 test "$with_gnu_ld" != no && break
21262 else
21263 test "$with_gnu_ld" != yes && break
21266 done
21267 IFS="$ac_save_ifs"
21268 else
21269 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21273 LD="$acl_cv_path_LD"
21274 if test -n "$LD"; then
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21276 $as_echo "$LD" >&6; }
21277 else
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21279 $as_echo "no" >&6; }
21281 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21283 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21284 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21285 $as_echo_n "(cached) " >&6
21286 else
21287 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21288 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21289 acl_cv_prog_gnu_ld=yes
21290 else
21291 acl_cv_prog_gnu_ld=no
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21295 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21296 with_gnu_ld=$acl_cv_prog_gnu_ld
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21301 $as_echo_n "checking for shared library run path origin... " >&6; }
21302 if test "${acl_cv_rpath+set}" = set; then :
21303 $as_echo_n "(cached) " >&6
21304 else
21306 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21307 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21308 . ./conftest.sh
21309 rm -f ./conftest.sh
21310 acl_cv_rpath=done
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21314 $as_echo "$acl_cv_rpath" >&6; }
21315 wl="$acl_cv_wl"
21316 libext="$acl_cv_libext"
21317 shlibext="$acl_cv_shlibext"
21318 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21319 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21320 hardcode_direct="$acl_cv_hardcode_direct"
21321 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21322 # Check whether --enable-rpath was given.
21323 if test "${enable_rpath+set}" = set; then :
21324 enableval=$enable_rpath; :
21325 else
21326 enable_rpath=yes
21336 use_additional=yes
21338 acl_save_prefix="$prefix"
21339 prefix="$acl_final_prefix"
21340 acl_save_exec_prefix="$exec_prefix"
21341 exec_prefix="$acl_final_exec_prefix"
21343 eval additional_includedir=\"$includedir\"
21344 eval additional_libdir=\"$libdir\"
21346 exec_prefix="$acl_save_exec_prefix"
21347 prefix="$acl_save_prefix"
21350 # Check whether --with-libiconv-prefix was given.
21351 if test "${with_libiconv_prefix+set}" = set; then :
21352 withval=$with_libiconv_prefix;
21353 if test "X$withval" = "Xno"; then
21354 use_additional=no
21355 else
21356 if test "X$withval" = "X"; then
21358 acl_save_prefix="$prefix"
21359 prefix="$acl_final_prefix"
21360 acl_save_exec_prefix="$exec_prefix"
21361 exec_prefix="$acl_final_exec_prefix"
21363 eval additional_includedir=\"$includedir\"
21364 eval additional_libdir=\"$libdir\"
21366 exec_prefix="$acl_save_exec_prefix"
21367 prefix="$acl_save_prefix"
21369 else
21370 additional_includedir="$withval/include"
21371 additional_libdir="$withval/lib"
21377 LIBICONV=
21378 LTLIBICONV=
21379 INCICONV=
21380 rpathdirs=
21381 ltrpathdirs=
21382 names_already_handled=
21383 names_next_round='iconv '
21384 while test -n "$names_next_round"; do
21385 names_this_round="$names_next_round"
21386 names_next_round=
21387 for name in $names_this_round; do
21388 already_handled=
21389 for n in $names_already_handled; do
21390 if test "$n" = "$name"; then
21391 already_handled=yes
21392 break
21394 done
21395 if test -z "$already_handled"; then
21396 names_already_handled="$names_already_handled $name"
21397 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21398 eval value=\"\$HAVE_LIB$uppername\"
21399 if test -n "$value"; then
21400 if test "$value" = yes; then
21401 eval value=\"\$LIB$uppername\"
21402 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21403 eval value=\"\$LTLIB$uppername\"
21404 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21405 else
21408 else
21409 found_dir=
21410 found_la=
21411 found_so=
21412 found_a=
21413 if test $use_additional = yes; then
21414 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21415 found_dir="$additional_libdir"
21416 found_so="$additional_libdir/lib$name.$shlibext"
21417 if test -f "$additional_libdir/lib$name.la"; then
21418 found_la="$additional_libdir/lib$name.la"
21420 else
21421 if test -f "$additional_libdir/lib$name.$libext"; then
21422 found_dir="$additional_libdir"
21423 found_a="$additional_libdir/lib$name.$libext"
21424 if test -f "$additional_libdir/lib$name.la"; then
21425 found_la="$additional_libdir/lib$name.la"
21430 if test "X$found_dir" = "X"; then
21431 for x in $LDFLAGS $LTLIBICONV; do
21433 acl_save_prefix="$prefix"
21434 prefix="$acl_final_prefix"
21435 acl_save_exec_prefix="$exec_prefix"
21436 exec_prefix="$acl_final_exec_prefix"
21437 eval x=\"$x\"
21438 exec_prefix="$acl_save_exec_prefix"
21439 prefix="$acl_save_prefix"
21441 case "$x" in
21442 -L*)
21443 dir=`echo "X$x" | sed -e 's/^X-L//'`
21444 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21445 found_dir="$dir"
21446 found_so="$dir/lib$name.$shlibext"
21447 if test -f "$dir/lib$name.la"; then
21448 found_la="$dir/lib$name.la"
21450 else
21451 if test -f "$dir/lib$name.$libext"; then
21452 found_dir="$dir"
21453 found_a="$dir/lib$name.$libext"
21454 if test -f "$dir/lib$name.la"; then
21455 found_la="$dir/lib$name.la"
21460 esac
21461 if test "X$found_dir" != "X"; then
21462 break
21464 done
21466 if test "X$found_dir" != "X"; then
21467 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21468 if test "X$found_so" != "X"; then
21469 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21471 else
21472 haveit=
21473 for x in $ltrpathdirs; do
21474 if test "X$x" = "X$found_dir"; then
21475 haveit=yes
21476 break
21478 done
21479 if test -z "$haveit"; then
21480 ltrpathdirs="$ltrpathdirs $found_dir"
21482 if test "$hardcode_direct" = yes; then
21483 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21484 else
21485 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21486 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21487 haveit=
21488 for x in $rpathdirs; do
21489 if test "X$x" = "X$found_dir"; then
21490 haveit=yes
21491 break
21493 done
21494 if test -z "$haveit"; then
21495 rpathdirs="$rpathdirs $found_dir"
21497 else
21498 haveit=
21499 for x in $LDFLAGS $LIBICONV; do
21501 acl_save_prefix="$prefix"
21502 prefix="$acl_final_prefix"
21503 acl_save_exec_prefix="$exec_prefix"
21504 exec_prefix="$acl_final_exec_prefix"
21505 eval x=\"$x\"
21506 exec_prefix="$acl_save_exec_prefix"
21507 prefix="$acl_save_prefix"
21509 if test "X$x" = "X-L$found_dir"; then
21510 haveit=yes
21511 break
21513 done
21514 if test -z "$haveit"; then
21515 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21517 if test "$hardcode_minus_L" != no; then
21518 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21519 else
21520 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21525 else
21526 if test "X$found_a" != "X"; then
21527 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21528 else
21529 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21532 additional_includedir=
21533 case "$found_dir" in
21534 */lib | */lib/)
21535 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21536 additional_includedir="$basedir/include"
21538 esac
21539 if test "X$additional_includedir" != "X"; then
21540 if test "X$additional_includedir" != "X/usr/include"; then
21541 haveit=
21542 if test "X$additional_includedir" = "X/usr/local/include"; then
21543 if test -n "$GCC"; then
21544 case $host_os in
21545 linux*) haveit=yes;;
21546 esac
21549 if test -z "$haveit"; then
21550 for x in $CPPFLAGS $INCICONV; do
21552 acl_save_prefix="$prefix"
21553 prefix="$acl_final_prefix"
21554 acl_save_exec_prefix="$exec_prefix"
21555 exec_prefix="$acl_final_exec_prefix"
21556 eval x=\"$x\"
21557 exec_prefix="$acl_save_exec_prefix"
21558 prefix="$acl_save_prefix"
21560 if test "X$x" = "X-I$additional_includedir"; then
21561 haveit=yes
21562 break
21564 done
21565 if test -z "$haveit"; then
21566 if test -d "$additional_includedir"; then
21567 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21573 if test -n "$found_la"; then
21574 save_libdir="$libdir"
21575 case "$found_la" in
21576 */* | *\\*) . "$found_la" ;;
21577 *) . "./$found_la" ;;
21578 esac
21579 libdir="$save_libdir"
21580 for dep in $dependency_libs; do
21581 case "$dep" in
21582 -L*)
21583 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21584 if test "X$additional_libdir" != "X/usr/lib"; then
21585 haveit=
21586 if test "X$additional_libdir" = "X/usr/local/lib"; then
21587 if test -n "$GCC"; then
21588 case $host_os in
21589 linux*) haveit=yes;;
21590 esac
21593 if test -z "$haveit"; then
21594 haveit=
21595 for x in $LDFLAGS $LIBICONV; do
21597 acl_save_prefix="$prefix"
21598 prefix="$acl_final_prefix"
21599 acl_save_exec_prefix="$exec_prefix"
21600 exec_prefix="$acl_final_exec_prefix"
21601 eval x=\"$x\"
21602 exec_prefix="$acl_save_exec_prefix"
21603 prefix="$acl_save_prefix"
21605 if test "X$x" = "X-L$additional_libdir"; then
21606 haveit=yes
21607 break
21609 done
21610 if test -z "$haveit"; then
21611 if test -d "$additional_libdir"; then
21612 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21615 haveit=
21616 for x in $LDFLAGS $LTLIBICONV; do
21618 acl_save_prefix="$prefix"
21619 prefix="$acl_final_prefix"
21620 acl_save_exec_prefix="$exec_prefix"
21621 exec_prefix="$acl_final_exec_prefix"
21622 eval x=\"$x\"
21623 exec_prefix="$acl_save_exec_prefix"
21624 prefix="$acl_save_prefix"
21626 if test "X$x" = "X-L$additional_libdir"; then
21627 haveit=yes
21628 break
21630 done
21631 if test -z "$haveit"; then
21632 if test -d "$additional_libdir"; then
21633 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21639 -R*)
21640 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21641 if test "$enable_rpath" != no; then
21642 haveit=
21643 for x in $rpathdirs; do
21644 if test "X$x" = "X$dir"; then
21645 haveit=yes
21646 break
21648 done
21649 if test -z "$haveit"; then
21650 rpathdirs="$rpathdirs $dir"
21652 haveit=
21653 for x in $ltrpathdirs; do
21654 if test "X$x" = "X$dir"; then
21655 haveit=yes
21656 break
21658 done
21659 if test -z "$haveit"; then
21660 ltrpathdirs="$ltrpathdirs $dir"
21664 -l*)
21665 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21667 *.la)
21668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21671 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21674 esac
21675 done
21677 else
21678 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21679 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21683 done
21684 done
21685 if test "X$rpathdirs" != "X"; then
21686 if test -n "$hardcode_libdir_separator"; then
21687 alldirs=
21688 for found_dir in $rpathdirs; do
21689 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21690 done
21691 acl_save_libdir="$libdir"
21692 libdir="$alldirs"
21693 eval flag=\"$hardcode_libdir_flag_spec\"
21694 libdir="$acl_save_libdir"
21695 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21696 else
21697 for found_dir in $rpathdirs; do
21698 acl_save_libdir="$libdir"
21699 libdir="$found_dir"
21700 eval flag=\"$hardcode_libdir_flag_spec\"
21701 libdir="$acl_save_libdir"
21702 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21703 done
21706 if test "X$ltrpathdirs" != "X"; then
21707 for found_dir in $ltrpathdirs; do
21708 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21709 done
21718 am_save_CPPFLAGS="$CPPFLAGS"
21720 for element in $INCICONV; do
21721 haveit=
21722 for x in $CPPFLAGS; do
21724 acl_save_prefix="$prefix"
21725 prefix="$acl_final_prefix"
21726 acl_save_exec_prefix="$exec_prefix"
21727 exec_prefix="$acl_final_exec_prefix"
21728 eval x=\"$x\"
21729 exec_prefix="$acl_save_exec_prefix"
21730 prefix="$acl_save_prefix"
21732 if test "X$x" = "X$element"; then
21733 haveit=yes
21734 break
21736 done
21737 if test -z "$haveit"; then
21738 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21740 done
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21744 $as_echo_n "checking for iconv... " >&6; }
21745 if test "${am_cv_func_iconv+set}" = set; then :
21746 $as_echo_n "(cached) " >&6
21747 else
21749 am_cv_func_iconv="no, consider installing GNU libiconv"
21750 am_cv_lib_iconv=no
21751 if test x$gcc_no_link = xyes; then
21752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21756 #include <stdlib.h>
21757 #include <iconv.h>
21759 main ()
21761 iconv_t cd = iconv_open("","");
21762 iconv(cd,NULL,NULL,NULL,NULL);
21763 iconv_close(cd);
21765 return 0;
21767 _ACEOF
21768 if ac_fn_c_try_link "$LINENO"; then :
21769 am_cv_func_iconv=yes
21771 rm -f core conftest.err conftest.$ac_objext \
21772 conftest$ac_exeext conftest.$ac_ext
21773 if test "$am_cv_func_iconv" != yes; then
21774 am_save_LIBS="$LIBS"
21775 LIBS="$LIBS $LIBICONV"
21776 if test x$gcc_no_link = xyes; then
21777 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780 /* end confdefs.h. */
21781 #include <stdlib.h>
21782 #include <iconv.h>
21784 main ()
21786 iconv_t cd = iconv_open("","");
21787 iconv(cd,NULL,NULL,NULL,NULL);
21788 iconv_close(cd);
21790 return 0;
21792 _ACEOF
21793 if ac_fn_c_try_link "$LINENO"; then :
21794 am_cv_lib_iconv=yes
21795 am_cv_func_iconv=yes
21797 rm -f core conftest.err conftest.$ac_objext \
21798 conftest$ac_exeext conftest.$ac_ext
21799 LIBS="$am_save_LIBS"
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21804 $as_echo "$am_cv_func_iconv" >&6; }
21805 if test "$am_cv_func_iconv" = yes; then
21807 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21810 if test "$am_cv_lib_iconv" = yes; then
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21812 $as_echo_n "checking how to link with libiconv... " >&6; }
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21814 $as_echo "$LIBICONV" >&6; }
21815 else
21816 CPPFLAGS="$am_save_CPPFLAGS"
21817 LIBICONV=
21818 LTLIBICONV=
21823 if test "$am_cv_func_iconv" = yes; then
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21825 $as_echo_n "checking for iconv declaration... " >&6; }
21826 if test "${am_cv_proto_iconv+set}" = set; then :
21827 $as_echo_n "(cached) " >&6
21828 else
21830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21833 #include <stdlib.h>
21834 #include <iconv.h>
21835 extern
21836 #ifdef __cplusplus
21838 #endif
21839 #if defined(__STDC__) || defined(__cplusplus)
21840 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21841 #else
21842 size_t iconv();
21843 #endif
21846 main ()
21850 return 0;
21852 _ACEOF
21853 if ac_fn_c_try_compile "$LINENO"; then :
21854 am_cv_proto_iconv_arg1=""
21855 else
21856 am_cv_proto_iconv_arg1="const"
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 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);"
21862 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21864 }$am_cv_proto_iconv" >&5
21865 $as_echo "${ac_t:-
21866 }$am_cv_proto_iconv" >&6; }
21868 cat >>confdefs.h <<_ACEOF
21869 #define ICONV_CONST $am_cv_proto_iconv_arg1
21870 _ACEOF
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21876 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21877 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21878 $as_echo_n "(cached) " >&6
21879 else
21880 if test x$gcc_no_link = xyes; then
21881 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884 /* end confdefs.h. */
21885 #include <locale.h>
21887 main ()
21889 return LC_MESSAGES
21891 return 0;
21893 _ACEOF
21894 if ac_fn_c_try_link "$LINENO"; then :
21895 am_cv_val_LC_MESSAGES=yes
21896 else
21897 am_cv_val_LC_MESSAGES=no
21899 rm -f core conftest.err conftest.$ac_objext \
21900 conftest$ac_exeext conftest.$ac_ext
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21903 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21904 if test $am_cv_val_LC_MESSAGES = yes; then
21906 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21911 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21912 if test "${ac_cv_struct_tm+set}" = set; then :
21913 $as_echo_n "(cached) " >&6
21914 else
21915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21916 /* end confdefs.h. */
21917 #include <sys/types.h>
21918 #include <time.h>
21921 main ()
21923 struct tm tm;
21924 int *p = &tm.tm_sec;
21925 return !p;
21927 return 0;
21929 _ACEOF
21930 if ac_fn_c_try_compile "$LINENO"; then :
21931 ac_cv_struct_tm=time.h
21932 else
21933 ac_cv_struct_tm=sys/time.h
21935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21938 $as_echo "$ac_cv_struct_tm" >&6; }
21939 if test $ac_cv_struct_tm = sys/time.h; then
21941 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21945 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21946 #include <$ac_cv_struct_tm>
21949 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21951 cat >>confdefs.h <<_ACEOF
21952 #define HAVE_STRUCT_TM_TM_ZONE 1
21953 _ACEOF
21958 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21960 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21962 else
21963 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21965 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21966 ac_have_decl=1
21967 else
21968 ac_have_decl=0
21971 cat >>confdefs.h <<_ACEOF
21972 #define HAVE_DECL_TZNAME $ac_have_decl
21973 _ACEOF
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21976 $as_echo_n "checking for tzname... " >&6; }
21977 if test "${ac_cv_var_tzname+set}" = set; then :
21978 $as_echo_n "(cached) " >&6
21979 else
21980 if test x$gcc_no_link = xyes; then
21981 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21984 /* end confdefs.h. */
21985 #include <time.h>
21986 #if !HAVE_DECL_TZNAME
21987 extern char *tzname[];
21988 #endif
21991 main ()
21993 return tzname[0][0];
21995 return 0;
21997 _ACEOF
21998 if ac_fn_c_try_link "$LINENO"; then :
21999 ac_cv_var_tzname=yes
22000 else
22001 ac_cv_var_tzname=no
22003 rm -f core conftest.err conftest.$ac_objext \
22004 conftest$ac_exeext conftest.$ac_ext
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22007 $as_echo "$ac_cv_var_tzname" >&6; }
22008 if test $ac_cv_var_tzname = yes; then
22010 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22015 LDLIBICONV=`echo " $LIBICONV " | sed "s/${acl_cv_wl--Wl,}/ /g; s/,/ /g"`
22018 for ac_func in gethostbyname_r
22019 do :
22020 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
22021 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
22022 cat >>confdefs.h <<_ACEOF
22023 #define HAVE_GETHOSTBYNAME_R 1
22024 _ACEOF
22027 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
22029 # There are two different kinds of gethostbyname_r.
22030 # We look for the one that returns `int'.
22031 # Hopefully this check is robust enough.
22032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22033 /* end confdefs.h. */
22034 #include <netdb.h>
22036 _ACEOF
22037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22038 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
22041 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
22044 rm -f conftest*
22047 case " $GCINCS " in
22048 *" -D_REENTRANT "*) ;;
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22051 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22052 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22053 $as_echo_n "(cached) " >&6
22054 else
22055 ac_ext=cpp
22056 ac_cpp='$CXXCPP $CPPFLAGS'
22057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h. */
22063 #include <netdb.h>
22065 main ()
22067 gethostbyname_r("", 0, 0);
22069 return 0;
22071 _ACEOF
22072 if ac_fn_cxx_try_compile "$LINENO"; then :
22073 libjava_cv_gethostbyname_r_needs_reentrant=no
22074 else
22075 CPPFLAGS_SAVE="$CPPFLAGS"
22076 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22079 #include <netdb.h>
22081 main ()
22083 gethostbyname_r("", 0, 0);
22085 return 0;
22087 _ACEOF
22088 if ac_fn_cxx_try_compile "$LINENO"; then :
22089 libjava_cv_gethostbyname_r_needs_reentrant=yes
22090 else
22091 libjava_cv_gethostbyname_r_needs_reentrant=fail
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22094 CPPFLAGS="$CPPFLAGS_SAVE"
22097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22098 ac_ext=c
22099 ac_cpp='$CPP $CPPFLAGS'
22100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22107 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22108 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22110 $as_echo "#define _REENTRANT 1" >>confdefs.h
22114 esac
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22117 $as_echo_n "checking for struct hostent_data... " >&6; }
22118 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22119 $as_echo_n "(cached) " >&6
22120 else
22121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22122 /* end confdefs.h. */
22124 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22125 # define _REENTRANT 1
22126 #endif
22127 #include <netdb.h>
22129 main ()
22131 struct hostent_data data;
22133 return 0;
22135 _ACEOF
22136 if ac_fn_c_try_compile "$LINENO"; then :
22137 libjava_cv_struct_hostent_data=yes
22138 else
22139 libjava_cv_struct_hostent_data=no
22141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22144 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22145 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22147 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22152 done
22155 # FIXME: libjava source code expects to find a prototype for
22156 # gethostbyaddr_r in netdb.h. The outer check ensures that
22157 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22158 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22159 # linkage check is enough, yet C++ code requires proper prototypes.)
22160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22161 /* end confdefs.h. */
22162 #include <netdb.h>
22164 _ACEOF
22165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22166 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22168 for ac_func in gethostbyaddr_r
22169 do :
22170 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22171 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22172 cat >>confdefs.h <<_ACEOF
22173 #define HAVE_GETHOSTBYADDR_R 1
22174 _ACEOF
22177 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22179 # There are two different kinds of gethostbyaddr_r.
22180 # We look for the one that returns `int'.
22181 # Hopefully this check is robust enough.
22182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22184 #include <netdb.h>
22186 _ACEOF
22187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22188 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22191 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22194 rm -f conftest*
22197 done
22200 rm -f conftest*
22203 for ac_func in gethostname
22204 do :
22205 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22206 if test "x$ac_cv_func_gethostname" = x""yes; then :
22207 cat >>confdefs.h <<_ACEOF
22208 #define HAVE_GETHOSTNAME 1
22209 _ACEOF
22212 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22216 #include <unistd.h>
22218 _ACEOF
22219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22220 $EGREP "gethostname" >/dev/null 2>&1; then :
22223 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22226 rm -f conftest*
22229 done
22232 for ac_func in usleep
22233 do :
22234 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22235 if test "x$ac_cv_func_usleep" = x""yes; then :
22236 cat >>confdefs.h <<_ACEOF
22237 #define HAVE_USLEEP 1
22238 _ACEOF
22240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22241 /* end confdefs.h. */
22242 #include <unistd.h>
22244 _ACEOF
22245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22246 $EGREP "usleep" >/dev/null 2>&1; then :
22249 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22252 rm -f conftest*
22255 done
22258 # Look for these functions in the thread library, but only bother
22259 # if using POSIX threads.
22260 if test "$THREADS" = posix; then
22261 save_LIBS="$LIBS"
22262 LIBS="$LIBS $THREADLIBS"
22264 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22265 # Solaris 7 the name librt is preferred.
22266 for ac_func in sched_yield
22267 do :
22268 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22269 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22270 cat >>confdefs.h <<_ACEOF
22271 #define HAVE_SCHED_YIELD 1
22272 _ACEOF
22274 else
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22277 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22278 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22279 $as_echo_n "(cached) " >&6
22280 else
22281 ac_check_lib_save_LIBS=$LIBS
22282 LIBS="-lrt $LIBS"
22283 if test x$gcc_no_link = xyes; then
22284 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h. */
22289 /* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */
22292 #ifdef __cplusplus
22293 extern "C"
22294 #endif
22295 char sched_yield ();
22297 main ()
22299 return sched_yield ();
22301 return 0;
22303 _ACEOF
22304 if ac_fn_c_try_link "$LINENO"; then :
22305 ac_cv_lib_rt_sched_yield=yes
22306 else
22307 ac_cv_lib_rt_sched_yield=no
22309 rm -f core conftest.err conftest.$ac_objext \
22310 conftest$ac_exeext conftest.$ac_ext
22311 LIBS=$ac_check_lib_save_LIBS
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22314 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22315 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22317 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22319 THREADLIBS="$THREADLIBS -lrt"
22320 THREADSPEC="$THREADSPEC -lrt"
22321 else
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22324 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22325 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22326 $as_echo_n "(cached) " >&6
22327 else
22328 ac_check_lib_save_LIBS=$LIBS
22329 LIBS="-lposix4 $LIBS"
22330 if test x$gcc_no_link = xyes; then
22331 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22334 /* end confdefs.h. */
22336 /* Override any GCC internal prototype to avoid an error.
22337 Use char because int might match the return type of a GCC
22338 builtin and then its argument prototype would still apply. */
22339 #ifdef __cplusplus
22340 extern "C"
22341 #endif
22342 char sched_yield ();
22344 main ()
22346 return sched_yield ();
22348 return 0;
22350 _ACEOF
22351 if ac_fn_c_try_link "$LINENO"; then :
22352 ac_cv_lib_posix4_sched_yield=yes
22353 else
22354 ac_cv_lib_posix4_sched_yield=no
22356 rm -f core conftest.err conftest.$ac_objext \
22357 conftest$ac_exeext conftest.$ac_ext
22358 LIBS=$ac_check_lib_save_LIBS
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22361 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22362 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22364 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22366 THREADLIBS="$THREADLIBS -lposix4"
22367 THREADSPEC="$THREADSPEC -lposix4"
22373 done
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22377 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22378 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22379 $as_echo_n "(cached) " >&6
22380 else
22381 ac_check_lib_save_LIBS=$LIBS
22382 LIBS="-lrt $LIBS"
22383 if test x$gcc_no_link = xyes; then
22384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22389 /* Override any GCC internal prototype to avoid an error.
22390 Use char because int might match the return type of a GCC
22391 builtin and then its argument prototype would still apply. */
22392 #ifdef __cplusplus
22393 extern "C"
22394 #endif
22395 char clock_gettime ();
22397 main ()
22399 return clock_gettime ();
22401 return 0;
22403 _ACEOF
22404 if ac_fn_c_try_link "$LINENO"; then :
22405 ac_cv_lib_rt_clock_gettime=yes
22406 else
22407 ac_cv_lib_rt_clock_gettime=no
22409 rm -f core conftest.err conftest.$ac_objext \
22410 conftest$ac_exeext conftest.$ac_ext
22411 LIBS=$ac_check_lib_save_LIBS
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22414 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22415 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22418 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22420 case "$THREADSPEC" in
22421 *-lrt*) ;;
22423 THREADSPEC="$THREADSPEC -lrt"
22424 THREADLIBS="$THREADLIBS -lrt"
22426 esac
22430 LIBS="$save_LIBS"
22432 # We can save a little space at runtime if the mutex has m_count
22433 # or __m_count. This is a nice hack for Linux.
22434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22435 /* end confdefs.h. */
22436 #include <pthread.h>
22438 main ()
22441 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22444 return 0;
22446 _ACEOF
22447 if ac_fn_c_try_compile "$LINENO"; then :
22449 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22451 else
22453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454 /* end confdefs.h. */
22455 #include <pthread.h>
22457 main ()
22460 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22463 return 0;
22465 _ACEOF
22466 if ac_fn_c_try_compile "$LINENO"; then :
22468 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22476 # We require a way to get the time.
22477 time_found=no
22478 for ac_func in gettimeofday time ftime
22479 do :
22480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22481 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22482 eval as_val=\$$as_ac_var
22483 if test "x$as_val" = x""yes; then :
22484 cat >>confdefs.h <<_ACEOF
22485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22486 _ACEOF
22487 time_found=yes
22489 done
22491 if test "$time_found" = no; then
22492 as_fn_error "no function found to get the time" "$LINENO" 5
22495 for ac_func in memmove
22496 do :
22497 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22498 if test "x$ac_cv_func_memmove" = x""yes; then :
22499 cat >>confdefs.h <<_ACEOF
22500 #define HAVE_MEMMOVE 1
22501 _ACEOF
22504 done
22507 # We require memcpy.
22508 memcpy_found=no
22509 for ac_func in memcpy
22510 do :
22511 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22512 if test "x$ac_cv_func_memcpy" = x""yes; then :
22513 cat >>confdefs.h <<_ACEOF
22514 #define HAVE_MEMCPY 1
22515 _ACEOF
22516 memcpy_found=yes
22518 done
22520 if test "$memcpy_found" = no; then
22521 as_fn_error "memcpy is required" "$LINENO" 5
22523 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22525 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22526 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22527 $as_echo_n "(cached) " >&6
22528 else
22529 ac_check_lib_save_LIBS=$LIBS
22530 LIBS="-ldl $LIBS"
22531 if test x$gcc_no_link = xyes; then
22532 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22535 /* end confdefs.h. */
22537 /* Override any GCC internal prototype to avoid an error.
22538 Use char because int might match the return type of a GCC
22539 builtin and then its argument prototype would still apply. */
22540 #ifdef __cplusplus
22541 extern "C"
22542 #endif
22543 char dlopen ();
22545 main ()
22547 return dlopen ();
22549 return 0;
22551 _ACEOF
22552 if ac_fn_c_try_link "$LINENO"; then :
22553 ac_cv_lib_dl_dlopen=yes
22554 else
22555 ac_cv_lib_dl_dlopen=no
22557 rm -f core conftest.err conftest.$ac_objext \
22558 conftest$ac_exeext conftest.$ac_ext
22559 LIBS=$ac_check_lib_save_LIBS
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22562 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22563 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22566 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22568 else
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22571 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22572 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22573 $as_echo_n "(cached) " >&6
22574 else
22575 ac_check_lib_save_LIBS=$LIBS
22576 LIBS="-ldld $LIBS"
22577 if test x$gcc_no_link = xyes; then
22578 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22581 /* end confdefs.h. */
22583 /* Override any GCC internal prototype to avoid an error.
22584 Use char because int might match the return type of a GCC
22585 builtin and then its argument prototype would still apply. */
22586 #ifdef __cplusplus
22587 extern "C"
22588 #endif
22589 char dlopen ();
22591 main ()
22593 return dlopen ();
22595 return 0;
22597 _ACEOF
22598 if ac_fn_c_try_link "$LINENO"; then :
22599 ac_cv_lib_dld_dlopen=yes
22600 else
22601 ac_cv_lib_dld_dlopen=no
22603 rm -f core conftest.err conftest.$ac_objext \
22604 conftest$ac_exeext conftest.$ac_ext
22605 LIBS=$ac_check_lib_save_LIBS
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22608 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22609 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22612 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22619 # Some library-finding code we stole from Tcl.
22620 #--------------------------------------------------------------------
22621 # Check for the existence of the -lsocket and -lnsl libraries.
22622 # The order here is important, so that they end up in the right
22623 # order in the command line generated by make. Here are some
22624 # special considerations:
22625 # 1. Use "connect" and "accept" to check for -lsocket, and
22626 # "gethostbyname" to check for -lnsl.
22627 # 2. Use each function name only once: can't redo a check because
22628 # autoconf caches the results of the last check and won't redo it.
22629 # 3. Use -lnsl and -lsocket only if they supply procedures that
22630 # aren't already present in the normal libraries. This is because
22631 # IRIX 5.2 has libraries, but they aren't needed and they're
22632 # bogus: they goof up name resolution if used.
22633 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22634 # To get around this problem, check for both libraries together
22635 # if -lsocket doesn't work by itself.
22636 #--------------------------------------------------------------------
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22639 $as_echo_n "checking for socket libraries... " >&6; }
22640 if test "${gcj_cv_lib_sockets+set}" = set; then :
22641 $as_echo_n "(cached) " >&6
22642 else
22643 gcj_cv_lib_sockets=
22644 gcj_checkBoth=0
22645 unset ac_cv_func_connect
22646 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22647 if test "x$ac_cv_func_connect" = x""yes; then :
22648 gcj_checkSocket=0
22649 else
22650 gcj_checkSocket=1
22653 if test "$gcj_checkSocket" = 1; then
22654 unset ac_cv_func_connect
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22656 $as_echo_n "checking for main in -lsocket... " >&6; }
22657 if test "${ac_cv_lib_socket_main+set}" = set; then :
22658 $as_echo_n "(cached) " >&6
22659 else
22660 ac_check_lib_save_LIBS=$LIBS
22661 LIBS="-lsocket $LIBS"
22662 if test x$gcc_no_link = xyes; then
22663 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22666 /* end confdefs.h. */
22670 main ()
22672 return main ();
22674 return 0;
22676 _ACEOF
22677 if ac_fn_c_try_link "$LINENO"; then :
22678 ac_cv_lib_socket_main=yes
22679 else
22680 ac_cv_lib_socket_main=no
22682 rm -f core conftest.err conftest.$ac_objext \
22683 conftest$ac_exeext conftest.$ac_ext
22684 LIBS=$ac_check_lib_save_LIBS
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22687 $as_echo "$ac_cv_lib_socket_main" >&6; }
22688 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22689 gcj_cv_lib_sockets="-lsocket"
22690 else
22691 gcj_checkBoth=1
22695 if test "$gcj_checkBoth" = 1; then
22696 gcj_oldLibs=$LIBS
22697 LIBS="$LIBS -lsocket -lnsl"
22698 unset ac_cv_func_accept
22699 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22700 if test "x$ac_cv_func_accept" = x""yes; then :
22701 gcj_checkNsl=0
22702 gcj_cv_lib_sockets="-lsocket -lnsl"
22705 unset ac_cv_func_accept
22706 LIBS=$gcj_oldLibs
22708 unset ac_cv_func_gethostbyname
22709 gcj_oldLibs=$LIBS
22710 LIBS="$LIBS $gcj_cv_lib_sockets"
22711 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22712 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22714 else
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22716 $as_echo_n "checking for main in -lnsl... " >&6; }
22717 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22718 $as_echo_n "(cached) " >&6
22719 else
22720 ac_check_lib_save_LIBS=$LIBS
22721 LIBS="-lnsl $LIBS"
22722 if test x$gcc_no_link = xyes; then
22723 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22726 /* end confdefs.h. */
22730 main ()
22732 return main ();
22734 return 0;
22736 _ACEOF
22737 if ac_fn_c_try_link "$LINENO"; then :
22738 ac_cv_lib_nsl_main=yes
22739 else
22740 ac_cv_lib_nsl_main=no
22742 rm -f core conftest.err conftest.$ac_objext \
22743 conftest$ac_exeext conftest.$ac_ext
22744 LIBS=$ac_check_lib_save_LIBS
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22747 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22748 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22749 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22754 unset ac_cv_func_gethostbyname
22755 LIBS=$gcj_oldLIBS
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22759 $as_echo "$gcj_cv_lib_sockets" >&6; }
22760 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22762 if test "$with_system_zlib" = yes; then
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22764 $as_echo_n "checking for deflate in -lz... " >&6; }
22765 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22766 $as_echo_n "(cached) " >&6
22767 else
22768 ac_check_lib_save_LIBS=$LIBS
22769 LIBS="-lz $LIBS"
22770 if test x$gcc_no_link = xyes; then
22771 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22774 /* end confdefs.h. */
22776 /* Override any GCC internal prototype to avoid an error.
22777 Use char because int might match the return type of a GCC
22778 builtin and then its argument prototype would still apply. */
22779 #ifdef __cplusplus
22780 extern "C"
22781 #endif
22782 char deflate ();
22784 main ()
22786 return deflate ();
22788 return 0;
22790 _ACEOF
22791 if ac_fn_c_try_link "$LINENO"; then :
22792 ac_cv_lib_z_deflate=yes
22793 else
22794 ac_cv_lib_z_deflate=no
22796 rm -f core conftest.err conftest.$ac_objext \
22797 conftest$ac_exeext conftest.$ac_ext
22798 LIBS=$ac_check_lib_save_LIBS
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22801 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22802 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22803 ZLIBSPEC=-lz
22804 else
22805 ZLIBSPEC=
22810 # Test for Gtk stuff, if asked for.
22811 if test "$use_gtk_awt" = yes; then
22813 succeeded=no
22815 if test -z "$PKG_CONFIG"; then
22816 if test -n "$ac_tool_prefix"; then
22817 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22818 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22820 $as_echo_n "checking for $ac_word... " >&6; }
22821 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22822 $as_echo_n "(cached) " >&6
22823 else
22824 case $PKG_CONFIG in
22825 [\\/]* | ?:[\\/]*)
22826 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22830 for as_dir in $PATH
22832 IFS=$as_save_IFS
22833 test -z "$as_dir" && as_dir=.
22834 for ac_exec_ext in '' $ac_executable_extensions; do
22835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22836 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22838 break 2
22840 done
22841 done
22842 IFS=$as_save_IFS
22845 esac
22847 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22848 if test -n "$PKG_CONFIG"; then
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22850 $as_echo "$PKG_CONFIG" >&6; }
22851 else
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22853 $as_echo "no" >&6; }
22858 if test -z "$ac_cv_path_PKG_CONFIG"; then
22859 ac_pt_PKG_CONFIG=$PKG_CONFIG
22860 # Extract the first word of "pkg-config", so it can be a program name with args.
22861 set dummy pkg-config; ac_word=$2
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22863 $as_echo_n "checking for $ac_word... " >&6; }
22864 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22865 $as_echo_n "(cached) " >&6
22866 else
22867 case $ac_pt_PKG_CONFIG in
22868 [\\/]* | ?:[\\/]*)
22869 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22873 for as_dir in $PATH
22875 IFS=$as_save_IFS
22876 test -z "$as_dir" && as_dir=.
22877 for ac_exec_ext in '' $ac_executable_extensions; do
22878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22879 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22881 break 2
22883 done
22884 done
22885 IFS=$as_save_IFS
22888 esac
22890 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22891 if test -n "$ac_pt_PKG_CONFIG"; then
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22893 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22894 else
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22896 $as_echo "no" >&6; }
22899 if test "x$ac_pt_PKG_CONFIG" = x; then
22900 PKG_CONFIG="no"
22901 else
22902 case $cross_compiling:$ac_tool_warned in
22903 yes:)
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22906 ac_tool_warned=yes ;;
22907 esac
22908 PKG_CONFIG=$ac_pt_PKG_CONFIG
22910 else
22911 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22916 if test "$PKG_CONFIG" = "no" ; then
22917 echo "*** The pkg-config script could not be found. Make sure it is"
22918 echo "*** in your path, or set the PKG_CONFIG environment variable"
22919 echo "*** to the full path to pkg-config."
22920 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22921 else
22922 PKG_CONFIG_MIN_VERSION=0.9.0
22923 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22925 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22927 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22929 $as_echo "yes" >&6; }
22930 succeeded=yes
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22933 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22934 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22936 $as_echo "$GTK_CFLAGS" >&6; }
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22939 $as_echo_n "checking GTK_LIBS... " >&6; }
22940 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22942 $as_echo "$GTK_LIBS" >&6; }
22943 else
22944 GTK_CFLAGS=""
22945 GTK_LIBS=""
22946 ## If we have a custom action on failure, don't print errors, but
22947 ## do set a variable so people can do so.
22948 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22949 echo $GTK_PKG_ERRORS
22954 else
22955 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22956 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22960 if test $succeeded = yes; then
22962 else
22963 as_fn_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." "$LINENO" 5
22970 succeeded=no
22972 if test -z "$PKG_CONFIG"; then
22973 if test -n "$ac_tool_prefix"; then
22974 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22975 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22977 $as_echo_n "checking for $ac_word... " >&6; }
22978 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22979 $as_echo_n "(cached) " >&6
22980 else
22981 case $PKG_CONFIG in
22982 [\\/]* | ?:[\\/]*)
22983 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22987 for as_dir in $PATH
22989 IFS=$as_save_IFS
22990 test -z "$as_dir" && as_dir=.
22991 for ac_exec_ext in '' $ac_executable_extensions; do
22992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22993 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22995 break 2
22997 done
22998 done
22999 IFS=$as_save_IFS
23002 esac
23004 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23005 if test -n "$PKG_CONFIG"; then
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23007 $as_echo "$PKG_CONFIG" >&6; }
23008 else
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23010 $as_echo "no" >&6; }
23015 if test -z "$ac_cv_path_PKG_CONFIG"; then
23016 ac_pt_PKG_CONFIG=$PKG_CONFIG
23017 # Extract the first word of "pkg-config", so it can be a program name with args.
23018 set dummy pkg-config; ac_word=$2
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23020 $as_echo_n "checking for $ac_word... " >&6; }
23021 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23022 $as_echo_n "(cached) " >&6
23023 else
23024 case $ac_pt_PKG_CONFIG in
23025 [\\/]* | ?:[\\/]*)
23026 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23030 for as_dir in $PATH
23032 IFS=$as_save_IFS
23033 test -z "$as_dir" && as_dir=.
23034 for ac_exec_ext in '' $ac_executable_extensions; do
23035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23036 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23038 break 2
23040 done
23041 done
23042 IFS=$as_save_IFS
23045 esac
23047 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23048 if test -n "$ac_pt_PKG_CONFIG"; then
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23050 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23051 else
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23053 $as_echo "no" >&6; }
23056 if test "x$ac_pt_PKG_CONFIG" = x; then
23057 PKG_CONFIG="no"
23058 else
23059 case $cross_compiling:$ac_tool_warned in
23060 yes:)
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23063 ac_tool_warned=yes ;;
23064 esac
23065 PKG_CONFIG=$ac_pt_PKG_CONFIG
23067 else
23068 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23073 if test "$PKG_CONFIG" = "no" ; then
23074 echo "*** The pkg-config script could not be found. Make sure it is"
23075 echo "*** in your path, or set the PKG_CONFIG environment variable"
23076 echo "*** to the full path to pkg-config."
23077 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23078 else
23079 PKG_CONFIG_MIN_VERSION=0.9.0
23080 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
23082 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
23084 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23086 $as_echo "yes" >&6; }
23087 succeeded=yes
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
23090 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
23091 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
23093 $as_echo "$GLIB_CFLAGS" >&6; }
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
23096 $as_echo_n "checking GLIB_LIBS... " >&6; }
23097 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
23099 $as_echo "$GLIB_LIBS" >&6; }
23100 else
23101 GLIB_CFLAGS=""
23102 GLIB_LIBS=""
23103 ## If we have a custom action on failure, don't print errors, but
23104 ## do set a variable so people can do so.
23105 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
23106 echo $GLIB_PKG_ERRORS
23111 else
23112 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23113 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23117 if test $succeeded = yes; then
23119 else
23120 as_fn_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." "$LINENO" 5
23127 succeeded=no
23129 if test -z "$PKG_CONFIG"; then
23130 if test -n "$ac_tool_prefix"; then
23131 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23132 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23134 $as_echo_n "checking for $ac_word... " >&6; }
23135 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
23136 $as_echo_n "(cached) " >&6
23137 else
23138 case $PKG_CONFIG in
23139 [\\/]* | ?:[\\/]*)
23140 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23144 for as_dir in $PATH
23146 IFS=$as_save_IFS
23147 test -z "$as_dir" && as_dir=.
23148 for ac_exec_ext in '' $ac_executable_extensions; do
23149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23150 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23152 break 2
23154 done
23155 done
23156 IFS=$as_save_IFS
23159 esac
23161 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23162 if test -n "$PKG_CONFIG"; then
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23164 $as_echo "$PKG_CONFIG" >&6; }
23165 else
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23167 $as_echo "no" >&6; }
23172 if test -z "$ac_cv_path_PKG_CONFIG"; then
23173 ac_pt_PKG_CONFIG=$PKG_CONFIG
23174 # Extract the first word of "pkg-config", so it can be a program name with args.
23175 set dummy pkg-config; ac_word=$2
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23177 $as_echo_n "checking for $ac_word... " >&6; }
23178 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23179 $as_echo_n "(cached) " >&6
23180 else
23181 case $ac_pt_PKG_CONFIG in
23182 [\\/]* | ?:[\\/]*)
23183 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23187 for as_dir in $PATH
23189 IFS=$as_save_IFS
23190 test -z "$as_dir" && as_dir=.
23191 for ac_exec_ext in '' $ac_executable_extensions; do
23192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23193 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23195 break 2
23197 done
23198 done
23199 IFS=$as_save_IFS
23202 esac
23204 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23205 if test -n "$ac_pt_PKG_CONFIG"; then
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23207 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23208 else
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23210 $as_echo "no" >&6; }
23213 if test "x$ac_pt_PKG_CONFIG" = x; then
23214 PKG_CONFIG="no"
23215 else
23216 case $cross_compiling:$ac_tool_warned in
23217 yes:)
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23220 ac_tool_warned=yes ;;
23221 esac
23222 PKG_CONFIG=$ac_pt_PKG_CONFIG
23224 else
23225 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23230 if test "$PKG_CONFIG" = "no" ; then
23231 echo "*** The pkg-config script could not be found. Make sure it is"
23232 echo "*** in your path, or set the PKG_CONFIG environment variable"
23233 echo "*** to the full path to pkg-config."
23234 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23235 else
23236 PKG_CONFIG_MIN_VERSION=0.9.0
23237 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23239 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23241 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23243 $as_echo "yes" >&6; }
23244 succeeded=yes
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23247 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23248 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23250 $as_echo "$LIBART_CFLAGS" >&6; }
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23253 $as_echo_n "checking LIBART_LIBS... " >&6; }
23254 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23256 $as_echo "$LIBART_LIBS" >&6; }
23257 else
23258 LIBART_CFLAGS=""
23259 LIBART_LIBS=""
23260 ## If we have a custom action on failure, don't print errors, but
23261 ## do set a variable so people can do so.
23262 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23263 echo $LIBART_PKG_ERRORS
23268 else
23269 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23270 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23274 if test $succeeded = yes; then
23276 else
23277 as_fn_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." "$LINENO" 5
23283 # We require the XTest Extension to support java.awt.Robot.
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23285 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23286 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23287 $as_echo_n "(cached) " >&6
23288 else
23289 ac_check_lib_save_LIBS=$LIBS
23290 LIBS="-lXtst ${X_LIBS} $LIBS"
23291 if test x$gcc_no_link = xyes; then
23292 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23295 /* end confdefs.h. */
23297 /* Override any GCC internal prototype to avoid an error.
23298 Use char because int might match the return type of a GCC
23299 builtin and then its argument prototype would still apply. */
23300 #ifdef __cplusplus
23301 extern "C"
23302 #endif
23303 char XTestQueryExtension ();
23305 main ()
23307 return XTestQueryExtension ();
23309 return 0;
23311 _ACEOF
23312 if ac_fn_c_try_link "$LINENO"; then :
23313 ac_cv_lib_Xtst_XTestQueryExtension=yes
23314 else
23315 ac_cv_lib_Xtst_XTestQueryExtension=no
23317 rm -f core conftest.err conftest.$ac_objext \
23318 conftest$ac_exeext conftest.$ac_ext
23319 LIBS=$ac_check_lib_save_LIBS
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23322 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23323 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23324 true
23325 else
23326 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23331 # On Solaris, and maybe other architectures, the Boehm collector
23332 # requires -ldl.
23333 if test "$GC" = boehm; then
23334 case "${host}" in
23335 *-*-darwin*)
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23339 $as_echo_n "checking for main in -ldl... " >&6; }
23340 if test "${ac_cv_lib_dl_main+set}" = set; then :
23341 $as_echo_n "(cached) " >&6
23342 else
23343 ac_check_lib_save_LIBS=$LIBS
23344 LIBS="-ldl $LIBS"
23345 if test x$gcc_no_link = xyes; then
23346 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23349 /* end confdefs.h. */
23353 main ()
23355 return main ();
23357 return 0;
23359 _ACEOF
23360 if ac_fn_c_try_link "$LINENO"; then :
23361 ac_cv_lib_dl_main=yes
23362 else
23363 ac_cv_lib_dl_main=no
23365 rm -f core conftest.err conftest.$ac_objext \
23366 conftest$ac_exeext conftest.$ac_ext
23367 LIBS=$ac_check_lib_save_LIBS
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23370 $as_echo "$ac_cv_lib_dl_main" >&6; }
23371 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23372 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23376 esac
23380 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23381 case $build in
23382 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23383 *) CLASSPATH_SEPARATOR=':' ;;
23384 esac
23387 # We must search the source tree for java.lang, since we still don't
23388 # have libgcj.jar nor java/lang/*.class
23389 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23390 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23392 # Since some classes depend on this one, we need its source available
23393 # before we can do any GCJ compilation test :-(
23394 if test ! -f gnu/classpath/Configuration.java; then
23395 test -d gnu || mkdir gnu
23396 test -d gnu/classpath || mkdir gnu/classpath
23397 # Note that it is not crucial that all the values here be correct.
23398 sed -e "s,@prefix@,$expanded_prefix," \
23399 -e "s,@VERSION@,$VERSION," \
23400 -e "s,@LIBDEBUG@,false," \
23401 -e "s,@INIT_LOAD_LIBRARY@,false," \
23402 -e "s,@@,$LIBGCJDEBUG," \
23403 -e "s,@default_toolkit@,$TOOLKIT," \
23404 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23405 -e "s,@GTK_CAIRO_ENABLED@,false," \
23406 -e "s,@ECJ_JAR@,," \
23407 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23408 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23409 > gnu/classpath/Configuration.java
23410 # We do not want to redirect the output of the grep below to /dev/null,
23411 # but we add /dev/null to the input list so that grep will print the
23412 # filename of Configuration.java in case it finds any matches.
23413 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23414 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23419 if test -n "$ac_tool_prefix"; then
23420 for ac_prog in gcj
23422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23423 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23425 $as_echo_n "checking for $ac_word... " >&6; }
23426 if test "${ac_cv_prog_GCJ+set}" = set; then :
23427 $as_echo_n "(cached) " >&6
23428 else
23429 if test -n "$GCJ"; then
23430 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23431 else
23432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23433 for as_dir in $PATH
23435 IFS=$as_save_IFS
23436 test -z "$as_dir" && as_dir=.
23437 for ac_exec_ext in '' $ac_executable_extensions; do
23438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23439 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23441 break 2
23443 done
23444 done
23445 IFS=$as_save_IFS
23449 GCJ=$ac_cv_prog_GCJ
23450 if test -n "$GCJ"; then
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23452 $as_echo "$GCJ" >&6; }
23453 else
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23455 $as_echo "no" >&6; }
23459 test -n "$GCJ" && break
23460 done
23462 if test -z "$GCJ"; then
23463 ac_ct_GCJ=$GCJ
23464 for ac_prog in gcj
23466 # Extract the first word of "$ac_prog", so it can be a program name with args.
23467 set dummy $ac_prog; ac_word=$2
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23469 $as_echo_n "checking for $ac_word... " >&6; }
23470 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23471 $as_echo_n "(cached) " >&6
23472 else
23473 if test -n "$ac_ct_GCJ"; then
23474 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23475 else
23476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23477 for as_dir in $PATH
23479 IFS=$as_save_IFS
23480 test -z "$as_dir" && as_dir=.
23481 for ac_exec_ext in '' $ac_executable_extensions; do
23482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23483 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23485 break 2
23487 done
23488 done
23489 IFS=$as_save_IFS
23493 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23494 if test -n "$ac_ct_GCJ"; then
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23496 $as_echo "$ac_ct_GCJ" >&6; }
23497 else
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23499 $as_echo "no" >&6; }
23503 test -n "$ac_ct_GCJ" && break
23504 done
23506 if test "x$ac_ct_GCJ" = x; then
23507 GCJ="gcj"
23508 else
23509 case $cross_compiling:$ac_tool_warned in
23510 yes:)
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23513 ac_tool_warned=yes ;;
23514 esac
23515 GCJ=$ac_ct_GCJ
23519 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23520 if test "x${GCJFLAGS-unset}" = xunset; then
23521 GCJFLAGS="-g -O2"
23525 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23528 $as_echo_n "checking dependency style of $depcc... " >&6; }
23529 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23530 $as_echo_n "(cached) " >&6
23531 else
23532 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23533 # We make a subdir and do the tests there. Otherwise we can end up
23534 # making bogus files that we don't know about and never remove. For
23535 # instance it was reported that on HP-UX the gcc test will end up
23536 # making a dummy file named `D' -- because `-MD' means `put the output
23537 # in D'.
23538 rm -rf conftest.dir
23539 mkdir conftest.dir
23540 # Copy depcomp to subdir because otherwise we won't find it if we're
23541 # using a relative directory.
23542 cp "$am_depcomp" conftest.dir
23543 cd conftest.dir
23544 # We will build objects and dependencies in a subdirectory because
23545 # it helps to detect inapplicable dependency modes. For instance
23546 # both Tru64's cc and ICC support -MD to output dependencies as a
23547 # side effect of compilation, but ICC will put the dependencies in
23548 # the current directory while Tru64 will put them in the object
23549 # directory.
23550 mkdir sub
23552 am_cv_GCJ_dependencies_compiler_type=none
23553 if test "$am_compiler_list" = ""; then
23554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23556 am__universal=false
23559 for depmode in $am_compiler_list; do
23560 # Setup a source with many dependencies, because some compilers
23561 # like to wrap large dependency lists on column 80 (with \), and
23562 # we should not choose a depcomp mode which is confused by this.
23564 # We need to recreate these files for each test, as the compiler may
23565 # overwrite some of them when testing with obscure command lines.
23566 # This happens at least with the AIX C compiler.
23567 : > sub/conftest.c
23568 for i in 1 2 3 4 5 6; do
23569 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23570 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23571 # Solaris 8's {/usr,}/bin/sh.
23572 touch sub/conftst$i.h
23573 done
23574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23576 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23577 # mode. It turns out that the SunPro C++ compiler does not properly
23578 # handle `-M -o', and we need to detect this. Also, some Intel
23579 # versions had trouble with output in subdirs
23580 am__obj=sub/conftest.${OBJEXT-o}
23581 am__minus_obj="-o $am__obj"
23582 case $depmode in
23583 gcc)
23584 # This depmode causes a compiler race in universal mode.
23585 test "$am__universal" = false || continue
23587 nosideeffect)
23588 # after this tag, mechanisms are not by side-effect, so they'll
23589 # only be used when explicitly requested
23590 if test "x$enable_dependency_tracking" = xyes; then
23591 continue
23592 else
23593 break
23596 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
23597 # This compiler won't grok `-c -o', but also, the minuso test has
23598 # not run yet. These depmodes are late enough in the game, and
23599 # so weak that their functioning should not be impacted.
23600 am__obj=conftest.${OBJEXT-o}
23601 am__minus_obj=
23603 none) break ;;
23604 esac
23605 if depmode=$depmode \
23606 source=sub/conftest.c object=$am__obj \
23607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23608 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23609 >/dev/null 2>conftest.err &&
23610 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23611 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23612 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23614 # icc doesn't choke on unknown options, it will just issue warnings
23615 # or remarks (even with -Werror). So we grep stderr for any message
23616 # that says an option was ignored or not supported.
23617 # When given -MP, icc 7.0 and 7.1 complain thusly:
23618 # icc: Command line warning: ignoring option '-M'; no argument required
23619 # The diagnosis changed in icc 8.0:
23620 # icc: Command line remark: option '-MP' not supported
23621 if (grep 'ignoring option' conftest.err ||
23622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23623 am_cv_GCJ_dependencies_compiler_type=$depmode
23624 break
23627 done
23629 cd ..
23630 rm -rf conftest.dir
23631 else
23632 am_cv_GCJ_dependencies_compiler_type=none
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23637 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23638 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23641 test "x$enable_dependency_tracking" != xno \
23642 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23643 am__fastdepGCJ_TRUE=
23644 am__fastdepGCJ_FALSE='#'
23645 else
23646 am__fastdepGCJ_TRUE='#'
23647 am__fastdepGCJ_FALSE=
23653 # Now remove it.
23654 rm -f gnu/classpath/Configuration.java
23656 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23658 # The cast to long int works around a bug in the HP C Compiler
23659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23661 # This bug is HP SR number 8606223364.
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23663 $as_echo_n "checking size of void *... " >&6; }
23664 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23665 $as_echo_n "(cached) " >&6
23666 else
23667 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23669 else
23670 if test "$ac_cv_type_void_p" = yes; then
23671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23673 { as_fn_set_status 77
23674 as_fn_error "cannot compute sizeof (void *)
23675 See \`config.log' for more details." "$LINENO" 5; }; }
23676 else
23677 ac_cv_sizeof_void_p=0
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23683 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23687 cat >>confdefs.h <<_ACEOF
23688 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23689 _ACEOF
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23694 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23695 if test "${ac_cv_c_bigendian+set}" = set; then :
23696 $as_echo_n "(cached) " >&6
23697 else
23698 ac_cv_c_bigendian=unknown
23699 # See if we're dealing with a universal compiler.
23700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23701 /* end confdefs.h. */
23702 #ifndef __APPLE_CC__
23703 not a universal capable compiler
23704 #endif
23705 typedef int dummy;
23707 _ACEOF
23708 if ac_fn_c_try_compile "$LINENO"; then :
23710 # Check for potential -arch flags. It is not universal unless
23711 # there are at least two -arch flags with different values.
23712 ac_arch=
23713 ac_prev=
23714 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23715 if test -n "$ac_prev"; then
23716 case $ac_word in
23717 i?86 | x86_64 | ppc | ppc64)
23718 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23719 ac_arch=$ac_word
23720 else
23721 ac_cv_c_bigendian=universal
23722 break
23725 esac
23726 ac_prev=
23727 elif test "x$ac_word" = "x-arch"; then
23728 ac_prev=arch
23730 done
23732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733 if test $ac_cv_c_bigendian = unknown; then
23734 # See if sys/param.h defines the BYTE_ORDER macro.
23735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23736 /* end confdefs.h. */
23737 #include <sys/types.h>
23738 #include <sys/param.h>
23741 main ()
23743 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23744 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23745 && LITTLE_ENDIAN)
23746 bogus endian macros
23747 #endif
23750 return 0;
23752 _ACEOF
23753 if ac_fn_c_try_compile "$LINENO"; then :
23754 # It does; now see whether it defined to BIG_ENDIAN or not.
23755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23756 /* end confdefs.h. */
23757 #include <sys/types.h>
23758 #include <sys/param.h>
23761 main ()
23763 #if BYTE_ORDER != BIG_ENDIAN
23764 not big endian
23765 #endif
23768 return 0;
23770 _ACEOF
23771 if ac_fn_c_try_compile "$LINENO"; then :
23772 ac_cv_c_bigendian=yes
23773 else
23774 ac_cv_c_bigendian=no
23776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23780 if test $ac_cv_c_bigendian = unknown; then
23781 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23783 /* end confdefs.h. */
23784 #include <limits.h>
23787 main ()
23789 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23790 bogus endian macros
23791 #endif
23794 return 0;
23796 _ACEOF
23797 if ac_fn_c_try_compile "$LINENO"; then :
23798 # It does; now see whether it defined to _BIG_ENDIAN or not.
23799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23800 /* end confdefs.h. */
23801 #include <limits.h>
23804 main ()
23806 #ifndef _BIG_ENDIAN
23807 not big endian
23808 #endif
23811 return 0;
23813 _ACEOF
23814 if ac_fn_c_try_compile "$LINENO"; then :
23815 ac_cv_c_bigendian=yes
23816 else
23817 ac_cv_c_bigendian=no
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23823 if test $ac_cv_c_bigendian = unknown; then
23824 # Compile a test program.
23825 if test "$cross_compiling" = yes; then :
23826 # Try to guess by grepping values from an object file.
23827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23828 /* end confdefs.h. */
23829 short int ascii_mm[] =
23830 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23831 short int ascii_ii[] =
23832 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23833 int use_ascii (int i) {
23834 return ascii_mm[i] + ascii_ii[i];
23836 short int ebcdic_ii[] =
23837 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23838 short int ebcdic_mm[] =
23839 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23840 int use_ebcdic (int i) {
23841 return ebcdic_mm[i] + ebcdic_ii[i];
23843 extern int foo;
23846 main ()
23848 return use_ascii (foo) == use_ebcdic (foo);
23850 return 0;
23852 _ACEOF
23853 if ac_fn_c_try_compile "$LINENO"; then :
23854 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23855 ac_cv_c_bigendian=yes
23857 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23858 if test "$ac_cv_c_bigendian" = unknown; then
23859 ac_cv_c_bigendian=no
23860 else
23861 # finding both strings is unlikely to happen, but who knows?
23862 ac_cv_c_bigendian=unknown
23866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23867 else
23868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23869 /* end confdefs.h. */
23870 $ac_includes_default
23872 main ()
23875 /* Are we little or big endian? From Harbison&Steele. */
23876 union
23878 long int l;
23879 char c[sizeof (long int)];
23880 } u;
23881 u.l = 1;
23882 return u.c[sizeof (long int) - 1] == 1;
23885 return 0;
23887 _ACEOF
23888 if ac_fn_c_try_run "$LINENO"; then :
23889 ac_cv_c_bigendian=no
23890 else
23891 ac_cv_c_bigendian=yes
23893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23894 conftest.$ac_objext conftest.beam conftest.$ac_ext
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23900 $as_echo "$ac_cv_c_bigendian" >&6; }
23901 case $ac_cv_c_bigendian in #(
23902 yes)
23903 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23904 ;; #(
23906 ;; #(
23907 universal)
23909 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23911 ;; #(
23913 as_fn_error "unknown endianness
23914 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23915 esac
23918 ZLIBS=
23919 SYS_ZLIBS=
23920 ZINCS=
23922 if test -z "$ZLIBSPEC"; then
23923 # Use zlib from the GCC tree.
23924 ZINCS='-I$(top_srcdir)/../zlib'
23925 ZLIBS=../zlib/libzgcj_convenience.la
23926 else
23927 # System's zlib.
23928 SYS_ZLIBS="$ZLIBSPEC"
23940 if test "$NATIVE" = yes; then
23941 NATIVE_TRUE=
23942 NATIVE_FALSE='#'
23943 else
23944 NATIVE_TRUE='#'
23945 NATIVE_FALSE=
23948 if test "$enable_shared" = yes; then
23949 ENABLE_SHARED_TRUE=
23950 ENABLE_SHARED_FALSE='#'
23951 else
23952 ENABLE_SHARED_TRUE='#'
23953 ENABLE_SHARED_FALSE=
23956 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23957 NEEDS_DATA_START_TRUE=
23958 NEEDS_DATA_START_FALSE='#'
23959 else
23960 NEEDS_DATA_START_TRUE='#'
23961 NEEDS_DATA_START_FALSE=
23964 if test -z "${with_multisubdir}"; then
23965 INSTALL_BINARIES_TRUE=
23966 INSTALL_BINARIES_FALSE='#'
23967 else
23968 INSTALL_BINARIES_TRUE='#'
23969 INSTALL_BINARIES_FALSE=
23974 # Process the option "--enable-version-specific-runtime-libs"
23975 # Calculate toolexeclibdir
23976 case ${version_specific_libs} in
23977 yes)
23978 # Need the gcc compiler version to know where to install libraries
23979 # and header files if --enable-version-specific-runtime-libs option
23980 # is selected.
23981 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23982 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23983 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23984 toolexeclibdir=$toolexecmainlibdir
23987 if test -n "$with_cross_host" &&
23988 test x"$with_cross_host" != x"no"; then
23989 # Install a library built with a cross compiler in tooldir, not libdir.
23990 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23991 toolexecmainlibdir='$(toolexecdir)/lib'
23992 else
23993 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23994 toolexecmainlibdir='$(libdir)'
23996 multi_os_directory=`$CC -print-multi-os-directory`
23997 case $multi_os_directory in
23998 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23999 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
24000 esac
24002 esac
24007 # Determine gcj and libgcj version number.
24008 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
24009 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
24010 GCJVERSION=$gcjversion
24013 cat >>confdefs.h <<_ACEOF
24014 #define GCJVERSION "$GCJVERSION"
24015 _ACEOF
24018 # Determine where the standard .db file and GNU Classpath JNI
24019 # libraries are found.
24020 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
24021 dbexecdir='$(toolexeclibdir)/'$gcjsubdir
24026 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
24029 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
24033 case "${with_gxx_include_dir}" in
24034 yes)
24035 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
24037 no | "")
24038 case "${enable_version_specific_runtime_libs}" in
24039 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
24041 libstdcxx_incdir='c++/$(gcc_version)'
24042 gxx_include_dir='include/$(libstdcxx_incdir)'
24043 if test -n "$with_cross_host" &&
24044 test x"$with_cross_host" != x"no"; then
24045 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
24046 else
24047 gxx_include_dir='${prefix}/'"$gxx_include_dir"
24048 fi;;
24049 esac ;;
24050 *) gxx_include_dir=${with_gxx_include_dir} ;;
24051 esac
24056 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
24057 # On that system, sys/ioctl.h will not include sys/filio.h unless
24058 # BSD_COMP is defined; just including sys/filio.h is simpler.
24059 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
24060 # for now. If you change this, you also must update natFile.cc.
24061 for ac_header in unistd.h sys/time.h sys/types.h fcntl.h \
24062 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
24063 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
24064 pwd.h sys/config.h stdint.h langinfo.h locale.h \
24065 dirent.h sys/rw_lock.h magic.h ifaddrs.h
24066 do :
24067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24068 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24069 eval as_val=\$$as_ac_Header
24070 if test "x$as_val" = x""yes; then :
24071 cat >>confdefs.h <<_ACEOF
24072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24073 _ACEOF
24077 done
24080 # sys/socket.h is a prerequisite for net/if.h on Solaris.
24081 for ac_header in net/if.h
24082 do :
24083 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
24084 #ifdef HAVE_SYS_SOCKET_H
24085 #include <sys/socket.h>
24086 #endif
24089 if test "x$ac_cv_header_net_if_h" = x""yes; then :
24090 cat >>confdefs.h <<_ACEOF
24091 #define HAVE_NET_IF_H 1
24092 _ACEOF
24096 done
24099 for ac_header in inttypes.h
24100 do :
24101 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
24102 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
24103 cat >>confdefs.h <<_ACEOF
24104 #define HAVE_INTTYPES_H 1
24105 _ACEOF
24108 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
24111 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
24116 done
24119 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
24120 if test "x$ac_cv_type_ssize_t" = x""yes; then :
24122 else
24124 cat >>confdefs.h <<_ACEOF
24125 #define ssize_t int
24126 _ACEOF
24130 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
24131 #ifdef HAVE_MAGIC_H
24132 #include <magic.h>
24133 #endif
24135 if test "x$ac_cv_type_magic_t" = x""yes; then :
24138 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
24144 $as_echo_n "checking for in_addr_t... " >&6; }
24145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24146 /* end confdefs.h. */
24147 #include <sys/types.h>
24148 #if STDC_HEADERS
24149 #include <stdlib.h>
24150 #include <stddef.h>
24151 #endif
24152 #if HAVE_NETINET_IN_H
24153 #include <netinet/in.h>
24154 #endif
24156 main ()
24158 in_addr_t foo;
24160 return 0;
24162 _ACEOF
24163 if ac_fn_c_try_compile "$LINENO"; then :
24165 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24168 $as_echo "yes" >&6; }
24169 else
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24171 $as_echo "no" >&6; }
24173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
24176 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
24177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24178 /* end confdefs.h. */
24179 #include <netinet/in.h>
24181 main ()
24183 struct ip_mreq mreq;
24185 return 0;
24187 _ACEOF
24188 if ac_fn_c_try_compile "$LINENO"; then :
24190 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24193 $as_echo "yes" >&6; }
24194 else
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24196 $as_echo "no" >&6; }
24198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
24201 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
24202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24203 /* end confdefs.h. */
24204 #include <netinet/in.h>
24206 main ()
24208 struct ipv6_mreq mreq6;
24210 return 0;
24212 _ACEOF
24213 if ac_fn_c_try_compile "$LINENO"; then :
24215 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24218 $as_echo "yes" >&6; }
24219 else
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24221 $as_echo "no" >&6; }
24223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24226 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24228 /* end confdefs.h. */
24229 #include <netinet/in.h>
24231 main ()
24233 struct sockaddr_in6 addr6;
24235 return 0;
24237 _ACEOF
24238 if ac_fn_c_try_compile "$LINENO"; then :
24240 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24243 $as_echo "yes" >&6; }
24244 else
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24246 $as_echo "no" >&6; }
24248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24251 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24253 /* end confdefs.h. */
24254 #define _POSIX_PII_SOCKET
24255 #include <sys/types.h>
24256 #include <sys/socket.h>
24258 main ()
24260 socklen_t x = 5;
24262 return 0;
24264 _ACEOF
24265 if ac_fn_c_try_compile "$LINENO"; then :
24267 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24270 $as_echo "yes" >&6; }
24271 else
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24273 $as_echo "no" >&6; }
24275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24278 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24280 /* end confdefs.h. */
24281 #include <time.h>
24283 main ()
24285 struct tm tim; tim.tm_gmtoff = 0;
24287 return 0;
24289 _ACEOF
24290 if ac_fn_c_try_compile "$LINENO"; then :
24292 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24295 $as_echo "yes" >&6; }
24296 else
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24298 $as_echo "no" >&6; }
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24300 $as_echo_n "checking for global timezone variable... " >&6; }
24301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24302 /* end confdefs.h. */
24303 #include <time.h>
24305 main ()
24307 void i(){long z2 = 2*timezone;}
24309 return 0;
24311 _ACEOF
24312 if ac_fn_c_try_compile "$LINENO"; then :
24314 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24317 $as_echo "yes" >&6; }
24318 else
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24320 $as_echo "no" >&6; }
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24322 $as_echo_n "checking for global _timezone variable... " >&6; }
24323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24324 /* end confdefs.h. */
24325 #include <time.h>
24327 main ()
24329 long z2 = _timezone;
24331 return 0;
24333 _ACEOF
24334 if ac_fn_c_try_compile "$LINENO"; then :
24336 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24339 $as_echo "yes" >&6; }
24340 else
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24342 $as_echo "no" >&6; }
24344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24350 for ac_prog in perl
24352 # Extract the first word of "$ac_prog", so it can be a program name with args.
24353 set dummy $ac_prog; ac_word=$2
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24355 $as_echo_n "checking for $ac_word... " >&6; }
24356 if test "${ac_cv_prog_PERL+set}" = set; then :
24357 $as_echo_n "(cached) " >&6
24358 else
24359 if test -n "$PERL"; then
24360 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24361 else
24362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24363 for as_dir in $PATH
24365 IFS=$as_save_IFS
24366 test -z "$as_dir" && as_dir=.
24367 for ac_exec_ext in '' $ac_executable_extensions; do
24368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24369 ac_cv_prog_PERL="$ac_prog"
24370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24371 break 2
24373 done
24374 done
24375 IFS=$as_save_IFS
24379 PERL=$ac_cv_prog_PERL
24380 if test -n "$PERL"; then
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24382 $as_echo "$PERL" >&6; }
24383 else
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24385 $as_echo "no" >&6; }
24389 test -n "$PERL" && break
24390 done
24391 test -n "$PERL" || PERL="false"
24394 SYSDEP_SOURCES=
24395 SIGNAL_HANDLER_AUX=
24397 case "${host}" in
24398 *-*-solaris2*)
24399 SIGNAL_HANDLER=include/posix-signal.h
24401 i?86-*-linux*)
24402 SIGNAL_HANDLER=include/i386-signal.h
24403 SIGNAL_HANDLER_AUX=include/x86_64-signal.h
24405 # ia64-*)
24406 # SYSDEP_SOURCES=sysdep/ia64.c
24407 # test -d sysdep || mkdir sysdep
24408 # ;;
24409 hppa*-*-linux*)
24410 SIGNAL_HANDLER=include/pa-signal.h
24412 hppa*-hp-hpux*)
24413 SIGNAL_HANDLER=include/hppa-signal.h
24415 ia64-*-linux*)
24416 SIGNAL_HANDLER=include/dwarf2-signal.h
24418 powerpc*-*-linux*)
24419 SIGNAL_HANDLER=include/powerpc-signal.h
24421 alpha*-*-linux*)
24422 SIGNAL_HANDLER=include/dwarf2-signal.h
24424 s390*-*-linux*)
24425 SIGNAL_HANDLER=include/s390-signal.h
24427 x86_64*-*-linux*)
24428 SIGNAL_HANDLER=include/x86_64-signal.h
24429 SIGNAL_HANDLER_AUX=include/i386-signal.h
24431 sparc*-*-linux*)
24432 SIGNAL_HANDLER=include/dwarf2-signal.h
24434 sh*-*-linux*)
24435 SIGNAL_HANDLER=include/sh-signal.h
24437 *mingw*)
24438 SIGNAL_HANDLER=include/win32-signal.h
24440 mips*-*-linux*)
24441 SIGNAL_HANDLER=include/mips-signal.h
24443 m68*-*-linux*)
24444 SIGNAL_HANDLER=include/dwarf2-signal.h
24446 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24447 SIGNAL_HANDLER=include/darwin-signal.h
24449 powerpc*-*-aix*)
24450 SIGNAL_HANDLER=include/aix-signal.h
24453 SIGNAL_HANDLER=include/default-signal.h
24455 esac
24457 # If we're using sjlj exceptions, forget what we just learned.
24458 if test "$enable_sjlj_exceptions" = yes; then
24459 SIGNAL_HANDLER=include/default-signal.h
24460 SIGNAL_HANDLER_AUX=
24465 if test -z "$SIGNAL_HANDLER_AUX"; then
24466 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24469 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24472 if test "${multilib}" = "yes"; then
24473 multilib_arg="--enable-multilib"
24474 else
24475 multilib_arg=
24478 # See if we support thread-local storage.
24481 # Check whether --enable-tls was given.
24482 if test "${enable_tls+set}" = set; then :
24483 enableval=$enable_tls;
24484 case "$enableval" in
24485 yes|no) ;;
24486 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24487 esac
24489 else
24490 enable_tls=yes
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24495 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24496 if test "${gcc_cv_have_tls+set}" = set; then :
24497 $as_echo_n "(cached) " >&6
24498 else
24500 if test "$cross_compiling" = yes; then :
24501 if test x$gcc_no_link = xyes; then
24502 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24505 /* end confdefs.h. */
24506 __thread int a; int b; int main() { return a = b; }
24507 _ACEOF
24508 if ac_fn_c_try_link "$LINENO"; then :
24509 chktls_save_LDFLAGS="$LDFLAGS"
24510 case $host in
24511 *-*-linux*)
24512 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24514 esac
24515 chktls_save_CFLAGS="$CFLAGS"
24516 CFLAGS="-fPIC $CFLAGS"
24517 if test x$gcc_no_link = xyes; then
24518 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24521 /* end confdefs.h. */
24522 int f() { return 0; }
24523 _ACEOF
24524 if ac_fn_c_try_link "$LINENO"; then :
24525 if test x$gcc_no_link = xyes; then
24526 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24529 /* end confdefs.h. */
24530 __thread int a; int b; int f() { return a = b; }
24531 _ACEOF
24532 if ac_fn_c_try_link "$LINENO"; then :
24533 gcc_cv_have_tls=yes
24534 else
24535 gcc_cv_have_tls=no
24537 rm -f core conftest.err conftest.$ac_objext \
24538 conftest$ac_exeext conftest.$ac_ext
24539 else
24540 gcc_cv_have_tls=yes
24542 rm -f core conftest.err conftest.$ac_objext \
24543 conftest$ac_exeext conftest.$ac_ext
24544 CFLAGS="$chktls_save_CFLAGS"
24545 LDFLAGS="$chktls_save_LDFLAGS"
24546 else
24547 gcc_cv_have_tls=no
24549 rm -f core conftest.err conftest.$ac_objext \
24550 conftest$ac_exeext conftest.$ac_ext
24553 else
24554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24555 /* end confdefs.h. */
24556 __thread int a; int b; int main() { return a = b; }
24557 _ACEOF
24558 if ac_fn_c_try_run "$LINENO"; then :
24559 chktls_save_LDFLAGS="$LDFLAGS"
24560 LDFLAGS="-static $LDFLAGS"
24561 if test x$gcc_no_link = xyes; then
24562 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24565 /* end confdefs.h. */
24566 int main() { return 0; }
24567 _ACEOF
24568 if ac_fn_c_try_link "$LINENO"; then :
24569 if test "$cross_compiling" = yes; then :
24570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24572 as_fn_error "cannot run test program while cross compiling
24573 See \`config.log' for more details." "$LINENO" 5; }
24574 else
24575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24576 /* end confdefs.h. */
24577 __thread int a; int b; int main() { return a = b; }
24578 _ACEOF
24579 if ac_fn_c_try_run "$LINENO"; then :
24580 gcc_cv_have_tls=yes
24581 else
24582 gcc_cv_have_tls=no
24584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24585 conftest.$ac_objext conftest.beam conftest.$ac_ext
24588 else
24589 gcc_cv_have_tls=yes
24591 rm -f core conftest.err conftest.$ac_objext \
24592 conftest$ac_exeext conftest.$ac_ext
24593 LDFLAGS="$chktls_save_LDFLAGS"
24594 if test $gcc_cv_have_tls = yes; then
24595 chktls_save_CFLAGS="$CFLAGS"
24596 thread_CFLAGS=failed
24597 for flag in '' '-pthread' '-lpthread'; do
24598 CFLAGS="$flag $chktls_save_CFLAGS"
24599 if test x$gcc_no_link = xyes; then
24600 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24603 /* end confdefs.h. */
24604 #include <pthread.h>
24605 void *g(void *d) { return NULL; }
24607 main ()
24609 pthread_t t; pthread_create(&t,NULL,g,NULL);
24611 return 0;
24613 _ACEOF
24614 if ac_fn_c_try_link "$LINENO"; then :
24615 thread_CFLAGS="$flag"
24617 rm -f core conftest.err conftest.$ac_objext \
24618 conftest$ac_exeext conftest.$ac_ext
24619 if test "X$thread_CFLAGS" != Xfailed; then
24620 break
24622 done
24623 CFLAGS="$chktls_save_CFLAGS"
24624 if test "X$thread_CFLAGS" != Xfailed; then
24625 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24626 if test "$cross_compiling" = yes; then :
24627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24629 as_fn_error "cannot run test program while cross compiling
24630 See \`config.log' for more details." "$LINENO" 5; }
24631 else
24632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24633 /* end confdefs.h. */
24634 #include <pthread.h>
24635 __thread int a;
24636 static int *volatile a_in_other_thread;
24637 static void *
24638 thread_func (void *arg)
24640 a_in_other_thread = &a;
24641 return (void *)0;
24644 main ()
24646 pthread_t thread;
24647 void *thread_retval;
24648 int *volatile a_in_main_thread;
24649 a_in_main_thread = &a;
24650 if (pthread_create (&thread, (pthread_attr_t *)0,
24651 thread_func, (void *)0))
24652 return 0;
24653 if (pthread_join (thread, &thread_retval))
24654 return 0;
24655 return (a_in_other_thread == a_in_main_thread);
24657 return 0;
24659 _ACEOF
24660 if ac_fn_c_try_run "$LINENO"; then :
24661 gcc_cv_have_tls=yes
24662 else
24663 gcc_cv_have_tls=no
24665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24666 conftest.$ac_objext conftest.beam conftest.$ac_ext
24669 CFLAGS="$chktls_save_CFLAGS"
24672 else
24673 gcc_cv_have_tls=no
24675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24676 conftest.$ac_objext conftest.beam conftest.$ac_ext
24680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24681 $as_echo "$gcc_cv_have_tls" >&6; }
24682 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24684 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24688 # For _Unwind_GetIPInfo.
24691 # Check whether --with-system-libunwind was given.
24692 if test "${with_system_libunwind+set}" = set; then :
24693 withval=$with_system_libunwind;
24696 # If system-libunwind was not specifically set, pick a default setting.
24697 if test x$with_system_libunwind = x; then
24698 case ${target} in
24699 ia64-*-hpux*) with_system_libunwind=yes ;;
24700 *) with_system_libunwind=no ;;
24701 esac
24703 # Based on system-libunwind and target, do we have ipinfo?
24704 if test x$with_system_libunwind = xyes; then
24705 case ${target} in
24706 ia64-*-*) have_unwind_getipinfo=no ;;
24707 *) have_unwind_getipinfo=yes ;;
24708 esac
24709 else
24710 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24712 case ${target} in
24713 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24714 *) have_unwind_getipinfo=yes ;;
24715 esac
24719 if test x$have_unwind_getipinfo = xyes; then
24721 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24726 # See if linker supports anonymous version scripts.
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24728 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24729 if test "${libjava_cv_anon_version_script+set}" = set; then :
24730 $as_echo_n "(cached) " >&6
24731 else
24732 # Check whether --enable-symvers was given.
24733 if test "${enable_symvers+set}" = set; then :
24734 enableval=$enable_symvers; case "$enableval" in
24735 yes|gnu*) libjava_cv_anon_version_script=yes ;;
24736 no) libjava_cv_anon_version_script=no ;;
24737 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5;;
24738 esac
24739 else
24740 libjava_cv_anon_version_script=yes
24744 if test x$libjava_cv_anon_version_script = xyes; then
24745 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24746 CFLAGS="$CFLAGS -fPIC";
24747 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24748 echo '{ global: globalsymb*; local: *; };' > conftest.map
24749 if test x$gcc_no_link = xyes; then
24750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24753 /* end confdefs.h. */
24754 void globalsymbol (void) {} void localsymbol (void) {}
24756 main ()
24760 return 0;
24762 _ACEOF
24763 if ac_fn_c_try_link "$LINENO"; then :
24764 libjava_cv_anon_version_script=gnu
24765 else
24766 libjava_cv_anon_version_script=no
24768 rm -f core conftest.err conftest.$ac_objext \
24769 conftest$ac_exeext conftest.$ac_ext
24770 if test x$libjava_cv_anon_version_script = xno; then
24771 case "$target_os" in
24772 solaris2*)
24773 LDFLAGS="$save_LDFLAGS"
24774 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24775 # Sun ld doesn't understand wildcards here.
24776 echo '{ global: globalsymbol; local: *; };' > conftest.map
24777 if test x$gcc_no_link = xyes; then
24778 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24781 /* end confdefs.h. */
24782 void globalsymbol (void) {} void localsymbol (void) {}
24784 main ()
24788 return 0;
24790 _ACEOF
24791 if ac_fn_c_try_link "$LINENO"; then :
24792 libjava_cv_anon_version_script=sun
24794 rm -f core conftest.err conftest.$ac_objext \
24795 conftest$ac_exeext conftest.$ac_ext
24797 esac
24799 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24804 $as_echo "$libjava_cv_anon_version_script" >&6; }
24805 if test "$libjava_cv_anon_version_script" != no; then
24806 ANONVERSCRIPT_TRUE=
24807 ANONVERSCRIPT_FALSE='#'
24808 else
24809 ANONVERSCRIPT_TRUE='#'
24810 ANONVERSCRIPT_FALSE=
24813 if test "$libjava_cv_anon_version_script" = gnu; then
24814 ANONVERSCRIPT_GNU_TRUE=
24815 ANONVERSCRIPT_GNU_FALSE='#'
24816 else
24817 ANONVERSCRIPT_GNU_TRUE='#'
24818 ANONVERSCRIPT_GNU_FALSE=
24821 if test "$libjava_cv_anon_version_script" = sun; then
24822 ANONVERSCRIPT_SUN_TRUE=
24823 ANONVERSCRIPT_SUN_FALSE='#'
24824 else
24825 ANONVERSCRIPT_SUN_TRUE='#'
24826 ANONVERSCRIPT_SUN_FALSE=
24830 # Check if linker supports static linking on a per library basis
24831 LD_START_STATIC_SPEC=
24832 LD_FINISH_STATIC_SPEC=
24833 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24834 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24835 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24836 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24842 here=`${PWDCMD-pwd}`
24845 # We get this from the environment.
24848 default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
24850 # Check whether --with-python-dir was given.
24851 if test "${with_python_dir+set}" = set; then :
24852 withval=$with_python_dir; with_python_dir=$withval
24853 else
24854 with_python_dir="${default_python_dir}"
24858 # Needed for installing Python modules during make install.
24859 python_mod_dir="\${prefix}${with_python_dir}"
24861 # Needed for substituting into aot-compile*
24862 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24865 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24869 # needed for aot-compile-rpm
24870 MAKE=`which make`
24873 # Check whether --enable-aot-compile-rpm was given.
24874 if test "${enable_aot_compile_rpm+set}" = set; then :
24875 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24876 yes) AOT_RPM_ENABLED=yes ;;
24877 no) AOT_RPM_ENABLED=no ;;
24878 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24879 esac
24880 else
24881 AOT_RPM_ENABLED=no
24885 if test "x${AOT_RPM_ENABLED}" = xyes; then
24886 INSTALL_AOT_RPM_TRUE=
24887 INSTALL_AOT_RPM_FALSE='#'
24888 else
24889 INSTALL_AOT_RPM_TRUE='#'
24890 INSTALL_AOT_RPM_FALSE=
24894 # Check whether --enable-java-home was given.
24895 if test "${enable_java_home+set}" = set; then :
24896 enableval=$enable_java_home; case "${enableval}" in
24897 yes) JAVA_HOME_ENABLED=yes ;;
24898 no) JAVA_HOME_ENABLED=no ;;
24899 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24900 esac
24901 else
24902 JAVA_HOME_ENABLED=no
24906 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24907 CREATE_JAVA_HOME_TRUE=
24908 CREATE_JAVA_HOME_FALSE='#'
24909 else
24910 CREATE_JAVA_HOME_TRUE='#'
24911 CREATE_JAVA_HOME_FALSE=
24915 # Only do these checks if java-home above is enabled.
24916 if test "x${JAVA_HOME_ENABLED}" = xyes
24917 then
24920 # Check whether --with-gcc-suffix was given.
24921 if test "${with_gcc_suffix+set}" = set; then :
24922 withval=$with_gcc_suffix; gcc_suffix=$withval
24923 else
24924 gcc_suffix=""
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24928 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24932 # Check whether --with-arch-directory was given.
24933 if test "${with_arch_directory+set}" = set; then :
24934 withval=$with_arch_directory; host_cpu=$withval
24935 else
24936 host_cpu=""
24941 # Check whether --with-os-directory was given.
24942 if test "${with_os_directory+set}" = set; then :
24943 withval=$with_os_directory; host_os=$withval
24944 else
24945 host_os=""
24950 # Check whether --with-origin-name was given.
24951 if test "${with_origin_name+set}" = set; then :
24952 withval=$with_origin_name; origin_name=$withval
24953 else
24954 origin_name=gcj${gcc_suffix}
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24958 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24961 # Check whether --with-arch-suffix was given.
24962 if test "${with_arch_suffix+set}" = set; then :
24963 withval=$with_arch_suffix; arch_suffix=$withval
24964 else
24965 arch_suffix=""
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24969 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24972 # Check whether --with-jvm-root-dir was given.
24973 if test "${with_jvm_root_dir+set}" = set; then :
24974 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24975 else
24976 jvm_root_dir="\${prefix}/lib/jvm"
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24980 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24983 # Check whether --with-jvm-jar-dir was given.
24984 if test "${with_jvm_jar_dir+set}" = set; then :
24985 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24986 else
24987 jvm_jar_dir=\${prefix}/lib/jvm-exports
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24991 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24993 JAVA_VERSION=1.5.0
24994 BUILD_VERSION=0
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24998 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
25000 jre_dir=jre
25001 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
25002 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
25004 JVM_ROOT_DIR=${jvm_root_dir}
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
25007 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
25009 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
25012 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
25014 JVM_JAR_DIR=${jvm_jar_dir}
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
25017 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
25019 JRE_DIR=${jre_dir}
25022 JRE_LNK=${jre_lnk}
25025 SDK_LNK=${sdk_lnk}
25028 SDK_BIN_DIR=${jvm_root_dir}/bin
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
25031 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
25033 SDK_LIB_DIR=${jvm_root_dir}/lib
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
25036 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
25038 SDK_INCLUDE_DIR=${jvm_root_dir}/include
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
25041 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
25043 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
25046 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
25048 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
25051 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
25053 # Find gcj prefix using gcj found in PATH.
25054 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
25056 # Where do the gcj binaries live?
25057 # For jhbuild based builds, they all live in a sibling of bin called
25058 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
25059 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
25062 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
25065 $as_echo "host is ${host}" >&6; }
25066 if test "x${host_cpu}" = "x"
25067 then
25068 case ${host} in
25069 *-mingw* | *-cygwin*)
25070 host_cpu=x86;;
25071 i486-* | i586-* | i686-*)
25072 host_cpu=i386;;
25073 x86_64-*)
25074 host_cpu=amd64;;
25076 host_cpu=${host_cpu};;
25077 esac
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
25080 $as_echo "arch directory: ${host_cpu}" >&6; }
25081 CPU=${host_cpu}
25084 if test "x${host_os}" = "x"
25085 then
25086 case ${host} in
25087 *-mingw* | *-cygwin*)
25088 host_os=win32;;
25089 *-linux*)
25090 host_os=linux;;
25092 host_os=${host_os};;
25093 esac
25095 echo os directory: ${host_os}
25096 OS=${host_os}
25099 # make an expanded $libdir, for substituting into
25100 # scripts (and other non-Makefile things).
25101 LIBDIR=$libdir
25102 if test "x${exec_prefix}" = "xNONE"
25103 then
25104 lib_exec_prefix=$expanded_prefix
25105 else
25106 lib_exec_prefix=$exec_prefix
25108 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
25112 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile contrib/aotcompile.py contrib/aot-compile contrib/aot-compile-rpm contrib/generate-cacerts.pl contrib/rebuild-gcj-db"
25115 if test ${multilib} = yes; then
25116 multilib_arg="--enable-multilib"
25117 else
25118 multilib_arg=
25121 ac_config_files="$ac_config_files scripts/jar"
25123 cat >confcache <<\_ACEOF
25124 # This file is a shell script that caches the results of configure
25125 # tests run on this system so they can be shared between configure
25126 # scripts and configure runs, see configure's option --config-cache.
25127 # It is not useful on other systems. If it contains results you don't
25128 # want to keep, you may remove or edit it.
25130 # config.status only pays attention to the cache file if you give it
25131 # the --recheck option to rerun configure.
25133 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25134 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25135 # following values.
25137 _ACEOF
25139 # The following way of writing the cache mishandles newlines in values,
25140 # but we know of no workaround that is simple, portable, and efficient.
25141 # So, we kill variables containing newlines.
25142 # Ultrix sh set writes to stderr and can't be redirected directly,
25143 # and sets the high bit in the cache file unless we assign to the vars.
25145 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25146 eval ac_val=\$$ac_var
25147 case $ac_val in #(
25148 *${as_nl}*)
25149 case $ac_var in #(
25150 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25151 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25152 esac
25153 case $ac_var in #(
25154 _ | IFS | as_nl) ;; #(
25155 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25156 *) { eval $ac_var=; unset $ac_var;} ;;
25157 esac ;;
25158 esac
25159 done
25161 (set) 2>&1 |
25162 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25163 *${as_nl}ac_space=\ *)
25164 # `set' does not quote correctly, so add quotes: double-quote
25165 # substitution turns \\\\ into \\, and sed turns \\ into \.
25166 sed -n \
25167 "s/'/'\\\\''/g;
25168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25169 ;; #(
25171 # `set' quotes correctly as required by POSIX, so do not add quotes.
25172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25174 esac |
25175 sort
25177 sed '
25178 /^ac_cv_env_/b end
25179 t clear
25180 :clear
25181 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25182 t end
25183 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25184 :end' >>confcache
25185 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25186 if test -w "$cache_file"; then
25187 test "x$cache_file" != "x/dev/null" &&
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25189 $as_echo "$as_me: updating cache $cache_file" >&6;}
25190 cat confcache >$cache_file
25191 else
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25193 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25196 rm -f confcache
25198 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25199 # Let make expand exec_prefix.
25200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25202 DEFS=-DHAVE_CONFIG_H
25204 ac_libobjs=
25205 ac_ltlibobjs=
25206 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25207 # 1. Remove the extension, and $U if already installed.
25208 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25209 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25210 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25211 # will be set to the directory where LIBOBJS objects are built.
25212 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25213 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25214 done
25215 LIBOBJS=$ac_libobjs
25217 LTLIBOBJS=$ac_ltlibobjs
25220 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
25221 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25224 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
25225 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25228 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25229 as_fn_error "conditional \"AMDEP\" was never defined.
25230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25232 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25233 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25236 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25237 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25240 if test -n "$EXEEXT"; then
25241 am__EXEEXT_TRUE=
25242 am__EXEEXT_FALSE='#'
25243 else
25244 am__EXEEXT_TRUE='#'
25245 am__EXEEXT_FALSE=
25248 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25249 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25252 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25253 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25256 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25257 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25260 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25261 as_fn_error "conditional \"X_AWT\" was never defined.
25262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25264 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25265 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25268 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25269 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25272 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25273 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25276 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25277 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25280 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25281 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25284 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25285 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25288 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25289 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25292 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25293 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25296 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25297 as_fn_error "conditional \"INTERPRETER\" was never defined.
25298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25300 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25301 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25304 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25305 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25308 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25309 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25312 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25313 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25316 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25317 as_fn_error "conditional \"USING_NOGC\" was never defined.
25318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25320 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25321 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25324 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25325 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25328 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25329 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25332 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25333 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25336 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25337 as_fn_error "conditional \"USING_GCC\" was never defined.
25338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25340 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25341 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25345 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25346 as_fn_error "conditional \"NATIVE\" was never defined.
25347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25349 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25350 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25353 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25354 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25357 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25358 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25361 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25362 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25365 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25366 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25369 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25370 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25373 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25374 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25377 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25378 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25382 : ${CONFIG_STATUS=./config.status}
25383 ac_write_fail=0
25384 ac_clean_files_save=$ac_clean_files
25385 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25387 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25388 as_write_fail=0
25389 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25390 #! $SHELL
25391 # Generated by $as_me.
25392 # Run this file to recreate the current configuration.
25393 # Compiler output produced by configure, useful for debugging
25394 # configure, is in config.log if it exists.
25396 debug=false
25397 ac_cs_recheck=false
25398 ac_cs_silent=false
25400 SHELL=\${CONFIG_SHELL-$SHELL}
25401 export SHELL
25402 _ASEOF
25403 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25404 ## -------------------- ##
25405 ## M4sh Initialization. ##
25406 ## -------------------- ##
25408 # Be more Bourne compatible
25409 DUALCASE=1; export DUALCASE # for MKS sh
25410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25411 emulate sh
25412 NULLCMD=:
25413 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25414 # is contrary to our usage. Disable this feature.
25415 alias -g '${1+"$@"}'='"$@"'
25416 setopt NO_GLOB_SUBST
25417 else
25418 case `(set -o) 2>/dev/null` in #(
25419 *posix*) :
25420 set -o posix ;; #(
25421 *) :
25423 esac
25427 as_nl='
25429 export as_nl
25430 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25431 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25432 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25433 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25434 # Prefer a ksh shell builtin over an external printf program on Solaris,
25435 # but without wasting forks for bash or zsh.
25436 if test -z "$BASH_VERSION$ZSH_VERSION" \
25437 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25438 as_echo='print -r --'
25439 as_echo_n='print -rn --'
25440 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25441 as_echo='printf %s\n'
25442 as_echo_n='printf %s'
25443 else
25444 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25445 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25446 as_echo_n='/usr/ucb/echo -n'
25447 else
25448 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25449 as_echo_n_body='eval
25450 arg=$1;
25451 case $arg in #(
25452 *"$as_nl"*)
25453 expr "X$arg" : "X\\(.*\\)$as_nl";
25454 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25455 esac;
25456 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25458 export as_echo_n_body
25459 as_echo_n='sh -c $as_echo_n_body as_echo'
25461 export as_echo_body
25462 as_echo='sh -c $as_echo_body as_echo'
25465 # The user is always right.
25466 if test "${PATH_SEPARATOR+set}" != set; then
25467 PATH_SEPARATOR=:
25468 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25469 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25470 PATH_SEPARATOR=';'
25475 # IFS
25476 # We need space, tab and new line, in precisely that order. Quoting is
25477 # there to prevent editors from complaining about space-tab.
25478 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25479 # splitting by setting IFS to empty value.)
25480 IFS=" "" $as_nl"
25482 # Find who we are. Look in the path if we contain no directory separator.
25483 case $0 in #((
25484 *[\\/]* ) as_myself=$0 ;;
25485 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25486 for as_dir in $PATH
25488 IFS=$as_save_IFS
25489 test -z "$as_dir" && as_dir=.
25490 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25491 done
25492 IFS=$as_save_IFS
25495 esac
25496 # We did not find ourselves, most probably we were run as `sh COMMAND'
25497 # in which case we are not to be found in the path.
25498 if test "x$as_myself" = x; then
25499 as_myself=$0
25501 if test ! -f "$as_myself"; then
25502 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25503 exit 1
25506 # Unset variables that we do not need and which cause bugs (e.g. in
25507 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25508 # suppresses any "Segmentation fault" message there. '((' could
25509 # trigger a bug in pdksh 5.2.14.
25510 for as_var in BASH_ENV ENV MAIL MAILPATH
25511 do eval test x\${$as_var+set} = xset \
25512 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25513 done
25514 PS1='$ '
25515 PS2='> '
25516 PS4='+ '
25518 # NLS nuisances.
25519 LC_ALL=C
25520 export LC_ALL
25521 LANGUAGE=C
25522 export LANGUAGE
25524 # CDPATH.
25525 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25528 # as_fn_error ERROR [LINENO LOG_FD]
25529 # ---------------------------------
25530 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25531 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25532 # script with status $?, using 1 if that was 0.
25533 as_fn_error ()
25535 as_status=$?; test $as_status -eq 0 && as_status=1
25536 if test "$3"; then
25537 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25538 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25540 $as_echo "$as_me: error: $1" >&2
25541 as_fn_exit $as_status
25542 } # as_fn_error
25545 # as_fn_set_status STATUS
25546 # -----------------------
25547 # Set $? to STATUS, without forking.
25548 as_fn_set_status ()
25550 return $1
25551 } # as_fn_set_status
25553 # as_fn_exit STATUS
25554 # -----------------
25555 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25556 as_fn_exit ()
25558 set +e
25559 as_fn_set_status $1
25560 exit $1
25561 } # as_fn_exit
25563 # as_fn_unset VAR
25564 # ---------------
25565 # Portably unset VAR.
25566 as_fn_unset ()
25568 { eval $1=; unset $1;}
25570 as_unset=as_fn_unset
25571 # as_fn_append VAR VALUE
25572 # ----------------------
25573 # Append the text in VALUE to the end of the definition contained in VAR. Take
25574 # advantage of any shell optimizations that allow amortized linear growth over
25575 # repeated appends, instead of the typical quadratic growth present in naive
25576 # implementations.
25577 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25578 eval 'as_fn_append ()
25580 eval $1+=\$2
25582 else
25583 as_fn_append ()
25585 eval $1=\$$1\$2
25587 fi # as_fn_append
25589 # as_fn_arith ARG...
25590 # ------------------
25591 # Perform arithmetic evaluation on the ARGs, and store the result in the
25592 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25593 # must be portable across $(()) and expr.
25594 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25595 eval 'as_fn_arith ()
25597 as_val=$(( $* ))
25599 else
25600 as_fn_arith ()
25602 as_val=`expr "$@" || test $? -eq 1`
25604 fi # as_fn_arith
25607 if expr a : '\(a\)' >/dev/null 2>&1 &&
25608 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25609 as_expr=expr
25610 else
25611 as_expr=false
25614 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25615 as_basename=basename
25616 else
25617 as_basename=false
25620 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25621 as_dirname=dirname
25622 else
25623 as_dirname=false
25626 as_me=`$as_basename -- "$0" ||
25627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25628 X"$0" : 'X\(//\)$' \| \
25629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25630 $as_echo X/"$0" |
25631 sed '/^.*\/\([^/][^/]*\)\/*$/{
25632 s//\1/
25635 /^X\/\(\/\/\)$/{
25636 s//\1/
25639 /^X\/\(\/\).*/{
25640 s//\1/
25643 s/.*/./; q'`
25645 # Avoid depending upon Character Ranges.
25646 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25647 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25648 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25649 as_cr_digits='0123456789'
25650 as_cr_alnum=$as_cr_Letters$as_cr_digits
25652 ECHO_C= ECHO_N= ECHO_T=
25653 case `echo -n x` in #(((((
25654 -n*)
25655 case `echo 'xy\c'` in
25656 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25657 xy) ECHO_C='\c';;
25658 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25659 ECHO_T=' ';;
25660 esac;;
25662 ECHO_N='-n';;
25663 esac
25665 rm -f conf$$ conf$$.exe conf$$.file
25666 if test -d conf$$.dir; then
25667 rm -f conf$$.dir/conf$$.file
25668 else
25669 rm -f conf$$.dir
25670 mkdir conf$$.dir 2>/dev/null
25672 if (echo >conf$$.file) 2>/dev/null; then
25673 if ln -s conf$$.file conf$$ 2>/dev/null; then
25674 as_ln_s='ln -s'
25675 # ... but there are two gotchas:
25676 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25677 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25678 # In both cases, we have to default to `cp -p'.
25679 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25680 as_ln_s='cp -p'
25681 elif ln conf$$.file conf$$ 2>/dev/null; then
25682 as_ln_s=ln
25683 else
25684 as_ln_s='cp -p'
25686 else
25687 as_ln_s='cp -p'
25689 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25690 rmdir conf$$.dir 2>/dev/null
25693 # as_fn_mkdir_p
25694 # -------------
25695 # Create "$as_dir" as a directory, including parents if necessary.
25696 as_fn_mkdir_p ()
25699 case $as_dir in #(
25700 -*) as_dir=./$as_dir;;
25701 esac
25702 test -d "$as_dir" || eval $as_mkdir_p || {
25703 as_dirs=
25704 while :; do
25705 case $as_dir in #(
25706 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25707 *) as_qdir=$as_dir;;
25708 esac
25709 as_dirs="'$as_qdir' $as_dirs"
25710 as_dir=`$as_dirname -- "$as_dir" ||
25711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25712 X"$as_dir" : 'X\(//\)[^/]' \| \
25713 X"$as_dir" : 'X\(//\)$' \| \
25714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25715 $as_echo X"$as_dir" |
25716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25717 s//\1/
25720 /^X\(\/\/\)[^/].*/{
25721 s//\1/
25724 /^X\(\/\/\)$/{
25725 s//\1/
25728 /^X\(\/\).*/{
25729 s//\1/
25732 s/.*/./; q'`
25733 test -d "$as_dir" && break
25734 done
25735 test -z "$as_dirs" || eval "mkdir $as_dirs"
25736 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25739 } # as_fn_mkdir_p
25740 if mkdir -p . 2>/dev/null; then
25741 as_mkdir_p='mkdir -p "$as_dir"'
25742 else
25743 test -d ./-p && rmdir ./-p
25744 as_mkdir_p=false
25747 if test -x / >/dev/null 2>&1; then
25748 as_test_x='test -x'
25749 else
25750 if ls -dL / >/dev/null 2>&1; then
25751 as_ls_L_option=L
25752 else
25753 as_ls_L_option=
25755 as_test_x='
25756 eval sh -c '\''
25757 if test -d "$1"; then
25758 test -d "$1/.";
25759 else
25760 case $1 in #(
25761 -*)set "./$1";;
25762 esac;
25763 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25764 ???[sx]*):;;*)false;;esac;fi
25765 '\'' sh
25768 as_executable_p=$as_test_x
25770 # Sed expression to map a string onto a valid CPP name.
25771 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25773 # Sed expression to map a string onto a valid variable name.
25774 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25777 exec 6>&1
25778 ## ----------------------------------- ##
25779 ## Main body of $CONFIG_STATUS script. ##
25780 ## ----------------------------------- ##
25781 _ASEOF
25782 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25785 # Save the log message, to keep $0 and so on meaningful, and to
25786 # report actual input values of CONFIG_FILES etc. instead of their
25787 # values after options handling.
25788 ac_log="
25789 This file was extended by libjava $as_me version-unused, which was
25790 generated by GNU Autoconf 2.64. Invocation command line was
25792 CONFIG_FILES = $CONFIG_FILES
25793 CONFIG_HEADERS = $CONFIG_HEADERS
25794 CONFIG_LINKS = $CONFIG_LINKS
25795 CONFIG_COMMANDS = $CONFIG_COMMANDS
25796 $ $0 $@
25798 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25801 _ACEOF
25803 case $ac_config_files in *"
25804 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25805 esac
25807 case $ac_config_headers in *"
25808 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25809 esac
25812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25813 # Files that config.status was made for.
25814 config_files="$ac_config_files"
25815 config_headers="$ac_config_headers"
25816 config_links="$ac_config_links"
25817 config_commands="$ac_config_commands"
25819 _ACEOF
25821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25822 ac_cs_usage="\
25823 \`$as_me' instantiates files and other configuration actions
25824 from templates according to the current configuration. Unless the files
25825 and actions are specified as TAGs, all are instantiated by default.
25827 Usage: $0 [OPTION]... [TAG]...
25829 -h, --help print this help, then exit
25830 -V, --version print version number and configuration settings, then exit
25831 -q, --quiet, --silent
25832 do not print progress messages
25833 -d, --debug don't remove temporary files
25834 --recheck update $as_me by reconfiguring in the same conditions
25835 --file=FILE[:TEMPLATE]
25836 instantiate the configuration file FILE
25837 --header=FILE[:TEMPLATE]
25838 instantiate the configuration header FILE
25840 Configuration files:
25841 $config_files
25843 Configuration headers:
25844 $config_headers
25846 Configuration links:
25847 $config_links
25849 Configuration commands:
25850 $config_commands
25852 Report bugs to the package provider."
25854 _ACEOF
25855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25856 ac_cs_version="\\
25857 libjava config.status version-unused
25858 configured by $0, generated by GNU Autoconf 2.64,
25859 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25861 Copyright (C) 2009 Free Software Foundation, Inc.
25862 This config.status script is free software; the Free Software Foundation
25863 gives unlimited permission to copy, distribute and modify it."
25865 ac_pwd='$ac_pwd'
25866 srcdir='$srcdir'
25867 INSTALL='$INSTALL'
25868 MKDIR_P='$MKDIR_P'
25869 AWK='$AWK'
25870 test -n "\$AWK" || AWK=awk
25871 _ACEOF
25873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25874 # The default lists apply if the user does not specify any file.
25875 ac_need_defaults=:
25876 while test $# != 0
25878 case $1 in
25879 --*=*)
25880 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25881 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25882 ac_shift=:
25885 ac_option=$1
25886 ac_optarg=$2
25887 ac_shift=shift
25889 esac
25891 case $ac_option in
25892 # Handling of the options.
25893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25894 ac_cs_recheck=: ;;
25895 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25896 $as_echo "$ac_cs_version"; exit ;;
25897 --debug | --debu | --deb | --de | --d | -d )
25898 debug=: ;;
25899 --file | --fil | --fi | --f )
25900 $ac_shift
25901 case $ac_optarg in
25902 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25903 esac
25904 as_fn_append CONFIG_FILES " '$ac_optarg'"
25905 ac_need_defaults=false;;
25906 --header | --heade | --head | --hea )
25907 $ac_shift
25908 case $ac_optarg in
25909 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25910 esac
25911 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25912 ac_need_defaults=false;;
25913 --he | --h)
25914 # Conflict between --help and --header
25915 as_fn_error "ambiguous option: \`$1'
25916 Try \`$0 --help' for more information.";;
25917 --help | --hel | -h )
25918 $as_echo "$ac_cs_usage"; exit ;;
25919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25920 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25921 ac_cs_silent=: ;;
25923 # This is an error.
25924 -*) as_fn_error "unrecognized option: \`$1'
25925 Try \`$0 --help' for more information." ;;
25927 *) as_fn_append ac_config_targets " $1"
25928 ac_need_defaults=false ;;
25930 esac
25931 shift
25932 done
25934 ac_configure_extra_args=
25936 if $ac_cs_silent; then
25937 exec 6>/dev/null
25938 ac_configure_extra_args="$ac_configure_extra_args --silent"
25941 _ACEOF
25942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25943 if \$ac_cs_recheck; then
25944 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25945 shift
25946 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25947 CONFIG_SHELL='$SHELL'
25948 export CONFIG_SHELL
25949 exec "\$@"
25952 _ACEOF
25953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25954 exec 5>>config.log
25956 echo
25957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25958 ## Running $as_me. ##
25959 _ASBOX
25960 $as_echo "$ac_log"
25961 } >&5
25963 _ACEOF
25964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25966 # INIT-COMMANDS
25969 srcdir="$srcdir"
25970 host="$host"
25971 target="$target"
25972 with_multisubdir="$with_multisubdir"
25973 with_multisrctop="$with_multisrctop"
25974 with_target_subdir="$with_target_subdir"
25975 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25976 multi_basedir="$multi_basedir"
25977 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25978 CC="$CC"
25979 CXX="$CXX"
25980 GFORTRAN="$GFORTRAN"
25981 GCJ="$GCJ"
25982 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25985 # The HP-UX ksh and POSIX shell print the target directory to stdout
25986 # if CDPATH is set.
25987 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25989 sed_quote_subst='$sed_quote_subst'
25990 double_quote_subst='$double_quote_subst'
25991 delay_variable_subst='$delay_variable_subst'
25992 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25993 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25994 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25995 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25996 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25997 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25998 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25999 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26000 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26001 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26002 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26003 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26004 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26005 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26006 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26007 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26008 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26009 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26010 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26011 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26012 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26013 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26014 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26015 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26016 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26017 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26018 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26019 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26020 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26021 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26022 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26023 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26024 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26025 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26026 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26027 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26028 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26029 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26030 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26031 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26032 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26033 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26034 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26035 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26036 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26037 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26038 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26039 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26040 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
26041 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26042 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26043 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26044 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26045 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26046 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26047 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26048 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26049 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26050 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26051 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26052 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26053 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26054 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26055 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26056 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26057 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26058 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26059 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26060 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26061 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26062 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26063 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26064 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26065 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26066 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26067 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26068 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26069 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26070 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26071 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26072 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26073 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26074 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26075 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26076 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26077 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26078 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26079 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26080 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26081 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
26082 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26083 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26084 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26085 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26086 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26087 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26088 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26089 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26090 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26091 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26092 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26093 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26094 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26095 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26096 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26097 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26098 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26099 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26100 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26101 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26102 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26103 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26104 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26105 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26106 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26107 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26108 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26109 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26110 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26111 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26112 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26113 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26114 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26115 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26116 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26117 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26118 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26119 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
26120 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26121 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26122 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26123 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26124 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26125 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26126 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26127 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
26128 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26129 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
26130 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26131 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26132 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26133 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
26134 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26135 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
26136 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26137 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
26138 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26139 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
26140 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26141 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
26142 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26143 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
26144 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26145 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26146 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26147 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26148 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26149 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
26150 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26151 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26152 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26153 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26154 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26155 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26156 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26157 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26158 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26159 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26160 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26161 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26162 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26163 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
26164 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26165 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26166 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26167 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26168 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26169 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26170 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
26171 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
26172 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26173 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
26174 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26175 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
26176 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26177 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
26178 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26179 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
26180 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26181 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
26182 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26183 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
26184 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26185 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
26186 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26187 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
26188 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
26189 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
26190 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26191 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
26192 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26193 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26194 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26195 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26196 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26197 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26198 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26199 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26200 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26201 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26202 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26203 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
26204 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26205 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
26206 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26207 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26208 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26209 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26210 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26211 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
26212 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26213 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
26214 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26215 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
26217 LTCC='$LTCC'
26218 LTCFLAGS='$LTCFLAGS'
26219 compiler='$compiler_DEFAULT'
26221 # A function that is used when there is no print builtin or printf.
26222 func_fallback_echo ()
26224 eval 'cat <<_LTECHO_EOF
26226 _LTECHO_EOF'
26229 # Quote evaled strings.
26230 for var in SHELL \
26231 ECHO \
26232 SED \
26233 GREP \
26234 EGREP \
26235 FGREP \
26236 LD \
26237 NM \
26238 LN_S \
26239 lt_SP2NL \
26240 lt_NL2SP \
26241 reload_flag \
26242 OBJDUMP \
26243 deplibs_check_method \
26244 file_magic_cmd \
26245 AR \
26246 AR_FLAGS \
26247 STRIP \
26248 RANLIB \
26249 CC \
26250 CFLAGS \
26251 compiler \
26252 lt_cv_sys_global_symbol_pipe \
26253 lt_cv_sys_global_symbol_to_cdecl \
26254 lt_cv_sys_global_symbol_to_c_name_address \
26255 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26256 lt_prog_compiler_no_builtin_flag \
26257 lt_prog_compiler_wl \
26258 lt_prog_compiler_pic \
26259 lt_prog_compiler_static \
26260 lt_cv_prog_compiler_c_o \
26261 need_locks \
26262 DSYMUTIL \
26263 NMEDIT \
26264 LIPO \
26265 OTOOL \
26266 OTOOL64 \
26267 shrext_cmds \
26268 export_dynamic_flag_spec \
26269 whole_archive_flag_spec \
26270 compiler_needs_object \
26271 with_gnu_ld \
26272 allow_undefined_flag \
26273 no_undefined_flag \
26274 hardcode_libdir_flag_spec \
26275 hardcode_libdir_flag_spec_ld \
26276 hardcode_libdir_separator \
26277 fix_srcfile_path \
26278 exclude_expsyms \
26279 include_expsyms \
26280 file_list_spec \
26281 variables_saved_for_relink \
26282 libname_spec \
26283 library_names_spec \
26284 soname_spec \
26285 install_override_mode \
26286 finish_eval \
26287 old_striplib \
26288 striplib \
26289 compiler_lib_search_dirs \
26290 predep_objects \
26291 postdep_objects \
26292 predeps \
26293 postdeps \
26294 compiler_lib_search_path \
26295 LD_CXX \
26296 LD_GCJ \
26297 reload_flag_CXX \
26298 reload_flag_GCJ \
26299 compiler_CXX \
26300 compiler_GCJ \
26301 lt_prog_compiler_no_builtin_flag_CXX \
26302 lt_prog_compiler_no_builtin_flag_GCJ \
26303 lt_prog_compiler_wl_CXX \
26304 lt_prog_compiler_wl_GCJ \
26305 lt_prog_compiler_pic_CXX \
26306 lt_prog_compiler_pic_GCJ \
26307 lt_prog_compiler_static_CXX \
26308 lt_prog_compiler_static_GCJ \
26309 lt_cv_prog_compiler_c_o_CXX \
26310 lt_cv_prog_compiler_c_o_GCJ \
26311 export_dynamic_flag_spec_CXX \
26312 export_dynamic_flag_spec_GCJ \
26313 whole_archive_flag_spec_CXX \
26314 whole_archive_flag_spec_GCJ \
26315 compiler_needs_object_CXX \
26316 compiler_needs_object_GCJ \
26317 with_gnu_ld_CXX \
26318 with_gnu_ld_GCJ \
26319 allow_undefined_flag_CXX \
26320 allow_undefined_flag_GCJ \
26321 no_undefined_flag_CXX \
26322 no_undefined_flag_GCJ \
26323 hardcode_libdir_flag_spec_CXX \
26324 hardcode_libdir_flag_spec_GCJ \
26325 hardcode_libdir_flag_spec_ld_CXX \
26326 hardcode_libdir_flag_spec_ld_GCJ \
26327 hardcode_libdir_separator_CXX \
26328 hardcode_libdir_separator_GCJ \
26329 fix_srcfile_path_CXX \
26330 fix_srcfile_path_GCJ \
26331 exclude_expsyms_CXX \
26332 exclude_expsyms_GCJ \
26333 include_expsyms_CXX \
26334 include_expsyms_GCJ \
26335 file_list_spec_CXX \
26336 file_list_spec_GCJ \
26337 compiler_lib_search_dirs_CXX \
26338 compiler_lib_search_dirs_GCJ \
26339 predep_objects_CXX \
26340 predep_objects_GCJ \
26341 postdep_objects_CXX \
26342 postdep_objects_GCJ \
26343 predeps_CXX \
26344 predeps_GCJ \
26345 postdeps_CXX \
26346 postdeps_GCJ \
26347 compiler_lib_search_path_CXX \
26348 compiler_lib_search_path_GCJ; do
26349 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26350 *[\\\\\\\`\\"\\\$]*)
26351 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26354 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26356 esac
26357 done
26359 # Double-quote double-evaled strings.
26360 for var in reload_cmds \
26361 old_postinstall_cmds \
26362 old_postuninstall_cmds \
26363 old_archive_cmds \
26364 extract_expsyms_cmds \
26365 old_archive_from_new_cmds \
26366 old_archive_from_expsyms_cmds \
26367 archive_cmds \
26368 archive_expsym_cmds \
26369 module_cmds \
26370 module_expsym_cmds \
26371 export_symbols_cmds \
26372 prelink_cmds \
26373 postinstall_cmds \
26374 postuninstall_cmds \
26375 finish_cmds \
26376 sys_lib_search_path_spec \
26377 sys_lib_dlsearch_path_spec \
26378 reload_cmds_CXX \
26379 reload_cmds_GCJ \
26380 old_archive_cmds_CXX \
26381 old_archive_cmds_GCJ \
26382 old_archive_from_new_cmds_CXX \
26383 old_archive_from_new_cmds_GCJ \
26384 old_archive_from_expsyms_cmds_CXX \
26385 old_archive_from_expsyms_cmds_GCJ \
26386 archive_cmds_CXX \
26387 archive_cmds_GCJ \
26388 archive_expsym_cmds_CXX \
26389 archive_expsym_cmds_GCJ \
26390 module_cmds_CXX \
26391 module_cmds_GCJ \
26392 module_expsym_cmds_CXX \
26393 module_expsym_cmds_GCJ \
26394 export_symbols_cmds_CXX \
26395 export_symbols_cmds_GCJ \
26396 prelink_cmds_CXX \
26397 prelink_cmds_GCJ; do
26398 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26399 *[\\\\\\\`\\"\\\$]*)
26400 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26403 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26405 esac
26406 done
26408 ac_aux_dir='$ac_aux_dir'
26409 xsi_shell='$xsi_shell'
26410 lt_shell_append='$lt_shell_append'
26412 # See if we are running on zsh, and set the options which allow our
26413 # commands through without removal of \ escapes INIT.
26414 if test -n "\${ZSH_VERSION+set}" ; then
26415 setopt NO_GLOB_SUBST
26419 PACKAGE='$PACKAGE'
26420 VERSION='$VERSION'
26421 TIMESTAMP='$TIMESTAMP'
26422 RM='$RM'
26423 ofile='$ofile'
26432 _ACEOF
26434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26436 # Handling of arguments.
26437 for ac_config_target in $ac_config_targets
26439 case $ac_config_target in
26440 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26441 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26442 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26443 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26444 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26445 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26446 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26447 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26448 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26449 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26450 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26451 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26452 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26453 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26454 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26455 "gnu/java/security/jce/prng/natVMSecureRandom.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc" ;;
26456 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26457 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26458 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26459 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26460 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26461 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26462 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26463 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26464 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26465 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26466 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26467 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26468 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26469 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26470 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26471 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26472 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26473 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26474 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26475 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26477 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26478 esac
26479 done
26482 # If the user did not use the arguments to specify the items to instantiate,
26483 # then the envvar interface is used. Set only those that are not.
26484 # We use the long form for the default assignment because of an extremely
26485 # bizarre bug on SunOS 4.1.3.
26486 if $ac_need_defaults; then
26487 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26488 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26489 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26493 # Have a temporary directory for convenience. Make it in the build tree
26494 # simply because there is no reason against having it here, and in addition,
26495 # creating and moving files from /tmp can sometimes cause problems.
26496 # Hook for its removal unless debugging.
26497 # Note that there is a small window in which the directory will not be cleaned:
26498 # after its creation but before its name has been assigned to `$tmp'.
26499 $debug ||
26501 tmp=
26502 trap 'exit_status=$?
26503 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26505 trap 'as_fn_exit 1' 1 2 13 15
26507 # Create a (secure) tmp directory for tmp files.
26510 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26511 test -n "$tmp" && test -d "$tmp"
26512 } ||
26514 tmp=./conf$$-$RANDOM
26515 (umask 077 && mkdir "$tmp")
26516 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26518 # Set up the scripts for CONFIG_FILES section.
26519 # No need to generate them if there are no CONFIG_FILES.
26520 # This happens for instance with `./config.status config.h'.
26521 if test -n "$CONFIG_FILES"; then
26524 ac_cr=`echo X | tr X '\015'`
26525 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26526 # But we know of no other shell where ac_cr would be empty at this
26527 # point, so we can use a bashism as a fallback.
26528 if test "x$ac_cr" = x; then
26529 eval ac_cr=\$\'\\r\'
26531 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26532 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26533 ac_cs_awk_cr='\r'
26534 else
26535 ac_cs_awk_cr=$ac_cr
26538 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26539 _ACEOF
26543 echo "cat >conf$$subs.awk <<_ACEOF" &&
26544 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26545 echo "_ACEOF"
26546 } >conf$$subs.sh ||
26547 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26548 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26549 ac_delim='%!_!# '
26550 for ac_last_try in false false false false false :; do
26551 . ./conf$$subs.sh ||
26552 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26554 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26555 if test $ac_delim_n = $ac_delim_num; then
26556 break
26557 elif $ac_last_try; then
26558 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26559 else
26560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26562 done
26563 rm -f conf$$subs.sh
26565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26566 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26567 _ACEOF
26568 sed -n '
26570 s/^/S["/; s/!.*/"]=/
26573 s/^[^!]*!//
26574 :repl
26575 t repl
26576 s/'"$ac_delim"'$//
26577 t delim
26580 s/\(.\{148\}\).*/\1/
26581 t more1
26582 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26585 b repl
26586 :more1
26587 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26590 s/.\{148\}//
26591 t nl
26592 :delim
26594 s/\(.\{148\}\).*/\1/
26595 t more2
26596 s/["\\]/\\&/g; s/^/"/; s/$/"/
26599 :more2
26600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26603 s/.\{148\}//
26604 t delim
26605 ' <conf$$subs.awk | sed '
26606 /^[^""]/{
26608 s/\n//
26610 ' >>$CONFIG_STATUS || ac_write_fail=1
26611 rm -f conf$$subs.awk
26612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26613 _ACAWK
26614 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26615 for (key in S) S_is_set[key] = 1
26616 FS = "\a"
26620 line = $ 0
26621 nfields = split(line, field, "@")
26622 substed = 0
26623 len = length(field[1])
26624 for (i = 2; i < nfields; i++) {
26625 key = field[i]
26626 keylen = length(key)
26627 if (S_is_set[key]) {
26628 value = S[key]
26629 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26630 len += length(value) + length(field[++i])
26631 substed = 1
26632 } else
26633 len += 1 + keylen
26636 print line
26639 _ACAWK
26640 _ACEOF
26641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26642 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26643 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26644 else
26646 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26647 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26648 _ACEOF
26650 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26651 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26652 # trailing colons and then remove the whole line if VPATH becomes empty
26653 # (actually we leave an empty line to preserve line numbers).
26654 if test "x$srcdir" = x.; then
26655 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26656 s/:*\$(srcdir):*/:/
26657 s/:*\${srcdir}:*/:/
26658 s/:*@srcdir@:*/:/
26659 s/^\([^=]*=[ ]*\):*/\1/
26660 s/:*$//
26661 s/^[^=]*=[ ]*$//
26665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26666 fi # test -n "$CONFIG_FILES"
26668 # Set up the scripts for CONFIG_HEADERS section.
26669 # No need to generate them if there are no CONFIG_HEADERS.
26670 # This happens for instance with `./config.status Makefile'.
26671 if test -n "$CONFIG_HEADERS"; then
26672 cat >"$tmp/defines.awk" <<\_ACAWK ||
26673 BEGIN {
26674 _ACEOF
26676 # Transform confdefs.h into an awk script `defines.awk', embedded as
26677 # here-document in config.status, that substitutes the proper values into
26678 # config.h.in to produce config.h.
26680 # Create a delimiter string that does not exist in confdefs.h, to ease
26681 # handling of long lines.
26682 ac_delim='%!_!# '
26683 for ac_last_try in false false :; do
26684 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26685 if test -z "$ac_t"; then
26686 break
26687 elif $ac_last_try; then
26688 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26689 else
26690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26692 done
26694 # For the awk script, D is an array of macro values keyed by name,
26695 # likewise P contains macro parameters if any. Preserve backslash
26696 # newline sequences.
26698 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26699 sed -n '
26700 s/.\{148\}/&'"$ac_delim"'/g
26701 t rset
26702 :rset
26703 s/^[ ]*#[ ]*define[ ][ ]*/ /
26704 t def
26706 :def
26707 s/\\$//
26708 t bsnl
26709 s/["\\]/\\&/g
26710 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26711 D["\1"]=" \3"/p
26712 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26714 :bsnl
26715 s/["\\]/\\&/g
26716 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26717 D["\1"]=" \3\\\\\\n"\\/p
26718 t cont
26719 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26720 t cont
26722 :cont
26724 s/.\{148\}/&'"$ac_delim"'/g
26725 t clear
26726 :clear
26727 s/\\$//
26728 t bsnlc
26729 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26731 :bsnlc
26732 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26733 b cont
26734 ' <confdefs.h | sed '
26735 s/'"$ac_delim"'/"\\\
26736 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26739 for (key in D) D_is_set[key] = 1
26740 FS = "\a"
26742 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26743 line = \$ 0
26744 split(line, arg, " ")
26745 if (arg[1] == "#") {
26746 defundef = arg[2]
26747 mac1 = arg[3]
26748 } else {
26749 defundef = substr(arg[1], 2)
26750 mac1 = arg[2]
26752 split(mac1, mac2, "(") #)
26753 macro = mac2[1]
26754 prefix = substr(line, 1, index(line, defundef) - 1)
26755 if (D_is_set[macro]) {
26756 # Preserve the white space surrounding the "#".
26757 print prefix "define", macro P[macro] D[macro]
26758 next
26759 } else {
26760 # Replace #undef with comments. This is necessary, for example,
26761 # in the case of _POSIX_SOURCE, which is predefined and required
26762 # on some systems where configure will not decide to define it.
26763 if (defundef == "undef") {
26764 print "/*", prefix defundef, macro, "*/"
26765 next
26769 { print }
26770 _ACAWK
26771 _ACEOF
26772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26773 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26774 fi # test -n "$CONFIG_HEADERS"
26777 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26778 shift
26779 for ac_tag
26781 case $ac_tag in
26782 :[FHLC]) ac_mode=$ac_tag; continue;;
26783 esac
26784 case $ac_mode$ac_tag in
26785 :[FHL]*:*);;
26786 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26787 :[FH]-) ac_tag=-:-;;
26788 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26789 esac
26790 ac_save_IFS=$IFS
26791 IFS=:
26792 set x $ac_tag
26793 IFS=$ac_save_IFS
26794 shift
26795 ac_file=$1
26796 shift
26798 case $ac_mode in
26799 :L) ac_source=$1;;
26800 :[FH])
26801 ac_file_inputs=
26802 for ac_f
26804 case $ac_f in
26805 -) ac_f="$tmp/stdin";;
26806 *) # Look for the file first in the build tree, then in the source tree
26807 # (if the path is not absolute). The absolute path cannot be DOS-style,
26808 # because $ac_f cannot contain `:'.
26809 test -f "$ac_f" ||
26810 case $ac_f in
26811 [\\/$]*) false;;
26812 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26813 esac ||
26814 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26815 esac
26816 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26817 as_fn_append ac_file_inputs " '$ac_f'"
26818 done
26820 # Let's still pretend it is `configure' which instantiates (i.e., don't
26821 # use $as_me), people would be surprised to read:
26822 # /* config.h. Generated by config.status. */
26823 configure_input='Generated from '`
26824 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26825 `' by configure.'
26826 if test x"$ac_file" != x-; then
26827 configure_input="$ac_file. $configure_input"
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26829 $as_echo "$as_me: creating $ac_file" >&6;}
26831 # Neutralize special characters interpreted by sed in replacement strings.
26832 case $configure_input in #(
26833 *\&* | *\|* | *\\* )
26834 ac_sed_conf_input=`$as_echo "$configure_input" |
26835 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26836 *) ac_sed_conf_input=$configure_input;;
26837 esac
26839 case $ac_tag in
26840 *:-:* | *:-) cat >"$tmp/stdin" \
26841 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26842 esac
26844 esac
26846 ac_dir=`$as_dirname -- "$ac_file" ||
26847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26848 X"$ac_file" : 'X\(//\)[^/]' \| \
26849 X"$ac_file" : 'X\(//\)$' \| \
26850 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26851 $as_echo X"$ac_file" |
26852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26853 s//\1/
26856 /^X\(\/\/\)[^/].*/{
26857 s//\1/
26860 /^X\(\/\/\)$/{
26861 s//\1/
26864 /^X\(\/\).*/{
26865 s//\1/
26868 s/.*/./; q'`
26869 as_dir="$ac_dir"; as_fn_mkdir_p
26870 ac_builddir=.
26872 case "$ac_dir" in
26873 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26875 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26876 # A ".." for each directory in $ac_dir_suffix.
26877 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26878 case $ac_top_builddir_sub in
26879 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26880 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26881 esac ;;
26882 esac
26883 ac_abs_top_builddir=$ac_pwd
26884 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26885 # for backward compatibility:
26886 ac_top_builddir=$ac_top_build_prefix
26888 case $srcdir in
26889 .) # We are building in place.
26890 ac_srcdir=.
26891 ac_top_srcdir=$ac_top_builddir_sub
26892 ac_abs_top_srcdir=$ac_pwd ;;
26893 [\\/]* | ?:[\\/]* ) # Absolute name.
26894 ac_srcdir=$srcdir$ac_dir_suffix;
26895 ac_top_srcdir=$srcdir
26896 ac_abs_top_srcdir=$srcdir ;;
26897 *) # Relative name.
26898 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26899 ac_top_srcdir=$ac_top_build_prefix$srcdir
26900 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26901 esac
26902 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26905 case $ac_mode in
26908 # CONFIG_FILE
26911 case $INSTALL in
26912 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26913 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26914 esac
26915 ac_MKDIR_P=$MKDIR_P
26916 case $MKDIR_P in
26917 [\\/$]* | ?:[\\/]* ) ;;
26918 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26919 esac
26920 _ACEOF
26922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26923 # If the template does not know about datarootdir, expand it.
26924 # FIXME: This hack should be removed a few years after 2.60.
26925 ac_datarootdir_hack=; ac_datarootdir_seen=
26926 ac_sed_dataroot='
26927 /datarootdir/ {
26931 /@datadir@/p
26932 /@docdir@/p
26933 /@infodir@/p
26934 /@localedir@/p
26935 /@mandir@/p'
26936 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26937 *datarootdir*) ac_datarootdir_seen=yes;;
26938 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26940 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26941 _ACEOF
26942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26943 ac_datarootdir_hack='
26944 s&@datadir@&$datadir&g
26945 s&@docdir@&$docdir&g
26946 s&@infodir@&$infodir&g
26947 s&@localedir@&$localedir&g
26948 s&@mandir@&$mandir&g
26949 s&\\\${datarootdir}&$datarootdir&g' ;;
26950 esac
26951 _ACEOF
26953 # Neutralize VPATH when `$srcdir' = `.'.
26954 # Shell code in configure.ac might set extrasub.
26955 # FIXME: do we really want to maintain this feature?
26956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26957 ac_sed_extra="$ac_vpsub
26958 $extrasub
26959 _ACEOF
26960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26963 s|@configure_input@|$ac_sed_conf_input|;t t
26964 s&@top_builddir@&$ac_top_builddir_sub&;t t
26965 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26966 s&@srcdir@&$ac_srcdir&;t t
26967 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26968 s&@top_srcdir@&$ac_top_srcdir&;t t
26969 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26970 s&@builddir@&$ac_builddir&;t t
26971 s&@abs_builddir@&$ac_abs_builddir&;t t
26972 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26973 s&@INSTALL@&$ac_INSTALL&;t t
26974 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26975 $ac_datarootdir_hack
26977 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26978 || as_fn_error "could not create $ac_file" "$LINENO" 5
26980 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26981 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26982 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26984 which seems to be undefined. Please make sure it is defined." >&5
26985 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26986 which seems to be undefined. Please make sure it is defined." >&2;}
26988 rm -f "$tmp/stdin"
26989 case $ac_file in
26990 -) cat "$tmp/out" && rm -f "$tmp/out";;
26991 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26992 esac \
26993 || as_fn_error "could not create $ac_file" "$LINENO" 5
26997 # CONFIG_HEADER
26999 if test x"$ac_file" != x-; then
27001 $as_echo "/* $configure_input */" \
27002 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27003 } >"$tmp/config.h" \
27004 || as_fn_error "could not create $ac_file" "$LINENO" 5
27005 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27007 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27008 else
27009 rm -f "$ac_file"
27010 mv "$tmp/config.h" "$ac_file" \
27011 || as_fn_error "could not create $ac_file" "$LINENO" 5
27013 else
27014 $as_echo "/* $configure_input */" \
27015 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27016 || as_fn_error "could not create -" "$LINENO" 5
27018 # Compute "$ac_file"'s index in $config_headers.
27019 _am_arg="$ac_file"
27020 _am_stamp_count=1
27021 for _am_header in $config_headers :; do
27022 case $_am_header in
27023 $_am_arg | $_am_arg:* )
27024 break ;;
27026 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27027 esac
27028 done
27029 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27030 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27031 X"$_am_arg" : 'X\(//\)[^/]' \| \
27032 X"$_am_arg" : 'X\(//\)$' \| \
27033 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27034 $as_echo X"$_am_arg" |
27035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27036 s//\1/
27039 /^X\(\/\/\)[^/].*/{
27040 s//\1/
27043 /^X\(\/\/\)$/{
27044 s//\1/
27047 /^X\(\/\).*/{
27048 s//\1/
27051 s/.*/./; q'`/stamp-h$_am_stamp_count
27055 # CONFIG_LINK
27058 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
27060 else
27061 # Prefer the file from the source tree if names are identical.
27062 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
27063 ac_source=$srcdir/$ac_source
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
27067 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
27069 if test ! -r "$ac_source"; then
27070 as_fn_error "$ac_source: file not found" "$LINENO" 5
27072 rm -f "$ac_file"
27074 # Try a relative symlink, then a hard link, then a copy.
27075 case $srcdir in
27076 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
27077 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
27078 esac
27079 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27080 ln "$ac_source" "$ac_file" 2>/dev/null ||
27081 cp -p "$ac_source" "$ac_file" ||
27082 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
27085 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27086 $as_echo "$as_me: executing $ac_file commands" >&6;}
27088 esac
27091 case $ac_file$ac_mode in
27092 "default-1":C)
27093 # Only add multilib support code if we just rebuilt the top-level
27094 # Makefile.
27095 case " $CONFIG_FILES " in
27096 *" Makefile "*)
27097 ac_file=Makefile . ${multi_basedir}/config-ml.in
27099 esac ;;
27100 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27101 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27102 # are listed without --file. Let's play safe and only enable the eval
27103 # if we detect the quoting.
27104 case $CONFIG_FILES in
27105 *\'*) eval set x "$CONFIG_FILES" ;;
27106 *) set x $CONFIG_FILES ;;
27107 esac
27108 shift
27109 for mf
27111 # Strip MF so we end up with the name of the file.
27112 mf=`echo "$mf" | sed -e 's/:.*$//'`
27113 # Check whether this is an Automake generated Makefile or not.
27114 # We used to match only the files named `Makefile.in', but
27115 # some people rename them; so instead we look at the file content.
27116 # Grep'ing the first line is not enough: some people post-process
27117 # each Makefile.in and add a new line on top of each file to say so.
27118 # Grep'ing the whole file is not good either: AIX grep has a line
27119 # limit of 2048, but all sed's we know have understand at least 4000.
27120 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27121 dirpart=`$as_dirname -- "$mf" ||
27122 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27123 X"$mf" : 'X\(//\)[^/]' \| \
27124 X"$mf" : 'X\(//\)$' \| \
27125 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27126 $as_echo X"$mf" |
27127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27128 s//\1/
27131 /^X\(\/\/\)[^/].*/{
27132 s//\1/
27135 /^X\(\/\/\)$/{
27136 s//\1/
27139 /^X\(\/\).*/{
27140 s//\1/
27143 s/.*/./; q'`
27144 else
27145 continue
27147 # Extract the definition of DEPDIR, am__include, and am__quote
27148 # from the Makefile without running `make'.
27149 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27150 test -z "$DEPDIR" && continue
27151 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27152 test -z "am__include" && continue
27153 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27154 # When using ansi2knr, U may be empty or an underscore; expand it
27155 U=`sed -n 's/^U = //p' < "$mf"`
27156 # Find all dependency output files, they are included files with
27157 # $(DEPDIR) in their names. We invoke sed twice because it is the
27158 # simplest approach to changing $(DEPDIR) to its actual value in the
27159 # expansion.
27160 for file in `sed -n "
27161 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27162 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27163 # Make sure the directory exists.
27164 test -f "$dirpart/$file" && continue
27165 fdir=`$as_dirname -- "$file" ||
27166 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27167 X"$file" : 'X\(//\)[^/]' \| \
27168 X"$file" : 'X\(//\)$' \| \
27169 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27170 $as_echo X"$file" |
27171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27172 s//\1/
27175 /^X\(\/\/\)[^/].*/{
27176 s//\1/
27179 /^X\(\/\/\)$/{
27180 s//\1/
27183 /^X\(\/\).*/{
27184 s//\1/
27187 s/.*/./; q'`
27188 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27189 # echo "creating $dirpart/$file"
27190 echo '# dummy' > "$dirpart/$file"
27191 done
27192 done
27195 "libtool":C)
27197 # See if we are running on zsh, and set the options which allow our
27198 # commands through without removal of \ escapes.
27199 if test -n "${ZSH_VERSION+set}" ; then
27200 setopt NO_GLOB_SUBST
27203 cfgfile="${ofile}T"
27204 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27205 $RM "$cfgfile"
27207 cat <<_LT_EOF >> "$cfgfile"
27208 #! $SHELL
27210 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27211 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27212 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27213 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27215 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27216 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27217 # Written by Gordon Matzigkeit, 1996
27219 # This file is part of GNU Libtool.
27221 # GNU Libtool is free software; you can redistribute it and/or
27222 # modify it under the terms of the GNU General Public License as
27223 # published by the Free Software Foundation; either version 2 of
27224 # the License, or (at your option) any later version.
27226 # As a special exception to the GNU General Public License,
27227 # if you distribute this file as part of a program or library that
27228 # is built using GNU Libtool, you may include this file under the
27229 # same distribution terms that you use for the rest of that program.
27231 # GNU Libtool is distributed in the hope that it will be useful,
27232 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27233 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27234 # GNU General Public License for more details.
27236 # You should have received a copy of the GNU General Public License
27237 # along with GNU Libtool; see the file COPYING. If not, a copy
27238 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27239 # obtained by writing to the Free Software Foundation, Inc.,
27240 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27243 # The names of the tagged configurations supported by this script.
27244 available_tags="CXX GCJ "
27246 # ### BEGIN LIBTOOL CONFIG
27248 # Which release of libtool.m4 was used?
27249 macro_version=$macro_version
27250 macro_revision=$macro_revision
27252 # Whether or not to build shared libraries.
27253 build_libtool_libs=$enable_shared
27255 # Whether or not to build static libraries.
27256 build_old_libs=$enable_static
27258 # What type of objects to build.
27259 pic_mode=$pic_mode
27261 # Whether or not to optimize for fast installation.
27262 fast_install=$enable_fast_install
27264 # Shell to use when invoking shell scripts.
27265 SHELL=$lt_SHELL
27267 # An echo program that protects backslashes.
27268 ECHO=$lt_ECHO
27270 # The host system.
27271 host_alias=$host_alias
27272 host=$host
27273 host_os=$host_os
27275 # The build system.
27276 build_alias=$build_alias
27277 build=$build
27278 build_os=$build_os
27280 # A sed program that does not truncate output.
27281 SED=$lt_SED
27283 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27284 Xsed="\$SED -e 1s/^X//"
27286 # A grep program that handles long lines.
27287 GREP=$lt_GREP
27289 # An ERE matcher.
27290 EGREP=$lt_EGREP
27292 # A literal string matcher.
27293 FGREP=$lt_FGREP
27295 # A BSD- or MS-compatible name lister.
27296 NM=$lt_NM
27298 # Whether we need soft or hard links.
27299 LN_S=$lt_LN_S
27301 # What is the maximum length of a command?
27302 max_cmd_len=$max_cmd_len
27304 # Object file suffix (normally "o").
27305 objext=$ac_objext
27307 # Executable file suffix (normally "").
27308 exeext=$exeext
27310 # whether the shell understands "unset".
27311 lt_unset=$lt_unset
27313 # turn spaces into newlines.
27314 SP2NL=$lt_lt_SP2NL
27316 # turn newlines into spaces.
27317 NL2SP=$lt_lt_NL2SP
27319 # An object symbol dumper.
27320 OBJDUMP=$lt_OBJDUMP
27322 # Method to check whether dependent libraries are shared objects.
27323 deplibs_check_method=$lt_deplibs_check_method
27325 # Command to use when deplibs_check_method == "file_magic".
27326 file_magic_cmd=$lt_file_magic_cmd
27328 # The archiver.
27329 AR=$lt_AR
27330 AR_FLAGS=$lt_AR_FLAGS
27332 # A symbol stripping program.
27333 STRIP=$lt_STRIP
27335 # Commands used to install an old-style archive.
27336 RANLIB=$lt_RANLIB
27337 old_postinstall_cmds=$lt_old_postinstall_cmds
27338 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27340 # Whether to use a lock for old archive extraction.
27341 lock_old_archive_extraction=$lock_old_archive_extraction
27343 # A C compiler.
27344 LTCC=$lt_CC
27346 # LTCC compiler flags.
27347 LTCFLAGS=$lt_CFLAGS
27349 # Take the output of nm and produce a listing of raw symbols and C names.
27350 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27352 # Transform the output of nm in a proper C declaration.
27353 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27355 # Transform the output of nm in a C name address pair.
27356 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27358 # Transform the output of nm in a C name address pair when lib prefix is needed.
27359 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27361 # The name of the directory that contains temporary libtool files.
27362 objdir=$objdir
27364 # Used to examine libraries when file_magic_cmd begins with "file".
27365 MAGIC_CMD=$MAGIC_CMD
27367 # Must we lock files when doing compilation?
27368 need_locks=$lt_need_locks
27370 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27371 DSYMUTIL=$lt_DSYMUTIL
27373 # Tool to change global to local symbols on Mac OS X.
27374 NMEDIT=$lt_NMEDIT
27376 # Tool to manipulate fat objects and archives on Mac OS X.
27377 LIPO=$lt_LIPO
27379 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27380 OTOOL=$lt_OTOOL
27382 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27383 OTOOL64=$lt_OTOOL64
27385 # Old archive suffix (normally "a").
27386 libext=$libext
27388 # Shared library suffix (normally ".so").
27389 shrext_cmds=$lt_shrext_cmds
27391 # The commands to extract the exported symbol list from a shared archive.
27392 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27394 # Variables whose values should be saved in libtool wrapper scripts and
27395 # restored at link time.
27396 variables_saved_for_relink=$lt_variables_saved_for_relink
27398 # Do we need the "lib" prefix for modules?
27399 need_lib_prefix=$need_lib_prefix
27401 # Do we need a version for libraries?
27402 need_version=$need_version
27404 # Library versioning type.
27405 version_type=$version_type
27407 # Shared library runtime path variable.
27408 runpath_var=$runpath_var
27410 # Shared library path variable.
27411 shlibpath_var=$shlibpath_var
27413 # Is shlibpath searched before the hard-coded library search path?
27414 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27416 # Format of library name prefix.
27417 libname_spec=$lt_libname_spec
27419 # List of archive names. First name is the real one, the rest are links.
27420 # The last name is the one that the linker finds with -lNAME
27421 library_names_spec=$lt_library_names_spec
27423 # The coded name of the library, if different from the real name.
27424 soname_spec=$lt_soname_spec
27426 # Permission mode override for installation of shared libraries.
27427 install_override_mode=$lt_install_override_mode
27429 # Command to use after installation of a shared archive.
27430 postinstall_cmds=$lt_postinstall_cmds
27432 # Command to use after uninstallation of a shared archive.
27433 postuninstall_cmds=$lt_postuninstall_cmds
27435 # Commands used to finish a libtool library installation in a directory.
27436 finish_cmds=$lt_finish_cmds
27438 # As "finish_cmds", except a single script fragment to be evaled but
27439 # not shown.
27440 finish_eval=$lt_finish_eval
27442 # Whether we should hardcode library paths into libraries.
27443 hardcode_into_libs=$hardcode_into_libs
27445 # Compile-time system search path for libraries.
27446 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27448 # Run-time system search path for libraries.
27449 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27451 # Whether dlopen is supported.
27452 dlopen_support=$enable_dlopen
27454 # Whether dlopen of programs is supported.
27455 dlopen_self=$enable_dlopen_self
27457 # Whether dlopen of statically linked programs is supported.
27458 dlopen_self_static=$enable_dlopen_self_static
27460 # Commands to strip libraries.
27461 old_striplib=$lt_old_striplib
27462 striplib=$lt_striplib
27465 # The linker used to build libraries.
27466 LD=$lt_LD
27468 # How to create reloadable object files.
27469 reload_flag=$lt_reload_flag
27470 reload_cmds=$lt_reload_cmds
27472 # Commands used to build an old-style archive.
27473 old_archive_cmds=$lt_old_archive_cmds
27475 # A language specific compiler.
27476 CC=$lt_compiler
27478 # Is the compiler the GNU compiler?
27479 with_gcc=$GCC
27481 # Compiler flag to turn off builtin functions.
27482 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27484 # How to pass a linker flag through the compiler.
27485 wl=$lt_lt_prog_compiler_wl
27487 # Additional compiler flags for building library objects.
27488 pic_flag=$lt_lt_prog_compiler_pic
27490 # Compiler flag to prevent dynamic linking.
27491 link_static_flag=$lt_lt_prog_compiler_static
27493 # Does compiler simultaneously support -c and -o options?
27494 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27496 # Whether or not to add -lc for building shared libraries.
27497 build_libtool_need_lc=$archive_cmds_need_lc
27499 # Whether or not to disallow shared libs when runtime libs are static.
27500 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27502 # Compiler flag to allow reflexive dlopens.
27503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27505 # Compiler flag to generate shared objects directly from archives.
27506 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27508 # Whether the compiler copes with passing no objects directly.
27509 compiler_needs_object=$lt_compiler_needs_object
27511 # Create an old-style archive from a shared archive.
27512 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27514 # Create a temporary old-style archive to link instead of a shared archive.
27515 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27517 # Commands used to build a shared archive.
27518 archive_cmds=$lt_archive_cmds
27519 archive_expsym_cmds=$lt_archive_expsym_cmds
27521 # Commands used to build a loadable module if different from building
27522 # a shared archive.
27523 module_cmds=$lt_module_cmds
27524 module_expsym_cmds=$lt_module_expsym_cmds
27526 # Whether we are building with GNU ld or not.
27527 with_gnu_ld=$lt_with_gnu_ld
27529 # Flag that allows shared libraries with undefined symbols to be built.
27530 allow_undefined_flag=$lt_allow_undefined_flag
27532 # Flag that enforces no undefined symbols.
27533 no_undefined_flag=$lt_no_undefined_flag
27535 # Flag to hardcode \$libdir into a binary during linking.
27536 # This must work even if \$libdir does not exist
27537 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27539 # If ld is used when linking, flag to hardcode \$libdir into a binary
27540 # during linking. This must work even if \$libdir does not exist.
27541 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27543 # Whether we need a single "-rpath" flag with a separated argument.
27544 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27546 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27547 # DIR into the resulting binary.
27548 hardcode_direct=$hardcode_direct
27550 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27551 # DIR into the resulting binary and the resulting library dependency is
27552 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27553 # library is relocated.
27554 hardcode_direct_absolute=$hardcode_direct_absolute
27556 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27557 # into the resulting binary.
27558 hardcode_minus_L=$hardcode_minus_L
27560 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27561 # into the resulting binary.
27562 hardcode_shlibpath_var=$hardcode_shlibpath_var
27564 # Set to "yes" if building a shared library automatically hardcodes DIR
27565 # into the library and all subsequent libraries and executables linked
27566 # against it.
27567 hardcode_automatic=$hardcode_automatic
27569 # Set to yes if linker adds runtime paths of dependent libraries
27570 # to runtime path list.
27571 inherit_rpath=$inherit_rpath
27573 # Whether libtool must link a program against all its dependency libraries.
27574 link_all_deplibs=$link_all_deplibs
27576 # Fix the shell variable \$srcfile for the compiler.
27577 fix_srcfile_path=$lt_fix_srcfile_path
27579 # Set to "yes" if exported symbols are required.
27580 always_export_symbols=$always_export_symbols
27582 # The commands to list exported symbols.
27583 export_symbols_cmds=$lt_export_symbols_cmds
27585 # Symbols that should not be listed in the preloaded symbols.
27586 exclude_expsyms=$lt_exclude_expsyms
27588 # Symbols that must always be exported.
27589 include_expsyms=$lt_include_expsyms
27591 # Commands necessary for linking programs (against libraries) with templates.
27592 prelink_cmds=$lt_prelink_cmds
27594 # Specify filename containing input files.
27595 file_list_spec=$lt_file_list_spec
27597 # How to hardcode a shared library path into an executable.
27598 hardcode_action=$hardcode_action
27600 # The directories searched by this compiler when creating a shared library.
27601 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27603 # Dependencies to place before and after the objects being linked to
27604 # create a shared library.
27605 predep_objects=$lt_predep_objects
27606 postdep_objects=$lt_postdep_objects
27607 predeps=$lt_predeps
27608 postdeps=$lt_postdeps
27610 # The library search path used internally by the compiler when linking
27611 # a shared library.
27612 compiler_lib_search_path=$lt_compiler_lib_search_path
27614 # ### END LIBTOOL CONFIG
27616 _LT_EOF
27618 case $host_os in
27619 aix3*)
27620 cat <<\_LT_EOF >> "$cfgfile"
27621 # AIX sometimes has problems with the GCC collect2 program. For some
27622 # reason, if we set the COLLECT_NAMES environment variable, the problems
27623 # vanish in a puff of smoke.
27624 if test "X${COLLECT_NAMES+set}" != Xset; then
27625 COLLECT_NAMES=
27626 export COLLECT_NAMES
27628 _LT_EOF
27630 esac
27633 ltmain="$ac_aux_dir/ltmain.sh"
27636 # We use sed instead of cat because bash on DJGPP gets confused if
27637 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27638 # text mode, it properly converts lines to CR/LF. This bash problem
27639 # is reportedly fixed, but why not run on old versions too?
27640 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27641 || (rm -f "$cfgfile"; exit 1)
27643 case $xsi_shell in
27644 yes)
27645 cat << \_LT_EOF >> "$cfgfile"
27647 # func_dirname file append nondir_replacement
27648 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27649 # otherwise set result to NONDIR_REPLACEMENT.
27650 func_dirname ()
27652 case ${1} in
27653 */*) func_dirname_result="${1%/*}${2}" ;;
27654 * ) func_dirname_result="${3}" ;;
27655 esac
27658 # func_basename file
27659 func_basename ()
27661 func_basename_result="${1##*/}"
27664 # func_dirname_and_basename file append nondir_replacement
27665 # perform func_basename and func_dirname in a single function
27666 # call:
27667 # dirname: Compute the dirname of FILE. If nonempty,
27668 # add APPEND to the result, otherwise set result
27669 # to NONDIR_REPLACEMENT.
27670 # value returned in "$func_dirname_result"
27671 # basename: Compute filename of FILE.
27672 # value retuned in "$func_basename_result"
27673 # Implementation must be kept synchronized with func_dirname
27674 # and func_basename. For efficiency, we do not delegate to
27675 # those functions but instead duplicate the functionality here.
27676 func_dirname_and_basename ()
27678 case ${1} in
27679 */*) func_dirname_result="${1%/*}${2}" ;;
27680 * ) func_dirname_result="${3}" ;;
27681 esac
27682 func_basename_result="${1##*/}"
27685 # func_stripname prefix suffix name
27686 # strip PREFIX and SUFFIX off of NAME.
27687 # PREFIX and SUFFIX must not contain globbing or regex special
27688 # characters, hashes, percent signs, but SUFFIX may contain a leading
27689 # dot (in which case that matches only a dot).
27690 func_stripname ()
27692 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27693 # positional parameters, so assign one to ordinary parameter first.
27694 func_stripname_result=${3}
27695 func_stripname_result=${func_stripname_result#"${1}"}
27696 func_stripname_result=${func_stripname_result%"${2}"}
27699 # func_opt_split
27700 func_opt_split ()
27702 func_opt_split_opt=${1%%=*}
27703 func_opt_split_arg=${1#*=}
27706 # func_lo2o object
27707 func_lo2o ()
27709 case ${1} in
27710 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27711 *) func_lo2o_result=${1} ;;
27712 esac
27715 # func_xform libobj-or-source
27716 func_xform ()
27718 func_xform_result=${1%.*}.lo
27721 # func_arith arithmetic-term...
27722 func_arith ()
27724 func_arith_result=$(( $* ))
27727 # func_len string
27728 # STRING may not start with a hyphen.
27729 func_len ()
27731 func_len_result=${#1}
27734 _LT_EOF
27736 *) # Bourne compatible functions.
27737 cat << \_LT_EOF >> "$cfgfile"
27739 # func_dirname file append nondir_replacement
27740 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27741 # otherwise set result to NONDIR_REPLACEMENT.
27742 func_dirname ()
27744 # Extract subdirectory from the argument.
27745 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27746 if test "X$func_dirname_result" = "X${1}"; then
27747 func_dirname_result="${3}"
27748 else
27749 func_dirname_result="$func_dirname_result${2}"
27753 # func_basename file
27754 func_basename ()
27756 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27760 # func_stripname prefix suffix name
27761 # strip PREFIX and SUFFIX off of NAME.
27762 # PREFIX and SUFFIX must not contain globbing or regex special
27763 # characters, hashes, percent signs, but SUFFIX may contain a leading
27764 # dot (in which case that matches only a dot).
27765 # func_strip_suffix prefix name
27766 func_stripname ()
27768 case ${2} in
27769 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27770 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27771 esac
27774 # sed scripts:
27775 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27776 my_sed_long_arg='1s/^-[^=]*=//'
27778 # func_opt_split
27779 func_opt_split ()
27781 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27782 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27785 # func_lo2o object
27786 func_lo2o ()
27788 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27791 # func_xform libobj-or-source
27792 func_xform ()
27794 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27797 # func_arith arithmetic-term...
27798 func_arith ()
27800 func_arith_result=`expr "$@"`
27803 # func_len string
27804 # STRING may not start with a hyphen.
27805 func_len ()
27807 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27810 _LT_EOF
27811 esac
27813 case $lt_shell_append in
27814 yes)
27815 cat << \_LT_EOF >> "$cfgfile"
27817 # func_append var value
27818 # Append VALUE to the end of shell variable VAR.
27819 func_append ()
27821 eval "$1+=\$2"
27823 _LT_EOF
27826 cat << \_LT_EOF >> "$cfgfile"
27828 # func_append var value
27829 # Append VALUE to the end of shell variable VAR.
27830 func_append ()
27832 eval "$1=\$$1\$2"
27835 _LT_EOF
27837 esac
27840 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27841 || (rm -f "$cfgfile"; exit 1)
27843 mv -f "$cfgfile" "$ofile" ||
27844 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27845 chmod +x "$ofile"
27848 cat <<_LT_EOF >> "$ofile"
27850 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27852 # The linker used to build libraries.
27853 LD=$lt_LD_CXX
27855 # How to create reloadable object files.
27856 reload_flag=$lt_reload_flag_CXX
27857 reload_cmds=$lt_reload_cmds_CXX
27859 # Commands used to build an old-style archive.
27860 old_archive_cmds=$lt_old_archive_cmds_CXX
27862 # A language specific compiler.
27863 CC=$lt_compiler_CXX
27865 # Is the compiler the GNU compiler?
27866 with_gcc=$GCC_CXX
27868 # Compiler flag to turn off builtin functions.
27869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27871 # How to pass a linker flag through the compiler.
27872 wl=$lt_lt_prog_compiler_wl_CXX
27874 # Additional compiler flags for building library objects.
27875 pic_flag=$lt_lt_prog_compiler_pic_CXX
27877 # Compiler flag to prevent dynamic linking.
27878 link_static_flag=$lt_lt_prog_compiler_static_CXX
27880 # Does compiler simultaneously support -c and -o options?
27881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27883 # Whether or not to add -lc for building shared libraries.
27884 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27886 # Whether or not to disallow shared libs when runtime libs are static.
27887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27889 # Compiler flag to allow reflexive dlopens.
27890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27892 # Compiler flag to generate shared objects directly from archives.
27893 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27895 # Whether the compiler copes with passing no objects directly.
27896 compiler_needs_object=$lt_compiler_needs_object_CXX
27898 # Create an old-style archive from a shared archive.
27899 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27901 # Create a temporary old-style archive to link instead of a shared archive.
27902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27904 # Commands used to build a shared archive.
27905 archive_cmds=$lt_archive_cmds_CXX
27906 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27908 # Commands used to build a loadable module if different from building
27909 # a shared archive.
27910 module_cmds=$lt_module_cmds_CXX
27911 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27913 # Whether we are building with GNU ld or not.
27914 with_gnu_ld=$lt_with_gnu_ld_CXX
27916 # Flag that allows shared libraries with undefined symbols to be built.
27917 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27919 # Flag that enforces no undefined symbols.
27920 no_undefined_flag=$lt_no_undefined_flag_CXX
27922 # Flag to hardcode \$libdir into a binary during linking.
27923 # This must work even if \$libdir does not exist
27924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27926 # If ld is used when linking, flag to hardcode \$libdir into a binary
27927 # during linking. This must work even if \$libdir does not exist.
27928 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27930 # Whether we need a single "-rpath" flag with a separated argument.
27931 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27934 # DIR into the resulting binary.
27935 hardcode_direct=$hardcode_direct_CXX
27937 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27938 # DIR into the resulting binary and the resulting library dependency is
27939 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27940 # library is relocated.
27941 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27943 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27944 # into the resulting binary.
27945 hardcode_minus_L=$hardcode_minus_L_CXX
27947 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27948 # into the resulting binary.
27949 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27951 # Set to "yes" if building a shared library automatically hardcodes DIR
27952 # into the library and all subsequent libraries and executables linked
27953 # against it.
27954 hardcode_automatic=$hardcode_automatic_CXX
27956 # Set to yes if linker adds runtime paths of dependent libraries
27957 # to runtime path list.
27958 inherit_rpath=$inherit_rpath_CXX
27960 # Whether libtool must link a program against all its dependency libraries.
27961 link_all_deplibs=$link_all_deplibs_CXX
27963 # Fix the shell variable \$srcfile for the compiler.
27964 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27966 # Set to "yes" if exported symbols are required.
27967 always_export_symbols=$always_export_symbols_CXX
27969 # The commands to list exported symbols.
27970 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27972 # Symbols that should not be listed in the preloaded symbols.
27973 exclude_expsyms=$lt_exclude_expsyms_CXX
27975 # Symbols that must always be exported.
27976 include_expsyms=$lt_include_expsyms_CXX
27978 # Commands necessary for linking programs (against libraries) with templates.
27979 prelink_cmds=$lt_prelink_cmds_CXX
27981 # Specify filename containing input files.
27982 file_list_spec=$lt_file_list_spec_CXX
27984 # How to hardcode a shared library path into an executable.
27985 hardcode_action=$hardcode_action_CXX
27987 # The directories searched by this compiler when creating a shared library.
27988 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27990 # Dependencies to place before and after the objects being linked to
27991 # create a shared library.
27992 predep_objects=$lt_predep_objects_CXX
27993 postdep_objects=$lt_postdep_objects_CXX
27994 predeps=$lt_predeps_CXX
27995 postdeps=$lt_postdeps_CXX
27997 # The library search path used internally by the compiler when linking
27998 # a shared library.
27999 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28001 # ### END LIBTOOL TAG CONFIG: CXX
28002 _LT_EOF
28005 cat <<_LT_EOF >> "$ofile"
28007 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
28009 # The linker used to build libraries.
28010 LD=$lt_LD_GCJ
28012 # How to create reloadable object files.
28013 reload_flag=$lt_reload_flag_GCJ
28014 reload_cmds=$lt_reload_cmds_GCJ
28016 # Commands used to build an old-style archive.
28017 old_archive_cmds=$lt_old_archive_cmds_GCJ
28019 # A language specific compiler.
28020 CC=$lt_compiler_GCJ
28022 # Is the compiler the GNU compiler?
28023 with_gcc=$GCC_GCJ
28025 # Compiler flag to turn off builtin functions.
28026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
28028 # How to pass a linker flag through the compiler.
28029 wl=$lt_lt_prog_compiler_wl_GCJ
28031 # Additional compiler flags for building library objects.
28032 pic_flag=$lt_lt_prog_compiler_pic_GCJ
28034 # Compiler flag to prevent dynamic linking.
28035 link_static_flag=$lt_lt_prog_compiler_static_GCJ
28037 # Does compiler simultaneously support -c and -o options?
28038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
28040 # Whether or not to add -lc for building shared libraries.
28041 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
28043 # Whether or not to disallow shared libs when runtime libs are static.
28044 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
28046 # Compiler flag to allow reflexive dlopens.
28047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
28049 # Compiler flag to generate shared objects directly from archives.
28050 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
28052 # Whether the compiler copes with passing no objects directly.
28053 compiler_needs_object=$lt_compiler_needs_object_GCJ
28055 # Create an old-style archive from a shared archive.
28056 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
28058 # Create a temporary old-style archive to link instead of a shared archive.
28059 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
28061 # Commands used to build a shared archive.
28062 archive_cmds=$lt_archive_cmds_GCJ
28063 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
28065 # Commands used to build a loadable module if different from building
28066 # a shared archive.
28067 module_cmds=$lt_module_cmds_GCJ
28068 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
28070 # Whether we are building with GNU ld or not.
28071 with_gnu_ld=$lt_with_gnu_ld_GCJ
28073 # Flag that allows shared libraries with undefined symbols to be built.
28074 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
28076 # Flag that enforces no undefined symbols.
28077 no_undefined_flag=$lt_no_undefined_flag_GCJ
28079 # Flag to hardcode \$libdir into a binary during linking.
28080 # This must work even if \$libdir does not exist
28081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
28083 # If ld is used when linking, flag to hardcode \$libdir into a binary
28084 # during linking. This must work even if \$libdir does not exist.
28085 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
28087 # Whether we need a single "-rpath" flag with a separated argument.
28088 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
28090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28091 # DIR into the resulting binary.
28092 hardcode_direct=$hardcode_direct_GCJ
28094 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28095 # DIR into the resulting binary and the resulting library dependency is
28096 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28097 # library is relocated.
28098 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
28100 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28101 # into the resulting binary.
28102 hardcode_minus_L=$hardcode_minus_L_GCJ
28104 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28105 # into the resulting binary.
28106 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
28108 # Set to "yes" if building a shared library automatically hardcodes DIR
28109 # into the library and all subsequent libraries and executables linked
28110 # against it.
28111 hardcode_automatic=$hardcode_automatic_GCJ
28113 # Set to yes if linker adds runtime paths of dependent libraries
28114 # to runtime path list.
28115 inherit_rpath=$inherit_rpath_GCJ
28117 # Whether libtool must link a program against all its dependency libraries.
28118 link_all_deplibs=$link_all_deplibs_GCJ
28120 # Fix the shell variable \$srcfile for the compiler.
28121 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
28123 # Set to "yes" if exported symbols are required.
28124 always_export_symbols=$always_export_symbols_GCJ
28126 # The commands to list exported symbols.
28127 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
28129 # Symbols that should not be listed in the preloaded symbols.
28130 exclude_expsyms=$lt_exclude_expsyms_GCJ
28132 # Symbols that must always be exported.
28133 include_expsyms=$lt_include_expsyms_GCJ
28135 # Commands necessary for linking programs (against libraries) with templates.
28136 prelink_cmds=$lt_prelink_cmds_GCJ
28138 # Specify filename containing input files.
28139 file_list_spec=$lt_file_list_spec_GCJ
28141 # How to hardcode a shared library path into an executable.
28142 hardcode_action=$hardcode_action_GCJ
28144 # The directories searched by this compiler when creating a shared library.
28145 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
28147 # Dependencies to place before and after the objects being linked to
28148 # create a shared library.
28149 predep_objects=$lt_predep_objects_GCJ
28150 postdep_objects=$lt_postdep_objects_GCJ
28151 predeps=$lt_predeps_GCJ
28152 postdeps=$lt_postdeps_GCJ
28154 # The library search path used internally by the compiler when linking
28155 # a shared library.
28156 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
28158 # ### END LIBTOOL TAG CONFIG: GCJ
28159 _LT_EOF
28162 "scripts/jar":F) chmod +x scripts/jar ;;
28164 esac
28165 done # for ac_tag
28168 as_fn_exit 0
28169 _ACEOF
28170 ac_clean_files=$ac_clean_files_save
28172 test $ac_write_fail = 0 ||
28173 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28176 # configure is writing to config.log, and then calls config.status.
28177 # config.status does its own redirection, appending to config.log.
28178 # Unfortunately, on DOS this fails, as config.log is still kept open
28179 # by configure, so config.status won't be able to write to it; its
28180 # output is simply discarded. So we exec the FD to /dev/null,
28181 # effectively closing config.log, so it can be properly (re)opened and
28182 # appended to by config.status. When coming back to configure, we
28183 # need to make the FD available again.
28184 if test "$no_create" != yes; then
28185 ac_cs_success=:
28186 ac_config_status_args=
28187 test "$silent" = yes &&
28188 ac_config_status_args="$ac_config_status_args --quiet"
28189 exec 5>/dev/null
28190 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28191 exec 5>>config.log
28192 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28193 # would make configure fail if this is the last instruction.
28194 $ac_cs_success || as_fn_exit $?
28198 # CONFIG_SUBDIRS section.
28200 if test "$no_recursion" != yes; then
28202 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28203 # so they do not pile up.
28204 ac_sub_configure_args=
28205 ac_prev=
28206 eval "set x $ac_configure_args"
28207 shift
28208 for ac_arg
28210 if test -n "$ac_prev"; then
28211 ac_prev=
28212 continue
28214 case $ac_arg in
28215 -cache-file | --cache-file | --cache-fil | --cache-fi \
28216 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28217 ac_prev=cache_file ;;
28218 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28219 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28220 | --c=*)
28222 --config-cache | -C)
28224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28225 ac_prev=srcdir ;;
28226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28228 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28229 ac_prev=prefix ;;
28230 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28232 --disable-option-checking)
28235 case $ac_arg in
28236 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28237 esac
28238 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28239 esac
28240 done
28242 # Always prepend --prefix to ensure using the same prefix
28243 # in subdir configurations.
28244 ac_arg="--prefix=$prefix"
28245 case $ac_arg in
28246 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28247 esac
28248 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28250 # Pass --silent
28251 if test "$silent" = yes; then
28252 ac_sub_configure_args="--silent $ac_sub_configure_args"
28255 # Always prepend --disable-option-checking to silence warnings, since
28256 # different subdirs can have different --enable and --with options.
28257 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28259 ac_popdir=`pwd`
28260 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28262 # Do not complain, so a configure script can configure whichever
28263 # parts of a large source tree are present.
28264 test -d "$srcdir/$ac_dir" || continue
28266 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28267 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28268 $as_echo "$ac_msg" >&6
28269 as_dir="$ac_dir"; as_fn_mkdir_p
28270 ac_builddir=.
28272 case "$ac_dir" in
28273 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28275 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28276 # A ".." for each directory in $ac_dir_suffix.
28277 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28278 case $ac_top_builddir_sub in
28279 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28280 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28281 esac ;;
28282 esac
28283 ac_abs_top_builddir=$ac_pwd
28284 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28285 # for backward compatibility:
28286 ac_top_builddir=$ac_top_build_prefix
28288 case $srcdir in
28289 .) # We are building in place.
28290 ac_srcdir=.
28291 ac_top_srcdir=$ac_top_builddir_sub
28292 ac_abs_top_srcdir=$ac_pwd ;;
28293 [\\/]* | ?:[\\/]* ) # Absolute name.
28294 ac_srcdir=$srcdir$ac_dir_suffix;
28295 ac_top_srcdir=$srcdir
28296 ac_abs_top_srcdir=$srcdir ;;
28297 *) # Relative name.
28298 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28299 ac_top_srcdir=$ac_top_build_prefix$srcdir
28300 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28301 esac
28302 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28305 cd "$ac_dir"
28307 # Check for guested configure; otherwise get Cygnus style configure.
28308 if test -f "$ac_srcdir/configure.gnu"; then
28309 ac_sub_configure=$ac_srcdir/configure.gnu
28310 elif test -f "$ac_srcdir/configure"; then
28311 ac_sub_configure=$ac_srcdir/configure
28312 elif test -f "$ac_srcdir/configure.in"; then
28313 # This should be Cygnus configure.
28314 ac_sub_configure=$ac_aux_dir/configure
28315 else
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28317 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28318 ac_sub_configure=
28321 # The recursion is here.
28322 if test -n "$ac_sub_configure"; then
28323 # Make the cache file name correct relative to the subdirectory.
28324 case $cache_file in
28325 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28326 *) # Relative name.
28327 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28328 esac
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28331 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28332 # The eval makes quoting arguments work.
28333 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28334 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28335 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28338 cd "$ac_popdir"
28339 done
28341 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28343 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}