2 # From configure.ac Revision: 1.57 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for gc 7.2alpha4.
6 # Report bugs to <Hans.Boehm@hp.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 $as_echo "$0: Please tell bug-autoconf@gnu.org and Hans.Boehm@hp.com
233 $0: about your system, including any error possibly output
234 $0: before this message. Then install a modern shell, or
235 $0: manually run the script under such a shell if you do
242 SHELL=${CONFIG_SHELL-/bin/sh}
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
253 # Portably unset VAR.
256 { eval $1=; unset $1;}
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 # Create "$as_dir" as a directory, including parents if necessary.
285 -*) as_dir=./$as_dir;;
287 test -d "$as_dir" || eval $as_mkdir_p || {
291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 as_dirs="'$as_qdir' $as_dirs"
295 as_dir=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297 X"$as_dir" : 'X\(//\)[^/]' \| \
298 X"$as_dir" : 'X\(//\)$' \| \
299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
318 test -d "$as_dir" && break
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332 eval 'as_fn_append ()
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 as_val=`expr "$@" || test $? -eq 1`
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
368 as_status=$?; test $as_status -eq 0 && as_status=1
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 $as_echo "$as_me: error: $1" >&2
374 as_fn_exit $as_status
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398 X"$0" : 'X\(//\)$' \| \
399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 sed '/^.*\/\([^/][^/]*\)\/*$/{
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
423 as_lineno_1=$LINENO as_lineno_1a=$LINENO
424 as_lineno_2=$LINENO as_lineno_2a=$LINENO
425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
443 chmod +x "$as_me.lineno" ||
444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446 # Don't try to exec as it changes $[0], causing all sort of problems
447 # (the dirname of $[0] is not the place where we might find the
448 # original and so on. Autoconf is especially sensitive to this).
450 # Exit status is that of the last command.
454 ECHO_C= ECHO_N= ECHO_T=
455 case `echo -n x` in #(((((
457 case `echo 'xy\c'` in
458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469 rm -f conf$$.dir/conf$$.file
472 mkdir conf$$.dir 2>/dev/null
474 if (echo >conf$$.file) 2>/dev/null; then
475 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 # ... but there are two gotchas:
478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480 # In both cases, we have to default to `cp -p'.
481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 elif ln conf$$.file conf$$ 2>/dev/null; then
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
494 if mkdir -p . 2>/dev/null; then
495 as_mkdir_p='mkdir -p "$as_dir"'
497 test -d ./-p && rmdir ./-p
501 if test -x / >/dev/null 2>&1; then
504 if ls -dL / >/dev/null 2>&1; then
511 if test -d "$1"; then
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
522 as_executable_p=$as_test_x
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 # Check that we are running under the correct shell.
533 SHELL=${CONFIG_SHELL-/bin/sh}
537 # Remove one level of quotation (which was required for Make).
538 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
543 if test "X$1" = X--no-reexec; then
544 # Discard the --no-reexec flag, and continue.
546 elif test "X$1" = X--fallback-echo; then
547 # Avoid inline document here, it may be left over
549 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
550 # Yippee, $ECHO works!
553 # Restart under the correct shell.
554 exec $SHELL "$0" --no-reexec ${1+"$@"}
557 if test "X$1" = X--fallback-echo; then
558 # used as fallback echo
566 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570 if test -z "$lt_ECHO"; then
571 if test "X${echo_test_string+set}" != Xset; then
572 # find a string as large as possible, as long as the shell can cope with it
573 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
574 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
575 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
576 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
584 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
585 test "X$echo_testing_string" = "X$echo_test_string"; then
588 # The Solaris, AIX, and Digital Unix default echo programs unquote
589 # backslashes. This makes it impossible to quote backslashes using
590 # echo "$something" | sed 's/\\/\\\\/g'
592 # So, first we look for a working echo in the user's PATH.
594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595 for dir in $PATH /usr/ucb; do
597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600 test "X$echo_testing_string" = "X$echo_test_string"; then
607 if test "X$ECHO" = Xecho; then
608 # We didn't find a better echo, so look for alternatives.
609 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # This shell has a builtin print -r that does the trick.
614 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
615 test "X$CONFIG_SHELL" != X/bin/ksh; then
616 # If we have ksh, try running configure again with it.
617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618 export ORIGINAL_CONFIG_SHELL
619 CONFIG_SHELL=/bin/ksh
621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
625 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631 test "X$echo_testing_string" = 'X\t' &&
632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 SHELL="$CONFIG_SHELL"
638 ECHO="$CONFIG_SHELL $0 --fallback-echo"
639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 # maybe with a smaller string...
648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656 if test "$prev" != 'sed 50q "$0"'; then
657 echo_test_string=`eval $prev`
658 export echo_test_string
659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 # Oops. We lost completely, so just stick with echo.
670 # Copy echo and quote the copy suitably for passing to libtool from
671 # the Makefile, instead of quoting the original, which is used later.
673 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
680 exec 7<&0 </dev/null 6>&1
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
690 ac_default_prefix=/usr/local
692 ac_config_libobj_dir=.
699 # Identity of this package.
702 PACKAGE_VERSION='7.2alpha4'
703 PACKAGE_STRING='gc 7.2alpha4'
704 PACKAGE_BUGREPORT='Hans.Boehm@hp.com'
707 ac_unique_file="gcj_mlc.c"
708 # Factoring default headers for most tests.
709 ac_includes_default="\
711 #ifdef HAVE_SYS_TYPES_H
712 # include <sys/types.h>
714 #ifdef HAVE_SYS_STAT_H
715 # include <sys/stat.h>
721 # ifdef HAVE_STDLIB_H
726 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731 #ifdef HAVE_STRINGS_H
732 # include <strings.h>
734 #ifdef HAVE_INTTYPES_H
735 # include <inttypes.h>
744 enable_option_checking=no
745 ac_subst_vars='LTLIBOBJS
747 NEED_ATOMIC_OPS_ASM_FALSE
748 NEED_ATOMIC_OPS_ASM_TRUE
749 USE_INTERNAL_LIBATOMIC_OPS_FALSE
750 USE_INTERNAL_LIBATOMIC_OPS_TRUE
758 ENABLE_GCJ_SUPPORT_FALSE
759 ENABLE_GCJ_SUPPORT_TRUE
788 OPENBSD_THREADS_FALSE
802 am__fastdepCCAS_FALSE
831 MAINTAINER_MODE_FALSE
841 INSTALL_STRIP_PROGRAM
895 program_transform_name
908 enable_option_checking
909 enable_maintainer_mode
910 enable_dependency_tracking
925 enable_java_finalization
926 enable_atomic_uncollectable
927 enable_redirect_malloc
933 ac_precious_vars='build_alias
948 ac_subdirs_all='libatomic_ops'
950 # Initialize some variables set by options.
952 ac_init_version=false
953 ac_unrecognized_opts=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
964 program_transform_name=s,x,x,
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1066 eval enable_$ac_useropt=no ;;
1068 -docdir | --docdir | --docdi | --doc | --do)
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_$ac_useropt"
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval enable_$ac_useropt=\$ac_optarg ;;
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 htmldir=$ac_optarg ;;
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1137 -libdir | --libdir | --libdi | --libd)
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1228 -psdir | --psdir | --psdi | --psd | --ps)
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 sbindir=$ac_optarg ;;
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 sharedstatedir=$ac_optarg ;;
1254 -site | --site | --sit)
1256 -site=* | --site=* | --sit=*)
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1296 eval with_$ac_useropt=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1312 eval with_$ac_useropt=no ;;
1315 # Obsolete; use --with-x.
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1332 -*) as_fn_error "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information."
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1347 # FIXME: should be removed in autoconf 3.0.
1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error "missing argument to $ac_option"
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1365 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1383 # Be sure to have absolute directory names.
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1396 target=$target_alias
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1403 If a cross compiler is detected then cross compile mode will be used." >&2
1404 elif test "x$build_alias" != "x$host_alias"; then
1410 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412 test "$silent" = yes && exec 6>/dev/null
1415 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416 ac_ls_di=`ls -di .` &&
1417 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418 as_fn_error "working directory cannot be determined"
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 as_fn_error "pwd does not report name of working directory"
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425 ac_srcdir_defaulted=yes
1426 # Try the directory containing this script, then the parent directory.
1427 ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429 X"$as_myself" : 'X\(//\)[^/]' \| \
1430 X"$as_myself" : 'X\(//\)$' \| \
1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1455 ac_srcdir_defaulted=no
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1465 # When building in place, set srcdir=.
1466 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 # Remove unnecessary trailing slashes from srcdir.
1470 # Double slashes in file names in object file debugging info
1471 # mess up M-x gdb in Emacs.
1473 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 for ac_var in $ac_precious_vars; do
1476 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_env_${ac_var}_value=\$${ac_var}
1478 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 # Report the --help message.
1485 if test "$ac_init_help" = "long"; then
1486 # Omit some internal or obsolete options to make the list less imposing.
1487 # This message is too long to be a string in the A/UX 3.1 sh.
1489 \`configure' configures gc 7.2alpha4 to adapt to many kinds of systems.
1491 Usage: $0 [OPTION]... [VAR=VALUE]...
1493 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494 VAR=VALUE. See below for descriptions of some of the useful variables.
1496 Defaults for the options are specified in brackets.
1499 -h, --help display this help and exit
1500 --help=short display options specific to this package
1501 --help=recursive display the short help of all the included packages
1502 -V, --version display version information and exit
1503 -q, --quiet, --silent do not print \`checking...' messages
1504 --cache-file=FILE cache test results in FILE [disabled]
1505 -C, --config-cache alias for \`--cache-file=config.cache'
1506 -n, --no-create do not create output files
1507 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509 Installation directories:
1510 --prefix=PREFIX install architecture-independent files in PREFIX
1511 [$ac_default_prefix]
1512 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 By default, \`make install' will install all the files in
1516 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1517 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518 for instance \`--prefix=\$HOME'.
1520 For better control, use the options below.
1522 Fine tuning of the installation directories:
1523 --bindir=DIR user executables [EPREFIX/bin]
1524 --sbindir=DIR system admin executables [EPREFIX/sbin]
1525 --libexecdir=DIR program executables [EPREFIX/libexec]
1526 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1527 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1528 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1529 --libdir=DIR object code libraries [EPREFIX/lib]
1530 --includedir=DIR C header files [PREFIX/include]
1531 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1534 --infodir=DIR info documentation [DATAROOTDIR/info]
1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1536 --mandir=DIR man documentation [DATAROOTDIR/man]
1537 --docdir=DIR documentation root [DATAROOTDIR/doc/gc]
1538 --htmldir=DIR html documentation [DOCDIR]
1539 --dvidir=DIR dvi documentation [DOCDIR]
1540 --pdfdir=DIR pdf documentation [DOCDIR]
1541 --psdir=DIR ps documentation [DOCDIR]
1547 --program-prefix=PREFIX prepend PREFIX to installed program names
1548 --program-suffix=SUFFIX append SUFFIX to installed program names
1549 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 --target=TARGET configure for building compilers for TARGET [HOST]
1558 if test -n "$ac_init_help"; then
1559 case $ac_init_help in
1560 short | recursive ) echo "Configuration of gc 7.2alpha4:";;
1565 --disable-option-checking ignore unrecognized --enable/--with options
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1568 --enable-maintainer-mode enable make rules and dependencies not useful
1569 (and sometimes confusing) to the casual installer
1570 --disable-dependency-tracking speeds up one-time build
1571 --enable-dependency-tracking do not reject slow dependency extractors
1572 --enable-threads=TYPE choose threading package
1573 --enable-parallel-mark parallelize marking and free list construction
1574 --enable-cplusplus install C++ support
1575 --enable-shared[=PKGS] build shared libraries [default=yes]
1576 --enable-static[=PKGS] build static libraries [default=yes]
1577 --enable-fast-install[=PKGS]
1578 optimize for fast installation [default=yes]
1579 --disable-libtool-lock avoid locking (might break parallel builds)
1580 --disable-gcj-support Disable support for gcj.
1581 --enable-gc-debug include full support for pointer backtracing etc.
1582 --disable-java-finalization
1583 Disable support for java finalization.
1584 --disable-atomic-uncollectible
1585 Disable support for atomic uncollectible allocation.
1586 --enable-redirect-malloc
1587 Redirect malloc and friends to GC routines
1588 --enable-large-config Optimize for large (> 100 MB) heap or root set
1589 --enable-gc-assertions collector-internal assertion checking
1590 --enable-munmap=N return page to the os if empty for N collections
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-ecos enable runtime eCos target support
1596 --with-pic try to use only PIC/non-PIC objects [default=use
1598 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1599 --with-target-subdir=SUBDIR
1600 configuring with a cross compiler
1601 --with-cross-host=HOST configuring with a cross compiler
1602 --with-libatomic-ops=yes|no|check
1603 Use a pre-installed libatomic_ops? (default: check)
1605 Some influential environment variables:
1606 CC C compiler command
1607 CFLAGS C compiler flags
1608 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609 nonstandard directory <lib dir>
1610 LIBS libraries to pass to the linker, e.g. -l<library>
1611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1613 CXX C++ compiler command
1614 CXXFLAGS C++ compiler flags
1615 CCAS assembler compiler command (defaults to CC)
1616 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1618 CXXCPP C++ preprocessor
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1623 Report bugs to <Hans.Boehm@hp.com>.
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" ||
1632 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640 # A ".." for each directory in $ac_dir_suffix.
1641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642 case $ac_top_builddir_sub in
1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1653 .) # We are building in place.
1655 ac_top_srcdir=$ac_top_builddir_sub
1656 ac_abs_top_srcdir=$ac_pwd ;;
1657 [\\/]* | ?:[\\/]* ) # Absolute name.
1658 ac_srcdir=$srcdir$ac_dir_suffix;
1659 ac_top_srcdir=$srcdir
1660 ac_abs_top_srcdir=$srcdir ;;
1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663 ac_top_srcdir=$ac_top_build_prefix$srcdir
1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668 cd "$ac_dir" || { ac_status=$?; continue; }
1669 # Check for guested configure.
1670 if test -f "$ac_srcdir/configure.gnu"; then
1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673 elif test -f "$ac_srcdir/configure"; then
1675 $SHELL "$ac_srcdir/configure" --help=recursive
1677 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679 cd "$ac_pwd" || { ac_status=$?; break; }
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1686 gc configure 7.2alpha4
1687 generated by GNU Autoconf 2.64
1689 Copyright (C) 2009 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1696 ## ------------------------ ##
1697 ## Autoconf initialization. ##
1698 ## ------------------------ ##
1700 # ac_fn_c_try_compile LINENO
1701 # --------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_compile ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext
1707 if { { ac_try="$ac_compile"
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext; then :
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736 } # ac_fn_c_try_compile
1738 # ac_fn_cxx_try_compile LINENO
1739 # ----------------------------
1740 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_cxx_try_compile ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext
1745 if { { ac_try="$ac_compile"
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_compile") 2>conftest.err
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_cxx_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest.$ac_objext; then :
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 } # ac_fn_cxx_try_compile
1776 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1777 # ----------------------------------------------------
1778 # Tries to find if the field MEMBER exists in type AGGR, after including
1779 # INCLUDES, setting cache variable VAR accordingly.
1780 ac_fn_c_check_member ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1784 $as_echo_n "checking for $2.$3... " >&6; }
1785 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1801 if ac_fn_c_try_compile "$LINENO"; then :
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1811 if (sizeof ac_aggr.$3)
1817 if ac_fn_c_try_compile "$LINENO"; then :
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831 } # ac_fn_c_check_member
1833 # ac_fn_c_try_link LINENO
1834 # -----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext conftest$ac_exeext
1840 if { { ac_try="$ac_link"
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>conftest.err
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
1860 $as_test_x conftest$ac_exeext
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 } # ac_fn_c_try_link
1879 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists and can be compiled using the include files in
1882 # INCLUDES, setting the cache variable VAR accordingly.
1883 ac_fn_c_check_header_compile ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889 $as_echo_n "(cached) " >&6
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1896 if ac_fn_c_try_compile "$LINENO"; then :
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 } # ac_fn_c_check_header_compile
1910 # ac_fn_c_try_cpp LINENO
1911 # ----------------------
1912 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { { ac_try="$ac_cpp conftest.$ac_ext"
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } >/dev/null && {
1932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1942 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947 # ac_fn_c_try_run LINENO
1948 # ----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1950 # that executables *can* be run.
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if { { ac_try="$ac_link"
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_link") 2>&5
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1965 { { case "(($ac_try" in
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_try") 2>&5
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; }; }; then :
1977 $as_echo "$as_me: program exited with status $ac_status" >&5
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1981 ac_retval=$ac_status
1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989 # ac_fn_c_check_func LINENO FUNC VAR
1990 # ----------------------------------
1991 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1992 ac_fn_c_check_func ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1998 $as_echo_n "(cached) " >&6
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2004 #define $2 innocuous_$2
2006 /* System header to define __stub macros and hopefully few prototypes,
2007 which can conflict with char $2 (); below.
2008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2009 <limits.h> exists even on freestanding compilers. */
2012 # include <limits.h>
2014 # include <assert.h>
2019 /* Override any GCC internal prototype to avoid an error.
2020 Use char because int might match the return type of a GCC
2021 builtin and then its argument prototype would still apply. */
2026 /* The GNU C library defines this for functions which it implements
2027 to always fail with ENOSYS. Some functions are actually named
2028 something starting with __ and the normal name is an alias. */
2029 #if defined __stub_$2 || defined __stub___$2
2041 if ac_fn_c_try_link "$LINENO"; then :
2046 rm -f core conftest.err conftest.$ac_objext \
2047 conftest$ac_exeext conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 } # ac_fn_c_check_func
2056 # ac_fn_cxx_try_cpp LINENO
2057 # ------------------------
2058 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2059 ac_fn_cxx_try_cpp ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if { { ac_try="$ac_cpp conftest.$ac_ext"
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } >/dev/null && {
2078 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2079 test ! -s conftest.err
2083 $as_echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.$ac_ext >&5
2088 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091 } # ac_fn_cxx_try_cpp
2093 # ac_fn_cxx_try_link LINENO
2094 # -------------------------
2095 # Try to link conftest.$ac_ext, and return whether this succeeded.
2096 ac_fn_cxx_try_link ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 rm -f conftest.$ac_objext conftest$ac_exeext
2100 if { { ac_try="$ac_link"
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 $as_echo "$ac_try_echo"; } >&5
2107 (eval "$ac_link") 2>conftest.err
2109 if test -s conftest.err; then
2110 grep -v '^ *+' conftest.err >conftest.er1
2111 cat conftest.er1 >&5
2112 mv -f conftest.er1 conftest.err
2114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2115 test $ac_status = 0; } && {
2116 test -z "$ac_cxx_werror_flag" ||
2117 test ! -s conftest.err
2118 } && test -s conftest$ac_exeext && {
2119 test "$cross_compiling" = yes ||
2120 $as_test_x conftest$ac_exeext
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2129 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2130 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2131 # interfere with the next link command; also delete a directory that is
2132 # left behind by Apple's compiler. We do this before executing the actions.
2133 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2134 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137 } # ac_fn_cxx_try_link
2139 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2140 # -------------------------------------------------------
2141 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2142 # the include files in INCLUDES and setting the cache variable VAR
2144 ac_fn_c_check_header_mongrel ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149 $as_echo_n "checking for $2... " >&6; }
2150 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2151 $as_echo_n "(cached) " >&6
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2157 # Is the header compilable?
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2159 $as_echo_n "checking $2 usability... " >&6; }
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_header_compiler=yes
2168 ac_header_compiler=no
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2172 $as_echo "$ac_header_compiler" >&6; }
2174 # Is the header present?
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2176 $as_echo_n "checking $2 presence... " >&6; }
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2181 if ac_fn_c_try_cpp "$LINENO"; then :
2182 ac_header_preproc=yes
2184 ac_header_preproc=no
2186 rm -f conftest.err conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2188 $as_echo "$ac_header_preproc" >&6; }
2190 # So? What about this header?
2191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2194 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2196 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2200 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2202 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2204 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2206 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2208 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210 ## -------------------------------- ##
2211 ## Report this to Hans.Boehm@hp.com ##
2212 ## -------------------------------- ##
2214 ) | sed "s/^/$as_me: WARNING: /" >&2
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2220 $as_echo_n "(cached) " >&6
2222 eval "$3=\$ac_header_compiler"
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2230 } # ac_fn_c_check_header_mongrel
2231 cat >config.log <<_ACEOF
2232 This file contains any messages produced by compilers while
2233 running configure, to aid debugging if configure makes a mistake.
2235 It was created by gc $as_me 7.2alpha4, which was
2236 generated by GNU Autoconf 2.64. Invocation command line was
2248 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2249 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2250 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2251 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2252 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2254 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2255 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2257 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2258 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2259 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2260 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2261 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2262 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2263 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 test -z "$as_dir" && as_dir=.
2272 $as_echo "PATH: $as_dir"
2288 # Keep a trace of the command line.
2289 # Strip out --no-create and --no-recursion so they do not pile up.
2290 # Strip out --silent because we don't want to record it for future runs.
2291 # Also quote any args containing shell meta-characters.
2292 # Make two passes to allow for proper duplicate-argument suppression.
2296 ac_must_keep_next=false
2302 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2304 | -silent | --silent | --silen | --sile | --sil)
2307 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2310 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2312 as_fn_append ac_configure_args1 " '$ac_arg'"
2313 if test $ac_must_keep_next = true; then
2314 ac_must_keep_next=false # Got value, back to normal.
2317 *=* | --config-cache | -C | -disable-* | --disable-* \
2318 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2319 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2320 | -with-* | --with-* | -without-* | --without-* | --x)
2321 case "$ac_configure_args0 " in
2322 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2325 -* ) ac_must_keep_next=true ;;
2328 as_fn_append ac_configure_args " '$ac_arg'"
2333 { ac_configure_args0=; unset ac_configure_args0;}
2334 { ac_configure_args1=; unset ac_configure_args1;}
2336 # When interrupted or exit'd, cleanup temporary files, and complete
2337 # config.log. We remove comments because anyway the quotes in there
2338 # would cause problems or look ugly.
2339 # WARNING: Use '\'' to represent an apostrophe within the trap.
2340 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2341 trap 'exit_status=$?
2342 # Save into config.log some information that might help in debugging.
2347 ## ---------------- ##
2348 ## Cache variables. ##
2349 ## ---------------- ##
2352 # The following way of writing the cache mishandles newlines in values,
2354 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2355 eval ac_val=\$$ac_var
2359 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2360 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2363 _ | IFS | as_nl) ;; #(
2364 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2365 *) { eval $ac_var=; unset $ac_var;} ;;
2370 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2371 *${as_nl}ac_space=\ *)
2373 "s/'\''/'\''\\\\'\'''\''/g;
2374 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2377 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385 ## ----------------- ##
2386 ## Output variables. ##
2387 ## ----------------- ##
2390 for ac_var in $ac_subst_vars
2392 eval ac_val=\$$ac_var
2394 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396 $as_echo "$ac_var='\''$ac_val'\''"
2400 if test -n "$ac_subst_files"; then
2402 ## ------------------- ##
2403 ## File substitutions. ##
2404 ## ------------------- ##
2407 for ac_var in $ac_subst_files
2409 eval ac_val=\$$ac_var
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413 $as_echo "$ac_var='\''$ac_val'\''"
2418 if test -s confdefs.h; then
2428 test "$ac_signal" != 0 &&
2429 $as_echo "$as_me: caught signal $ac_signal"
2430 $as_echo "$as_me: exit $exit_status"
2432 rm -f core *.core core.conftest.* &&
2433 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2436 for ac_signal in 1 2 13 15; do
2437 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2442 rm -f -r conftest* confdefs.h
2444 $as_echo "/* confdefs.h */" > confdefs.h
2446 # Predefined preprocessor variables.
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_NAME "$PACKAGE_NAME"
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_STRING "$PACKAGE_STRING"
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_URL "$PACKAGE_URL"
2473 # Let the site file select an alternate cache file if it wants to.
2474 # Prefer an explicitly selected file to automatically selected ones.
2477 if test -n "$CONFIG_SITE"; then
2478 ac_site_file1=$CONFIG_SITE
2479 elif test "x$prefix" != xNONE; then
2480 ac_site_file1=$prefix/share/config.site
2481 ac_site_file2=$prefix/etc/config.site
2483 ac_site_file1=$ac_default_prefix/share/config.site
2484 ac_site_file2=$ac_default_prefix/etc/config.site
2486 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2488 test "x$ac_site_file" = xNONE && continue
2489 if test -r "$ac_site_file"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2491 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2492 sed 's/^/| /' "$ac_site_file" >&5
2497 if test -r "$cache_file"; then
2498 # Some versions of bash will fail to source /dev/null (special
2499 # files actually), so we avoid doing that.
2500 if test -f "$cache_file"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2502 $as_echo "$as_me: loading cache $cache_file" >&6;}
2504 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2505 *) . "./$cache_file";;
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2510 $as_echo "$as_me: creating cache $cache_file" >&6;}
2514 # Check that the precious variables saved in the cache have kept the same
2516 ac_cache_corrupted=false
2517 for ac_var in $ac_precious_vars; do
2518 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2519 eval ac_new_set=\$ac_env_${ac_var}_set
2520 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2521 eval ac_new_val=\$ac_env_${ac_var}_value
2522 case $ac_old_set,$ac_new_set in
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2525 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2526 ac_cache_corrupted=: ;;
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2529 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2530 ac_cache_corrupted=: ;;
2533 if test "x$ac_old_val" != "x$ac_new_val"; then
2534 # differences in whitespace do not lead to failure.
2535 ac_old_val_w=`echo x $ac_old_val`
2536 ac_new_val_w=`echo x $ac_new_val`
2537 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2539 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2540 ac_cache_corrupted=:
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2543 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2544 eval $ac_var=\$ac_old_val
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2547 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2549 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2552 # Pass precious variables to config.status.
2553 if test "$ac_new_set" = set; then
2555 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2556 *) ac_arg=$ac_var=$ac_new_val ;;
2558 case " $ac_configure_args " in
2559 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2560 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2564 if $ac_cache_corrupted; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2568 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2569 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2571 ## -------------------- ##
2572 ## Main body of script. ##
2573 ## -------------------- ##
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
2586 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2587 for ac_t in install-sh install.sh shtool; do
2588 if test -f "$ac_dir/$ac_t"; then
2590 ac_install_sh="$ac_aux_dir/$ac_t -c"
2595 if test -z "$ac_aux_dir"; then
2596 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2599 # These three variables are undocumented and unsupported,
2600 # and are intended to be withdrawn in a future Autoconf release.
2601 # They can cause serious problems if a builder's source tree is in a directory
2602 # whose full name contains unusual characters.
2603 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2604 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2605 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2608 # Make sure we can run config.sub.
2609 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2610 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2613 $as_echo_n "checking build system type... " >&6; }
2614 if test "${ac_cv_build+set}" = set; then :
2615 $as_echo_n "(cached) " >&6
2617 ac_build_alias=$build_alias
2618 test "x$ac_build_alias" = x &&
2619 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2620 test "x$ac_build_alias" = x &&
2621 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2622 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2623 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2627 $as_echo "$ac_cv_build" >&6; }
2628 case $ac_cv_build in
2630 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2633 ac_save_IFS=$IFS; IFS='-'
2639 # Remember, the first character of IFS is used to create $*,
2640 # except with old shells:
2643 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2647 $as_echo_n "checking host system type... " >&6; }
2648 if test "${ac_cv_host+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2651 if test "x$host_alias" = x; then
2652 ac_cv_host=$ac_cv_build
2654 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2655 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2660 $as_echo "$ac_cv_host" >&6; }
2663 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2666 ac_save_IFS=$IFS; IFS='-'
2672 # Remember, the first character of IFS is used to create $*,
2673 # except with old shells:
2676 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2680 $as_echo_n "checking target system type... " >&6; }
2681 if test "${ac_cv_target+set}" = set; then :
2682 $as_echo_n "(cached) " >&6
2684 if test "x$target_alias" = x; then
2685 ac_cv_target=$ac_cv_host
2687 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2688 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2693 $as_echo "$ac_cv_target" >&6; }
2694 case $ac_cv_target in
2696 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2698 target=$ac_cv_target
2699 ac_save_IFS=$IFS; IFS='-'
2705 # Remember, the first character of IFS is used to create $*,
2706 # except with old shells:
2709 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2712 # The aliases save the names the user supplied, while $host etc.
2713 # will get canonicalized.
2714 test -n "$target_alias" &&
2715 test "$program_prefix$program_suffix$program_transform_name" = \
2717 program_prefix=${target_alias}-
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC version numbers" >&5
2722 $as_echo_n "checking GC version numbers... " >&6; }
2723 GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([0-9][0-9]*\)[.].*$/\1/g'`
2724 GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.]\([0-9][0-9]*\).*$/\1/g'`
2725 GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.][0-9]*//'`
2727 case "$GC_ALPHA_VERSION" in
2729 GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \
2730 | sed 's/alpha\([0-9][0-9]*\)/\1/'` ;;
2731 *) GC_ALPHA_MAJOR='' ;;
2734 if test :$GC_VERSION_MAJOR: = :: \
2735 -o :$GC_VERSION_MINOR: = :: ;
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
2738 $as_echo "invalid" >&6; }
2739 as_fn_error "nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" "$LINENO" 5
2743 cat >>confdefs.h <<_ACEOF
2744 #define GC_VERSION_MAJOR $GC_VERSION_MAJOR
2748 cat >>confdefs.h <<_ACEOF
2749 #define GC_VERSION_MINOR $GC_VERSION_MINOR
2752 if test :$GC_ALPHA_VERSION: != :: ; then
2754 cat >>confdefs.h <<_ACEOF
2755 #define GC_ALPHA_VERSION $GC_ALPHA_VERSION
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2760 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&5
2761 $as_echo "major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2762 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&6; }
2764 am__api_version='1.10'
2766 # Find a good install program. We prefer a C program (faster),
2767 # so one script is as good as another. But avoid the broken or
2768 # incompatible versions:
2769 # SysV /etc/install, /usr/sbin/install
2770 # SunOS /usr/etc/install
2771 # IRIX /sbin/install
2773 # AmigaOS /C/install, which installs bootblocks on floppy discs
2774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2777 # OS/2's system install, which has a completely different semantic
2778 # ./install, which can be erroneously created by make from ./install.sh.
2779 # Reject install programs that cannot install multiple files.
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2781 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2782 if test -z "$INSTALL"; then
2783 if test "${ac_cv_path_install+set}" = set; then :
2784 $as_echo_n "(cached) " >&6
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 # Account for people who put trailing slashes in PATH elements.
2792 case $as_dir/ in #((
2793 ./ | .// | /[cC]/* | \
2794 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2795 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2798 # OSF1 and SCO ODT 3.0 have their own names for install.
2799 # Don't use installbsd from OSF since it installs stuff as root
2801 for ac_prog in ginstall scoinst install; do
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2804 if test $ac_prog = install &&
2805 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2806 # AIX install. It has an incompatible calling convention.
2808 elif test $ac_prog = install &&
2809 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2810 # program-specific install script used by HP pwplus--don't use.
2813 rm -rf conftest.one conftest.two conftest.dir
2814 echo one > conftest.one
2815 echo two > conftest.two
2817 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2818 test -s conftest.one && test -s conftest.two &&
2819 test -s conftest.dir/conftest.one &&
2820 test -s conftest.dir/conftest.two
2822 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2835 rm -rf conftest.one conftest.two conftest.dir
2838 if test "${ac_cv_path_install+set}" = set; then
2839 INSTALL=$ac_cv_path_install
2841 # As a last resort, use the slow shell script. Don't cache a
2842 # value for INSTALL within a source directory, because that will
2843 # break other packages using the cache if that directory is
2844 # removed, or if the value is a relative name.
2845 INSTALL=$ac_install_sh
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2849 $as_echo "$INSTALL" >&6; }
2851 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2852 # It thinks the first close brace ends the variable substitution.
2853 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2855 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2857 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2860 $as_echo_n "checking whether build environment is sane... " >&6; }
2863 echo timestamp > conftest.file
2864 # Do `set' in a subshell so we don't clobber the current shell's
2865 # arguments. Must try -L first in case configure is actually a
2866 # symlink; some systems play weird games with the mod time of symlinks
2867 # (eg FreeBSD returns the mod time of the symlink's containing
2870 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2871 if test "$*" = "X"; then
2873 set X `ls -t $srcdir/configure conftest.file`
2876 if test "$*" != "X $srcdir/configure conftest.file" \
2877 && test "$*" != "X conftest.file $srcdir/configure"; then
2879 # If neither matched, then we have a broken ls. This can happen
2880 # if, for instance, CONFIG_SHELL is bash and it inherits a
2881 # broken ls alias from the environment. This has actually
2882 # happened. Such a system could not be considered "sane".
2883 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2884 alias in your environment" "$LINENO" 5
2887 test "$2" = conftest.file
2893 as_fn_error "newly created file is older than distributed files!
2894 Check your system clock" "$LINENO" 5
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2897 $as_echo "yes" >&6; }
2898 test "$program_prefix" != NONE &&
2899 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2900 # Use a double $ so make ignores it.
2901 test "$program_suffix" != NONE &&
2902 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2903 # Double any \ or $.
2904 # By default was `s,x,x', remove it if useless.
2905 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2906 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2908 # expand $ac_aux_dir to an absolute path
2909 am_aux_dir=`cd $ac_aux_dir && pwd`
2911 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2912 # Use eval to expand $SHELL
2913 if eval "$MISSING --run true"; then
2914 am_missing_run="$MISSING --run "
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2918 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2922 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2923 if test -z "$MKDIR_P"; then
2924 if test "${ac_cv_path_mkdir+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2931 test -z "$as_dir" && as_dir=.
2932 for ac_prog in mkdir gmkdir; do
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2935 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2936 'mkdir (GNU coreutils) '* | \
2937 'mkdir (coreutils) '* | \
2938 'mkdir (fileutils) '4.1*)
2939 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2949 if test "${ac_cv_path_mkdir+set}" = set; then
2950 MKDIR_P="$ac_cv_path_mkdir -p"
2952 # As a last resort, use the slow shell script. Don't cache a
2953 # value for MKDIR_P within a source directory, because that will
2954 # break other packages using the cache if that directory is
2955 # removed, or if the value is a relative name.
2956 test -d ./--version && rmdir ./--version
2957 MKDIR_P="$ac_install_sh -d"
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2961 $as_echo "$MKDIR_P" >&6; }
2965 [\\/$]* | ?:[\\/]*) ;;
2966 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2969 for ac_prog in gawk mawk nawk awk
2971 # Extract the first word of "$ac_prog", so it can be a program name with args.
2972 set dummy $ac_prog; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_AWK+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$AWK"; then
2979 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_AWK="$ac_prog"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 if test -n "$AWK"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3001 $as_echo "$AWK" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3008 test -n "$AWK" && break
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3012 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3014 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3015 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3016 $as_echo_n "(cached) " >&6
3018 cat >conftest.make <<\_ACEOF
3021 @echo '@@@%%%=$(MAKE)=@@@%%%'
3023 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3024 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3026 eval ac_cv_prog_make_${ac_make}_set=yes;;
3028 eval ac_cv_prog_make_${ac_make}_set=no;;
3032 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034 $as_echo "yes" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 SET_MAKE="MAKE=${MAKE-make}"
3042 rm -rf .tst 2>/dev/null
3043 mkdir .tst 2>/dev/null
3044 if test -d .tst; then
3049 rmdir .tst 2>/dev/null
3051 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3052 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3053 # is not polluted with repeated "-I."
3054 am__isrc=' -I$(srcdir)'
3055 # test to see if srcdir already configured
3056 if test -f $srcdir/config.status; then
3057 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3061 # test whether we have cygpath
3062 if test -z "$CYGPATH_W"; then
3063 if (cygpath --version) >/dev/null 2>/dev/null; then
3064 CYGPATH_W='cygpath -w'
3071 # Define the identity of the package.
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE "$PACKAGE"
3081 cat >>confdefs.h <<_ACEOF
3082 #define VERSION "$VERSION"
3085 # Some tools Automake needs.
3087 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3090 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3093 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3096 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3099 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3101 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3103 # Installed binaries are usually stripped using `strip' when the user
3104 # run `make install-strip'. However `strip' might not be the right
3105 # tool to use in cross-compilation environments, therefore Automake
3106 # will honor the `STRIP' environment variable to overrule this program.
3107 if test "$cross_compiling" != no; then
3108 if test -n "$ac_tool_prefix"; then
3109 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3110 set dummy ${ac_tool_prefix}strip; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_STRIP+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3116 if test -n "$STRIP"; then
3117 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 STRIP=$ac_cv_prog_STRIP
3137 if test -n "$STRIP"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3139 $as_echo "$STRIP" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3147 if test -z "$ac_cv_prog_STRIP"; then
3149 # Extract the first word of "strip", so it can be a program name with args.
3150 set dummy strip; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3156 if test -n "$ac_ct_STRIP"; then
3157 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_ac_ct_STRIP="strip"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3177 if test -n "$ac_ct_STRIP"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3179 $as_echo "$ac_ct_STRIP" >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3185 if test "x$ac_ct_STRIP" = x; then
3188 case $cross_compiling:$ac_tool_warned in
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned=yes ;;
3197 STRIP="$ac_cv_prog_STRIP"
3201 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3203 # We need awk for the "check" target. The system "awk" is bad on
3205 # Always define AMTAR for backward compatibility.
3207 AMTAR=${AMTAR-"${am_missing_run}tar"}
3209 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3215 ac_config_headers="$ac_config_headers include/private/config.h"
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3218 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3219 # Check whether --enable-maintainer-mode was given.
3220 if test "${enable_maintainer_mode+set}" = set; then :
3221 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3223 USE_MAINTAINER_MODE=no
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3227 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3228 if test $USE_MAINTAINER_MODE = yes; then
3229 MAINTAINER_MODE_TRUE=
3230 MAINTAINER_MODE_FALSE='#'
3232 MAINTAINER_MODE_TRUE='#'
3233 MAINTAINER_MODE_FALSE=
3236 MAINT=$MAINTAINER_MODE_TRUE
3243 DEPDIR="${am__leading_dot}deps"
3245 ac_config_commands="$ac_config_commands depfiles"
3248 am_make=${MAKE-make}
3249 cat > confinc << 'END'
3254 # If we don't find an include directive, just comment out the code.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3256 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3260 # First try GNU make style include.
3261 echo "include confinc" > confmf
3262 # We grep out `Entering directory' and `Leaving directory'
3263 # messages which can occur if `w' ends up in MAKEFLAGS.
3264 # In particular we don't look at `^make:' because GNU make might
3265 # be invoked under some other name (usually "gmake"), in which
3266 # case it prints its new name instead of `make'.
3267 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3272 # Now try BSD make style include.
3273 if test "$am__include" = "#"; then
3274 echo '.include "confinc"' > confmf
3275 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3276 am__include=.include
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3284 $as_echo "$_am_result" >&6; }
3285 rm -f confinc confmf
3287 # Check whether --enable-dependency-tracking was given.
3288 if test "${enable_dependency_tracking+set}" = set; then :
3289 enableval=$enable_dependency_tracking;
3292 if test "x$enable_dependency_tracking" != xno; then
3293 am_depcomp="$ac_aux_dir/depcomp"
3296 if test "x$enable_dependency_tracking" != xno; then
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 if test -n "$ac_tool_prefix"; then
3311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if test "${ac_cv_prog_CC+set}" = set; then :
3316 $as_echo_n "(cached) " >&6
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3349 if test -z "$ac_cv_prog_CC"; then
3351 # Extract the first word of "gcc", so it can be a program name with args.
3352 set dummy gcc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3356 $as_echo_n "(cached) " >&6
3358 if test -n "$ac_ct_CC"; then
3359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368 ac_cv_prog_ac_ct_CC="gcc"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379 if test -n "$ac_ct_CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3381 $as_echo "$ac_ct_CC" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3387 if test "x$ac_ct_CC" = x; then
3390 case $cross_compiling:$ac_tool_warned in
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394 ac_tool_warned=yes ;;
3402 if test -z "$CC"; then
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_CC+set}" = set; then :
3409 $as_echo_n "(cached) " >&6
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_CC="${ac_tool_prefix}cc"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 if test -n "$CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3443 if test -z "$CC"; then
3444 # Extract the first word of "cc", so it can be a program name with args.
3445 set dummy cc; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if test "${ac_cv_prog_CC+set}" = set; then :
3449 $as_echo_n "(cached) " >&6
3451 if test -n "$CC"; then
3452 ac_cv_prog_CC="$CC" # Let the user override the test.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3463 ac_prog_rejected=yes
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 if test $ac_prog_rejected = yes; then
3475 # We found a bogon in the path, so make sure we never use it.
3476 set dummy $ac_cv_prog_CC
3478 if test $# != 0; then
3479 # We chose a different compiler from the bogus one.
3480 # However, it has the same basename, so the bogon will be chosen
3481 # first if we set CC to just the basename; use the full file name.
3483 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3499 if test -z "$CC"; then
3500 if test -n "$ac_tool_prefix"; then
3501 for ac_prog in cl.exe
3503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3540 test -n "$CC" && break
3543 if test -z "$CC"; then
3545 for ac_prog in cl.exe
3547 # Extract the first word of "$ac_prog", so it can be a program name with args.
3548 set dummy $ac_prog; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3554 if test -n "$ac_ct_CC"; then
3555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_ac_ct_CC="$ac_prog"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3584 test -n "$ac_ct_CC" && break
3587 if test "x$ac_ct_CC" = x; then
3590 case $cross_compiling:$ac_tool_warned in
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3603 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error "no acceptable C compiler found in \$PATH
3606 See \`config.log' for more details." "$LINENO" 5; }
3608 # Provide some information about the compiler.
3609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3612 for ac_option in --version -v -V -qversion; do
3613 { { ac_try="$ac_compiler $ac_option >&5"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3622 if test -s conftest.err; then
3624 ... rest of stderr output deleted ...
3625 10q' conftest.err >conftest.er1
3626 cat conftest.er1 >&5
3627 rm -f conftest.er1 conftest.err
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3639 FILE *f = fopen ("conftest.out", "w");
3640 return ferror (f) || fclose (f) != 0;
3646 ac_clean_files_save=$ac_clean_files
3647 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3648 # Try to create an executable without -o first, disregard a.out.
3649 # It will help us diagnose broken compilers, and finding out an intuition
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3652 $as_echo_n "checking for C compiler default output file name... " >&6; }
3653 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3655 # The possible output files:
3656 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3659 for ac_file in $ac_files
3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3663 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3668 if { { ac_try="$ac_link_default"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_link_default") 2>&5
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }; then :
3679 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3680 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3681 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3682 # so that the user can short-circuit this test for compilers unknown to
3684 for ac_file in $ac_files ''
3686 test -f "$ac_file" || continue
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3691 # We found the default executable, but exeext='' is most
3695 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3697 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3699 # We set ac_cv_exeext here because the later test for it is not
3700 # safe: cross compilers may not add the suffix if given an `-o'
3701 # argument, so we may need to know it at that point already.
3702 # Even if this section looks crufty: it has the advantage of
3709 test "$ac_cv_exeext" = no && ac_cv_exeext=
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3715 $as_echo "$ac_file" >&6; }
3716 if test -z "$ac_file"; then :
3717 $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 { as_fn_set_status 77
3723 as_fn_error "C compiler cannot create executables
3724 See \`config.log' for more details." "$LINENO" 5; }; }
3726 ac_exeext=$ac_cv_exeext
3728 # Check that the compiler produces executables we can run. If not, either
3729 # the compiler is broken, or we cross compile.
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3731 $as_echo_n "checking whether the C compiler works... " >&6; }
3732 # If not cross compiling, check that we can run a simple program.
3733 if test "$cross_compiling" != yes; then
3734 if { ac_try='./$ac_file'
3735 { { case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_try") 2>&5
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; }; then
3747 if test "$cross_compiling" = maybe; then
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "cannot run C compiled programs.
3753 If you meant to cross compile, use \`--host'.
3754 See \`config.log' for more details." "$LINENO" 5; }
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3759 $as_echo "yes" >&6; }
3761 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3762 ac_clean_files=$ac_clean_files_save
3763 # Check that the compiler produces executables we can run. If not, either
3764 # the compiler is broken, or we cross compile.
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3766 $as_echo_n "checking whether we are cross compiling... " >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3768 $as_echo "$cross_compiling" >&6; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3771 $as_echo_n "checking for suffix of executables... " >&6; }
3772 if { { ac_try="$ac_link"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_link") 2>&5
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }; then :
3783 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3784 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3785 # work properly (i.e., refer to `conftest.exe'), while it won't with
3787 for ac_file in conftest.exe conftest conftest.*; do
3788 test -f "$ac_file" || continue
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3791 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error "cannot compute suffix of executables: cannot compile and link
3800 See \`config.log' for more details." "$LINENO" 5; }
3802 rm -f conftest$ac_cv_exeext
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3804 $as_echo "$ac_cv_exeext" >&6; }
3806 rm -f conftest.$ac_ext
3807 EXEEXT=$ac_cv_exeext
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3810 $as_echo_n "checking for suffix of object files... " >&6; }
3811 if test "${ac_cv_objext+set}" = set; then :
3812 $as_echo_n "(cached) " >&6
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3825 rm -f conftest.o conftest.obj
3826 if { { ac_try="$ac_compile"
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832 $as_echo "$ac_try_echo"; } >&5
3833 (eval "$ac_compile") 2>&5
3835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836 test $ac_status = 0; }; then :
3837 for ac_file in conftest.o conftest.obj conftest.*; do
3838 test -f "$ac_file" || continue;
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3841 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3846 $as_echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 as_fn_error "cannot compute suffix of object files: cannot compile
3852 See \`config.log' for more details." "$LINENO" 5; }
3854 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3857 $as_echo "$ac_cv_objext" >&6; }
3858 OBJEXT=$ac_cv_objext
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3861 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3862 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3863 $as_echo_n "(cached) " >&6
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3879 if ac_fn_c_try_compile "$LINENO"; then :
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3889 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3890 if test $ac_compiler_gnu = yes; then
3895 ac_test_CFLAGS=${CFLAGS+set}
3896 ac_save_CFLAGS=$CFLAGS
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3898 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3899 if test "${ac_cv_prog_cc_g+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3902 ac_save_c_werror_flag=$ac_c_werror_flag
3903 ac_c_werror_flag=yes
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3917 if ac_fn_c_try_compile "$LINENO"; then :
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3932 if ac_fn_c_try_compile "$LINENO"; then :
3935 ac_c_werror_flag=$ac_save_c_werror_flag
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3948 if ac_fn_c_try_compile "$LINENO"; then :
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 ac_c_werror_flag=$ac_save_c_werror_flag
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3959 $as_echo "$ac_cv_prog_cc_g" >&6; }
3960 if test "$ac_test_CFLAGS" = set; then
3961 CFLAGS=$ac_save_CFLAGS
3962 elif test $ac_cv_prog_cc_g = yes; then
3963 if test "$GCC" = yes; then
3969 if test "$GCC" = yes; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3976 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3977 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3980 ac_cv_prog_cc_c89=no
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3986 #include <sys/types.h>
3987 #include <sys/stat.h>
3988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3989 struct buf { int x; };
3990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3991 static char *e (p, i)
3997 static char *f (char * (*g) (char **, int), char **p, ...)
4002 s = g (p, va_arg (v,int));
4007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4008 function prototypes and stuff, but not '\xHH' hex character constants.
4009 These don't provoke an error unfortunately, instead are silently treated
4010 as 'x'. The following induces an error, until -std is added to get
4011 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4012 array size at least. It's necessary to write '\x00'==0 to get something
4013 that's true only with -std. */
4014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4016 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4017 inside strings and character constants. */
4019 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4021 int test (int i, double x);
4022 struct s1 {int (*f) (int a);};
4023 struct s2 {int (*f) (double a);};
4024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4030 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4035 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4036 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4038 CC="$ac_save_CC $ac_arg"
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040 ac_cv_prog_cc_c89=$ac_arg
4042 rm -f core conftest.err conftest.$ac_objext
4043 test "x$ac_cv_prog_cc_c89" != "xno" && break
4045 rm -f conftest.$ac_ext
4050 case "x$ac_cv_prog_cc_c89" in
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4053 $as_echo "none needed" >&6; } ;;
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4056 $as_echo "unsupported" >&6; } ;;
4058 CC="$CC $ac_cv_prog_cc_c89"
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4060 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4062 if test "x$ac_cv_prog_cc_c89" != xno; then :
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072 depcc="$CC" am_compiler_list=
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4075 $as_echo_n "checking dependency style of $depcc... " >&6; }
4076 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4079 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4080 # We make a subdir and do the tests there. Otherwise we can end up
4081 # making bogus files that we don't know about and never remove. For
4082 # instance it was reported that on HP-UX the gcc test will end up
4083 # making a dummy file named `D' -- because `-MD' means `put the output
4086 # Copy depcomp to subdir because otherwise we won't find it if we're
4087 # using a relative directory.
4088 cp "$am_depcomp" conftest.dir
4090 # We will build objects and dependencies in a subdirectory because
4091 # it helps to detect inapplicable dependency modes. For instance
4092 # both Tru64's cc and ICC support -MD to output dependencies as a
4093 # side effect of compilation, but ICC will put the dependencies in
4094 # the current directory while Tru64 will put them in the object
4098 am_cv_CC_dependencies_compiler_type=none
4099 if test "$am_compiler_list" = ""; then
4100 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4102 for depmode in $am_compiler_list; do
4103 # Setup a source with many dependencies, because some compilers
4104 # like to wrap large dependency lists on column 80 (with \), and
4105 # we should not choose a depcomp mode which is confused by this.
4107 # We need to recreate these files for each test, as the compiler may
4108 # overwrite some of them when testing with obscure command lines.
4109 # This happens at least with the AIX C compiler.
4111 for i in 1 2 3 4 5 6; do
4112 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4113 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4114 # Solaris 8's {/usr,}/bin/sh.
4115 touch sub/conftst$i.h
4117 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4121 # after this tag, mechanisms are not by side-effect, so they'll
4122 # only be used when explicitly requested
4123 if test "x$enable_dependency_tracking" = xyes; then
4131 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4132 # mode. It turns out that the SunPro C++ compiler does not properly
4133 # handle `-M -o', and we need to detect this.
4134 if depmode=$depmode \
4135 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4137 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4138 >/dev/null 2>conftest.err &&
4139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4141 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4143 # icc doesn't choke on unknown options, it will just issue warnings
4144 # or remarks (even with -Werror). So we grep stderr for any message
4145 # that says an option was ignored or not supported.
4146 # When given -MP, icc 7.0 and 7.1 complain thusly:
4147 # icc: Command line warning: ignoring option '-M'; no argument required
4148 # The diagnosis changed in icc 8.0:
4149 # icc: Command line remark: option '-MP' not supported
4150 if (grep 'ignoring option' conftest.err ||
4151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4152 am_cv_CC_dependencies_compiler_type=$depmode
4161 am_cv_CC_dependencies_compiler_type=none
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4166 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4167 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4170 test "x$enable_dependency_tracking" != xno \
4171 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4173 am__fastdepCC_FALSE='#'
4175 am__fastdepCC_TRUE='#'
4176 am__fastdepCC_FALSE=
4180 if test "x$CC" != xcc; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4182 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4185 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4187 set dummy $CC; ac_cc=`$as_echo "$2" |
4188 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4189 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4190 $as_echo_n "(cached) " >&6
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4203 # Make sure it works both with $CC and with simple cc.
4204 # We do the test twice because some compilers refuse to overwrite an
4205 # existing .o file with -o, though they will create one.
4206 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4208 if { { case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213 $as_echo "$ac_try_echo"; } >&5
4214 (eval "$ac_try") 2>&5
4216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217 test $ac_status = 0; } &&
4218 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_try") 2>&5
4226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; };
4229 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4230 if test "x$CC" != xcc; then
4231 # Test first that cc exists at all.
4232 if { ac_try='cc -c conftest.$ac_ext >&5'
4233 { { case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 $as_echo "$ac_try_echo"; } >&5
4239 (eval "$ac_try") 2>&5
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }; }; then
4243 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4245 if { { case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_try") 2>&5
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; } &&
4255 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_try") 2>&5
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; };
4269 # cc exists but doesn't like -o.
4270 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4275 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4277 rm -f core conftest*
4280 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4282 $as_echo "yes" >&6; }
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4287 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4291 # FIXME: we rely on the cache variable name because
4292 # there is no other way.
4294 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4295 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4296 if test "$am_t" != yes; then
4297 # Losing compiler, so override with the script.
4298 # FIXME: It is wrong to rewrite CC.
4299 # But if we don't then we get into trouble of one sort or another.
4300 # A longer-term fix would be to have automake use am__CC in this case,
4301 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4302 CC="$am_aux_dir/compile $CC"
4307 ac_cpp='$CXXCPP $CPPFLAGS'
4308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4311 if test -z "$CXX"; then
4312 if test -n "$CCC"; then
4315 if test -n "$ac_tool_prefix"; then
4316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_CXX+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -n "$CXX"; then
4326 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 if test -n "$CXX"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4348 $as_echo "$CXX" >&6; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4355 test -n "$CXX" && break
4358 if test -z "$CXX"; then
4360 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4369 if test -n "$ac_ct_CXX"; then
4370 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_CXX="$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4390 if test -n "$ac_ct_CXX"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4392 $as_echo "$ac_ct_CXX" >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4399 test -n "$ac_ct_CXX" && break
4402 if test "x$ac_ct_CXX" = x; then
4405 case $cross_compiling:$ac_tool_warned in
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4417 # Provide some information about the compiler.
4418 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4421 for ac_option in --version -v -V -qversion; do
4422 { { ac_try="$ac_compiler $ac_option >&5"
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428 $as_echo "$ac_try_echo"; } >&5
4429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4431 if test -s conftest.err; then
4433 ... rest of stderr output deleted ...
4434 10q' conftest.err >conftest.er1
4435 cat conftest.er1 >&5
4436 rm -f conftest.er1 conftest.err
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4443 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4444 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4461 if ac_fn_cxx_try_compile "$LINENO"; then :
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4471 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4472 if test $ac_compiler_gnu = yes; then
4477 ac_test_CXXFLAGS=${CXXFLAGS+set}
4478 ac_save_CXXFLAGS=$CXXFLAGS
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4480 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4481 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4484 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4485 ac_cxx_werror_flag=yes
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4499 if ac_fn_cxx_try_compile "$LINENO"; then :
4500 ac_cv_prog_cxx_g=yes
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4514 if ac_fn_cxx_try_compile "$LINENO"; then :
4517 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4530 if ac_fn_cxx_try_compile "$LINENO"; then :
4531 ac_cv_prog_cxx_g=yes
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4541 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4542 if test "$ac_test_CXXFLAGS" = set; then
4543 CXXFLAGS=$ac_save_CXXFLAGS
4544 elif test $ac_cv_prog_cxx_g = yes; then
4545 if test "$GXX" = yes; then
4551 if test "$GXX" = yes; then
4558 ac_cpp='$CPP $CPPFLAGS'
4559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 depcc="$CXX" am_compiler_list=
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4566 $as_echo_n "checking dependency style of $depcc... " >&6; }
4567 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4571 # We make a subdir and do the tests there. Otherwise we can end up
4572 # making bogus files that we don't know about and never remove. For
4573 # instance it was reported that on HP-UX the gcc test will end up
4574 # making a dummy file named `D' -- because `-MD' means `put the output
4577 # Copy depcomp to subdir because otherwise we won't find it if we're
4578 # using a relative directory.
4579 cp "$am_depcomp" conftest.dir
4581 # We will build objects and dependencies in a subdirectory because
4582 # it helps to detect inapplicable dependency modes. For instance
4583 # both Tru64's cc and ICC support -MD to output dependencies as a
4584 # side effect of compilation, but ICC will put the dependencies in
4585 # the current directory while Tru64 will put them in the object
4589 am_cv_CXX_dependencies_compiler_type=none
4590 if test "$am_compiler_list" = ""; then
4591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4593 for depmode in $am_compiler_list; do
4594 # Setup a source with many dependencies, because some compilers
4595 # like to wrap large dependency lists on column 80 (with \), and
4596 # we should not choose a depcomp mode which is confused by this.
4598 # We need to recreate these files for each test, as the compiler may
4599 # overwrite some of them when testing with obscure command lines.
4600 # This happens at least with the AIX C compiler.
4602 for i in 1 2 3 4 5 6; do
4603 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4604 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4605 # Solaris 8's {/usr,}/bin/sh.
4606 touch sub/conftst$i.h
4608 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4612 # after this tag, mechanisms are not by side-effect, so they'll
4613 # only be used when explicitly requested
4614 if test "x$enable_dependency_tracking" = xyes; then
4622 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4623 # mode. It turns out that the SunPro C++ compiler does not properly
4624 # handle `-M -o', and we need to detect this.
4625 if depmode=$depmode \
4626 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4627 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4628 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4629 >/dev/null 2>conftest.err &&
4630 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4631 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4632 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4633 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4634 # icc doesn't choke on unknown options, it will just issue warnings
4635 # or remarks (even with -Werror). So we grep stderr for any message
4636 # that says an option was ignored or not supported.
4637 # When given -MP, icc 7.0 and 7.1 complain thusly:
4638 # icc: Command line warning: ignoring option '-M'; no argument required
4639 # The diagnosis changed in icc 8.0:
4640 # icc: Command line remark: option '-MP' not supported
4641 if (grep 'ignoring option' conftest.err ||
4642 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4643 am_cv_CXX_dependencies_compiler_type=$depmode
4652 am_cv_CXX_dependencies_compiler_type=none
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4657 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4658 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4661 test "x$enable_dependency_tracking" != xno \
4662 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4663 am__fastdepCXX_TRUE=
4664 am__fastdepCXX_FALSE='#'
4666 am__fastdepCXX_TRUE='#'
4667 am__fastdepCXX_FALSE=
4672 # By default we simply use the C compiler to build assembly code.
4674 test "${CCAS+set}" = set || CCAS=$CC
4675 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4679 depcc="$CCAS" am_compiler_list=
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4682 $as_echo_n "checking dependency style of $depcc... " >&6; }
4683 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4686 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4687 # We make a subdir and do the tests there. Otherwise we can end up
4688 # making bogus files that we don't know about and never remove. For
4689 # instance it was reported that on HP-UX the gcc test will end up
4690 # making a dummy file named `D' -- because `-MD' means `put the output
4693 # Copy depcomp to subdir because otherwise we won't find it if we're
4694 # using a relative directory.
4695 cp "$am_depcomp" conftest.dir
4697 # We will build objects and dependencies in a subdirectory because
4698 # it helps to detect inapplicable dependency modes. For instance
4699 # both Tru64's cc and ICC support -MD to output dependencies as a
4700 # side effect of compilation, but ICC will put the dependencies in
4701 # the current directory while Tru64 will put them in the object
4705 am_cv_CCAS_dependencies_compiler_type=none
4706 if test "$am_compiler_list" = ""; then
4707 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4709 for depmode in $am_compiler_list; do
4710 # Setup a source with many dependencies, because some compilers
4711 # like to wrap large dependency lists on column 80 (with \), and
4712 # we should not choose a depcomp mode which is confused by this.
4714 # We need to recreate these files for each test, as the compiler may
4715 # overwrite some of them when testing with obscure command lines.
4716 # This happens at least with the AIX C compiler.
4718 for i in 1 2 3 4 5 6; do
4719 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4720 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4721 # Solaris 8's {/usr,}/bin/sh.
4722 touch sub/conftst$i.h
4724 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4728 # after this tag, mechanisms are not by side-effect, so they'll
4729 # only be used when explicitly requested
4730 if test "x$enable_dependency_tracking" = xyes; then
4738 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4739 # mode. It turns out that the SunPro C++ compiler does not properly
4740 # handle `-M -o', and we need to detect this.
4741 if depmode=$depmode \
4742 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4744 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4745 >/dev/null 2>conftest.err &&
4746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4748 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4750 # icc doesn't choke on unknown options, it will just issue warnings
4751 # or remarks (even with -Werror). So we grep stderr for any message
4752 # that says an option was ignored or not supported.
4753 # When given -MP, icc 7.0 and 7.1 complain thusly:
4754 # icc: Command line warning: ignoring option '-M'; no argument required
4755 # The diagnosis changed in icc 8.0:
4756 # icc: Command line remark: option '-MP' not supported
4757 if (grep 'ignoring option' conftest.err ||
4758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4759 am_cv_CCAS_dependencies_compiler_type=$depmode
4768 am_cv_CCAS_dependencies_compiler_type=none
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4773 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4774 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4777 test "x$enable_dependency_tracking" != xno \
4778 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4779 am__fastdepCCAS_TRUE=
4780 am__fastdepCCAS_FALSE='#'
4782 am__fastdepCCAS_TRUE='#'
4783 am__fastdepCCAS_FALSE=
4787 ## FIXME: really needed? (AC_LIBTOOL already provides this)
4788 if test -n "$ac_tool_prefix"; then
4789 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4790 set dummy ${ac_tool_prefix}ar; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if test "${ac_cv_prog_AR+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4796 if test -n "$AR"; then
4797 ac_cv_prog_AR="$AR" # Let the user override the test.
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_prog_AR="${ac_tool_prefix}ar"
4807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 if test -n "$AR"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4819 $as_echo "$AR" >&6; }
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4827 if test -z "$ac_cv_prog_AR"; then
4829 # Extract the first word of "ar", so it can be a program name with args.
4830 set dummy ar; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4836 if test -n "$ac_ct_AR"; then
4837 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_ac_ct_AR="ar"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4857 if test -n "$ac_ct_AR"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4859 $as_echo "$ac_ct_AR" >&6; }
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4865 if test "x$ac_ct_AR" = x; then
4868 case $cross_compiling:$ac_tool_warned in
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4872 ac_tool_warned=yes ;;
4880 if test -n "$ac_tool_prefix"; then
4881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4888 if test -n "$RANLIB"; then
4889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 RANLIB=$ac_cv_prog_RANLIB
4909 if test -n "$RANLIB"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4911 $as_echo "$RANLIB" >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4919 if test -z "$ac_cv_prog_RANLIB"; then
4920 ac_ct_RANLIB=$RANLIB
4921 # Extract the first word of "ranlib", so it can be a program name with args.
4922 set dummy ranlib; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4928 if test -n "$ac_ct_RANLIB"; then
4929 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_ac_ct_RANLIB="ranlib"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4949 if test -n "$ac_ct_RANLIB"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4951 $as_echo "$ac_ct_RANLIB" >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4957 if test "x$ac_ct_RANLIB" = x; then
4960 case $cross_compiling:$ac_tool_warned in
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4964 ac_tool_warned=yes ;;
4966 RANLIB=$ac_ct_RANLIB
4969 RANLIB="$ac_cv_prog_RANLIB"
4975 . ${srcdir}/configure.host
4977 GC_CFLAGS=${gc_cflags}
4980 # Check whether --enable-threads was given.
4981 if test "${enable_threads+set}" = set; then :
4982 enableval=$enable_threads; THREADS=$enableval
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4985 $as_echo_n "checking for thread model used by GCC... " >&6; }
4986 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4987 if test -z "$THREADS"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
4991 $as_echo "$THREADS" >&6; }
4995 # Check whether --enable-parallel-mark was given.
4996 if test "${enable_parallel_mark+set}" = set; then :
4997 enableval=$enable_parallel_mark; case "$THREADS" in
4999 as_fn_error "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
5006 # Check whether --enable-cplusplus was given.
5007 if test "${enable_cplusplus+set}" = set; then :
5008 enableval=$enable_cplusplus;
5034 need_atomic_ops_asm=false
5035 ## Libraries needed to support dynamic loading and/or threads.
5042 THREADDLLIBS=-lpthread
5044 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux* | sparc*-*-linux*)
5045 $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
5047 $as_echo "#define _REENTRANT 1" >>confdefs.h
5049 if test "${enable_parallel_mark}" = yes; then
5050 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5053 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5056 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5059 $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
5061 $as_echo "#define _REENTRANT 1" >>confdefs.h
5065 $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
5067 $as_echo "#define _REENTRANT 1" >>confdefs.h
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5
5072 $as_echo "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;}
5073 $as_echo "#define GC_HPUX_THREADS 1" >>confdefs.h
5075 $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
5077 if test "${enable_parallel_mark}" = yes; then
5078 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5081 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5084 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5085 THREADDLLIBS="-lpthread -lrt"
5086 # HPUX needs REENTRANT for the _r calls.
5088 $as_echo "#define _REENTRANT 1" >>confdefs.h
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
5093 $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
5096 $as_echo "#define GC_OPENBSD_THREADS 1" >>confdefs.h
5098 THREADDLLIBS=-pthread
5099 INCLUDES="$INCLUDES -pthread"
5100 openbsd_threads=true
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
5104 $as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
5105 $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
5107 INCLUDES="$INCLUDES -pthread"
5110 $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
5112 INCLUDES="$INCLUDES -pthread"
5113 THREADDLLIBS=-pthread
5114 $as_echo "#define _REENTRANT 1" >>confdefs.h
5116 if test "${enable_parallel_mark}" = yes; then
5117 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5120 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5122 $as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
5126 $as_echo "#define GC_GNU_THREADS 1" >>confdefs.h
5128 $as_echo "#define _REENTRANT 1" >>confdefs.h
5130 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
5135 $as_echo "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
5136 $as_echo "#define GC_NETBSD_THREADS 1" >>confdefs.h
5138 $as_echo "#define _REENTRANT 1" >>confdefs.h
5140 $as_echo "#define _PTHREADS 1" >>confdefs.h
5142 THREADDLLIBS="-lpthread -lrt"
5145 $as_echo "#define GC_SOLARIS_THREADS 1" >>confdefs.h
5147 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5149 THREADDLLIBS="-lpthread -lrt"
5150 if test "$GCC" != yes; then
5152 need_atomic_ops_asm=true
5156 $as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
5160 $as_echo "#define GC_THREADS 1" >>confdefs.h
5162 if test "${enable_parallel_mark}" = yes; then
5163 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5166 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5168 # Cygwin doesn't have a real libpthread, so Libtool can't link
5174 $as_echo "#define GC_DARWIN_THREADS 1" >>confdefs.h
5176 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5179 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5180 # Parallel-mark is currently unreliable on Darwin; ignore request
5181 # if test "${enable_parallel_mark}" = yes; then
5182 # AC_DEFINE(PARALLEL_MARK)
5187 $as_echo "#define GC_OSF1_THREADS 1" >>confdefs.h
5189 if test "${enable_parallel_mark}" = yes; then
5190 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5192 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5195 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5196 # May want to enable it in other cases, too.
5197 # Measurements havent yet been done.
5199 INCLUDES="$INCLUDES -pthread"
5200 THREADDLLIBS="-lpthread -lrt"
5203 as_fn_error "\"Pthreads not supported by the GC on this platform.\"" "$LINENO" 5
5208 $as_echo "#define GC_THREADS 1" >>confdefs.h
5210 if test "${enable_parallel_mark}" = yes; then
5211 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5213 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5218 $as_echo "#define EMPTY_GETENV_RESULTS 1" >>confdefs.h
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADDLLIBS" >&5
5224 $as_echo "$THREADDLLIBS" >&6; }
5225 # Use pthread GCC switch
5226 THREADDLLIBS=-pthread
5227 if test "${enable_parallel_mark}" = yes; then
5228 $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5231 $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
5234 $as_echo "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;};
5236 $as_echo "#define GC_DGUX386_THREADS 1" >>confdefs.h
5239 $as_echo "#define DGUX_THREADS 1" >>confdefs.h
5241 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5242 INCLUDES="-pthread $INCLUDES"
5246 THREADDLLIBS=-lpthread
5247 $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
5249 $as_echo "#define _REENTRANT 1" >>confdefs.h
5252 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5253 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
5256 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
5260 if test x$THREADS != xnone; then
5268 if test x$THREADS = xposix; then
5276 if test x$darwin_threads = xtrue; then
5277 DARWIN_THREADS_TRUE=
5278 DARWIN_THREADS_FALSE='#'
5280 DARWIN_THREADS_TRUE='#'
5281 DARWIN_THREADS_FALSE=
5284 if test x$win32_threads = xtrue; then
5286 WIN32_THREADS_FALSE='#'
5288 WIN32_THREADS_TRUE='#'
5289 WIN32_THREADS_FALSE=
5292 if test x$openbsd_threads = xtrue; then
5293 OPENBSD_THREADS_TRUE=
5294 OPENBSD_THREADS_FALSE='#'
5296 OPENBSD_THREADS_TRUE='#'
5297 OPENBSD_THREADS_FALSE=
5307 # Darwin needs a few extra special tests to deal with variation in the
5312 ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "r0" "ac_cv_member_ppc_thread_state_t_r0" "#include <mach/thread_status.h>
5314 if test "x$ac_cv_member_ppc_thread_state_t_r0" = x""yes; then :
5316 $as_echo "#define HAS_PPC_THREAD_STATE_R0 1" >>confdefs.h
5320 ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "__r0" "ac_cv_member_ppc_thread_state_t___r0" "#include <mach/thread_status.h>
5322 if test "x$ac_cv_member_ppc_thread_state_t___r0" = x""yes; then :
5324 $as_echo "#define HAS_PPC_THREAD_STATE___R0 1" >>confdefs.h
5328 ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "r0" "ac_cv_member_ppc_thread_state64_t_r0" "#include <mach/thread_status.h>
5330 if test "x$ac_cv_member_ppc_thread_state64_t_r0" = x""yes; then :
5332 $as_echo "#define HAS_PPC_THREAD_STATE64_R0 1" >>confdefs.h
5336 ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "__r0" "ac_cv_member_ppc_thread_state64_t___r0" "#include <mach/thread_status.h>
5338 if test "x$ac_cv_member_ppc_thread_state64_t___r0" = x""yes; then :
5340 $as_echo "#define HAS_PPC_THREAD_STATE64___R0 1" >>confdefs.h
5346 ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "eax" "ac_cv_member_x86_thread_state32_t_eax" "#include <sys/cdefs.h>
5347 #include <mach/thread_status.h>
5349 if test "x$ac_cv_member_x86_thread_state32_t_eax" = x""yes; then :
5351 $as_echo "#define HAS_X86_THREAD_STATE32_EAX 1" >>confdefs.h
5355 ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "__eax" "ac_cv_member_x86_thread_state32_t___eax" "#include <sys/cdefs.h>
5356 #include <mach/thread_status.h>
5358 if test "x$ac_cv_member_x86_thread_state32_t___eax" = x""yes; then :
5360 $as_echo "#define HAS_X86_THREAD_STATE32___EAX 1" >>confdefs.h
5366 ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "rax" "ac_cv_member_x86_thread_state64_t_rax" "#include <sys/cdefs.h>
5367 #include <mach/thread_status.h>
5369 if test "x$ac_cv_member_x86_thread_state64_t_rax" = x""yes; then :
5371 $as_echo "#define HAS_X86_THREAD_STATE64_RAX 1" >>confdefs.h
5375 ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "__rax" "ac_cv_member_x86_thread_state64_t___rax" "#include <sys/cdefs.h>
5376 #include <mach/thread_status.h>
5378 if test "x$ac_cv_member_x86_thread_state64_t___rax" = x""yes; then :
5380 $as_echo "#define HAS_X86_THREAD_STATE64___RAX 1" >>confdefs.h
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlc" >&5
5389 $as_echo_n "checking for xlc... " >&6; }
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5405 if ac_fn_c_try_compile "$LINENO"; then :
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_xlc" >&5
5412 $as_echo "$compiler_xlc" >&6; }
5413 if test $compiler_xlc = yes; then
5415 COMPILER_XLC_FALSE='#'
5417 COMPILER_XLC_TRUE='#'
5421 if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
5422 # the darwin stack-frame-walking code is completely broken on xlc
5424 $as_echo "#define DARWIN_DONT_PARSE_STACK 1" >>confdefs.h
5428 # We never want libdl on darwin. It is a fake libdl that just ends up making
5429 # dyld calls anyway. The same applies to Cygwin.
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5435 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5436 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5439 ac_check_lib_save_LIBS=$LIBS
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5444 /* Override any GCC internal prototype to avoid an error.
5445 Use char because int might match the return type of a GCC
5446 builtin and then its argument prototype would still apply. */
5459 if ac_fn_c_try_link "$LINENO"; then :
5460 ac_cv_lib_dl_dlopen=yes
5462 ac_cv_lib_dl_dlopen=no
5464 rm -f core conftest.err conftest.$ac_objext \
5465 conftest$ac_exeext conftest.$ac_ext
5466 LIBS=$ac_check_lib_save_LIBS
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5469 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5470 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5471 THREADDLLIBS="$THREADDLLIBS -ldl"
5484 if test $avoid_cpp_lib = yes; then
5486 AVOID_CPP_LIB_FALSE='#'
5488 AVOID_CPP_LIB_TRUE='#'
5489 AVOID_CPP_LIB_FALSE=
5493 # extra LD Flags which are required for targets
5496 extra_ldflags_libgc=-Wl,-single_module
5508 # Check whether --with-ecos was given.
5509 if test "${with_ecos+set}" = set; then :
5510 withval=$with_ecos; TARGET_ECOS="$with_ecos"
5518 case "$TARGET_ECOS" in
5523 $as_echo "#define ECOS 1" >>confdefs.h
5525 CXXINCLUDES="-I${TARGET_ECOS}/include"
5526 addobjs="$addobjs ecos.lo"
5530 if test "${enable_cplusplus}" = yes; then
5544 # Configuration of shared libraries
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5547 $as_echo_n "checking whether to build shared libraries... " >&6; }
5548 # Check whether --enable-shared was given.
5549 if test "${enable_shared+set}" = set; then :
5550 enableval=$enable_shared; p=${PACKAGE-default}
5552 yes) enable_shared=yes ;;
5553 no) enable_shared=no ;;
5556 # Look at the argument we got. We use all the common list separators.
5557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5558 for pkg in $enableval; do
5560 if test "X$pkg" = "X$p"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5589 $as_echo "$enable_shared" >&6; }
5591 # Configuration of machine-dependent code
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
5594 $as_echo_n "checking which machine-dependent code should be used... " >&6; }
5598 machdep="mach_dep.lo"
5599 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5601 $as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5605 machdep="mach_dep.lo"
5607 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5609 $as_echo "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
5613 machdep="mach_dep.lo"
5616 machdep="mach-dep.lo"
5618 mips-nec-sysv*|mips-unknown-sysv*)
5623 machdep="mach_dep.lo"
5626 machdep="mach_dep.lo sparc_mach_dep.lo"
5629 machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
5632 machdep="mach_dep.lo sparc_mach_dep.lo"
5635 machdep="mach_dep.lo sparc_mach_dep.lo"
5637 sparc-sun-solaris2.3)
5638 machdep="mach_dep.lo sparc_mach_dep.lo"
5640 $as_echo "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
5643 sparc*-sun-solaris2*)
5644 machdep="mach_dep.lo sparc_mach_dep.lo"
5647 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5650 if test x"$machdep" = x; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
5652 $as_echo "$machdep" >&6; }
5653 machdep="mach_dep.lo"
5655 addobjs="$addobjs $machdep"
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5662 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5668 macro_revision='1.2599'
5682 ltmain="$ac_aux_dir/ltmain.sh"
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5685 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5686 if test "${ac_cv_path_SED+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5689 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5690 for ac_i in 1 2 3 4 5 6 7; do
5691 ac_script="$ac_script$as_nl$ac_script"
5693 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5694 { ac_script=; unset ac_script;}
5695 if test -z "$SED"; then
5696 ac_path_SED_found=false
5697 # Loop through the user's path and test for each of PROGNAME-LIST
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 test -z "$as_dir" && as_dir=.
5703 for ac_prog in sed gsed; do
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5706 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5707 # Check for GNU ac_path_SED and select it if it is found.
5708 # Check for GNU $ac_path_SED
5709 case `"$ac_path_SED" --version 2>&1` in
5711 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5714 $as_echo_n 0123456789 >"conftest.in"
5717 cat "conftest.in" "conftest.in" >"conftest.tmp"
5718 mv "conftest.tmp" "conftest.in"
5719 cp "conftest.in" "conftest.nl"
5720 $as_echo '' >> "conftest.nl"
5721 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5723 as_fn_arith $ac_count + 1 && ac_count=$as_val
5724 if test $ac_count -gt ${ac_path_SED_max-0}; then
5725 # Best one so far, save it but keep looking for a better one
5726 ac_cv_path_SED="$ac_path_SED"
5727 ac_path_SED_max=$ac_count
5729 # 10*(2^10) chars as input seems more than enough
5730 test $ac_count -gt 10 && break
5732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5735 $ac_path_SED_found && break 3
5740 if test -z "$ac_cv_path_SED"; then
5741 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5749 $as_echo "$ac_cv_path_SED" >&6; }
5750 SED="$ac_cv_path_SED"
5753 test -z "$SED" && SED=sed
5754 Xsed="$SED -e 1s/^X//"
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5767 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5768 if test "${ac_cv_path_GREP+set}" = set; then :
5769 $as_echo_n "(cached) " >&6
5771 if test -z "$GREP"; then
5772 ac_path_GREP_found=false
5773 # Loop through the user's path and test for each of PROGNAME-LIST
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5778 test -z "$as_dir" && as_dir=.
5779 for ac_prog in grep ggrep; do
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5782 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5783 # Check for GNU ac_path_GREP and select it if it is found.
5784 # Check for GNU $ac_path_GREP
5785 case `"$ac_path_GREP" --version 2>&1` in
5787 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5790 $as_echo_n 0123456789 >"conftest.in"
5793 cat "conftest.in" "conftest.in" >"conftest.tmp"
5794 mv "conftest.tmp" "conftest.in"
5795 cp "conftest.in" "conftest.nl"
5796 $as_echo 'GREP' >> "conftest.nl"
5797 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5799 as_fn_arith $ac_count + 1 && ac_count=$as_val
5800 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5801 # Best one so far, save it but keep looking for a better one
5802 ac_cv_path_GREP="$ac_path_GREP"
5803 ac_path_GREP_max=$ac_count
5805 # 10*(2^10) chars as input seems more than enough
5806 test $ac_count -gt 10 && break
5808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5811 $ac_path_GREP_found && break 3
5816 if test -z "$ac_cv_path_GREP"; then
5817 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5820 ac_cv_path_GREP=$GREP
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5825 $as_echo "$ac_cv_path_GREP" >&6; }
5826 GREP="$ac_cv_path_GREP"
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5830 $as_echo_n "checking for egrep... " >&6; }
5831 if test "${ac_cv_path_EGREP+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
5834 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5835 then ac_cv_path_EGREP="$GREP -E"
5837 if test -z "$EGREP"; then
5838 ac_path_EGREP_found=false
5839 # Loop through the user's path and test for each of PROGNAME-LIST
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5844 test -z "$as_dir" && as_dir=.
5845 for ac_prog in egrep; do
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5848 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5849 # Check for GNU ac_path_EGREP and select it if it is found.
5850 # Check for GNU $ac_path_EGREP
5851 case `"$ac_path_EGREP" --version 2>&1` in
5853 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5856 $as_echo_n 0123456789 >"conftest.in"
5859 cat "conftest.in" "conftest.in" >"conftest.tmp"
5860 mv "conftest.tmp" "conftest.in"
5861 cp "conftest.in" "conftest.nl"
5862 $as_echo 'EGREP' >> "conftest.nl"
5863 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5865 as_fn_arith $ac_count + 1 && ac_count=$as_val
5866 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5867 # Best one so far, save it but keep looking for a better one
5868 ac_cv_path_EGREP="$ac_path_EGREP"
5869 ac_path_EGREP_max=$ac_count
5871 # 10*(2^10) chars as input seems more than enough
5872 test $ac_count -gt 10 && break
5874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5877 $ac_path_EGREP_found && break 3
5882 if test -z "$ac_cv_path_EGREP"; then
5883 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5886 ac_cv_path_EGREP=$EGREP
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5892 $as_echo "$ac_cv_path_EGREP" >&6; }
5893 EGREP="$ac_cv_path_EGREP"
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5897 $as_echo_n "checking for fgrep... " >&6; }
5898 if test "${ac_cv_path_FGREP+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5901 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5902 then ac_cv_path_FGREP="$GREP -F"
5904 if test -z "$FGREP"; then
5905 ac_path_FGREP_found=false
5906 # Loop through the user's path and test for each of PROGNAME-LIST
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5911 test -z "$as_dir" && as_dir=.
5912 for ac_prog in fgrep; do
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5915 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5916 # Check for GNU ac_path_FGREP and select it if it is found.
5917 # Check for GNU $ac_path_FGREP
5918 case `"$ac_path_FGREP" --version 2>&1` in
5920 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5923 $as_echo_n 0123456789 >"conftest.in"
5926 cat "conftest.in" "conftest.in" >"conftest.tmp"
5927 mv "conftest.tmp" "conftest.in"
5928 cp "conftest.in" "conftest.nl"
5929 $as_echo 'FGREP' >> "conftest.nl"
5930 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5932 as_fn_arith $ac_count + 1 && ac_count=$as_val
5933 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5934 # Best one so far, save it but keep looking for a better one
5935 ac_cv_path_FGREP="$ac_path_FGREP"
5936 ac_path_FGREP_max=$ac_count
5938 # 10*(2^10) chars as input seems more than enough
5939 test $ac_count -gt 10 && break
5941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5944 $ac_path_FGREP_found && break 3
5949 if test -z "$ac_cv_path_FGREP"; then
5950 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5953 ac_cv_path_FGREP=$FGREP
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5959 $as_echo "$ac_cv_path_FGREP" >&6; }
5960 FGREP="$ac_cv_path_FGREP"
5963 test -z "$GREP" && GREP=grep
5983 # Check whether --with-gnu-ld was given.
5984 if test "${with_gnu_ld+set}" = set; then :
5985 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5991 if test "$GCC" = yes; then
5992 # Check if gcc -print-prog-name=ld gives a path.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5994 $as_echo_n "checking for ld used by $CC... " >&6; }
5997 # gcc leaves a trailing carriage return which upsets mingw
5998 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6000 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6003 # Accept absolute paths.
6005 re_direlt='/[^/][^/]*/\.\./'
6006 # Canonicalize the pathname of ld
6007 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6008 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6009 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6011 test -z "$LD" && LD="$ac_prog"
6014 # If it fails, then pretend we aren't using GCC.
6018 # If it is relative, then search for the first ld in PATH.
6022 elif test "$with_gnu_ld" = yes; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6024 $as_echo_n "checking for GNU ld... " >&6; }
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6027 $as_echo_n "checking for non-GNU ld... " >&6; }
6029 if test "${lt_cv_path_LD+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6032 if test -z "$LD"; then
6033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6034 for ac_dir in $PATH; do
6036 test -z "$ac_dir" && ac_dir=.
6037 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6038 lt_cv_path_LD="$ac_dir/$ac_prog"
6039 # Check to see if the program is GNU ld. I'd rather use --version,
6040 # but apparently some variants of GNU ld only accept -v.
6041 # Break only if it was the GNU/non-GNU ld that we prefer.
6042 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6043 *GNU* | *'with BFD'*)
6044 test "$with_gnu_ld" != no && break
6047 test "$with_gnu_ld" != yes && break
6054 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6059 if test -n "$LD"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6061 $as_echo "$LD" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6066 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6068 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6069 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6072 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6073 case `$LD -v 2>&1 </dev/null` in
6074 *GNU* | *'with BFD'*)
6075 lt_cv_prog_gnu_ld=yes
6078 lt_cv_prog_gnu_ld=no
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6083 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6084 with_gnu_ld=$lt_cv_prog_gnu_ld
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6096 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6097 if test "${lt_cv_path_NM+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6100 if test -n "$NM"; then
6101 # Let the user override the test.
6104 lt_nm_to_check="${ac_tool_prefix}nm"
6105 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6106 lt_nm_to_check="$lt_nm_to_check nm"
6108 for lt_tmp_nm in $lt_nm_to_check; do
6109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6110 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6112 test -z "$ac_dir" && ac_dir=.
6113 tmp_nm="$ac_dir/$lt_tmp_nm"
6114 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6115 # Check to see if the nm accepts a BSD-compat flag.
6116 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6117 # nm: unknown option "B" ignored
6118 # Tru64's nm complains that /dev/null is an invalid object file
6119 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6120 */dev/null* | *'Invalid file or object type'*)
6121 lt_cv_path_NM="$tmp_nm -B"
6125 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6127 lt_cv_path_NM="$tmp_nm -p"
6131 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6132 continue # so that we can try to find one that supports BSD flags
6141 : ${lt_cv_path_NM=no}
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6145 $as_echo "$lt_cv_path_NM" >&6; }
6146 if test "$lt_cv_path_NM" != "no"; then
6149 # Didn't find any BSD compatible name lister, look for dumpbin.
6150 if test -n "$ac_tool_prefix"; then
6151 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6160 if test -n "$DUMPBIN"; then
6161 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 DUMPBIN=$ac_cv_prog_DUMPBIN
6181 if test -n "$DUMPBIN"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6183 $as_echo "$DUMPBIN" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6190 test -n "$DUMPBIN" && break
6193 if test -z "$DUMPBIN"; then
6194 ac_ct_DUMPBIN=$DUMPBIN
6195 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6197 # Extract the first word of "$ac_prog", so it can be a program name with args.
6198 set dummy $ac_prog; ac_word=$2
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6202 $as_echo_n "(cached) " >&6
6204 if test -n "$ac_ct_DUMPBIN"; then
6205 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6225 if test -n "$ac_ct_DUMPBIN"; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6227 $as_echo "$ac_ct_DUMPBIN" >&6; }
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6234 test -n "$ac_ct_DUMPBIN" && break
6237 if test "x$ac_ct_DUMPBIN" = x; then
6240 case $cross_compiling:$ac_tool_warned in
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6246 DUMPBIN=$ac_ct_DUMPBIN
6251 if test "$DUMPBIN" != ":"; then
6255 test -z "$NM" && NM=nm
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6263 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6264 if test "${lt_cv_nm_interface+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6267 lt_cv_nm_interface="BSD nm"
6268 echo "int some_variable = 0;" > conftest.$ac_ext
6269 (eval echo "\"\$as_me:6269: $ac_compile\"" >&5)
6270 (eval "$ac_compile" 2>conftest.err)
6271 cat conftest.err >&5
6272 (eval echo "\"\$as_me:6272: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6273 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6274 cat conftest.err >&5
6275 (eval echo "\"\$as_me:6275: output\"" >&5)
6276 cat conftest.out >&5
6277 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6278 lt_cv_nm_interface="MS dumpbin"
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6283 $as_echo "$lt_cv_nm_interface" >&6; }
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6286 $as_echo_n "checking whether ln -s works... " >&6; }
6288 if test "$LN_S" = "ln -s"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6290 $as_echo "yes" >&6; }
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6293 $as_echo "no, using $LN_S" >&6; }
6296 # find the maximum length of command line arguments
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6298 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6299 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6300 $as_echo_n "(cached) " >&6
6307 # On DJGPP, this test can blow up pretty badly due to problems in libc
6308 # (any single argument exceeding 2000 bytes causes a buffer overrun
6309 # during glob expansion). Even if it were fixed, the result of this
6310 # check would be larger than it should be.
6311 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6315 # Under GNU Hurd, this test is not required because there is
6316 # no limit to the length of command line arguments.
6317 # Libtool will interpret -1 as no limit whatsoever
6318 lt_cv_sys_max_cmd_len=-1;
6322 # On Win9x/ME, this test blows up -- it succeeds, but takes
6323 # about 5 minutes as the teststring grows exponentially.
6324 # Worse, since 9x/ME are not pre-emptively multitasking,
6325 # you end up with a "frozen" computer, even though with patience
6326 # the test eventually succeeds (with a max line length of 256k).
6327 # Instead, let's just punt: use the minimum linelength reported by
6328 # all of the supported platforms: 8192 (on NT/2K/XP).
6329 lt_cv_sys_max_cmd_len=8192;
6333 # On AmigaOS with pdksh, this test takes hours, literally.
6334 # So we just punt and use a minimum line length of 8192.
6335 lt_cv_sys_max_cmd_len=8192;
6338 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6339 # This has been around since 386BSD, at least. Likely further.
6340 if test -x /sbin/sysctl; then
6341 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6342 elif test -x /usr/sbin/sysctl; then
6343 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6345 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6347 # And add a safety zone
6348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6353 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6354 lt_cv_sys_max_cmd_len=196608
6358 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6359 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6360 # nice to cause kernel panics so lets avoid the loop below.
6361 # First set a reasonable default.
6362 lt_cv_sys_max_cmd_len=16384
6364 if test -x /sbin/sysconfig; then
6365 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6366 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6371 lt_cv_sys_max_cmd_len=102400
6373 sysv5* | sco5v6* | sysv4.2uw2*)
6374 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6375 if test -n "$kargmax"; then
6376 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6378 lt_cv_sys_max_cmd_len=32768
6382 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6383 if test -n "$lt_cv_sys_max_cmd_len"; then
6384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6387 # Make teststring a little bigger before we do anything with it.
6388 # a 1K string should be a reasonable start.
6389 for i in 1 2 3 4 5 6 7 8 ; do
6390 teststring=$teststring$teststring
6392 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6393 # If test is not a shell built-in, we'll probably end up computing a
6394 # maximum length that is only half of the actual maximum length, but
6396 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6397 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6398 test $i != 17 # 1/2 MB should be enough
6401 teststring=$teststring$teststring
6403 # Only check the string length outside the loop.
6404 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6406 # Add a significant safety factor because C++ compilers can tack on
6407 # massive amounts of additional arguments before passing them to the
6408 # linker. It appears as though 1/2 is a usable value.
6409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6416 if test -n $lt_cv_sys_max_cmd_len ; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6418 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6421 $as_echo "none" >&6; }
6423 max_cmd_len=$lt_cv_sys_max_cmd_len
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6436 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6437 # Try some XSI features
6440 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6441 = c,a/b,, ) >/dev/null 2>&1 \
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6444 $as_echo "$xsi_shell" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6448 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6450 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6452 && lt_shell_append=yes
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6454 $as_echo "$lt_shell_append" >&6; }
6457 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6467 # test EBCDIC or ASCII
6468 case `echo X|tr X '\101'` in
6469 A) # ASCII based system
6470 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6471 lt_SP2NL='tr \040 \012'
6472 lt_NL2SP='tr \015\012 \040\040'
6474 *) # EBCDIC based system
6475 lt_SP2NL='tr \100 \n'
6476 lt_NL2SP='tr \r\n \100\100'
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6489 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6490 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6493 lt_cv_ld_reload_flag='-r'
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6496 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6497 reload_flag=$lt_cv_ld_reload_flag
6498 case $reload_flag in
6500 *) reload_flag=" $reload_flag" ;;
6502 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6505 if test "$GCC" = yes; then
6506 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6523 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6524 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6527 lt_cv_file_magic_cmd='$MAGIC_CMD'
6528 lt_cv_file_magic_test_file=
6529 lt_cv_deplibs_check_method='unknown'
6530 # Need to set the preceding variable on all platforms that support
6531 # interlibrary dependencies.
6532 # 'none' -- dependencies not supported.
6533 # `unknown' -- same as none, but documents that we really don't know.
6534 # 'pass_all' -- all dependencies passed with no checks.
6535 # 'test_compile' -- check by making test program.
6536 # 'file_magic [[regex]]' -- check by looking for files in library path
6537 # which responds to the $file_magic_cmd with a given extended regex.
6538 # If you have `file' or equivalent on your system and you're not sure
6539 # whether `pass_all' will *always* work, you probably want this one.
6543 lt_cv_deplibs_check_method=pass_all
6547 lt_cv_deplibs_check_method=pass_all
6551 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6552 lt_cv_file_magic_cmd='/usr/bin/file -L'
6553 lt_cv_file_magic_test_file=/shlib/libc.so
6557 # func_win32_libid is a shell function defined in ltmain.sh
6558 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6559 lt_cv_file_magic_cmd='func_win32_libid'
6563 # Base MSYS/MinGW do not provide the 'file' command needed by
6564 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6565 # unless we find 'file', for example because we are cross-compiling.
6566 if ( file / ) >/dev/null 2>&1; then
6567 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6568 lt_cv_file_magic_cmd='func_win32_libid'
6570 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6571 lt_cv_file_magic_cmd='$OBJDUMP -f'
6575 darwin* | rhapsody*)
6576 lt_cv_deplibs_check_method=pass_all
6579 freebsd* | dragonfly*)
6580 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6583 # Not sure whether the presence of OpenBSD here was a mistake.
6584 # Let's accept both of them until this is cleared up.
6585 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6586 lt_cv_file_magic_cmd=/usr/bin/file
6587 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6591 lt_cv_deplibs_check_method=pass_all
6596 lt_cv_deplibs_check_method=pass_all
6599 hpux10.20* | hpux11*)
6600 lt_cv_file_magic_cmd=/usr/bin/file
6603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6604 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6608 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6611 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6612 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6618 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6622 irix5* | irix6* | nonstopux*)
6624 *-32|*"-32 ") libmagic=32-bit;;
6625 *-n32|*"-n32 ") libmagic=N32;;
6626 *-64|*"-64 ") libmagic=64-bit;;
6627 *) libmagic=never-match;;
6629 lt_cv_deplibs_check_method=pass_all
6632 # This must be Linux ELF.
6633 linux* | k*bsd*-gnu)
6634 lt_cv_deplibs_check_method=pass_all
6638 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6647 lt_cv_file_magic_cmd=/usr/bin/file
6648 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6652 lt_cv_deplibs_check_method=pass_all
6656 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6663 osf3* | osf4* | osf5*)
6664 lt_cv_deplibs_check_method=pass_all
6668 lt_cv_deplibs_check_method=pass_all
6672 lt_cv_deplibs_check_method=pass_all
6675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6676 lt_cv_deplibs_check_method=pass_all
6680 case $host_vendor in
6682 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]'
6683 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6686 lt_cv_deplibs_check_method=pass_all
6689 lt_cv_file_magic_cmd='/bin/file'
6690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6693 lt_cv_file_magic_cmd='/bin/file'
6694 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6695 lt_cv_file_magic_test_file=/lib/libc.so
6698 lt_cv_deplibs_check_method=pass_all
6701 lt_cv_deplibs_check_method=pass_all
6707 lt_cv_deplibs_check_method=pass_all
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6713 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6714 file_magic_cmd=$lt_cv_file_magic_cmd
6715 deplibs_check_method=$lt_cv_deplibs_check_method
6716 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6729 if test -n "$ac_tool_prefix"; then
6730 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}ar; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_AR+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6737 if test -n "$AR"; then
6738 ac_cv_prog_AR="$AR" # Let the user override the test.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_AR="${ac_tool_prefix}ar"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 if test -n "$AR"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6760 $as_echo "$AR" >&6; }
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6768 if test -z "$ac_cv_prog_AR"; then
6770 # Extract the first word of "ar", so it can be a program name with args.
6771 set dummy ar; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6777 if test -n "$ac_ct_AR"; then
6778 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_prog_ac_ct_AR="ar"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6798 if test -n "$ac_ct_AR"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6800 $as_echo "$ac_ct_AR" >&6; }
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6806 if test "x$ac_ct_AR" = x; then
6809 case $cross_compiling:$ac_tool_warned in
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6821 test -z "$AR" && AR=ar
6822 test -z "$AR_FLAGS" && AR_FLAGS=cru
6834 if test -n "$ac_tool_prefix"; then
6835 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6836 set dummy ${ac_tool_prefix}strip; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if test "${ac_cv_prog_STRIP+set}" = set; then :
6840 $as_echo_n "(cached) " >&6
6842 if test -n "$STRIP"; then
6843 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 STRIP=$ac_cv_prog_STRIP
6863 if test -n "$STRIP"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6865 $as_echo "$STRIP" >&6; }
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6873 if test -z "$ac_cv_prog_STRIP"; then
6875 # Extract the first word of "strip", so it can be a program name with args.
6876 set dummy strip; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6880 $as_echo_n "(cached) " >&6
6882 if test -n "$ac_ct_STRIP"; then
6883 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6892 ac_cv_prog_ac_ct_STRIP="strip"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6903 if test -n "$ac_ct_STRIP"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6905 $as_echo "$ac_ct_STRIP" >&6; }
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6911 if test "x$ac_ct_STRIP" = x; then
6914 case $cross_compiling:$ac_tool_warned in
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918 ac_tool_warned=yes ;;
6923 STRIP="$ac_cv_prog_STRIP"
6926 test -z "$STRIP" && STRIP=:
6933 if test -n "$ac_tool_prefix"; then
6934 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6935 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6941 if test -n "$RANLIB"; then
6942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6951 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 RANLIB=$ac_cv_prog_RANLIB
6962 if test -n "$RANLIB"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6964 $as_echo "$RANLIB" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6972 if test -z "$ac_cv_prog_RANLIB"; then
6973 ac_ct_RANLIB=$RANLIB
6974 # Extract the first word of "ranlib", so it can be a program name with args.
6975 set dummy ranlib; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6979 $as_echo_n "(cached) " >&6
6981 if test -n "$ac_ct_RANLIB"; then
6982 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_prog_ac_ct_RANLIB="ranlib"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7002 if test -n "$ac_ct_RANLIB"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7004 $as_echo "$ac_ct_RANLIB" >&6; }
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7010 if test "x$ac_ct_RANLIB" = x; then
7013 case $cross_compiling:$ac_tool_warned in
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017 ac_tool_warned=yes ;;
7019 RANLIB=$ac_ct_RANLIB
7022 RANLIB="$ac_cv_prog_RANLIB"
7025 test -z "$RANLIB" && RANLIB=:
7032 # Determine commands to create old-style static archives.
7033 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7034 old_postinstall_cmds='chmod 644 $oldlib'
7035 old_postuninstall_cmds=
7037 if test -n "$RANLIB"; then
7040 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7043 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7046 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7082 # If no C compiler was specified, use CC.
7085 # If no C compiler flags were specified, use CFLAGS.
7086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7088 # Allow CC to be a program name with arguments.
7092 # Check for command to grab the raw symbol name followed by C symbol from nm.
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7094 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7095 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7099 # These are sane defaults that work on at least a few old systems.
7100 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7102 # Character class describing NM global symbol codes.
7103 symcode='[BCDEGRST]'
7105 # Regexp to match symbols that can be accessed directly from C.
7106 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7108 # Define system-specific variables.
7113 cygwin* | mingw* | pw32*)
7114 symcode='[ABCDGISTW]'
7117 if test "$host_cpu" = ia64; then
7118 symcode='[ABCDEGRST]'
7122 symcode='[BCDEGRST]'
7125 symcode='[BCDEGQRST]'
7136 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7144 # If we're using GNU nm, then use its standard symbol codes.
7145 case `$NM -V 2>&1` in
7146 *GNU* | *'with BFD'*)
7147 symcode='[ABCDGIRSTW]' ;;
7150 # Transform an extracted symbol line into a proper C declaration.
7151 # Some systems (esp. on ia64) link data and code symbols differently,
7152 # so use this general approach.
7153 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7155 # Transform an extracted symbol line into symbol name and symbol address
7156 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7157 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'"
7159 # Handle CRLF in mingw tool chain
7163 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7167 # Try without a prefix underscore, then with it.
7168 for ac_symprfx in "" "_"; do
7170 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7171 symxfrm="\\1 $ac_symprfx\\2 \\2"
7173 # Write the raw and C identifiers.
7174 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7175 # Fake it for dumpbin and say T for any non-static function
7176 # and D for any global variable.
7177 # Also find C++ and __fastcall symbols from MSVC++,
7178 # which start with @ or ?.
7179 lt_cv_sys_global_symbol_pipe="$AWK '"\
7180 " {last_section=section; section=\$ 3};"\
7181 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7182 " \$ 0!~/External *\|/{next};"\
7183 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7184 " {if(hide[section]) next};"\
7185 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7186 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7187 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7188 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7189 " ' prfx=^$ac_symprfx"
7191 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7194 # Check to see that the pipe works correctly.
7198 cat > conftest.$ac_ext <<_LT_EOF
7203 void nm_test_func(void);
7204 void nm_test_func(void){}
7208 int main(){nm_test_var='a';nm_test_func();return(0);}
7211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7212 (eval $ac_compile) 2>&5
7214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215 test $ac_status = 0; }; then
7216 # Now try to grab the symbols.
7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7219 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222 test $ac_status = 0; } && test -s "$nlist"; then
7223 # Try sorting and uniquifying the output.
7224 if sort "$nlist" | uniq > "$nlist"T; then
7225 mv -f "$nlist"T "$nlist"
7230 # Make sure that we snagged all the symbols we need.
7231 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7232 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7233 cat <<_LT_EOF > conftest.$ac_ext
7239 # Now generate the symbol file.
7240 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7242 cat <<_LT_EOF >> conftest.$ac_ext
7244 /* The mapping between symbol names and symbols. */
7249 lt__PROGRAM__LTX_preloaded_symbols[] =
7251 { "@PROGRAM@", (void *) 0 },
7253 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7254 cat <<\_LT_EOF >> conftest.$ac_ext
7258 /* This works around a problem in FreeBSD linker */
7259 #ifdef FREEBSD_WORKAROUND
7260 static const void *lt_preloaded_setup() {
7261 return lt__PROGRAM__LTX_preloaded_symbols;
7269 # Now try linking the two files.
7270 mv conftest.$ac_objext conftstm.$ac_objext
7271 lt_save_LIBS="$LIBS"
7272 lt_save_CFLAGS="$CFLAGS"
7273 LIBS="conftstm.$ac_objext"
7274 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7276 (eval $ac_link) 2>&5
7278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7282 LIBS="$lt_save_LIBS"
7283 CFLAGS="$lt_save_CFLAGS"
7285 echo "cannot find nm_test_func in $nlist" >&5
7288 echo "cannot find nm_test_var in $nlist" >&5
7291 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7294 echo "$progname: failed program was:" >&5
7295 cat conftest.$ac_ext >&5
7297 rm -rf conftest* conftst*
7299 # Do not use the global_symbol_pipe unless it works.
7300 if test "$pipe_works" = yes; then
7303 lt_cv_sys_global_symbol_pipe=
7309 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7310 lt_cv_sys_global_symbol_to_cdecl=
7312 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7314 $as_echo "failed" >&6; }
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7317 $as_echo "ok" >&6; }
7341 # Check whether --enable-libtool-lock was given.
7342 if test "${enable_libtool_lock+set}" = set; then :
7343 enableval=$enable_libtool_lock;
7346 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7348 # Some flags need to be propagated to the compiler or linker for good
7352 # Find out which ABI we are using.
7353 echo 'int i;' > conftest.$ac_ext
7354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7355 (eval $ac_compile) 2>&5
7357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7358 test $ac_status = 0; }; then
7359 case `/usr/bin/file conftest.$ac_objext` in
7371 # Find out which ABI we are using.
7372 echo '#line 7372 "configure"' > conftest.$ac_ext
7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374 (eval $ac_compile) 2>&5
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }; then
7378 if test "$lt_cv_prog_gnu_ld" = yes; then
7379 case `/usr/bin/file conftest.$ac_objext` in
7381 LD="${LD-ld} -melf32bsmip"
7384 LD="${LD-ld} -melf32bmipn32"
7387 LD="${LD-ld} -melf64bmip"
7391 case `/usr/bin/file conftest.$ac_objext` in
7407 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7408 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7409 # Find out which ABI we are using.
7410 echo 'int i;' > conftest.$ac_ext
7411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7412 (eval $ac_compile) 2>&5
7414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7415 test $ac_status = 0; }; then
7416 case `/usr/bin/file conftest.o` in
7419 x86_64-*kfreebsd*-gnu)
7420 LD="${LD-ld} -m elf_i386_fbsd"
7423 LD="${LD-ld} -m elf_i386"
7425 ppc64-*linux*|powerpc64-*linux*)
7426 LD="${LD-ld} -m elf32ppclinux"
7429 LD="${LD-ld} -m elf_s390"
7432 LD="${LD-ld} -m elf32_sparc"
7438 x86_64-*kfreebsd*-gnu)
7439 LD="${LD-ld} -m elf_x86_64_fbsd"
7442 LD="${LD-ld} -m elf_x86_64"
7444 ppc*-*linux*|powerpc*-*linux*)
7445 LD="${LD-ld} -m elf64ppc"
7447 s390*-*linux*|s390*-*tpf*)
7448 LD="${LD-ld} -m elf64_s390"
7451 LD="${LD-ld} -m elf64_sparc"
7461 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7462 SAVE_CFLAGS="$CFLAGS"
7463 CFLAGS="$CFLAGS -belf"
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7465 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7466 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7470 ac_cpp='$CPP $CPPFLAGS'
7471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7486 if ac_fn_c_try_link "$LINENO"; then :
7487 lt_cv_cc_needs_belf=yes
7489 lt_cv_cc_needs_belf=no
7491 rm -f core conftest.err conftest.$ac_objext \
7492 conftest$ac_exeext conftest.$ac_ext
7494 ac_cpp='$CPP $CPPFLAGS'
7495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7501 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7502 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7503 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7504 CFLAGS="$SAVE_CFLAGS"
7508 # Find out which ABI we are using.
7509 echo 'int i;' > conftest.$ac_ext
7510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511 (eval $ac_compile) 2>&5
7513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; }; then
7515 case `/usr/bin/file conftest.o` in
7517 case $lt_cv_prog_gnu_ld in
7518 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7520 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7532 need_locks="$enable_libtool_lock"
7536 rhapsody* | darwin*)
7537 if test -n "$ac_tool_prefix"; then
7538 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7539 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7545 if test -n "$DSYMUTIL"; then
7546 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7566 if test -n "$DSYMUTIL"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7568 $as_echo "$DSYMUTIL" >&6; }
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7576 if test -z "$ac_cv_prog_DSYMUTIL"; then
7577 ac_ct_DSYMUTIL=$DSYMUTIL
7578 # Extract the first word of "dsymutil", so it can be a program name with args.
7579 set dummy dsymutil; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7585 if test -n "$ac_ct_DSYMUTIL"; then
7586 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7606 if test -n "$ac_ct_DSYMUTIL"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7608 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7614 if test "x$ac_ct_DSYMUTIL" = x; then
7617 case $cross_compiling:$ac_tool_warned in
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621 ac_tool_warned=yes ;;
7623 DSYMUTIL=$ac_ct_DSYMUTIL
7626 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7629 if test -n "$ac_tool_prefix"; then
7630 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7631 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7637 if test -n "$NMEDIT"; then
7638 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 NMEDIT=$ac_cv_prog_NMEDIT
7658 if test -n "$NMEDIT"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7660 $as_echo "$NMEDIT" >&6; }
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7668 if test -z "$ac_cv_prog_NMEDIT"; then
7669 ac_ct_NMEDIT=$NMEDIT
7670 # Extract the first word of "nmedit", so it can be a program name with args.
7671 set dummy nmedit; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7677 if test -n "$ac_ct_NMEDIT"; then
7678 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7698 if test -n "$ac_ct_NMEDIT"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7700 $as_echo "$ac_ct_NMEDIT" >&6; }
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7706 if test "x$ac_ct_NMEDIT" = x; then
7709 case $cross_compiling:$ac_tool_warned in
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7713 ac_tool_warned=yes ;;
7715 NMEDIT=$ac_ct_NMEDIT
7718 NMEDIT="$ac_cv_prog_NMEDIT"
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7733 $as_echo_n "checking for -single_module linker flag... " >&6; }
7734 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
7737 lt_cv_apple_cc_single_mod=no
7738 if test -z "${LT_MULTI_MODULE}"; then
7739 # By default we will add the -single_module flag. You can override
7740 # by either setting the environment variable LT_MULTI_MODULE
7741 # non-empty at configure time, or by adding -multi_module to the
7743 echo "int foo(void){return 1;}" > conftest.c
7744 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7745 -dynamiclib ${wl}-single_module conftest.c
7746 if test -f libconftest.dylib; then
7747 lt_cv_apple_cc_single_mod=yes
7748 rm -rf libconftest.dylib*
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7754 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7756 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7757 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
7760 lt_cv_ld_exported_symbols_list=no
7761 save_LDFLAGS=$LDFLAGS
7762 echo "_main" > conftest.sym
7763 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7775 if ac_fn_c_try_link "$LINENO"; then :
7776 lt_cv_ld_exported_symbols_list=yes
7778 lt_cv_ld_exported_symbols_list=no
7780 rm -f core conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
7782 LDFLAGS="$save_LDFLAGS"
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7786 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7788 rhapsody* | darwin1.[012])
7789 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7791 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7792 darwin*) # darwin 5.x on
7793 # if running on 10.5 or later, the deployment target defaults
7794 # to the OS version, if on x86, and 10.4, the deployment
7795 # target defaults to 10.4. Don't you love it?
7796 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7797 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7798 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7800 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7802 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7806 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7807 _lt_dar_single_mod='$single_module'
7809 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7810 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7812 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7814 if test "$DSYMUTIL" != ":"; then
7815 _lt_dsymutil='~$DSYMUTIL $lib || :'
7823 ac_cpp='$CPP $CPPFLAGS'
7824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7828 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7829 # On Suns, sometimes $CPP names a directory.
7830 if test -n "$CPP" && test -d "$CPP"; then
7833 if test -z "$CPP"; then
7834 if test "${ac_cv_prog_CPP+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7837 # Double quotes because CPP needs to be expanded
7838 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7841 for ac_c_preproc_warn_flag in '' yes
7843 # Use a header file that comes with gcc, so configuring glibc
7844 # with a fresh cross-compiler works.
7845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846 # <limits.h> exists even on freestanding compilers.
7847 # On the NeXT, cc -E runs the code through the compiler's parser,
7848 # not just through cpp. "Syntax error" is here to catch this case.
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7852 # include <limits.h>
7854 # include <assert.h>
7858 if ac_fn_c_try_cpp "$LINENO"; then :
7861 # Broken: fails on valid input.
7864 rm -f conftest.err conftest.$ac_ext
7866 # OK, works on sane cases. Now check whether nonexistent headers
7867 # can be detected and how.
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7870 #include <ac_nonexistent.h>
7872 if ac_fn_c_try_cpp "$LINENO"; then :
7873 # Broken: success on invalid input.
7876 # Passes both tests.
7880 rm -f conftest.err conftest.$ac_ext
7883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7884 rm -f conftest.err conftest.$ac_ext
7885 if $ac_preproc_ok; then :
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7898 $as_echo "$CPP" >&6; }
7900 for ac_c_preproc_warn_flag in '' yes
7902 # Use a header file that comes with gcc, so configuring glibc
7903 # with a fresh cross-compiler works.
7904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7905 # <limits.h> exists even on freestanding compilers.
7906 # On the NeXT, cc -E runs the code through the compiler's parser,
7907 # not just through cpp. "Syntax error" is here to catch this case.
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7911 # include <limits.h>
7913 # include <assert.h>
7917 if ac_fn_c_try_cpp "$LINENO"; then :
7920 # Broken: fails on valid input.
7923 rm -f conftest.err conftest.$ac_ext
7925 # OK, works on sane cases. Now check whether nonexistent headers
7926 # can be detected and how.
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929 #include <ac_nonexistent.h>
7931 if ac_fn_c_try_cpp "$LINENO"; then :
7932 # Broken: success on invalid input.
7935 # Passes both tests.
7939 rm -f conftest.err conftest.$ac_ext
7942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7943 rm -f conftest.err conftest.$ac_ext
7944 if $ac_preproc_ok; then :
7947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7949 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7950 See \`config.log' for more details." "$LINENO" 5; }
7954 ac_cpp='$CPP $CPPFLAGS'
7955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7961 $as_echo_n "checking for ANSI C header files... " >&6; }
7962 if test "${ac_cv_header_stdc+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7980 if ac_fn_c_try_compile "$LINENO"; then :
7981 ac_cv_header_stdc=yes
7983 ac_cv_header_stdc=no
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 if test $ac_cv_header_stdc = yes; then
7988 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7995 $EGREP "memchr" >/dev/null 2>&1; then :
7998 ac_cv_header_stdc=no
8004 if test $ac_cv_header_stdc = yes; then
8005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8012 $EGREP "free" >/dev/null 2>&1; then :
8015 ac_cv_header_stdc=no
8021 if test $ac_cv_header_stdc = yes; then
8022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8023 if test "$cross_compiling" = yes; then :
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8030 #if ((' ' & 0x0FF) == 0x020)
8031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8034 # define ISLOWER(c) \
8035 (('a' <= (c) && (c) <= 'i') \
8036 || ('j' <= (c) && (c) <= 'r') \
8037 || ('s' <= (c) && (c) <= 'z'))
8038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8046 for (i = 0; i < 256; i++)
8047 if (XOR (islower (i), ISLOWER (i))
8048 || toupper (i) != TOUPPER (i))
8053 if ac_fn_c_try_run "$LINENO"; then :
8056 ac_cv_header_stdc=no
8058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8059 conftest.$ac_objext conftest.beam conftest.$ac_ext
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8065 $as_echo "$ac_cv_header_stdc" >&6; }
8066 if test $ac_cv_header_stdc = yes; then
8068 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8072 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8073 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8074 inttypes.h stdint.h unistd.h
8076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8077 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8079 eval as_val=\$$as_ac_Header
8080 if test "x$as_val" = x""yes; then :
8081 cat >>confdefs.h <<_ACEOF
8082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8090 for ac_header in dlfcn.h
8092 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8094 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8095 cat >>confdefs.h <<_ACEOF
8096 #define HAVE_DLFCN_H 1
8106 ac_cpp='$CXXCPP $CPPFLAGS'
8107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8110 if test -z "$CXX"; then
8111 if test -n "$CCC"; then
8114 if test -n "$ac_tool_prefix"; then
8115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if test "${ac_cv_prog_CXX+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
8124 if test -n "$CXX"; then
8125 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 if test -n "$CXX"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8147 $as_echo "$CXX" >&6; }
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8154 test -n "$CXX" && break
8157 if test -z "$CXX"; then
8159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8161 # Extract the first word of "$ac_prog", so it can be a program name with args.
8162 set dummy $ac_prog; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8168 if test -n "$ac_ct_CXX"; then
8169 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_prog_ac_ct_CXX="$ac_prog"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8189 if test -n "$ac_ct_CXX"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8191 $as_echo "$ac_ct_CXX" >&6; }
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8198 test -n "$ac_ct_CXX" && break
8201 if test "x$ac_ct_CXX" = x; then
8204 case $cross_compiling:$ac_tool_warned in
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8208 ac_tool_warned=yes ;;
8216 # Provide some information about the compiler.
8217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8220 for ac_option in --version -v -V -qversion; do
8221 { { ac_try="$ac_compiler $ac_option >&5"
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8227 $as_echo "$ac_try_echo"; } >&5
8228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8230 if test -s conftest.err; then
8232 ... rest of stderr output deleted ...
8233 10q' conftest.err >conftest.er1
8234 cat conftest.er1 >&5
8235 rm -f conftest.er1 conftest.err
8237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8238 test $ac_status = 0; }
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8242 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8243 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8260 if ac_fn_cxx_try_compile "$LINENO"; then :
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8270 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8271 if test $ac_compiler_gnu = yes; then
8276 ac_test_CXXFLAGS=${CXXFLAGS+set}
8277 ac_save_CXXFLAGS=$CXXFLAGS
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8279 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8280 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8283 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8284 ac_cxx_werror_flag=yes
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8298 if ac_fn_cxx_try_compile "$LINENO"; then :
8299 ac_cv_prog_cxx_g=yes
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8313 if ac_fn_cxx_try_compile "$LINENO"; then :
8316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8329 if ac_fn_cxx_try_compile "$LINENO"; then :
8330 ac_cv_prog_cxx_g=yes
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8340 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8341 if test "$ac_test_CXXFLAGS" = set; then
8342 CXXFLAGS=$ac_save_CXXFLAGS
8343 elif test $ac_cv_prog_cxx_g = yes; then
8344 if test "$GXX" = yes; then
8350 if test "$GXX" = yes; then
8357 ac_cpp='$CPP $CPPFLAGS'
8358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362 depcc="$CXX" am_compiler_list=
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8365 $as_echo_n "checking dependency style of $depcc... " >&6; }
8366 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
8369 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8370 # We make a subdir and do the tests there. Otherwise we can end up
8371 # making bogus files that we don't know about and never remove. For
8372 # instance it was reported that on HP-UX the gcc test will end up
8373 # making a dummy file named `D' -- because `-MD' means `put the output
8376 # Copy depcomp to subdir because otherwise we won't find it if we're
8377 # using a relative directory.
8378 cp "$am_depcomp" conftest.dir
8380 # We will build objects and dependencies in a subdirectory because
8381 # it helps to detect inapplicable dependency modes. For instance
8382 # both Tru64's cc and ICC support -MD to output dependencies as a
8383 # side effect of compilation, but ICC will put the dependencies in
8384 # the current directory while Tru64 will put them in the object
8388 am_cv_CXX_dependencies_compiler_type=none
8389 if test "$am_compiler_list" = ""; then
8390 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8392 for depmode in $am_compiler_list; do
8393 # Setup a source with many dependencies, because some compilers
8394 # like to wrap large dependency lists on column 80 (with \), and
8395 # we should not choose a depcomp mode which is confused by this.
8397 # We need to recreate these files for each test, as the compiler may
8398 # overwrite some of them when testing with obscure command lines.
8399 # This happens at least with the AIX C compiler.
8401 for i in 1 2 3 4 5 6; do
8402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8403 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8404 # Solaris 8's {/usr,}/bin/sh.
8405 touch sub/conftst$i.h
8407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8411 # after this tag, mechanisms are not by side-effect, so they'll
8412 # only be used when explicitly requested
8413 if test "x$enable_dependency_tracking" = xyes; then
8421 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8422 # mode. It turns out that the SunPro C++ compiler does not properly
8423 # handle `-M -o', and we need to detect this.
8424 if depmode=$depmode \
8425 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8426 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8427 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8428 >/dev/null 2>conftest.err &&
8429 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8430 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8431 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8432 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8433 # icc doesn't choke on unknown options, it will just issue warnings
8434 # or remarks (even with -Werror). So we grep stderr for any message
8435 # that says an option was ignored or not supported.
8436 # When given -MP, icc 7.0 and 7.1 complain thusly:
8437 # icc: Command line warning: ignoring option '-M'; no argument required
8438 # The diagnosis changed in icc 8.0:
8439 # icc: Command line remark: option '-MP' not supported
8440 if (grep 'ignoring option' conftest.err ||
8441 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8442 am_cv_CXX_dependencies_compiler_type=$depmode
8451 am_cv_CXX_dependencies_compiler_type=none
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8456 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8457 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8460 test "x$enable_dependency_tracking" != xno \
8461 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8462 am__fastdepCXX_TRUE=
8463 am__fastdepCXX_FALSE='#'
8465 am__fastdepCXX_TRUE='#'
8466 am__fastdepCXX_FALSE=
8470 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8471 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8472 (test "X$CXX" != "Xg++"))) ; then
8474 ac_cpp='$CXXCPP $CPPFLAGS'
8475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8479 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8480 if test -z "$CXXCPP"; then
8481 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
8484 # Double quotes because CXXCPP needs to be expanded
8485 for CXXCPP in "$CXX -E" "/lib/cpp"
8488 for ac_cxx_preproc_warn_flag in '' yes
8490 # Use a header file that comes with gcc, so configuring glibc
8491 # with a fresh cross-compiler works.
8492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8493 # <limits.h> exists even on freestanding compilers.
8494 # On the NeXT, cc -E runs the code through the compiler's parser,
8495 # not just through cpp. "Syntax error" is here to catch this case.
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8499 # include <limits.h>
8501 # include <assert.h>
8505 if ac_fn_cxx_try_cpp "$LINENO"; then :
8508 # Broken: fails on valid input.
8511 rm -f conftest.err conftest.$ac_ext
8513 # OK, works on sane cases. Now check whether nonexistent headers
8514 # can be detected and how.
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8517 #include <ac_nonexistent.h>
8519 if ac_fn_cxx_try_cpp "$LINENO"; then :
8520 # Broken: success on invalid input.
8523 # Passes both tests.
8527 rm -f conftest.err conftest.$ac_ext
8530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8531 rm -f conftest.err conftest.$ac_ext
8532 if $ac_preproc_ok; then :
8537 ac_cv_prog_CXXCPP=$CXXCPP
8540 CXXCPP=$ac_cv_prog_CXXCPP
8542 ac_cv_prog_CXXCPP=$CXXCPP
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8545 $as_echo "$CXXCPP" >&6; }
8547 for ac_cxx_preproc_warn_flag in '' yes
8549 # Use a header file that comes with gcc, so configuring glibc
8550 # with a fresh cross-compiler works.
8551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8552 # <limits.h> exists even on freestanding compilers.
8553 # On the NeXT, cc -E runs the code through the compiler's parser,
8554 # not just through cpp. "Syntax error" is here to catch this case.
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8558 # include <limits.h>
8560 # include <assert.h>
8564 if ac_fn_cxx_try_cpp "$LINENO"; then :
8567 # Broken: fails on valid input.
8570 rm -f conftest.err conftest.$ac_ext
8572 # OK, works on sane cases. Now check whether nonexistent headers
8573 # can be detected and how.
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 #include <ac_nonexistent.h>
8578 if ac_fn_cxx_try_cpp "$LINENO"; then :
8579 # Broken: success on invalid input.
8582 # Passes both tests.
8586 rm -f conftest.err conftest.$ac_ext
8589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8590 rm -f conftest.err conftest.$ac_ext
8591 if $ac_preproc_ok; then :
8594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8596 _lt_caught_CXX_error=yes; }
8600 ac_cpp='$CPP $CPPFLAGS'
8601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8606 _lt_caught_CXX_error=yes
8624 # Check whether --enable-static was given.
8625 if test "${enable_static+set}" = set; then :
8626 enableval=$enable_static; p=${PACKAGE-default}
8628 yes) enable_static=yes ;;
8629 no) enable_static=no ;;
8632 # Look at the argument we got. We use all the common list separators.
8633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8634 for pkg in $enableval; do
8636 if test "X$pkg" = "X$p"; then
8656 # Check whether --with-pic was given.
8657 if test "${with_pic+set}" = set; then :
8658 withval=$with_pic; pic_mode="$withval"
8664 test -z "$pic_mode" && pic_mode=default
8672 # Check whether --enable-fast-install was given.
8673 if test "${enable_fast_install+set}" = set; then :
8674 enableval=$enable_fast_install; p=${PACKAGE-default}
8676 yes) enable_fast_install=yes ;;
8677 no) enable_fast_install=no ;;
8679 enable_fast_install=no
8680 # Look at the argument we got. We use all the common list separators.
8681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8682 for pkg in $enableval; do
8684 if test "X$pkg" = "X$p"; then
8685 enable_fast_install=yes
8692 enable_fast_install=yes
8705 # This can be used to rebuild libtool when needed
8706 LIBTOOL_DEPS="$ltmain"
8708 # Always use our own libtool.
8709 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8735 test -z "$LN_S" && LN_S="ln -s"
8750 if test -n "${ZSH_VERSION+set}" ; then
8751 setopt NO_GLOB_SUBST
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8755 $as_echo_n "checking for objdir... " >&6; }
8756 if test "${lt_cv_objdir+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8759 rm -f .libs 2>/dev/null
8760 mkdir .libs 2>/dev/null
8761 if test -d .libs; then
8764 # MS-DOS does not allow filenames that begin with a dot.
8767 rmdir .libs 2>/dev/null
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8770 $as_echo "$lt_cv_objdir" >&6; }
8771 objdir=$lt_cv_objdir
8777 cat >>confdefs.h <<_ACEOF
8778 #define LT_OBJDIR "$lt_cv_objdir/"
8799 # AIX sometimes has problems with the GCC collect2 program. For some
8800 # reason, if we set the COLLECT_NAMES environment variable, the problems
8801 # vanish in a puff of smoke.
8802 if test "X${COLLECT_NAMES+set}" != Xset; then
8804 export COLLECT_NAMES
8809 # Sed substitution that helps us do robust quoting. It backslashifies
8810 # metacharacters that are still active within double-quoted strings.
8811 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8813 # Same as above, but do not quote variable references.
8814 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8816 # Sed substitution to delay expansion of an escaped shell variable in a
8817 # double_quote_subst'ed string.
8818 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8820 # Sed substitution to delay expansion of an escaped single quote.
8821 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8823 # Sed substitution to avoid accidental globbing in evaled expressions
8824 no_glob_subst='s/\*/\\\*/g'
8828 can_build_shared=yes
8830 # All known linkers require a `.a' archive for static linking (except MSVC,
8831 # which needs '.lib').
8834 with_gnu_ld="$lt_cv_prog_gnu_ld"
8837 old_CFLAGS="$CFLAGS"
8839 # Set sane defaults for various variables
8840 test -z "$CC" && CC=cc
8841 test -z "$LTCC" && LTCC=$CC
8842 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8843 test -z "$LD" && LD=ld
8844 test -z "$ac_objext" && ac_objext=o
8846 for cc_temp in $compiler""; do
8848 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8849 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8854 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8857 # Only perform the check for file, if the check method requires it
8858 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8859 case $deplibs_check_method in
8861 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8863 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8864 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8869 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8872 lt_save_MAGIC_CMD="$MAGIC_CMD"
8873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8875 for ac_dir in $ac_dummy; do
8877 test -z "$ac_dir" && ac_dir=.
8878 if test -f $ac_dir/${ac_tool_prefix}file; then
8879 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8880 if test -n "$file_magic_test_file"; then
8881 case $deplibs_check_method in
8883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8884 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8886 $EGREP "$file_magic_regex" > /dev/null; then
8891 *** Warning: the command libtool uses to detect shared libraries,
8892 *** $file_magic_cmd, produces output that libtool cannot recognize.
8893 *** The result is that libtool may fail to recognize shared libraries
8894 *** as such. This will affect the creation of libtool libraries that
8895 *** depend on shared libraries, but programs linked with such libtool
8896 *** libraries will work regardless of this problem. Nevertheless, you
8897 *** may want to report the problem to your system manager and/or to
8898 *** bug-libtool@gnu.org
8908 MAGIC_CMD="$lt_save_MAGIC_CMD"
8913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8914 if test -n "$MAGIC_CMD"; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8916 $as_echo "$MAGIC_CMD" >&6; }
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8919 $as_echo "no" >&6; }
8926 if test -z "$lt_cv_path_MAGIC_CMD"; then
8927 if test -n "$ac_tool_prefix"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8929 $as_echo_n "checking for file... " >&6; }
8930 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
8935 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8938 lt_save_MAGIC_CMD="$MAGIC_CMD"
8939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8940 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8941 for ac_dir in $ac_dummy; do
8943 test -z "$ac_dir" && ac_dir=.
8944 if test -f $ac_dir/file; then
8945 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8946 if test -n "$file_magic_test_file"; then
8947 case $deplibs_check_method in
8949 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8951 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8952 $EGREP "$file_magic_regex" > /dev/null; then
8957 *** Warning: the command libtool uses to detect shared libraries,
8958 *** $file_magic_cmd, produces output that libtool cannot recognize.
8959 *** The result is that libtool may fail to recognize shared libraries
8960 *** as such. This will affect the creation of libtool libraries that
8961 *** depend on shared libraries, but programs linked with such libtool
8962 *** libraries will work regardless of this problem. Nevertheless, you
8963 *** may want to report the problem to your system manager and/or to
8964 *** bug-libtool@gnu.org
8974 MAGIC_CMD="$lt_save_MAGIC_CMD"
8979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8980 if test -n "$MAGIC_CMD"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8982 $as_echo "$MAGIC_CMD" >&6; }
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8998 # Use C for the default configuration in the libtool script
9002 ac_cpp='$CPP $CPPFLAGS'
9003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008 # Source file extension for C test sources.
9011 # Object file extension for compiled C test sources.
9015 # Code to be used in simple compile tests
9016 lt_simple_compile_test_code="int some_variable = 0;"
9018 # Code to be used in simple link tests
9019 lt_simple_link_test_code='int main(){return(0);}'
9027 # If no C compiler was specified, use CC.
9030 # If no C compiler flags were specified, use CFLAGS.
9031 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9033 # Allow CC to be a program name with arguments.
9036 # Save the default compiler, since it gets overwritten when the other
9037 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9038 compiler_DEFAULT=$CC
9040 # save warnings/boilerplate of simple test code
9041 ac_outfile=conftest.$ac_objext
9042 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9043 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9044 _lt_compiler_boilerplate=`cat conftest.err`
9047 ac_outfile=conftest.$ac_objext
9048 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9049 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9050 _lt_linker_boilerplate=`cat conftest.err`
9055 ## There is no encapsulation within the following macros, do not change
9056 ## the running order or otherwise move them around unless you know exactly
9057 ## what you are doing...
9058 if test -n "$compiler"; then
9060 lt_prog_compiler_no_builtin_flag=
9062 if test "$GCC" = yes; then
9063 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9066 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9067 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
9070 lt_cv_prog_compiler_rtti_exceptions=no
9071 ac_outfile=conftest.$ac_objext
9072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9073 lt_compiler_flag="-fno-rtti -fno-exceptions"
9074 # Insert the option either (1) after the last *FLAGS variable, or
9075 # (2) before a word containing "conftest.", or (3) at the end.
9076 # Note that $ac_compile itself does not contain backslashes and begins
9077 # with a dollar sign (not a hyphen), so the echo should work correctly.
9078 # The option is referenced via a variable to avoid confusing sed.
9079 lt_compile=`echo "$ac_compile" | $SED \
9080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9082 -e 's:$: $lt_compiler_flag:'`
9083 (eval echo "\"\$as_me:9083: $lt_compile\"" >&5)
9084 (eval "$lt_compile" 2>conftest.err)
9086 cat conftest.err >&5
9087 echo "$as_me:9087: \$? = $ac_status" >&5
9088 if (exit $ac_status) && test -s "$ac_outfile"; then
9089 # The compiler can only warn and ignore the option if not recognized
9090 # So say no if there are warnings other than the usual output.
9091 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9093 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9094 lt_cv_prog_compiler_rtti_exceptions=yes
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9101 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9103 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9104 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9116 lt_prog_compiler_wl=
9117 lt_prog_compiler_pic=
9118 lt_prog_compiler_static=
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9121 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9123 if test "$GCC" = yes; then
9124 lt_prog_compiler_wl='-Wl,'
9125 lt_prog_compiler_static='-static'
9129 # All AIX code is PIC.
9130 if test "$host_cpu" = ia64; then
9131 # AIX 5 now supports IA64 processor
9132 lt_prog_compiler_static='-Bstatic'
9137 if test "$host_cpu" = m68k; then
9138 # FIXME: we need at least 68020 code to build shared libraries, but
9139 # adding the `-m68020' flag to GCC prevents building anything better,
9141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9145 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9146 # PIC is the default for these OSes.
9149 mingw* | cygwin* | pw32* | os2*)
9150 # This hack is so that the source file can tell whether it is being
9151 # built for inclusion in a dll (and should export symbols for example).
9152 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9153 # (--disable-auto-import) libraries
9154 lt_prog_compiler_pic='-DDLL_EXPORT'
9157 darwin* | rhapsody*)
9158 # PIC is the default on this platform
9159 # Common symbols not allowed in MH_DYLIB files
9160 lt_prog_compiler_pic='-fno-common'
9164 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9171 lt_prog_compiler_pic='-fPIC'
9177 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9178 # Instead, we relocate shared libraries at runtime.
9182 # Just because we use GCC doesn't mean we suddenly get shared libraries
9183 # on systems that don't support them.
9184 lt_prog_compiler_can_build_shared=no
9189 # QNX uses GNU C++, but need to define -shared option too, otherwise
9191 lt_prog_compiler_pic='-fPIC -shared'
9195 if test -d /usr/nec; then
9196 lt_prog_compiler_pic=-Kconform_pic
9201 lt_prog_compiler_pic='-fPIC'
9205 # PORTME Check for flag to pass linker flags through the system compiler.
9208 lt_prog_compiler_wl='-Wl,'
9209 if test "$host_cpu" = ia64; then
9210 # AIX 5 now supports IA64 processor
9211 lt_prog_compiler_static='-Bstatic'
9213 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9217 mingw* | cygwin* | pw32* | os2*)
9218 # This hack is so that the source file can tell whether it is being
9219 # built for inclusion in a dll (and should export symbols for example).
9220 lt_prog_compiler_pic='-DDLL_EXPORT'
9223 hpux9* | hpux10* | hpux11*)
9224 lt_prog_compiler_wl='-Wl,'
9225 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9232 lt_prog_compiler_pic='+Z'
9235 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9236 lt_prog_compiler_static='${wl}-a ${wl}archive'
9239 irix5* | irix6* | nonstopux*)
9240 lt_prog_compiler_wl='-Wl,'
9241 # PIC (with -KPIC) is the default.
9242 lt_prog_compiler_static='-non_shared'
9245 linux* | k*bsd*-gnu)
9246 case $cc_basename in
9247 icc* | ecc* | ifort*)
9248 lt_prog_compiler_wl='-Wl,'
9249 lt_prog_compiler_pic='-KPIC'
9250 lt_prog_compiler_static='-static'
9252 pgcc* | pgf77* | pgf90* | pgf95*)
9253 # Portland Group compilers (*not* the Pentium gcc compiler,
9254 # which looks to be a dead project)
9255 lt_prog_compiler_wl='-Wl,'
9256 lt_prog_compiler_pic='-fpic'
9257 lt_prog_compiler_static='-Bstatic'
9260 lt_prog_compiler_wl='-Wl,'
9261 # All Alpha code is PIC.
9262 lt_prog_compiler_static='-non_shared'
9265 # IBM XL C 8.0/Fortran 10.1 on PPC
9266 lt_prog_compiler_wl='-Wl,'
9267 lt_prog_compiler_pic='-qpic'
9268 lt_prog_compiler_static='-qstaticlink'
9271 case `$CC -V 2>&1 | sed 5q` in
9274 lt_prog_compiler_pic='-KPIC'
9275 lt_prog_compiler_static='-Bstatic'
9276 lt_prog_compiler_wl='-Wl,'
9279 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9280 lt_prog_compiler_pic='-KPIC'
9281 lt_prog_compiler_static='-Bstatic'
9282 lt_prog_compiler_wl=''
9290 lt_prog_compiler_pic='-KPIC'
9291 lt_prog_compiler_static='-Bstatic'
9295 # QNX uses GNU C++, but need to define -shared option too, otherwise
9297 lt_prog_compiler_pic='-fPIC -shared'
9300 osf3* | osf4* | osf5*)
9301 lt_prog_compiler_wl='-Wl,'
9302 # All OSF/1 code is PIC.
9303 lt_prog_compiler_static='-non_shared'
9307 lt_prog_compiler_static='-non_shared'
9311 lt_prog_compiler_pic='-KPIC'
9312 lt_prog_compiler_static='-Bstatic'
9313 case $cc_basename in
9315 lt_prog_compiler_wl='-Qoption ld ';;
9317 lt_prog_compiler_wl='-Wl,';;
9322 lt_prog_compiler_wl='-Qoption ld '
9323 lt_prog_compiler_pic='-PIC'
9324 lt_prog_compiler_static='-Bstatic'
9327 sysv4 | sysv4.2uw2* | sysv4.3*)
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_pic='-KPIC'
9330 lt_prog_compiler_static='-Bstatic'
9334 if test -d /usr/nec ;then
9335 lt_prog_compiler_pic='-Kconform_pic'
9336 lt_prog_compiler_static='-Bstatic'
9340 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9341 lt_prog_compiler_wl='-Wl,'
9342 lt_prog_compiler_pic='-KPIC'
9343 lt_prog_compiler_static='-Bstatic'
9347 lt_prog_compiler_wl='-Wl,'
9348 lt_prog_compiler_can_build_shared=no
9352 lt_prog_compiler_pic='-pic'
9353 lt_prog_compiler_static='-Bstatic'
9357 lt_prog_compiler_can_build_shared=no
9363 # For platforms which do not support PIC, -DPIC is meaningless:
9365 lt_prog_compiler_pic=
9368 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9372 $as_echo "$lt_prog_compiler_pic" >&6; }
9380 # Check to make sure the PIC flag actually works.
9382 if test -n "$lt_prog_compiler_pic"; then
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9384 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9385 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9386 $as_echo_n "(cached) " >&6
9388 lt_cv_prog_compiler_pic_works=no
9389 ac_outfile=conftest.$ac_objext
9390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9391 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9392 # Insert the option either (1) after the last *FLAGS variable, or
9393 # (2) before a word containing "conftest.", or (3) at the end.
9394 # Note that $ac_compile itself does not contain backslashes and begins
9395 # with a dollar sign (not a hyphen), so the echo should work correctly.
9396 # The option is referenced via a variable to avoid confusing sed.
9397 lt_compile=`echo "$ac_compile" | $SED \
9398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9400 -e 's:$: $lt_compiler_flag:'`
9401 (eval echo "\"\$as_me:9401: $lt_compile\"" >&5)
9402 (eval "$lt_compile" 2>conftest.err)
9404 cat conftest.err >&5
9405 echo "$as_me:9405: \$? = $ac_status" >&5
9406 if (exit $ac_status) && test -s "$ac_outfile"; then
9407 # The compiler can only warn and ignore the option if not recognized
9408 # So say no if there are warnings other than the usual output.
9409 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9412 lt_cv_prog_compiler_pic_works=yes
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9419 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9421 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9422 case $lt_prog_compiler_pic in
9424 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9427 lt_prog_compiler_pic=
9428 lt_prog_compiler_can_build_shared=no
9439 # Check to make sure the static flag actually works.
9441 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9443 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9444 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9445 $as_echo_n "(cached) " >&6
9447 lt_cv_prog_compiler_static_works=no
9448 save_LDFLAGS="$LDFLAGS"
9449 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9450 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9451 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9452 # The linker can only warn and ignore the option if not recognized
9453 # So say no if there are warnings
9454 if test -s conftest.err; then
9455 # Append any errors to the config.log.
9456 cat conftest.err 1>&5
9457 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9459 if diff conftest.exp conftest.er2 >/dev/null; then
9460 lt_cv_prog_compiler_static_works=yes
9463 lt_cv_prog_compiler_static_works=yes
9467 LDFLAGS="$save_LDFLAGS"
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9471 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9473 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9476 lt_prog_compiler_static=
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9486 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9487 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9488 $as_echo_n "(cached) " >&6
9490 lt_cv_prog_compiler_c_o=no
9491 $RM -r conftest 2>/dev/null
9495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9497 lt_compiler_flag="-o out/conftest2.$ac_objext"
9498 # Insert the option either (1) after the last *FLAGS variable, or
9499 # (2) before a word containing "conftest.", or (3) at the end.
9500 # Note that $ac_compile itself does not contain backslashes and begins
9501 # with a dollar sign (not a hyphen), so the echo should work correctly.
9502 lt_compile=`echo "$ac_compile" | $SED \
9503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9505 -e 's:$: $lt_compiler_flag:'`
9506 (eval echo "\"\$as_me:9506: $lt_compile\"" >&5)
9507 (eval "$lt_compile" 2>out/conftest.err)
9509 cat out/conftest.err >&5
9510 echo "$as_me:9510: \$? = $ac_status" >&5
9511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9513 # The compiler can only warn and ignore the option if not recognized
9514 # So say no if there are warnings
9515 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9518 lt_cv_prog_compiler_c_o=yes
9523 # SGI C++ compiler will create directory out/ii_files/ for
9524 # template instantiation
9525 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9526 $RM out/* && rmdir out
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9533 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9541 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9542 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9543 $as_echo_n "(cached) " >&6
9545 lt_cv_prog_compiler_c_o=no
9546 $RM -r conftest 2>/dev/null
9550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9552 lt_compiler_flag="-o out/conftest2.$ac_objext"
9553 # Insert the option either (1) after the last *FLAGS variable, or
9554 # (2) before a word containing "conftest.", or (3) at the end.
9555 # Note that $ac_compile itself does not contain backslashes and begins
9556 # with a dollar sign (not a hyphen), so the echo should work correctly.
9557 lt_compile=`echo "$ac_compile" | $SED \
9558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9560 -e 's:$: $lt_compiler_flag:'`
9561 (eval echo "\"\$as_me:9561: $lt_compile\"" >&5)
9562 (eval "$lt_compile" 2>out/conftest.err)
9564 cat out/conftest.err >&5
9565 echo "$as_me:9565: \$? = $ac_status" >&5
9566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9568 # The compiler can only warn and ignore the option if not recognized
9569 # So say no if there are warnings
9570 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9573 lt_cv_prog_compiler_c_o=yes
9578 # SGI C++ compiler will create directory out/ii_files/ for
9579 # template instantiation
9580 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9581 $RM out/* && rmdir out
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9588 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9593 hard_links="nottested"
9594 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9595 # do not overwrite the value of need_locks provided by the user
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9597 $as_echo_n "checking if we can lock with hard links... " >&6; }
9600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9602 ln conftest.a conftest.b 2>&5 || hard_links=no
9603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9605 $as_echo "$hard_links" >&6; }
9606 if test "$hard_links" = no; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9608 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9621 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9624 allow_undefined_flag=
9625 always_export_symbols=no
9627 archive_expsym_cmds=
9628 compiler_needs_object=no
9629 enable_shared_with_static_runtimes=no
9630 export_dynamic_flag_spec=
9631 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9632 hardcode_automatic=no
9634 hardcode_direct_absolute=no
9635 hardcode_libdir_flag_spec=
9636 hardcode_libdir_flag_spec_ld=
9637 hardcode_libdir_separator=
9639 hardcode_shlibpath_var=unsupported
9641 link_all_deplibs=unknown
9644 old_archive_from_new_cmds=
9645 old_archive_from_expsyms_cmds=
9646 thread_safe_flag_spec=
9647 whole_archive_flag_spec=
9648 # include_expsyms should be a list of space-separated symbols to be *always*
9649 # included in the symbol list
9651 # exclude_expsyms can be an extended regexp of symbols to exclude
9652 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9653 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9654 # as well as any symbol that contains `d'.
9655 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9656 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9657 # platforms (ab)use it in PIC code, but their linkers get confused if
9658 # the symbol is explicitly referenced. Since portable code cannot
9659 # rely on this symbol name, it's probably fine to never include it in
9660 # preloaded symbol tables.
9661 # Exclude shared library initialization/finalization symbols.
9662 extract_expsyms_cmds=
9665 cygwin* | mingw* | pw32*)
9666 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9667 # When not using gcc, we currently assume that we are using
9668 # Microsoft Visual C++.
9669 if test "$GCC" != yes; then
9674 # we just hope/assume this is gcc and not c89 (= MSVC++)
9683 if test "$with_gnu_ld" = yes; then
9684 # If archive_cmds runs LD, not CC, wlarc should be empty
9687 # Set some defaults for GNU ld with shared library support. These
9688 # are reset later if shared libraries are not supported. Putting them
9689 # here allows them to be overridden if necessary.
9690 runpath_var=LD_RUN_PATH
9691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9692 export_dynamic_flag_spec='${wl}--export-dynamic'
9693 # ancient GNU ld didn't support --whole-archive et. al.
9694 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9695 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9697 whole_archive_flag_spec=
9699 supports_anon_versioning=no
9700 case `$LD -v 2>&1` in
9701 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9702 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9703 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9704 *\ 2.11.*) ;; # other 2.11 versions
9705 *) supports_anon_versioning=yes ;;
9708 # See if GNU ld supports shared libraries.
9711 # On AIX/PPC, the GNU linker is very broken
9712 if test "$host_cpu" != ia64; then
9716 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9717 *** to be unable to reliably create shared libraries on AIX.
9718 *** Therefore, libtool is disabling shared libraries support. If you
9719 *** really care for shared libraries, you may want to modify your PATH
9720 *** so that a non-GNU linker is found, and then restart.
9727 if test "$host_cpu" = m68k; then
9728 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)'
9729 hardcode_libdir_flag_spec='-L$libdir'
9730 hardcode_minus_L=yes
9733 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9734 # that the semantics of dynamic libraries on AmigaOS, at least up
9735 # to version 4, is to share data among multiple programs linked
9736 # with the same dynamic library. Since this doesn't match the
9737 # behavior of shared libraries on other platforms, we can't use
9743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9744 allow_undefined_flag=unsupported
9745 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9746 # support --undefined. This deserves some investigation. FIXME
9747 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9753 cygwin* | mingw* | pw32*)
9754 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9755 # as there is no search path for DLLs.
9756 hardcode_libdir_flag_spec='-L$libdir'
9757 allow_undefined_flag=unsupported
9758 always_export_symbols=no
9759 enable_shared_with_static_runtimes=yes
9760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9762 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9764 # If the export-symbols file already is a .def file (1st line
9765 # is EXPORTS), use it as is; otherwise, prepend...
9766 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9767 cp $export_symbols $output_objdir/$soname.def;
9769 echo EXPORTS > $output_objdir/$soname.def;
9770 cat $export_symbols >> $output_objdir/$soname.def;
9772 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9780 hardcode_shlibpath_var=no
9781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9782 export_dynamic_flag_spec='${wl}-E'
9783 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9784 # Instead, shared libraries are loaded at an image base (0x10000000 by
9785 # default) and relocated if they conflict, which is a slow very memory
9786 # consuming and fragmenting process. To avoid this, we pick a random,
9787 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9788 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9790 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'
9793 gnu* | linux* | tpf* | k*bsd*-gnu)
9795 if test "$host_os" = linux-dietlibc; then
9796 case $cc_basename in
9797 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9800 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9801 && test "$tmp_diet" = no
9804 tmp_sharedflag='-shared'
9805 case $cc_basename,$host_cpu in
9806 pgcc*) # Portland Group C compiler
9807 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9808 tmp_addflag=' $pic_flag'
9810 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9811 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9812 tmp_addflag=' $pic_flag -Mnomain' ;;
9813 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9814 tmp_addflag=' -i_dynamic' ;;
9815 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9816 tmp_addflag=' -i_dynamic -nofor_main' ;;
9817 ifc* | ifort*) # Intel Fortran compiler
9818 tmp_addflag=' -nofor_main' ;;
9819 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9820 tmp_sharedflag='-qmkshrobj'
9823 case `$CC -V 2>&1 | sed 5q` in
9824 *Sun\ C*) # Sun C 5.9
9825 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9826 compiler_needs_object=yes
9827 tmp_sharedflag='-G' ;;
9828 *Sun\ F*) # Sun Fortran 8.3
9829 tmp_sharedflag='-G' ;;
9831 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9833 if test "x$supports_anon_versioning" = xyes; then
9834 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9836 echo "local: *; };" >> $output_objdir/$libname.ver~
9837 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9840 case $cc_basename in
9842 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9843 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9844 hardcode_libdir_flag_spec=
9845 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9846 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9847 if test "x$supports_anon_versioning" = xyes; then
9848 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9850 echo "local: *; };" >> $output_objdir/$libname.ver~
9851 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9862 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9871 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9875 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9876 *** create shared libraries on Solaris systems. Therefore, libtool
9877 *** is disabling shared libraries support. We urge you to upgrade GNU
9878 *** binutils to release 2.9.1 or newer. Another option is to modify
9879 *** your PATH or compiler configuration so that the native linker is
9880 *** used, and then restart.
9883 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9891 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9892 case `$LD -v 2>&1` in
9893 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9897 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9898 *** reliably create shared libraries on SCO systems. Therefore, libtool
9899 *** is disabling shared libraries support. We urge you to upgrade GNU
9900 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9901 *** your PATH or compiler configuration so that the native linker is
9902 *** used, and then restart.
9907 # For security reasons, it is highly recommended that you always
9908 # use absolute paths for naming shared libraries, and exclude the
9909 # DT_RUNPATH tag from executables and libraries. But doing so
9910 # requires that you compile everything twice, which is a pain.
9911 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9923 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9926 hardcode_shlibpath_var=no
9930 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9939 if test "$ld_shlibs" = no; then
9941 hardcode_libdir_flag_spec=
9942 export_dynamic_flag_spec=
9943 whole_archive_flag_spec=
9946 # PORTME fill in a description of your system's linker (not GNU ld)
9949 allow_undefined_flag=unsupported
9950 always_export_symbols=yes
9951 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'
9952 # Note: this linker hardcodes the directories in LIBPATH if there
9953 # are no directories specified by -L.
9954 hardcode_minus_L=yes
9955 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9956 # Neither direct hardcoding nor static linking is supported with a
9958 hardcode_direct=unsupported
9963 if test "$host_cpu" = ia64; then
9964 # On IA64, the linker does run time linking by default, so we don't
9965 # have to do anything special.
9966 aix_use_runtimelinking=no
9967 exp_sym_flag='-Bexport'
9970 # If we're using GNU nm, then we don't want the "-C" option.
9971 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9972 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9973 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9975 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'
9977 aix_use_runtimelinking=no
9979 # Test if we are trying to use run time linking or normal
9980 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9981 # need to do runtime linking.
9982 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9983 for ld_flag in $LDFLAGS; do
9984 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9985 aix_use_runtimelinking=yes
9992 exp_sym_flag='-bexport'
9993 no_entry_flag='-bnoentry'
9996 # When large executables or shared objects are built, AIX ld can
9997 # have problems creating the table of contents. If linking a library
9998 # or program results in "error TOC overflow" add -mminimal-toc to
9999 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10000 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10003 hardcode_direct=yes
10004 hardcode_direct_absolute=yes
10005 hardcode_libdir_separator=':'
10006 link_all_deplibs=yes
10007 file_list_spec='${wl}-f,'
10009 if test "$GCC" = yes; then
10010 case $host_os in aix4.[012]|aix4.[012].*)
10011 # We only want to do this on AIX 4.2 and lower, the check
10012 # below for broken collect2 doesn't work under 4.3+
10013 collect2name=`${CC} -print-prog-name=collect2`
10014 if test -f "$collect2name" &&
10015 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10017 # We have reworked collect2
10020 # We have old collect2
10021 hardcode_direct=unsupported
10022 # It fails to find uninstalled libraries when the uninstalled
10023 # path is not listed in the libpath. Setting hardcode_minus_L
10024 # to unsupported forces relinking
10025 hardcode_minus_L=yes
10026 hardcode_libdir_flag_spec='-L$libdir'
10027 hardcode_libdir_separator=
10031 shared_flag='-shared'
10032 if test "$aix_use_runtimelinking" = yes; then
10033 shared_flag="$shared_flag "'${wl}-G'
10037 if test "$host_cpu" = ia64; then
10038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10039 # chokes on -Wl,-G. The following line is correct:
10042 if test "$aix_use_runtimelinking" = yes; then
10043 shared_flag='${wl}-G'
10045 shared_flag='${wl}-bM:SRE'
10050 # It seems that -bexpall does not export symbols beginning with
10051 # underscore (_), so it is better to generate a list of symbols to export.
10052 always_export_symbols=yes
10053 if test "$aix_use_runtimelinking" = yes; then
10054 # Warning - without using the other runtime loading flags (-brtl),
10055 # -berok will link without error, but may produce a broken library.
10056 allow_undefined_flag='-berok'
10057 # Determine the default libpath from the value encoded in an
10058 # empty executable.
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10070 if ac_fn_c_try_link "$LINENO"; then :
10072 lt_aix_libpath_sed='
10073 /Import File Strings/,/^$/ {
10079 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10080 # Check for a 64-bit object if we didn't find anything.
10081 if test -z "$aix_libpath"; then
10082 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10085 rm -f core conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10089 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10090 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10092 if test "$host_cpu" = ia64; then
10093 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10094 allow_undefined_flag="-z nodefs"
10095 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"
10097 # Determine the default libpath from the value encoded in an
10098 # empty executable.
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10110 if ac_fn_c_try_link "$LINENO"; then :
10112 lt_aix_libpath_sed='
10113 /Import File Strings/,/^$/ {
10119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10120 # Check for a 64-bit object if we didn't find anything.
10121 if test -z "$aix_libpath"; then
10122 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10125 rm -f core conftest.err conftest.$ac_objext \
10126 conftest$ac_exeext conftest.$ac_ext
10127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10129 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10130 # Warning - without using the other run time loading flags,
10131 # -berok will link without error, but may produce a broken library.
10132 no_undefined_flag=' ${wl}-bernotok'
10133 allow_undefined_flag=' ${wl}-berok'
10134 # Exported symbols can be pulled into shared objects from archives
10135 whole_archive_flag_spec='$convenience'
10136 archive_cmds_need_lc=yes
10137 # This is similar to how AIX traditionally builds its shared libraries.
10138 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'
10144 if test "$host_cpu" = m68k; then
10145 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)'
10146 hardcode_libdir_flag_spec='-L$libdir'
10147 hardcode_minus_L=yes
10149 # see comment about different semantics on the GNU ld section
10154 export_dynamic_flag_spec=-rdynamic
10157 cygwin* | mingw* | pw32*)
10158 # When not using gcc, we currently assume that we are using
10159 # Microsoft Visual C++.
10160 # hardcode_libdir_flag_spec is actually meaningless, as there is
10161 # no search path for DLLs.
10162 hardcode_libdir_flag_spec=' '
10163 allow_undefined_flag=unsupported
10164 # Tell ltmain to make .lib files, not .a files.
10166 # Tell ltmain to make .dll files, not .so files.
10168 # FIXME: Setting linknames here is a bad hack.
10169 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10170 # The linker will automatically build a .lib file if we build a DLL.
10171 old_archive_from_new_cmds='true'
10172 # FIXME: Should let the user specify the lib program.
10173 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10174 fix_srcfile_path='`cygpath -w "$srcfile"`'
10175 enable_shared_with_static_runtimes=yes
10178 darwin* | rhapsody*)
10181 archive_cmds_need_lc=no
10183 hardcode_automatic=yes
10184 hardcode_shlibpath_var=unsupported
10185 whole_archive_flag_spec=''
10186 link_all_deplibs=yes
10187 allow_undefined_flag="$_lt_dar_allow_undefined"
10188 if test "$GCC" = "yes"; then
10189 output_verbose_link_cmd=echo
10190 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10191 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10192 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}"
10193 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}"
10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_libdir_flag_spec='-L$libdir'
10204 hardcode_shlibpath_var=no
10211 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10212 # support. Future versions do this automatically, but an explicit c++rt0.o
10213 # does not break anything, and helps significantly (at the cost of a little
10216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10217 hardcode_libdir_flag_spec='-R$libdir'
10218 hardcode_direct=yes
10219 hardcode_shlibpath_var=no
10222 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10225 hardcode_direct=yes
10226 hardcode_minus_L=yes
10227 hardcode_shlibpath_var=no
10230 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10231 freebsd* | dragonfly*)
10232 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10233 hardcode_libdir_flag_spec='-R$libdir'
10234 hardcode_direct=yes
10235 hardcode_shlibpath_var=no
10239 if test "$GCC" = yes; then
10240 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'
10242 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'
10244 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10245 hardcode_libdir_separator=:
10246 hardcode_direct=yes
10248 # hardcode_minus_L: Not really in the search PATH,
10249 # but as the default location of the library.
10250 hardcode_minus_L=yes
10251 export_dynamic_flag_spec='${wl}-E'
10255 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10256 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10258 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10260 if test "$with_gnu_ld" = no; then
10261 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10262 hardcode_libdir_flag_spec_ld='+b $libdir'
10263 hardcode_libdir_separator=:
10264 hardcode_direct=yes
10265 hardcode_direct_absolute=yes
10266 export_dynamic_flag_spec='${wl}-E'
10267 # hardcode_minus_L: Not really in the search PATH,
10268 # but as the default location of the library.
10269 hardcode_minus_L=yes
10274 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10277 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10280 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10283 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10289 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10292 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10299 if test "$with_gnu_ld" = no; then
10300 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10301 hardcode_libdir_separator=:
10306 hardcode_shlibpath_var=no
10309 hardcode_direct=yes
10310 hardcode_direct_absolute=yes
10311 export_dynamic_flag_spec='${wl}-E'
10313 # hardcode_minus_L: Not really in the search PATH,
10314 # but as the default location of the library.
10315 hardcode_minus_L=yes
10321 irix5* | irix6* | nonstopux*)
10322 if test "$GCC" = yes; then
10323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10324 # Try to use the -exported_symbol ld option, if it does not
10325 # work, assume that -exports_file does not work either and
10326 # implicitly export all symbols.
10327 save_LDFLAGS="$LDFLAGS"
10328 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330 /* end confdefs.h. */
10333 if ac_fn_c_try_link "$LINENO"; then :
10334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10337 rm -f core conftest.err conftest.$ac_objext \
10338 conftest$ac_exeext conftest.$ac_ext
10339 LDFLAGS="$save_LDFLAGS"
10341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10344 archive_cmds_need_lc='no'
10345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10346 hardcode_libdir_separator=:
10348 link_all_deplibs=yes
10352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10355 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10357 hardcode_libdir_flag_spec='-R$libdir'
10358 hardcode_direct=yes
10359 hardcode_shlibpath_var=no
10363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364 hardcode_direct=yes
10365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10366 hardcode_libdir_separator=:
10367 hardcode_shlibpath_var=no
10374 if test -f /usr/libexec/ld.so; then
10375 hardcode_direct=yes
10376 hardcode_shlibpath_var=no
10377 hardcode_direct_absolute=yes
10378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10380 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10381 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10382 export_dynamic_flag_spec='${wl}-E'
10385 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10387 hardcode_libdir_flag_spec='-R$libdir'
10390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10401 hardcode_libdir_flag_spec='-L$libdir'
10402 hardcode_minus_L=yes
10403 allow_undefined_flag=unsupported
10404 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'
10405 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10409 if test "$GCC" = yes; then
10410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10411 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10413 allow_undefined_flag=' -expect_unresolved \*'
10414 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10416 archive_cmds_need_lc='no'
10417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10418 hardcode_libdir_separator=:
10421 osf4* | osf5*) # as osf3* with the addition of -msym flag
10422 if test "$GCC" = yes; then
10423 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10424 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10427 allow_undefined_flag=' -expect_unresolved \*'
10428 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10429 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~
10430 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10432 # Both c and cxx compiler support -rpath directly
10433 hardcode_libdir_flag_spec='-rpath $libdir'
10435 archive_cmds_need_lc='no'
10436 hardcode_libdir_separator=:
10440 no_undefined_flag=' -z defs'
10441 if test "$GCC" = yes; then
10443 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10445 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10447 case `$CC -V 2>&1` in
10450 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10451 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10452 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10456 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10457 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10458 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10462 hardcode_libdir_flag_spec='-R$libdir'
10463 hardcode_shlibpath_var=no
10465 solaris2.[0-5] | solaris2.[0-5].*) ;;
10467 # The compiler driver will combine and reorder linker options,
10468 # but understands `-z linker_flag'. GCC discards it without `$wl',
10469 # but is careful enough not to reorder.
10470 # Supported since Solaris 2.6 (maybe 2.5.1?)
10471 if test "$GCC" = yes; then
10472 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10474 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10478 link_all_deplibs=yes
10482 if test "x$host_vendor" = xsequent; then
10483 # Use $CC to link under sequent, because it throws in some extra .o
10484 # files that make .init and .fini sections work.
10485 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10487 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10489 hardcode_libdir_flag_spec='-L$libdir'
10490 hardcode_direct=yes
10491 hardcode_minus_L=yes
10492 hardcode_shlibpath_var=no
10496 case $host_vendor in
10498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10499 hardcode_direct=yes # is this really true???
10502 ## LD is ld it makes a PLAMLIB
10503 ## CC just makes a GrossModule.
10504 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10505 reload_cmds='$CC -r -o $output$reload_objs'
10509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10513 runpath_var='LD_RUN_PATH'
10514 hardcode_shlibpath_var=no
10518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519 hardcode_shlibpath_var=no
10520 export_dynamic_flag_spec='-Bexport'
10524 if test -d /usr/nec; then
10525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526 hardcode_shlibpath_var=no
10527 runpath_var=LD_RUN_PATH
10528 hardcode_runpath_var=yes
10533 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10534 no_undefined_flag='${wl}-z,text'
10535 archive_cmds_need_lc=no
10536 hardcode_shlibpath_var=no
10537 runpath_var='LD_RUN_PATH'
10539 if test "$GCC" = yes; then
10540 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10541 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10543 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10548 sysv5* | sco3.2v5* | sco5v6*)
10549 # Note: We can NOT use -z defs as we might desire, because we do not
10550 # link with -lc, and that would cause any symbols used from libc to
10551 # always be unresolved, which means just about no library would
10552 # ever link correctly. If we're not using GNU ld we use -z text
10553 # though, which does catch some bad symbols but isn't as heavy-handed
10555 no_undefined_flag='${wl}-z,text'
10556 allow_undefined_flag='${wl}-z,nodefs'
10557 archive_cmds_need_lc=no
10558 hardcode_shlibpath_var=no
10559 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10560 hardcode_libdir_separator=':'
10561 link_all_deplibs=yes
10562 export_dynamic_flag_spec='${wl}-Bexport'
10563 runpath_var='LD_RUN_PATH'
10565 if test "$GCC" = yes; then
10566 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10567 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10570 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10576 hardcode_libdir_flag_spec='-L$libdir'
10577 hardcode_shlibpath_var=no
10585 if test x$host_vendor = xsni; then
10587 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10588 export_dynamic_flag_spec='${wl}-Blargedynsym'
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10595 $as_echo "$ld_shlibs" >&6; }
10596 test "$ld_shlibs" = no && can_build_shared=no
10598 with_gnu_ld=$with_gnu_ld
10615 # Do we need to explicitly link libc?
10617 case "x$archive_cmds_need_lc" in
10619 # Assume -lc should be added
10620 archive_cmds_need_lc=yes
10622 if test "$enable_shared" = yes && test "$GCC" = yes; then
10623 case $archive_cmds in
10625 # FIXME: we may have to deal with multi-command sequences.
10628 # Test whether the compiler implicitly links with -lc since on some
10629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10630 # to ld, don't add -lc before -lgcc.
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10632 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10637 (eval $ac_compile) 2>&5
10639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10640 test $ac_status = 0; } 2>conftest.err; then
10643 libobjs=conftest.$ac_objext
10645 wl=$lt_prog_compiler_wl
10646 pic_flag=$lt_prog_compiler_pic
10652 lt_save_allow_undefined_flag=$allow_undefined_flag
10653 allow_undefined_flag=
10654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10655 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10658 test $ac_status = 0; }
10660 archive_cmds_need_lc=no
10662 archive_cmds_need_lc=yes
10664 allow_undefined_flag=$lt_save_allow_undefined_flag
10666 cat conftest.err 1>&5
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10670 $as_echo "$archive_cmds_need_lc" >&6; }
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10834 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10836 if test "$GCC" = yes; then
10838 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10839 *) lt_awk_arg="/^libraries:/" ;;
10841 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10842 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10843 # if the path contains ";" then we assume it to be the separator
10844 # otherwise default to the standard path separator (i.e. ":") - it is
10845 # assumed that no part of a normal pathname contains ";" but that should
10846 # okay in the real world where ";" in dirpaths is itself problematic.
10847 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10849 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10851 # Ok, now we have the path, separated by spaces, we can step through it
10852 # and add multilib dir if necessary.
10853 lt_tmp_lt_search_path_spec=
10854 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10855 for lt_sys_path in $lt_search_path_spec; do
10856 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10857 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10859 test -d "$lt_sys_path" && \
10860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10863 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10864 BEGIN {RS=" "; FS="/|\n";} {
10867 for (lt_i = NF; lt_i > 0; lt_i--) {
10868 if ($lt_i != "" && $lt_i != ".") {
10869 if ($lt_i == "..") {
10872 if (lt_count == 0) {
10873 lt_foo="/" $lt_i lt_foo;
10880 if (lt_foo != "") { lt_freq[lt_foo]++; }
10881 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10883 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10885 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10887 library_names_spec=
10888 libname_spec='lib$name'
10892 postuninstall_cmds=
10896 shlibpath_overrides_runpath=unknown
10898 dynamic_linker="$host_os ld.so"
10899 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10900 need_lib_prefix=unknown
10901 hardcode_into_libs=no
10903 # when you set need_version to no, make sure it does not cause -set_version
10904 # flags to be left without arguments
10905 need_version=unknown
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10911 shlibpath_var=LIBPATH
10913 # AIX 3 has no versioning support, so we append a major version to the name.
10914 soname_spec='${libname}${release}${shared_ext}$major'
10921 hardcode_into_libs=yes
10922 if test "$host_cpu" = ia64; then
10923 # AIX 5 supports IA64
10924 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10925 shlibpath_var=LD_LIBRARY_PATH
10927 # With GCC up to 2.95.x, collect2 would create an import file
10928 # for dependence libraries. The import file would start with
10929 # the line `#! .'. This would cause the generated library to
10930 # depend on `.', always an invalid library. This was fixed in
10931 # development snapshots of GCC prior to 3.0.
10933 aix4 | aix4.[01] | aix4.[01].*)
10934 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10936 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10939 can_build_shared=no
10943 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10944 # soname into executable. Probably we can add versioning support to
10945 # collect2, so additional links can be useful in future.
10946 if test "$aix_use_runtimelinking" = yes; then
10947 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10948 # instead of lib<name>.a to let people know that these are not
10949 # typical AIX shared libraries.
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 # We preserve .a as extension for shared libraries through AIX4.2
10953 # and later when we are not doing run time linking.
10954 library_names_spec='${libname}${release}.a $libname.a'
10955 soname_spec='${libname}${release}${shared_ext}$major'
10957 shlibpath_var=LIBPATH
10962 if test "$host_cpu" = m68k; then
10963 library_names_spec='$libname.ixlibrary $libname.a'
10964 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10965 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'
10972 library_names_spec='${libname}${shared_ext}'
10973 dynamic_linker="$host_os ld.so"
10974 shlibpath_var=LIBRARY_PATH
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10983 shlibpath_var=LD_LIBRARY_PATH
10984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10986 # the default ld.so.conf also contains /usr/contrib/lib and
10987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10988 # libtool to hard-code these into programs
10991 cygwin* | mingw* | pw32*)
10992 version_type=windows
10997 case $GCC,$host_os in
10998 yes,cygwin* | yes,mingw* | yes,pw32*)
10999 library_names_spec='$libname.dll.a'
11000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11001 postinstall_cmds='base_file=`basename \${file}`~
11002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11003 dldir=$destdir/`dirname \$dlpath`~
11004 test -d \$dldir || mkdir -p \$dldir~
11005 $install_prog $dir/$dlname \$dldir/$dlname~
11006 chmod a+x \$dldir/$dlname~
11007 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11008 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11011 dlpath=$dir/\$dldll~
11013 shlibpath_overrides_runpath=yes
11017 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11018 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11019 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11022 # MinGW DLLs use traditional 'lib' prefix
11023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11024 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11025 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11026 # It is most probably a Windows format PATH printed by
11027 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11028 # path with ; separators, and with drive letters. We can handle the
11029 # drive letters (cygwin fileutils understands them), so leave them,
11030 # especially as we might pass files found there to a mingw objdump,
11031 # which wouldn't understand a cygwinified path. Ahh.
11032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11038 # pw32 DLLs use 'pw' prefix rather than 'lib'
11039 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11045 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11048 dynamic_linker='Win32 ld.exe'
11049 # FIXME: first we should search . and the directory the executable is in
11053 darwin* | rhapsody*)
11054 dynamic_linker="$host_os dyld"
11055 version_type=darwin
11058 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11059 soname_spec='${libname}${release}${major}$shared_ext'
11060 shlibpath_overrides_runpath=yes
11061 shlibpath_var=DYLD_LIBRARY_PATH
11062 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11064 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11065 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11073 soname_spec='${libname}${release}${shared_ext}$major'
11074 shlibpath_var=LD_LIBRARY_PATH
11081 freebsd* | dragonfly*)
11082 # DragonFly does not have aout. When/if they implement a new
11083 # versioning mechanism, adjust this.
11084 if test -x /usr/bin/objformat; then
11085 objformat=`/usr/bin/objformat`
11088 freebsd[123]*) objformat=aout ;;
11089 *) objformat=elf ;;
11092 version_type=freebsd-$objformat
11093 case $version_type in
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11104 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11109 freebsd3.[01]* | freebsdelf3.[01]*)
11110 shlibpath_overrides_runpath=yes
11111 hardcode_into_libs=yes
11113 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11114 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11115 shlibpath_overrides_runpath=no
11116 hardcode_into_libs=yes
11118 *) # from 4.6 on, and DragonFly
11119 shlibpath_overrides_runpath=yes
11120 hardcode_into_libs=yes
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11130 soname_spec='${libname}${release}${shared_ext}$major'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 hardcode_into_libs=yes
11135 hpux9* | hpux10* | hpux11*)
11136 # Give a soname corresponding to the major version so that dld.sl refuses to
11137 # link against other versions.
11144 hardcode_into_libs=yes
11145 dynamic_linker="$host_os dld.so"
11146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 if test "X$HPUX_IA64_MODE" = X32; then
11151 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11153 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11159 hardcode_into_libs=yes
11160 dynamic_linker="$host_os dld.sl"
11161 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11170 dynamic_linker="$host_os dld.sl"
11171 shlibpath_var=SHLIB_PATH
11172 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174 soname_spec='${libname}${release}${shared_ext}$major'
11177 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11178 postinstall_cmds='chmod 555 $lib'
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=no
11190 hardcode_into_libs=yes
11193 irix5* | irix6* | nonstopux*)
11195 nonstopux*) version_type=nonstopux ;;
11197 if test "$lt_cv_prog_gnu_ld" = yes; then
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11208 irix5* | nonstopux*)
11209 libsuff= shlibsuff=
11212 case $LD in # libtool.m4 will add one of these switches to LD
11213 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11214 libsuff= shlibsuff= libmagic=32-bit;;
11215 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11216 libsuff=32 shlibsuff=N32 libmagic=N32;;
11217 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11218 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11219 *) libsuff= shlibsuff= libmagic=never-match;;
11223 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11224 shlibpath_overrides_runpath=no
11225 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11226 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11227 hardcode_into_libs=yes
11230 # No shared lib support for Linux oldld, aout, or coff.
11231 linux*oldld* | linux*aout* | linux*coff*)
11235 # This must be Linux ELF.
11236 linux* | k*bsd*-gnu)
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=no
11245 # Some binutils ld are patched to set DT_RUNPATH
11246 save_LDFLAGS=$LDFLAGS
11247 save_libdir=$libdir
11248 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11249 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11261 if ac_fn_c_try_link "$LINENO"; then :
11262 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11263 shlibpath_overrides_runpath=yes
11266 rm -f core conftest.err conftest.$ac_objext \
11267 conftest$ac_exeext conftest.$ac_ext
11268 LDFLAGS=$save_LDFLAGS
11269 libdir=$save_libdir
11271 # This implies no fast_install, which is unacceptable.
11272 # Some rework will be needed to allow for fast_install
11273 # before this can be enabled.
11274 hardcode_into_libs=yes
11276 # Append ld.so.conf contents to the search path
11277 if test -f /etc/ld.so.conf; then
11278 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11282 # We used to test for /lib/ld.so.1 and disable shared libraries on
11283 # powerpc, because MkLinux only supported shared libraries with the
11284 # GNU dynamic linker. Since this was broken with cross compilers,
11285 # most powerpc-linux boxes support dynamic linking these days and
11286 # people can always --disable-shared, the test was removed, and we
11287 # assume the GNU/Linux dynamic linker is in use.
11288 dynamic_linker='GNU/Linux ld.so'
11295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11298 dynamic_linker='NetBSD (a.out) ld.so'
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11301 soname_spec='${libname}${release}${shared_ext}$major'
11302 dynamic_linker='NetBSD ld.elf_so'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 shlibpath_overrides_runpath=yes
11306 hardcode_into_libs=yes
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312 shlibpath_var=LD_LIBRARY_PATH
11313 shlibpath_overrides_runpath=yes
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 shlibpath_var=LD_LIBRARY_PATH
11323 shlibpath_overrides_runpath=no
11324 hardcode_into_libs=yes
11325 dynamic_linker='ldqnx.so'
11330 sys_lib_dlsearch_path_spec="/usr/lib"
11332 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11334 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11335 *) need_version=no ;;
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11339 shlibpath_var=LD_LIBRARY_PATH
11340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11342 openbsd2.[89] | openbsd2.[89].*)
11343 shlibpath_overrides_runpath=no
11346 shlibpath_overrides_runpath=yes
11350 shlibpath_overrides_runpath=yes
11355 libname_spec='$name'
11358 library_names_spec='$libname${shared_ext} $libname.a'
11359 dynamic_linker='OS/2 ld.exe'
11360 shlibpath_var=LIBPATH
11363 osf3* | osf4* | osf5*)
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369 shlibpath_var=LD_LIBRARY_PATH
11370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11371 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 shlibpath_overrides_runpath=yes
11386 hardcode_into_libs=yes
11387 # ldd complains unless libraries are executable
11388 postinstall_cmds='chmod +x $lib'
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11395 shlibpath_var=LD_LIBRARY_PATH
11396 shlibpath_overrides_runpath=yes
11397 if test "$with_gnu_ld" = yes; then
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406 soname_spec='${libname}${release}${shared_ext}$major'
11407 shlibpath_var=LD_LIBRARY_PATH
11408 case $host_vendor in
11410 shlibpath_overrides_runpath=no
11412 runpath_var=LD_RUN_PATH
11420 shlibpath_overrides_runpath=no
11421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11427 if test -d /usr/nec ;then
11429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11430 soname_spec='$libname${shared_ext}.$major'
11431 shlibpath_var=LD_LIBRARY_PATH
11435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11436 version_type=freebsd-elf
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=yes
11443 hardcode_into_libs=yes
11444 if test "$with_gnu_ld" = yes; then
11445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11450 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11454 sys_lib_dlsearch_path_spec='/usr/lib'
11458 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11462 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465 hardcode_into_libs=yes
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11480 $as_echo "$dynamic_linker" >&6; }
11481 test "$dynamic_linker" = no && can_build_shared=no
11483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11484 if test "$GCC" = yes; then
11485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11488 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11489 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11491 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11492 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11582 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11584 if test -n "$hardcode_libdir_flag_spec" ||
11585 test -n "$runpath_var" ||
11586 test "X$hardcode_automatic" = "Xyes" ; then
11588 # We can hardcode non-existent directories.
11589 if test "$hardcode_direct" != no &&
11590 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11591 # have to relink, otherwise we might link with an installed library
11592 # when we should be linking with a yet-to-be-installed one
11593 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11594 test "$hardcode_minus_L" != no; then
11595 # Linking always hardcodes the temporary library directory.
11596 hardcode_action=relink
11598 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11599 hardcode_action=immediate
11602 # We cannot hardcode anything, or else we can only hardcode existing
11604 hardcode_action=unsupported
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11607 $as_echo "$hardcode_action" >&6; }
11609 if test "$hardcode_action" = relink ||
11610 test "$inherit_rpath" = yes; then
11611 # Fast installation is not supported
11612 enable_fast_install=no
11613 elif test "$shlibpath_overrides_runpath" = yes ||
11614 test "$enable_shared" = no; then
11615 # Fast installation is not necessary
11616 enable_fast_install=needless
11624 if test "x$enable_dlopen" != xyes; then
11625 enable_dlopen=unknown
11626 enable_dlopen_self=unknown
11627 enable_dlopen_self_static=unknown
11634 lt_cv_dlopen="load_add_on"
11636 lt_cv_dlopen_self=yes
11640 lt_cv_dlopen="LoadLibrary"
11645 lt_cv_dlopen="dlopen"
11650 # if libdl is installed we need to link against it
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11652 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11653 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11654 $as_echo_n "(cached) " >&6
11656 ac_check_lib_save_LIBS=$LIBS
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11661 /* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11676 if ac_fn_c_try_link "$LINENO"; then :
11677 ac_cv_lib_dl_dlopen=yes
11679 ac_cv_lib_dl_dlopen=no
11681 rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11686 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11687 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11691 lt_cv_dlopen="dyld"
11693 lt_cv_dlopen_self=yes
11700 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11701 if test "x$ac_cv_func_shl_load" = x""yes; then :
11702 lt_cv_dlopen="shl_load"
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11705 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11706 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11707 $as_echo_n "(cached) " >&6
11709 ac_check_lib_save_LIBS=$LIBS
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11714 /* Override any GCC internal prototype to avoid an error.
11715 Use char because int might match the return type of a GCC
11716 builtin and then its argument prototype would still apply. */
11724 return shl_load ();
11729 if ac_fn_c_try_link "$LINENO"; then :
11730 ac_cv_lib_dld_shl_load=yes
11732 ac_cv_lib_dld_shl_load=no
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736 LIBS=$ac_check_lib_save_LIBS
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11739 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11740 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11741 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11743 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11744 if test "x$ac_cv_func_dlopen" = x""yes; then :
11745 lt_cv_dlopen="dlopen"
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11748 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11749 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11750 $as_echo_n "(cached) " >&6
11752 ac_check_lib_save_LIBS=$LIBS
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11757 /* Override any GCC internal prototype to avoid an error.
11758 Use char because int might match the return type of a GCC
11759 builtin and then its argument prototype would still apply. */
11772 if ac_fn_c_try_link "$LINENO"; then :
11773 ac_cv_lib_dl_dlopen=yes
11775 ac_cv_lib_dl_dlopen=no
11777 rm -f core conftest.err conftest.$ac_objext \
11778 conftest$ac_exeext conftest.$ac_ext
11779 LIBS=$ac_check_lib_save_LIBS
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11782 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11783 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11787 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11788 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11789 $as_echo_n "(cached) " >&6
11791 ac_check_lib_save_LIBS=$LIBS
11792 LIBS="-lsvld $LIBS"
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11796 /* Override any GCC internal prototype to avoid an error.
11797 Use char because int might match the return type of a GCC
11798 builtin and then its argument prototype would still apply. */
11811 if ac_fn_c_try_link "$LINENO"; then :
11812 ac_cv_lib_svld_dlopen=yes
11814 ac_cv_lib_svld_dlopen=no
11816 rm -f core conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11818 LIBS=$ac_check_lib_save_LIBS
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11821 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11822 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11826 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11827 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
11830 ac_check_lib_save_LIBS=$LIBS
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11835 /* Override any GCC internal prototype to avoid an error.
11836 Use char because int might match the return type of a GCC
11837 builtin and then its argument prototype would still apply. */
11845 return dld_link ();
11850 if ac_fn_c_try_link "$LINENO"; then :
11851 ac_cv_lib_dld_dld_link=yes
11853 ac_cv_lib_dld_dld_link=no
11855 rm -f core conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11857 LIBS=$ac_check_lib_save_LIBS
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11860 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11861 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11862 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11883 if test "x$lt_cv_dlopen" != xno; then
11889 case $lt_cv_dlopen in
11891 save_CPPFLAGS="$CPPFLAGS"
11892 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11894 save_LDFLAGS="$LDFLAGS"
11895 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11898 LIBS="$lt_cv_dlopen_libs $LIBS"
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11901 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11902 if test "${lt_cv_dlopen_self+set}" = set; then :
11903 $as_echo_n "(cached) " >&6
11905 if test "$cross_compiling" = yes; then :
11906 lt_cv_dlopen_self=cross
11908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11909 lt_status=$lt_dlunknown
11910 cat > conftest.$ac_ext <<_LT_EOF
11911 #line 11911 "configure"
11912 #include "confdefs.h"
11921 # define LT_DLGLOBAL RTLD_GLOBAL
11924 # define LT_DLGLOBAL DL_GLOBAL
11926 # define LT_DLGLOBAL 0
11930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11931 find out it does not work in some platform. */
11932 #ifndef LT_DLLAZY_OR_NOW
11934 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11937 # define LT_DLLAZY_OR_NOW DL_LAZY
11940 # define LT_DLLAZY_OR_NOW RTLD_NOW
11943 # define LT_DLLAZY_OR_NOW DL_NOW
11945 # define LT_DLLAZY_OR_NOW 0
11953 extern "C" void exit (int);
11956 void fnord() { int i=42;}
11959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11960 int status = $lt_dlunknown;
11964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11965 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11966 /* dlclose (self); */
11974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11975 (eval $ac_link) 2>&5
11977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11978 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11979 (./conftest; exit; ) >&5 2>/dev/null
11981 case x$lt_status in
11982 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11983 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11984 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11987 # compilation failed
11988 lt_cv_dlopen_self=no
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11996 $as_echo "$lt_cv_dlopen_self" >&6; }
11998 if test "x$lt_cv_dlopen_self" = xyes; then
11999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12001 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12002 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12005 if test "$cross_compiling" = yes; then :
12006 lt_cv_dlopen_self_static=cross
12008 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12009 lt_status=$lt_dlunknown
12010 cat > conftest.$ac_ext <<_LT_EOF
12011 #line 12011 "configure"
12012 #include "confdefs.h"
12021 # define LT_DLGLOBAL RTLD_GLOBAL
12024 # define LT_DLGLOBAL DL_GLOBAL
12026 # define LT_DLGLOBAL 0
12030 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12031 find out it does not work in some platform. */
12032 #ifndef LT_DLLAZY_OR_NOW
12034 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12037 # define LT_DLLAZY_OR_NOW DL_LAZY
12040 # define LT_DLLAZY_OR_NOW RTLD_NOW
12043 # define LT_DLLAZY_OR_NOW DL_NOW
12045 # define LT_DLLAZY_OR_NOW 0
12053 extern "C" void exit (int);
12056 void fnord() { int i=42;}
12059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12060 int status = $lt_dlunknown;
12064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12065 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12066 /* dlclose (self); */
12074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12075 (eval $ac_link) 2>&5
12077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12078 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12079 (./conftest; exit; ) >&5 2>/dev/null
12081 case x$lt_status in
12082 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12083 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12084 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12087 # compilation failed
12088 lt_cv_dlopen_self_static=no
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12096 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12099 CPPFLAGS="$save_CPPFLAGS"
12100 LDFLAGS="$save_LDFLAGS"
12105 case $lt_cv_dlopen_self in
12106 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12107 *) enable_dlopen_self=unknown ;;
12110 case $lt_cv_dlopen_self_static in
12111 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12112 *) enable_dlopen_self_static=unknown ;;
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12135 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12136 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12137 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12138 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12140 $as_echo "yes" >&6; }
12142 # FIXME - insert some real tests, host_os isn't really good enough
12145 if test -n "$STRIP" ; then
12146 striplib="$STRIP -x"
12147 old_striplib="$STRIP -S"
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12149 $as_echo "yes" >&6; }
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152 $as_echo "no" >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12173 # Report which library types will actually be built
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12175 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12177 $as_echo "$can_build_shared" >&6; }
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12180 $as_echo_n "checking whether to build shared libraries... " >&6; }
12181 test "$can_build_shared" = "no" && enable_shared=no
12183 # On AIX, shared libraries and static libraries use the same namespace, and
12184 # are all built from PIC.
12187 test "$enable_shared" = yes && enable_static=no
12188 if test -n "$RANLIB"; then
12189 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12190 postinstall_cmds='$RANLIB $lib'
12195 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12196 test "$enable_shared" = yes && enable_static=no
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12201 $as_echo "$enable_shared" >&6; }
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12204 $as_echo_n "checking whether to build static libraries... " >&6; }
12205 # Make sure either enable_shared or enable_static is yes.
12206 test "$enable_shared" = yes || enable_static=yes
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12208 $as_echo "$enable_static" >&6; }
12215 ac_cpp='$CPP $CPPFLAGS'
12216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12224 ac_cpp='$CXXCPP $CPPFLAGS'
12225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12229 archive_cmds_need_lc_CXX=no
12230 allow_undefined_flag_CXX=
12231 always_export_symbols_CXX=no
12232 archive_expsym_cmds_CXX=
12233 compiler_needs_object_CXX=no
12234 export_dynamic_flag_spec_CXX=
12235 hardcode_direct_CXX=no
12236 hardcode_direct_absolute_CXX=no
12237 hardcode_libdir_flag_spec_CXX=
12238 hardcode_libdir_flag_spec_ld_CXX=
12239 hardcode_libdir_separator_CXX=
12240 hardcode_minus_L_CXX=no
12241 hardcode_shlibpath_var_CXX=unsupported
12242 hardcode_automatic_CXX=no
12243 inherit_rpath_CXX=no
12245 module_expsym_cmds_CXX=
12246 link_all_deplibs_CXX=unknown
12247 old_archive_cmds_CXX=$old_archive_cmds
12248 no_undefined_flag_CXX=
12249 whole_archive_flag_spec_CXX=
12250 enable_shared_with_static_runtimes_CXX=no
12252 # Source file extension for C++ test sources.
12255 # Object file extension for compiled C++ test sources.
12259 # No sense in running all these tests if we already determined that
12260 # the CXX compiler isn't working. Some variables (like enable_shared)
12261 # are currently assumed to apply to all compilers on this platform,
12262 # and will be corrupted by setting them based on a non-working compiler.
12263 if test "$_lt_caught_CXX_error" != yes; then
12264 # Code to be used in simple compile tests
12265 lt_simple_compile_test_code="int some_variable = 0;"
12267 # Code to be used in simple link tests
12268 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12277 # If no C compiler was specified, use CC.
12280 # If no C compiler flags were specified, use CFLAGS.
12281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12283 # Allow CC to be a program name with arguments.
12287 # save warnings/boilerplate of simple test code
12288 ac_outfile=conftest.$ac_objext
12289 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12290 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12291 _lt_compiler_boilerplate=`cat conftest.err`
12294 ac_outfile=conftest.$ac_objext
12295 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12296 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12297 _lt_linker_boilerplate=`cat conftest.err`
12301 # Allow CC to be a program name with arguments.
12306 lt_save_with_gnu_ld=$with_gnu_ld
12307 lt_save_path_LD=$lt_cv_path_LD
12308 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12309 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12311 $as_unset lt_cv_prog_gnu_ld
12313 if test -n "${lt_cv_path_LDCXX+set}"; then
12314 lt_cv_path_LD=$lt_cv_path_LDCXX
12316 $as_unset lt_cv_path_LD
12318 test -z "${LDCXX+set}" || LD=$LDCXX
12322 for cc_temp in $compiler""; do
12324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12330 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12333 if test -n "$compiler"; then
12334 # We don't want -fno-exception when compiling C++ code, so set the
12335 # no_builtin_flag separately
12336 if test "$GXX" = yes; then
12337 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12339 lt_prog_compiler_no_builtin_flag_CXX=
12342 if test "$GXX" = yes; then
12343 # Set up default GNU C++ configuration
12347 # Check whether --with-gnu-ld was given.
12348 if test "${with_gnu_ld+set}" = set; then :
12349 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12355 if test "$GCC" = yes; then
12356 # Check if gcc -print-prog-name=ld gives a path.
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12358 $as_echo_n "checking for ld used by $CC... " >&6; }
12361 # gcc leaves a trailing carriage return which upsets mingw
12362 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12364 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12367 # Accept absolute paths.
12369 re_direlt='/[^/][^/]*/\.\./'
12370 # Canonicalize the pathname of ld
12371 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12372 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12373 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12375 test -z "$LD" && LD="$ac_prog"
12378 # If it fails, then pretend we aren't using GCC.
12382 # If it is relative, then search for the first ld in PATH.
12383 with_gnu_ld=unknown
12386 elif test "$with_gnu_ld" = yes; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12388 $as_echo_n "checking for GNU ld... " >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12391 $as_echo_n "checking for non-GNU ld... " >&6; }
12393 if test "${lt_cv_path_LD+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12396 if test -z "$LD"; then
12397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12398 for ac_dir in $PATH; do
12400 test -z "$ac_dir" && ac_dir=.
12401 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12402 lt_cv_path_LD="$ac_dir/$ac_prog"
12403 # Check to see if the program is GNU ld. I'd rather use --version,
12404 # but apparently some variants of GNU ld only accept -v.
12405 # Break only if it was the GNU/non-GNU ld that we prefer.
12406 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12407 *GNU* | *'with BFD'*)
12408 test "$with_gnu_ld" != no && break
12411 test "$with_gnu_ld" != yes && break
12418 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12422 LD="$lt_cv_path_LD"
12423 if test -n "$LD"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12425 $as_echo "$LD" >&6; }
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12430 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12432 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12433 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12436 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12437 case `$LD -v 2>&1 </dev/null` in
12438 *GNU* | *'with BFD'*)
12439 lt_cv_prog_gnu_ld=yes
12442 lt_cv_prog_gnu_ld=no
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12447 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12448 with_gnu_ld=$lt_cv_prog_gnu_ld
12456 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12457 # archiving commands below assume that GNU ld is being used.
12458 if test "$with_gnu_ld" = yes; then
12459 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12460 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12462 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12463 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12465 # If archive_cmds runs LD, not CC, wlarc should be empty
12466 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12467 # investigate it a little bit more. (MM)
12470 # ancient GNU ld didn't support --whole-archive et. al.
12471 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12472 $GREP 'no-whole-archive' > /dev/null; then
12473 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12475 whole_archive_flag_spec_CXX=
12481 # A generic and very simple default shared library creation
12482 # command for GNU C++ for the case where it uses the native
12483 # linker, instead of GNU ld. If possible, this setting should
12484 # overridden to take advantage of the native linker features on
12485 # the platform it is being used on.
12486 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12489 # Commands to make compiler produce verbose output that lists
12490 # what "hidden" libraries, object files and flags are used when
12491 # linking a shared library.
12492 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12500 # PORTME: fill in a description of your system's C++ link characteristics
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12502 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12506 # FIXME: insert proper C++ library support
12510 if test "$host_cpu" = ia64; then
12511 # On IA64, the linker does run time linking by default, so we don't
12512 # have to do anything special.
12513 aix_use_runtimelinking=no
12514 exp_sym_flag='-Bexport'
12517 aix_use_runtimelinking=no
12519 # Test if we are trying to use run time linking or normal
12520 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12521 # need to do runtime linking.
12522 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12523 for ld_flag in $LDFLAGS; do
12526 aix_use_runtimelinking=yes
12534 exp_sym_flag='-bexport'
12535 no_entry_flag='-bnoentry'
12538 # When large executables or shared objects are built, AIX ld can
12539 # have problems creating the table of contents. If linking a library
12540 # or program results in "error TOC overflow" add -mminimal-toc to
12541 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12542 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12544 archive_cmds_CXX=''
12545 hardcode_direct_CXX=yes
12546 hardcode_direct_absolute_CXX=yes
12547 hardcode_libdir_separator_CXX=':'
12548 link_all_deplibs_CXX=yes
12549 file_list_spec_CXX='${wl}-f,'
12551 if test "$GXX" = yes; then
12552 case $host_os in aix4.[012]|aix4.[012].*)
12553 # We only want to do this on AIX 4.2 and lower, the check
12554 # below for broken collect2 doesn't work under 4.3+
12555 collect2name=`${CC} -print-prog-name=collect2`
12556 if test -f "$collect2name" &&
12557 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12559 # We have reworked collect2
12562 # We have old collect2
12563 hardcode_direct_CXX=unsupported
12564 # It fails to find uninstalled libraries when the uninstalled
12565 # path is not listed in the libpath. Setting hardcode_minus_L
12566 # to unsupported forces relinking
12567 hardcode_minus_L_CXX=yes
12568 hardcode_libdir_flag_spec_CXX='-L$libdir'
12569 hardcode_libdir_separator_CXX=
12572 shared_flag='-shared'
12573 if test "$aix_use_runtimelinking" = yes; then
12574 shared_flag="$shared_flag "'${wl}-G'
12578 if test "$host_cpu" = ia64; then
12579 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12580 # chokes on -Wl,-G. The following line is correct:
12583 if test "$aix_use_runtimelinking" = yes; then
12584 shared_flag='${wl}-G'
12586 shared_flag='${wl}-bM:SRE'
12591 # It seems that -bexpall does not export symbols beginning with
12592 # underscore (_), so it is better to generate a list of symbols to
12594 always_export_symbols_CXX=yes
12595 if test "$aix_use_runtimelinking" = yes; then
12596 # Warning - without using the other runtime loading flags (-brtl),
12597 # -berok will link without error, but may produce a broken library.
12598 allow_undefined_flag_CXX='-berok'
12599 # Determine the default libpath from the value encoded in an empty
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12612 if ac_fn_cxx_try_link "$LINENO"; then :
12614 lt_aix_libpath_sed='
12615 /Import File Strings/,/^$/ {
12621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12622 # Check for a 64-bit object if we didn't find anything.
12623 if test -z "$aix_libpath"; then
12624 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12627 rm -f core conftest.err conftest.$ac_objext \
12628 conftest$ac_exeext conftest.$ac_ext
12629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12631 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12633 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12635 if test "$host_cpu" = ia64; then
12636 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12637 allow_undefined_flag_CXX="-z nodefs"
12638 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"
12640 # Determine the default libpath from the value encoded in an
12641 # empty executable.
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12653 if ac_fn_cxx_try_link "$LINENO"; then :
12655 lt_aix_libpath_sed='
12656 /Import File Strings/,/^$/ {
12662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12663 # Check for a 64-bit object if we didn't find anything.
12664 if test -z "$aix_libpath"; then
12665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12668 rm -f core conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12672 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12673 # Warning - without using the other run time loading flags,
12674 # -berok will link without error, but may produce a broken library.
12675 no_undefined_flag_CXX=' ${wl}-bernotok'
12676 allow_undefined_flag_CXX=' ${wl}-berok'
12677 # Exported symbols can be pulled into shared objects from archives
12678 whole_archive_flag_spec_CXX='$convenience'
12679 archive_cmds_need_lc_CXX=yes
12680 # This is similar to how AIX traditionally builds its shared
12682 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'
12688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12689 allow_undefined_flag_CXX=unsupported
12690 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12691 # support --undefined. This deserves some investigation. FIXME
12692 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12699 case $cc_basename in
12701 # FIXME: insert proper C++ library support
12707 cygwin* | mingw* | pw32*)
12708 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12709 # as there is no search path for DLLs.
12710 hardcode_libdir_flag_spec_CXX='-L$libdir'
12711 allow_undefined_flag_CXX=unsupported
12712 always_export_symbols_CXX=no
12713 enable_shared_with_static_runtimes_CXX=yes
12715 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12716 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'
12717 # If the export-symbols file already is a .def file (1st line
12718 # is EXPORTS), use it as is; otherwise, prepend...
12719 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12720 cp $export_symbols $output_objdir/$soname.def;
12722 echo EXPORTS > $output_objdir/$soname.def;
12723 cat $export_symbols >> $output_objdir/$soname.def;
12725 $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'
12730 darwin* | rhapsody*)
12733 archive_cmds_need_lc_CXX=no
12734 hardcode_direct_CXX=no
12735 hardcode_automatic_CXX=yes
12736 hardcode_shlibpath_var_CXX=unsupported
12737 whole_archive_flag_spec_CXX=''
12738 link_all_deplibs_CXX=yes
12739 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12740 if test "$GCC" = "yes"; then
12741 output_verbose_link_cmd=echo
12742 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}"
12743 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12744 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}"
12745 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}"
12746 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12747 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}"
12748 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}"
12758 case $cc_basename in
12760 # FIXME: insert proper C++ library support
12764 # Green Hills C++ Compiler
12765 # FIXME: insert proper C++ library support
12769 # FIXME: insert proper C++ library support
12776 # C++ shared libraries reported to be fairly broken before
12782 archive_cmds_need_lc_CXX=no
12785 freebsd* | dragonfly*)
12786 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12795 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12796 hardcode_libdir_separator_CXX=:
12797 export_dynamic_flag_spec_CXX='${wl}-E'
12798 hardcode_direct_CXX=yes
12799 hardcode_minus_L_CXX=yes # Not in the search PATH,
12800 # but as the default
12801 # location of the library.
12803 case $cc_basename in
12805 # FIXME: insert proper C++ library support
12809 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'
12810 # Commands to make compiler produce verbose output that lists
12811 # what "hidden" libraries, object files and flags are used when
12812 # linking a shared library.
12814 # There doesn't appear to be a way to prevent this compiler from
12815 # explicitly linking system object files so we need to strip them
12816 # from the output so that they don't get included in the library
12818 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12821 if test "$GXX" = yes; then
12822 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'
12824 # FIXME: insert proper C++ library support
12832 if test $with_gnu_ld = no; then
12833 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12834 hardcode_libdir_separator_CXX=:
12840 export_dynamic_flag_spec_CXX='${wl}-E'
12846 hardcode_direct_CXX=no
12847 hardcode_shlibpath_var_CXX=no
12850 hardcode_direct_CXX=yes
12851 hardcode_direct_absolute_CXX=yes
12852 hardcode_minus_L_CXX=yes # Not in the search PATH,
12853 # but as the default
12854 # location of the library.
12858 case $cc_basename in
12860 # FIXME: insert proper C++ library support
12866 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12869 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12872 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12875 # Commands to make compiler produce verbose output that lists
12876 # what "hidden" libraries, object files and flags are used when
12877 # linking a shared library.
12879 # There doesn't appear to be a way to prevent this compiler from
12880 # explicitly linking system object files so we need to strip them
12881 # from the output so that they don't get included in the library
12883 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12886 if test "$GXX" = yes; then
12887 if test $with_gnu_ld = no; then
12890 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12893 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12896 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'
12901 # FIXME: insert proper C++ library support
12909 hardcode_direct_CXX=no
12910 hardcode_shlibpath_var_CXX=no
12911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12912 export_dynamic_flag_spec_CXX='${wl}-E'
12913 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12914 # Instead, shared libraries are loaded at an image base (0x10000000 by
12915 # default) and relocated if they conflict, which is a slow very memory
12916 # consuming and fragmenting process. To avoid this, we pick a random,
12917 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12918 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12919 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'
12920 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'
12923 case $cc_basename in
12926 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12928 # Archives containing C++ object files must be created using
12929 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12930 # necessary to make sure instantiated templates are included
12932 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12935 if test "$GXX" = yes; then
12936 if test "$with_gnu_ld" = no; then
12937 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12939 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12942 link_all_deplibs_CXX=yes
12945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12946 hardcode_libdir_separator_CXX=:
12947 inherit_rpath_CXX=yes
12950 linux* | k*bsd*-gnu)
12951 case $cc_basename in
12953 # Kuck and Associates, Inc. (KAI) C++ Compiler
12955 # KCC will only create a shared library if the output file
12956 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12957 # to its proper name (with version) after linking.
12958 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'
12959 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'
12960 # Commands to make compiler produce verbose output that lists
12961 # what "hidden" libraries, object files and flags are used when
12962 # linking a shared library.
12964 # There doesn't appear to be a way to prevent this compiler from
12965 # explicitly linking system object files so we need to strip them
12966 # from the output so that they don't get included in the library
12968 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12970 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12971 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12973 # Archives containing C++ object files must be created using
12974 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12975 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12980 # version 8.0 and above of icpc choke on multiply defined symbols
12981 # if we add $predep_objects and $postdep_objects, however 7.1 and
12982 # earlier do not add the objects themselves.
12983 case `$CC -V 2>&1` in
12985 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12986 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'
12988 *) # Version 8.0 or newer
12991 ia64*) tmp_idyn=' -i_dynamic';;
12993 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12994 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'
12997 archive_cmds_need_lc_CXX=no
12998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13000 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13003 # Portland Group C++ compiler
13005 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13006 prelink_cmds_CXX='tpldir=Template.dir~
13008 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13009 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13010 old_archive_cmds_CXX='tpldir=Template.dir~
13012 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13013 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13015 archive_cmds_CXX='tpldir=Template.dir~
13017 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13018 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13019 archive_expsym_cmds_CXX='tpldir=Template.dir~
13021 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13022 $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'
13024 *) # Version 6 will use weak symbols
13025 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13026 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'
13030 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13031 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13032 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13036 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13037 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'
13039 runpath_var=LD_RUN_PATH
13040 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13041 hardcode_libdir_separator_CXX=:
13043 # Commands to make compiler produce verbose output that lists
13044 # what "hidden" libraries, object files and flags are used when
13045 # linking a shared library.
13047 # There doesn't appear to be a way to prevent this compiler from
13048 # explicitly linking system object files so we need to strip them
13049 # from the output so that they don't get included in the library
13051 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13054 # IBM XL 8.0 on PPC, with GNU ld
13055 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13057 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13058 if test "x$supports_anon_versioning" = xyes; then
13059 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13061 echo "local: *; };" >> $output_objdir/$libname.ver~
13062 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13066 case `$CC -V 2>&1 | sed 5q` in
13069 no_undefined_flag_CXX=' -zdefs'
13070 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13071 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'
13072 hardcode_libdir_flag_spec_CXX='-R$libdir'
13073 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13074 compiler_needs_object_CXX=yes
13076 # Not sure whether something based on
13077 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13079 output_verbose_link_cmd='echo'
13081 # Archives containing C++ object files must be created using
13082 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13083 # necessary to make sure instantiated templates are included
13085 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13093 # FIXME: insert proper C++ library support
13098 # FIXME: insert proper C++ library support
13103 case $cc_basename in
13105 # FIXME: insert proper C++ library support
13109 # FIXME: insert proper C++ library support
13116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13117 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13119 hardcode_libdir_flag_spec_CXX='-R$libdir'
13120 hardcode_direct_CXX=yes
13121 hardcode_shlibpath_var_CXX=no
13123 # Workaround some broken pre-1.5 toolchains
13124 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13132 # C++ shared libraries are fairly broken
13137 if test -f /usr/libexec/ld.so; then
13138 hardcode_direct_CXX=yes
13139 hardcode_shlibpath_var_CXX=no
13140 hardcode_direct_absolute_CXX=yes
13141 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13144 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13145 export_dynamic_flag_spec_CXX='${wl}-E'
13146 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13148 output_verbose_link_cmd=echo
13154 osf3* | osf4* | osf5*)
13155 case $cc_basename in
13157 # Kuck and Associates, Inc. (KAI) C++ Compiler
13159 # KCC will only create a shared library if the output file
13160 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13161 # to its proper name (with version) after linking.
13162 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'
13164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13165 hardcode_libdir_separator_CXX=:
13167 # Archives containing C++ object files must be created using
13168 # the KAI C++ compiler.
13170 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13171 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13175 # Rational C++ 2.4.1
13176 # FIXME: insert proper C++ library support
13182 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13183 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13187 allow_undefined_flag_CXX=' -expect_unresolved \*'
13188 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13189 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13190 echo "-hidden">> $lib.exp~
13191 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13193 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13197 hardcode_libdir_separator_CXX=:
13199 # Commands to make compiler produce verbose output that lists
13200 # what "hidden" libraries, object files and flags are used when
13201 # linking a shared library.
13203 # There doesn't appear to be a way to prevent this compiler from
13204 # explicitly linking system object files so we need to strip them
13205 # from the output so that they don't get included in the library
13207 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13210 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13211 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13214 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13217 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13221 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13222 hardcode_libdir_separator_CXX=:
13224 # Commands to make compiler produce verbose output that lists
13225 # what "hidden" libraries, object files and flags are used when
13226 # linking a shared library.
13227 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13230 # FIXME: insert proper C++ library support
13238 # FIXME: insert proper C++ library support
13243 case $cc_basename in
13246 # FIXME: insert proper C++ library support
13251 # FIXME: insert proper C++ library support
13255 # FIXME: insert proper C++ library support
13262 case $cc_basename in
13264 # Sun C++ 4.2, 5.x and Centerline C++
13265 archive_cmds_need_lc_CXX=yes
13266 no_undefined_flag_CXX=' -zdefs'
13267 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13268 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13269 $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'
13271 hardcode_libdir_flag_spec_CXX='-R$libdir'
13272 hardcode_shlibpath_var_CXX=no
13274 solaris2.[0-5] | solaris2.[0-5].*) ;;
13276 # The compiler driver will combine and reorder linker options,
13277 # but understands `-z linker_flag'.
13278 # Supported since Solaris 2.6 (maybe 2.5.1?)
13279 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13282 link_all_deplibs_CXX=yes
13284 output_verbose_link_cmd='echo'
13286 # Archives containing C++ object files must be created using
13287 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13288 # necessary to make sure instantiated templates are included
13290 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13293 # Green Hills C++ Compiler
13294 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13296 # The C++ compiler must be used to create the archive.
13297 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13300 # GNU C++ compiler with Solaris linker
13301 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13302 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13303 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13304 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13305 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13306 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13308 # Commands to make compiler produce verbose output that lists
13309 # what "hidden" libraries, object files and flags are used when
13310 # linking a shared library.
13311 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13313 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13315 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13316 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13317 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13319 # Commands to make compiler produce verbose output that lists
13320 # what "hidden" libraries, object files and flags are used when
13321 # linking a shared library.
13322 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13325 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13327 solaris2.[0-5] | solaris2.[0-5].*) ;;
13329 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13337 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13338 no_undefined_flag_CXX='${wl}-z,text'
13339 archive_cmds_need_lc_CXX=no
13340 hardcode_shlibpath_var_CXX=no
13341 runpath_var='LD_RUN_PATH'
13343 case $cc_basename in
13345 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13346 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13349 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13350 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13355 sysv5* | sco3.2v5* | sco5v6*)
13356 # Note: We can NOT use -z defs as we might desire, because we do not
13357 # link with -lc, and that would cause any symbols used from libc to
13358 # always be unresolved, which means just about no library would
13359 # ever link correctly. If we're not using GNU ld we use -z text
13360 # though, which does catch some bad symbols but isn't as heavy-handed
13362 no_undefined_flag_CXX='${wl}-z,text'
13363 allow_undefined_flag_CXX='${wl}-z,nodefs'
13364 archive_cmds_need_lc_CXX=no
13365 hardcode_shlibpath_var_CXX=no
13366 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13367 hardcode_libdir_separator_CXX=':'
13368 link_all_deplibs_CXX=yes
13369 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13370 runpath_var='LD_RUN_PATH'
13372 case $cc_basename in
13374 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13375 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13378 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13385 case $cc_basename in
13387 # NonStop-UX NCC 3.20
13388 # FIXME: insert proper C++ library support
13392 # FIXME: insert proper C++ library support
13399 # FIXME: insert proper C++ library support
13404 # FIXME: insert proper C++ library support
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13410 $as_echo "$ld_shlibs_CXX" >&6; }
13411 test "$ld_shlibs_CXX" = no && can_build_shared=no
13417 ## There is no encapsulation within the following macros, do not change
13418 ## the running order or otherwise move them around unless you know exactly
13419 ## what you are doing...
13420 # Dependencies to place before and after the object being linked:
13421 predep_objects_CXX=
13422 postdep_objects_CXX=
13425 compiler_lib_search_path_CXX=
13427 cat > conftest.$ac_ext <<_LT_EOF
13431 Foo (void) { a = 0; }
13437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13438 (eval $ac_compile) 2>&5
13440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13441 test $ac_status = 0; }; then
13442 # Parse the compiler output and extract the necessary
13443 # objects, libraries and library flags.
13445 # Sentinel used to keep track of whether or not we are before
13446 # the conftest object file.
13447 pre_test_object_deps_done=no
13449 for p in `eval "$output_verbose_link_cmd"`; do
13453 # Some compilers place space between "-{L,R}" and the path.
13454 # Remove the space.
13455 if test $p = "-L" ||
13456 test $p = "-R"; then
13463 if test "$pre_test_object_deps_done" = no; then
13466 # Internal compiler library paths should come after those
13467 # provided the user. The postdeps already come after the
13468 # user supplied libs so there is no need to process them.
13469 if test -z "$compiler_lib_search_path_CXX"; then
13470 compiler_lib_search_path_CXX="${prev}${p}"
13472 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13475 # The "-l" case would never come before the object being
13476 # linked, so don't bother handling this case.
13479 if test -z "$postdeps_CXX"; then
13480 postdeps_CXX="${prev}${p}"
13482 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13488 # This assumes that the test object file only shows up
13489 # once in the compiler output.
13490 if test "$p" = "conftest.$objext"; then
13491 pre_test_object_deps_done=yes
13495 if test "$pre_test_object_deps_done" = no; then
13496 if test -z "$predep_objects_CXX"; then
13497 predep_objects_CXX="$p"
13499 predep_objects_CXX="$predep_objects_CXX $p"
13502 if test -z "$postdep_objects_CXX"; then
13503 postdep_objects_CXX="$p"
13505 postdep_objects_CXX="$postdep_objects_CXX $p"
13510 *) ;; # Ignore the rest.
13518 echo "libtool.m4: error: problem compiling CXX test program"
13521 $RM -f confest.$objext
13523 # PORTME: override above test on systems where it is broken
13526 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13527 # hack all around it, let's just trust "g++" to DTRT.
13528 predep_objects_CXX=
13529 postdep_objects_CXX=
13534 case `$CC -V 2>&1 | sed 5q` in
13538 # The more standards-conforming stlport4 library is
13539 # incompatible with the Cstd library. Avoid specifying
13540 # it if it's in CXXFLAGS. Ignore libCrun as
13541 # -library=stlport4 depends on it.
13542 case " $CXX $CXXFLAGS " in
13543 *" -library=stlport4 "*)
13544 solaris_use_stlport4=yes
13548 if test "$solaris_use_stlport4" != yes; then
13549 postdeps_CXX='-library=Cstd -library=Crun'
13556 case $cc_basename in
13558 # The more standards-conforming stlport4 library is
13559 # incompatible with the Cstd library. Avoid specifying
13560 # it if it's in CXXFLAGS. Ignore libCrun as
13561 # -library=stlport4 depends on it.
13562 case " $CXX $CXXFLAGS " in
13563 *" -library=stlport4 "*)
13564 solaris_use_stlport4=yes
13568 # Adding this requires a known-good setup of shared libraries for
13569 # Sun compiler versions before 5.6, else PIC objects from an old
13570 # archive will be linked into the output, leading to subtle bugs.
13571 if test "$solaris_use_stlport4" != yes; then
13572 postdeps_CXX='-library=Cstd -library=Crun'
13580 case " $postdeps_CXX " in
13581 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13583 compiler_lib_search_dirs_CXX=
13584 if test -n "${compiler_lib_search_path_CXX}"; then
13585 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13618 lt_prog_compiler_wl_CXX=
13619 lt_prog_compiler_pic_CXX=
13620 lt_prog_compiler_static_CXX=
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13623 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13625 # C++ specific cases for pic, static, wl, etc.
13626 if test "$GXX" = yes; then
13627 lt_prog_compiler_wl_CXX='-Wl,'
13628 lt_prog_compiler_static_CXX='-static'
13632 # All AIX code is PIC.
13633 if test "$host_cpu" = ia64; then
13634 # AIX 5 now supports IA64 processor
13635 lt_prog_compiler_static_CXX='-Bstatic'
13639 if test "$host_cpu" = m68k; then
13640 # FIXME: we need at least 68020 code to build shared libraries, but
13641 # adding the `-m68020' flag to GCC prevents building anything better,
13643 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13646 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13647 # PIC is the default for these OSes.
13649 mingw* | cygwin* | os2* | pw32*)
13650 # This hack is so that the source file can tell whether it is being
13651 # built for inclusion in a dll (and should export symbols for example).
13652 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13653 # (--disable-auto-import) libraries
13654 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13656 darwin* | rhapsody*)
13657 # PIC is the default on this platform
13658 # Common symbols not allowed in MH_DYLIB files
13659 lt_prog_compiler_pic_CXX='-fno-common'
13662 # DJGPP does not support shared libraries at all
13663 lt_prog_compiler_pic_CXX=
13666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13667 # Instead, we relocate shared libraries at runtime.
13670 if test -d /usr/nec; then
13671 lt_prog_compiler_pic_CXX=-Kconform_pic
13675 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13676 # not for PA HP-UX.
13681 lt_prog_compiler_pic_CXX='-fPIC'
13686 # QNX uses GNU C++, but need to define -shared option too, otherwise
13687 # it will coredump.
13688 lt_prog_compiler_pic_CXX='-fPIC -shared'
13691 lt_prog_compiler_pic_CXX='-fPIC'
13697 # All AIX code is PIC.
13698 if test "$host_cpu" = ia64; then
13699 # AIX 5 now supports IA64 processor
13700 lt_prog_compiler_static_CXX='-Bstatic'
13702 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13706 case $cc_basename in
13708 # Green Hills C++ Compiler
13709 # _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"
13714 case $cc_basename in
13716 lt_prog_compiler_pic_CXX='-KPIC'
13719 # Green Hills C++ Compiler
13720 lt_prog_compiler_pic_CXX='-pic'
13726 freebsd* | dragonfly*)
13727 # FreeBSD uses GNU C++
13729 hpux9* | hpux10* | hpux11*)
13730 case $cc_basename in
13732 lt_prog_compiler_wl_CXX='-Wl,'
13733 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13734 if test "$host_cpu" != ia64; then
13735 lt_prog_compiler_pic_CXX='+Z'
13739 lt_prog_compiler_wl_CXX='-Wl,'
13740 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13746 lt_prog_compiler_pic_CXX='+Z'
13755 # This is c89, which is MS Visual C++ (no shared libs)
13756 # Anyone wants to do a port?
13758 irix5* | irix6* | nonstopux*)
13759 case $cc_basename in
13761 lt_prog_compiler_wl_CXX='-Wl,'
13762 lt_prog_compiler_static_CXX='-non_shared'
13763 # CC pic flag -KPIC is the default.
13769 linux* | k*bsd*-gnu)
13770 case $cc_basename in
13773 lt_prog_compiler_wl_CXX='--backend -Wl,'
13774 lt_prog_compiler_pic_CXX='-fPIC'
13778 lt_prog_compiler_wl_CXX='-Wl,'
13779 lt_prog_compiler_pic_CXX='-KPIC'
13780 lt_prog_compiler_static_CXX='-static'
13783 # Portland Group C++ compiler
13784 lt_prog_compiler_wl_CXX='-Wl,'
13785 lt_prog_compiler_pic_CXX='-fpic'
13786 lt_prog_compiler_static_CXX='-Bstatic'
13790 # Make sure the PIC flag is empty. It appears that all Alpha
13791 # Linux and Compaq Tru64 Unix objects are PIC.
13792 lt_prog_compiler_pic_CXX=
13793 lt_prog_compiler_static_CXX='-non_shared'
13796 # IBM XL 8.0 on PPC
13797 lt_prog_compiler_wl_CXX='-Wl,'
13798 lt_prog_compiler_pic_CXX='-qpic'
13799 lt_prog_compiler_static_CXX='-qstaticlink'
13802 case `$CC -V 2>&1 | sed 5q` in
13805 lt_prog_compiler_pic_CXX='-KPIC'
13806 lt_prog_compiler_static_CXX='-Bstatic'
13807 lt_prog_compiler_wl_CXX='-Qoption ld '
13818 case $cc_basename in
13820 lt_prog_compiler_pic_CXX='-W c,exportall'
13829 # QNX uses GNU C++, but need to define -shared option too, otherwise
13830 # it will coredump.
13831 lt_prog_compiler_pic_CXX='-fPIC -shared'
13833 osf3* | osf4* | osf5*)
13834 case $cc_basename in
13836 lt_prog_compiler_wl_CXX='--backend -Wl,'
13839 # Rational C++ 2.4.1
13840 lt_prog_compiler_pic_CXX='-pic'
13843 # Digital/Compaq C++
13844 lt_prog_compiler_wl_CXX='-Wl,'
13845 # Make sure the PIC flag is empty. It appears that all Alpha
13846 # Linux and Compaq Tru64 Unix objects are PIC.
13847 lt_prog_compiler_pic_CXX=
13848 lt_prog_compiler_static_CXX='-non_shared'
13857 case $cc_basename in
13859 # Sun C++ 4.2, 5.x and Centerline C++
13860 lt_prog_compiler_pic_CXX='-KPIC'
13861 lt_prog_compiler_static_CXX='-Bstatic'
13862 lt_prog_compiler_wl_CXX='-Qoption ld '
13865 # Green Hills C++ Compiler
13866 lt_prog_compiler_pic_CXX='-PIC'
13873 case $cc_basename in
13876 lt_prog_compiler_pic_CXX='-pic'
13877 lt_prog_compiler_static_CXX='-Bstatic'
13881 lt_prog_compiler_pic_CXX='-pic'
13887 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13888 case $cc_basename in
13890 lt_prog_compiler_wl_CXX='-Wl,'
13891 lt_prog_compiler_pic_CXX='-KPIC'
13892 lt_prog_compiler_static_CXX='-Bstatic'
13897 case $cc_basename in
13899 # NonStop-UX NCC 3.20
13900 lt_prog_compiler_pic_CXX='-KPIC'
13909 lt_prog_compiler_can_build_shared_CXX=no
13915 # For platforms which do not support PIC, -DPIC is meaningless:
13917 lt_prog_compiler_pic_CXX=
13920 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13924 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13929 # Check to make sure the PIC flag actually works.
13931 if test -n "$lt_prog_compiler_pic_CXX"; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13933 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13934 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13935 $as_echo_n "(cached) " >&6
13937 lt_cv_prog_compiler_pic_works_CXX=no
13938 ac_outfile=conftest.$ac_objext
13939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13940 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13941 # Insert the option either (1) after the last *FLAGS variable, or
13942 # (2) before a word containing "conftest.", or (3) at the end.
13943 # Note that $ac_compile itself does not contain backslashes and begins
13944 # with a dollar sign (not a hyphen), so the echo should work correctly.
13945 # The option is referenced via a variable to avoid confusing sed.
13946 lt_compile=`echo "$ac_compile" | $SED \
13947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13949 -e 's:$: $lt_compiler_flag:'`
13950 (eval echo "\"\$as_me:13950: $lt_compile\"" >&5)
13951 (eval "$lt_compile" 2>conftest.err)
13953 cat conftest.err >&5
13954 echo "$as_me:13954: \$? = $ac_status" >&5
13955 if (exit $ac_status) && test -s "$ac_outfile"; then
13956 # The compiler can only warn and ignore the option if not recognized
13957 # So say no if there are warnings other than the usual output.
13958 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13960 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13961 lt_cv_prog_compiler_pic_works_CXX=yes
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13968 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13970 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13971 case $lt_prog_compiler_pic_CXX in
13973 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13976 lt_prog_compiler_pic_CXX=
13977 lt_prog_compiler_can_build_shared_CXX=no
13985 # Check to make sure the static flag actually works.
13987 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13989 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13990 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13991 $as_echo_n "(cached) " >&6
13993 lt_cv_prog_compiler_static_works_CXX=no
13994 save_LDFLAGS="$LDFLAGS"
13995 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13996 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13997 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13998 # The linker can only warn and ignore the option if not recognized
13999 # So say no if there are warnings
14000 if test -s conftest.err; then
14001 # Append any errors to the config.log.
14002 cat conftest.err 1>&5
14003 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14005 if diff conftest.exp conftest.er2 >/dev/null; then
14006 lt_cv_prog_compiler_static_works_CXX=yes
14009 lt_cv_prog_compiler_static_works_CXX=yes
14013 LDFLAGS="$save_LDFLAGS"
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14017 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14019 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14022 lt_prog_compiler_static_CXX=
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14029 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14030 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14033 lt_cv_prog_compiler_c_o_CXX=no
14034 $RM -r conftest 2>/dev/null
14038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14040 lt_compiler_flag="-o out/conftest2.$ac_objext"
14041 # Insert the option either (1) after the last *FLAGS variable, or
14042 # (2) before a word containing "conftest.", or (3) at the end.
14043 # Note that $ac_compile itself does not contain backslashes and begins
14044 # with a dollar sign (not a hyphen), so the echo should work correctly.
14045 lt_compile=`echo "$ac_compile" | $SED \
14046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14048 -e 's:$: $lt_compiler_flag:'`
14049 (eval echo "\"\$as_me:14049: $lt_compile\"" >&5)
14050 (eval "$lt_compile" 2>out/conftest.err)
14052 cat out/conftest.err >&5
14053 echo "$as_me:14053: \$? = $ac_status" >&5
14054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14056 # The compiler can only warn and ignore the option if not recognized
14057 # So say no if there are warnings
14058 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14061 lt_cv_prog_compiler_c_o_CXX=yes
14066 # SGI C++ compiler will create directory out/ii_files/ for
14067 # template instantiation
14068 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14069 $RM out/* && rmdir out
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14076 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14082 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14083 $as_echo_n "(cached) " >&6
14085 lt_cv_prog_compiler_c_o_CXX=no
14086 $RM -r conftest 2>/dev/null
14090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14092 lt_compiler_flag="-o out/conftest2.$ac_objext"
14093 # Insert the option either (1) after the last *FLAGS variable, or
14094 # (2) before a word containing "conftest.", or (3) at the end.
14095 # Note that $ac_compile itself does not contain backslashes and begins
14096 # with a dollar sign (not a hyphen), so the echo should work correctly.
14097 lt_compile=`echo "$ac_compile" | $SED \
14098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14100 -e 's:$: $lt_compiler_flag:'`
14101 (eval echo "\"\$as_me:14101: $lt_compile\"" >&5)
14102 (eval "$lt_compile" 2>out/conftest.err)
14104 cat out/conftest.err >&5
14105 echo "$as_me:14105: \$? = $ac_status" >&5
14106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14108 # The compiler can only warn and ignore the option if not recognized
14109 # So say no if there are warnings
14110 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14113 lt_cv_prog_compiler_c_o_CXX=yes
14118 # SGI C++ compiler will create directory out/ii_files/ for
14119 # template instantiation
14120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14121 $RM out/* && rmdir out
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14128 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14133 hard_links="nottested"
14134 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14135 # do not overwrite the value of need_locks provided by the user
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14137 $as_echo_n "checking if we can lock with hard links... " >&6; }
14140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14142 ln conftest.a conftest.b 2>&5 || hard_links=no
14143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14145 $as_echo "$hard_links" >&6; }
14146 if test "$hard_links" = no; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14148 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14158 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14160 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14163 # If we're using GNU nm, then we don't want the "-C" option.
14164 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14165 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14166 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14168 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'
14172 export_symbols_cmds_CXX="$ltdll_cmds"
14175 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'
14178 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14181 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14184 $as_echo "$ld_shlibs_CXX" >&6; }
14185 test "$ld_shlibs_CXX" = no && can_build_shared=no
14187 with_gnu_ld_CXX=$with_gnu_ld
14195 # Do we need to explicitly link libc?
14197 case "x$archive_cmds_need_lc_CXX" in
14199 # Assume -lc should be added
14200 archive_cmds_need_lc_CXX=yes
14202 if test "$enable_shared" = yes && test "$GCC" = yes; then
14203 case $archive_cmds_CXX in
14205 # FIXME: we may have to deal with multi-command sequences.
14208 # Test whether the compiler implicitly links with -lc since on some
14209 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14210 # to ld, don't add -lc before -lgcc.
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14212 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14217 (eval $ac_compile) 2>&5
14219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14220 test $ac_status = 0; } 2>conftest.err; then
14223 libobjs=conftest.$ac_objext
14225 wl=$lt_prog_compiler_wl_CXX
14226 pic_flag=$lt_prog_compiler_pic_CXX
14232 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14233 allow_undefined_flag_CXX=
14234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14235 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14238 test $ac_status = 0; }
14240 archive_cmds_need_lc_CXX=no
14242 archive_cmds_need_lc_CXX=yes
14244 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14246 cat conftest.err 1>&5
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14250 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14321 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14323 library_names_spec=
14324 libname_spec='lib$name'
14328 postuninstall_cmds=
14332 shlibpath_overrides_runpath=unknown
14334 dynamic_linker="$host_os ld.so"
14335 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14336 need_lib_prefix=unknown
14337 hardcode_into_libs=no
14339 # when you set need_version to no, make sure it does not cause -set_version
14340 # flags to be left without arguments
14341 need_version=unknown
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14347 shlibpath_var=LIBPATH
14349 # AIX 3 has no versioning support, so we append a major version to the name.
14350 soname_spec='${libname}${release}${shared_ext}$major'
14357 hardcode_into_libs=yes
14358 if test "$host_cpu" = ia64; then
14359 # AIX 5 supports IA64
14360 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14361 shlibpath_var=LD_LIBRARY_PATH
14363 # With GCC up to 2.95.x, collect2 would create an import file
14364 # for dependence libraries. The import file would start with
14365 # the line `#! .'. This would cause the generated library to
14366 # depend on `.', always an invalid library. This was fixed in
14367 # development snapshots of GCC prior to 3.0.
14369 aix4 | aix4.[01] | aix4.[01].*)
14370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14372 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14375 can_build_shared=no
14379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14380 # soname into executable. Probably we can add versioning support to
14381 # collect2, so additional links can be useful in future.
14382 if test "$aix_use_runtimelinking" = yes; then
14383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14384 # instead of lib<name>.a to let people know that these are not
14385 # typical AIX shared libraries.
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14388 # We preserve .a as extension for shared libraries through AIX4.2
14389 # and later when we are not doing run time linking.
14390 library_names_spec='${libname}${release}.a $libname.a'
14391 soname_spec='${libname}${release}${shared_ext}$major'
14393 shlibpath_var=LIBPATH
14398 if test "$host_cpu" = m68k; then
14399 library_names_spec='$libname.ixlibrary $libname.a'
14400 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14401 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'
14408 library_names_spec='${libname}${shared_ext}'
14409 dynamic_linker="$host_os ld.so"
14410 shlibpath_var=LIBRARY_PATH
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417 soname_spec='${libname}${release}${shared_ext}$major'
14418 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14419 shlibpath_var=LD_LIBRARY_PATH
14420 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14421 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14422 # the default ld.so.conf also contains /usr/contrib/lib and
14423 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14424 # libtool to hard-code these into programs
14427 cygwin* | mingw* | pw32*)
14428 version_type=windows
14433 case $GCC,$host_os in
14434 yes,cygwin* | yes,mingw* | yes,pw32*)
14435 library_names_spec='$libname.dll.a'
14436 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14437 postinstall_cmds='base_file=`basename \${file}`~
14438 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14439 dldir=$destdir/`dirname \$dlpath`~
14440 test -d \$dldir || mkdir -p \$dldir~
14441 $install_prog $dir/$dlname \$dldir/$dlname~
14442 chmod a+x \$dldir/$dlname~
14443 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14444 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14446 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14447 dlpath=$dir/\$dldll~
14449 shlibpath_overrides_runpath=yes
14453 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14454 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14455 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14458 # MinGW DLLs use traditional 'lib' prefix
14459 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14460 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14461 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14462 # It is most probably a Windows format PATH printed by
14463 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14464 # path with ; separators, and with drive letters. We can handle the
14465 # drive letters (cygwin fileutils understands them), so leave them,
14466 # especially as we might pass files found there to a mingw objdump,
14467 # which wouldn't understand a cygwinified path. Ahh.
14468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14474 # pw32 DLLs use 'pw' prefix rather than 'lib'
14475 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14481 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14484 dynamic_linker='Win32 ld.exe'
14485 # FIXME: first we should search . and the directory the executable is in
14489 darwin* | rhapsody*)
14490 dynamic_linker="$host_os dyld"
14491 version_type=darwin
14494 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14495 soname_spec='${libname}${release}${major}$shared_ext'
14496 shlibpath_overrides_runpath=yes
14497 shlibpath_var=DYLD_LIBRARY_PATH
14498 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14500 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 shlibpath_var=LD_LIBRARY_PATH
14516 freebsd* | dragonfly*)
14517 # DragonFly does not have aout. When/if they implement a new
14518 # versioning mechanism, adjust this.
14519 if test -x /usr/bin/objformat; then
14520 objformat=`/usr/bin/objformat`
14523 freebsd[123]*) objformat=aout ;;
14524 *) objformat=elf ;;
14527 version_type=freebsd-$objformat
14528 case $version_type in
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14539 shlibpath_var=LD_LIBRARY_PATH
14542 shlibpath_overrides_runpath=yes
14544 freebsd3.[01]* | freebsdelf3.[01]*)
14545 shlibpath_overrides_runpath=yes
14546 hardcode_into_libs=yes
14548 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14549 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14550 shlibpath_overrides_runpath=no
14551 hardcode_into_libs=yes
14553 *) # from 4.6 on, and DragonFly
14554 shlibpath_overrides_runpath=yes
14555 hardcode_into_libs=yes
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 hardcode_into_libs=yes
14570 hpux9* | hpux10* | hpux11*)
14571 # Give a soname corresponding to the major version so that dld.sl refuses to
14572 # link against other versions.
14579 hardcode_into_libs=yes
14580 dynamic_linker="$host_os dld.so"
14581 shlibpath_var=LD_LIBRARY_PATH
14582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584 soname_spec='${libname}${release}${shared_ext}$major'
14585 if test "X$HPUX_IA64_MODE" = X32; then
14586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14594 hardcode_into_libs=yes
14595 dynamic_linker="$host_os dld.sl"
14596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14605 dynamic_linker="$host_os dld.sl"
14606 shlibpath_var=SHLIB_PATH
14607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 soname_spec='${libname}${release}${shared_ext}$major'
14612 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14613 postinstall_cmds='chmod 555 $lib'
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14621 soname_spec='${libname}${release}${shared_ext}$major'
14622 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 shlibpath_overrides_runpath=no
14625 hardcode_into_libs=yes
14628 irix5* | irix6* | nonstopux*)
14630 nonstopux*) version_type=nonstopux ;;
14632 if test "$lt_cv_prog_gnu_ld" = yes; then
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14643 irix5* | nonstopux*)
14644 libsuff= shlibsuff=
14647 case $LD in # libtool.m4 will add one of these switches to LD
14648 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14649 libsuff= shlibsuff= libmagic=32-bit;;
14650 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14651 libsuff=32 shlibsuff=N32 libmagic=N32;;
14652 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14653 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14654 *) libsuff= shlibsuff= libmagic=never-match;;
14658 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14659 shlibpath_overrides_runpath=no
14660 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14661 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14662 hardcode_into_libs=yes
14665 # No shared lib support for Linux oldld, aout, or coff.
14666 linux*oldld* | linux*aout* | linux*coff*)
14670 # This must be Linux ELF.
14671 linux* | k*bsd*-gnu)
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676 soname_spec='${libname}${release}${shared_ext}$major'
14677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14678 shlibpath_var=LD_LIBRARY_PATH
14679 shlibpath_overrides_runpath=no
14680 # Some binutils ld are patched to set DT_RUNPATH
14681 save_LDFLAGS=$LDFLAGS
14682 save_libdir=$libdir
14683 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14684 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14696 if ac_fn_cxx_try_link "$LINENO"; then :
14697 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14698 shlibpath_overrides_runpath=yes
14701 rm -f core conftest.err conftest.$ac_objext \
14702 conftest$ac_exeext conftest.$ac_ext
14703 LDFLAGS=$save_LDFLAGS
14704 libdir=$save_libdir
14706 # This implies no fast_install, which is unacceptable.
14707 # Some rework will be needed to allow for fast_install
14708 # before this can be enabled.
14709 hardcode_into_libs=yes
14711 # Append ld.so.conf contents to the search path
14712 if test -f /etc/ld.so.conf; then
14713 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14714 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14717 # We used to test for /lib/ld.so.1 and disable shared libraries on
14718 # powerpc, because MkLinux only supported shared libraries with the
14719 # GNU dynamic linker. Since this was broken with cross compilers,
14720 # most powerpc-linux boxes support dynamic linking these days and
14721 # people can always --disable-shared, the test was removed, and we
14722 # assume the GNU/Linux dynamic linker is in use.
14723 dynamic_linker='GNU/Linux ld.so'
14730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14733 dynamic_linker='NetBSD (a.out) ld.so'
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 dynamic_linker='NetBSD ld.elf_so'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 shlibpath_overrides_runpath=yes
14741 hardcode_into_libs=yes
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 shlibpath_overrides_runpath=yes
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756 soname_spec='${libname}${release}${shared_ext}$major'
14757 shlibpath_var=LD_LIBRARY_PATH
14758 shlibpath_overrides_runpath=no
14759 hardcode_into_libs=yes
14760 dynamic_linker='ldqnx.so'
14765 sys_lib_dlsearch_path_spec="/usr/lib"
14767 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14769 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14770 *) need_version=no ;;
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14777 openbsd2.[89] | openbsd2.[89].*)
14778 shlibpath_overrides_runpath=no
14781 shlibpath_overrides_runpath=yes
14785 shlibpath_overrides_runpath=yes
14790 libname_spec='$name'
14793 library_names_spec='$libname${shared_ext} $libname.a'
14794 dynamic_linker='OS/2 ld.exe'
14795 shlibpath_var=LIBPATH
14798 osf3* | osf4* | osf5*)
14802 soname_spec='${libname}${release}${shared_ext}$major'
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804 shlibpath_var=LD_LIBRARY_PATH
14805 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14806 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=yes
14821 hardcode_into_libs=yes
14822 # ldd complains unless libraries are executable
14823 postinstall_cmds='chmod +x $lib'
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=yes
14832 if test "$with_gnu_ld" = yes; then
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841 soname_spec='${libname}${release}${shared_ext}$major'
14842 shlibpath_var=LD_LIBRARY_PATH
14843 case $host_vendor in
14845 shlibpath_overrides_runpath=no
14847 runpath_var=LD_RUN_PATH
14855 shlibpath_overrides_runpath=no
14856 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14862 if test -d /usr/nec ;then
14864 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14865 soname_spec='$libname${shared_ext}.$major'
14866 shlibpath_var=LD_LIBRARY_PATH
14870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14871 version_type=freebsd-elf
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 shlibpath_overrides_runpath=yes
14878 hardcode_into_libs=yes
14879 if test "$with_gnu_ld" = yes; then
14880 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14882 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14885 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14889 sys_lib_dlsearch_path_spec='/usr/lib'
14893 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14897 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 shlibpath_var=LD_LIBRARY_PATH
14899 shlibpath_overrides_runpath=no
14900 hardcode_into_libs=yes
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14906 soname_spec='${libname}${release}${shared_ext}$major'
14907 shlibpath_var=LD_LIBRARY_PATH
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14915 $as_echo "$dynamic_linker" >&6; }
14916 test "$dynamic_linker" = no && can_build_shared=no
14918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14919 if test "$GCC" = yes; then
14920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14923 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14924 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14926 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14927 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14966 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14967 hardcode_action_CXX=
14968 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14969 test -n "$runpath_var_CXX" ||
14970 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14972 # We can hardcode non-existent directories.
14973 if test "$hardcode_direct_CXX" != no &&
14974 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14975 # have to relink, otherwise we might link with an installed library
14976 # when we should be linking with a yet-to-be-installed one
14977 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14978 test "$hardcode_minus_L_CXX" != no; then
14979 # Linking always hardcodes the temporary library directory.
14980 hardcode_action_CXX=relink
14982 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14983 hardcode_action_CXX=immediate
14986 # We cannot hardcode anything, or else we can only hardcode existing
14988 hardcode_action_CXX=unsupported
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14991 $as_echo "$hardcode_action_CXX" >&6; }
14993 if test "$hardcode_action_CXX" = relink ||
14994 test "$inherit_rpath_CXX" = yes; then
14995 # Fast installation is not supported
14996 enable_fast_install=no
14997 elif test "$shlibpath_overrides_runpath" = yes ||
14998 test "$enable_shared" = no; then
14999 # Fast installation is not necessary
15000 enable_fast_install=needless
15009 fi # test -n "$compiler"
15015 with_gnu_ld=$lt_save_with_gnu_ld
15016 lt_cv_path_LDCXX=$lt_cv_path_LD
15017 lt_cv_path_LD=$lt_save_path_LD
15018 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15019 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15020 fi # test "$_lt_caught_CXX_error" != yes
15023 ac_cpp='$CPP $CPPFLAGS'
15024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15040 ac_config_commands="$ac_config_commands libtool"
15045 # Only expand once:
15050 # Check for AViiON Machines running DGUX
15051 # FIXME: Should this be moved down to below the gc-debug processing?
15054 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15055 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
15061 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
15062 if test $ac_is_dgux = yes; then
15063 if test "$enable_gc_debug" = "yes"; then
15064 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15065 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15067 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15068 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15075 # Check whether --with-target-subdir was given.
15076 if test "${with_target_subdir+set}" = set; then :
15077 withval=$with_target_subdir;
15081 # Check whether --with-cross-host was given.
15082 if test "${with_cross_host+set}" = set; then :
15083 withval=$with_cross_host;
15087 # automake wants to see AC_EXEEXT. But we don't need it. And having
15088 # it is actually a problem, because the compiler we're passed can't
15089 # necessarily do a full link. So we fool automake here.
15091 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
15092 # to nothing, so nothing would remain between `then' and `fi' if it
15093 # were not for the `:' below.
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Solaris gcc optimization fix is necessary" >&5
15099 $as_echo_n "checking whether Solaris gcc optimization fix is necessary... " >&6; }
15102 if test "$GCC" = yes; then
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15104 $as_echo "yes" >&6; }
15106 for i in $CFLAGS; do
15111 new_CFLAGS="$new_CFLAGS $i"
15115 CFLAGS="$new_CFLAGS"
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15118 $as_echo "no" >&6; }
15121 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15122 $as_echo "no" >&6; } ;;
15126 $as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
15129 $as_echo "#define ALL_INTERIOR_POINTERS 1" >>confdefs.h
15133 # Check whether --enable-gcj-support was given.
15134 if test "${enable_gcj_support+set}" = set; then :
15135 enableval=$enable_gcj_support;
15138 if test x"$enable_gcj_support" != xno; then
15139 ENABLE_GCJ_SUPPORT_TRUE=
15140 ENABLE_GCJ_SUPPORT_FALSE='#'
15142 ENABLE_GCJ_SUPPORT_TRUE='#'
15143 ENABLE_GCJ_SUPPORT_FALSE=
15146 if test x"$enable_gcj_support" != xno; then
15148 $as_echo "#define GC_GCJ_SUPPORT 1" >>confdefs.h
15157 # Check whether --enable-gc-debug was given.
15158 if test "${enable_gc_debug+set}" = set; then :
15159 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&5
15161 $as_echo "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
15163 $as_echo "#define KEEP_BACK_PTRS 1" >>confdefs.h
15165 keep_back_ptrs=true
15167 $as_echo "#define DBG_HDRS_ALL 1" >>confdefs.h
15171 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15173 $as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
15176 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
15177 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then :
15178 $as_echo_n "(cached) " >&6
15180 ac_check_lib_save_LIBS=$LIBS
15181 LIBS="-lunwind $LIBS"
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15185 /* Override any GCC internal prototype to avoid an error.
15186 Use char because int might match the return type of a GCC
15187 builtin and then its argument prototype would still apply. */
15195 return backtrace ();
15200 if ac_fn_c_try_link "$LINENO"; then :
15201 ac_cv_lib_unwind_backtrace=yes
15203 ac_cv_lib_unwind_backtrace=no
15205 rm -f core conftest.err conftest.$ac_objext \
15206 conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
15210 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
15211 if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then :
15213 $as_echo "#define GC_HAVE_BUILTIN_BACKTRACE 1" >>confdefs.h
15215 UNWINDLIBS=-lunwind
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client code may need to link against libunwind.\"" >&5
15217 $as_echo "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;}
15222 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
15223 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
15226 $as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
15227 $as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
15231 $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
15238 if test x"$keep_back_ptrs" = xtrue; then
15239 KEEP_BACK_PTRS_TRUE=
15240 KEEP_BACK_PTRS_FALSE='#'
15242 KEEP_BACK_PTRS_TRUE='#'
15243 KEEP_BACK_PTRS_FALSE=
15247 # Check whether --enable-java-finalization was given.
15248 if test "${enable_java_finalization+set}" = set; then :
15249 enableval=$enable_java_finalization;
15252 if test x"$enable_java_finalization" != xno; then
15254 $as_echo "#define JAVA_FINALIZATION 1" >>confdefs.h
15258 # Check whether --enable-atomic-uncollectable was given.
15259 if test "${enable_atomic_uncollectable+set}" = set; then :
15260 enableval=$enable_atomic_uncollectable;
15263 if test x"$enable_atomic_uncollectible" != x"no"; then
15265 $as_echo "#define ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
15269 # Check whether --enable-redirect-malloc was given.
15270 if test "${enable_redirect_malloc+set}" = set; then :
15271 enableval=$enable_redirect_malloc;
15275 if test "${enable_redirect_malloc}" = yes; then
15276 if test "${enable_gc_debug}" = yes; then
15278 $as_echo "#define REDIRECT_MALLOC GC_debug_malloc_replacement" >>confdefs.h
15281 $as_echo "#define REDIRECT_REALLOC GC_debug_realloc_replacement" >>confdefs.h
15284 $as_echo "#define REDIRECT_FREE GC_debug_free" >>confdefs.h
15287 $as_echo "#define REDIRECT_MALLOC GC_malloc" >>confdefs.h
15291 $as_echo "#define GC_USE_DLOPEN_WRAP 1" >>confdefs.h
15295 # Check whether --enable-large-config was given.
15296 if test "${enable_large_config+set}" = set; then :
15297 enableval=$enable_large_config;
15301 if test "${enable_large_config}" = yes; then
15303 $as_echo "#define LARGE_CONFIG 1" >>confdefs.h
15307 if test -n "${with_cross_host}"; then
15309 $as_echo "#define NO_CLOCK 1" >>confdefs.h
15312 $as_echo "#define SMALL_CONFIG 1" >>confdefs.h
15315 $as_echo "#define NO_DEBUGGING 1" >>confdefs.h
15322 # Check whether --enable-gc-assertions was given.
15323 if test "${enable_gc_assertions+set}" = set; then :
15324 enableval=$enable_gc_assertions;
15327 if test "${enable_gc_assertions}" = yes; then
15329 $as_echo "#define GC_ASSERTIONS 1" >>confdefs.h
15333 # Check whether --enable-munmap was given.
15334 if test "${enable_munmap+set}" = set; then :
15335 enableval=$enable_munmap; MUNMAP_THRESHOLD=$enableval;
15338 as_fn_error "--enable-munmap requires --enable-mmap" "$LINENO" 5
15344 if test "${enable_munmap}" != ""; then
15346 $as_echo "#define USE_MMAP 1" >>confdefs.h
15349 $as_echo "#define USE_MUNMAP 1" >>confdefs.h
15351 if test "${MUNMAP_THRESHOLD}" = "yes"; then
15355 cat >>confdefs.h <<_ACEOF
15356 #define MUNMAP_THRESHOLD ${MUNMAP_THRESHOLD}
15361 if test -z "$with_cross_host"; then
15363 USE_LIBDIR_FALSE='#'
15365 USE_LIBDIR_TRUE='#'
15374 # Do we want to use an external libatomic_ops? By default use it if it's
15377 # Check whether --with-libatomic-ops was given.
15378 if test "${with_libatomic_ops+set}" = set; then :
15379 withval=$with_libatomic_ops;
15381 with_libatomic_ops=check
15385 # Check for an external libatomic_ops if the answer was yes or check. If not
15386 # found, fail on yes, and convert check to no.
15387 if test x"$with_libatomic_ops" != xno; then :
15388 ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
15389 if test "x$ac_cv_header_atomic_ops_h" = x""yes; then :
15392 if test x"$with_libatomic_ops" != xcheck; then :
15393 as_fn_error "A pre-installed libatomic_ops was not found." "$LINENO" 5
15395 with_libatomic_ops=no
15401 # Finally, emit the definitions for bundled or pre-installed AO.
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libatomic_ops to use" >&5
15403 $as_echo_n "checking which libatomic_ops to use... " >&6; }
15406 if test x"$with_libatomic_ops" != xno; then :
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15408 $as_echo "pre-installed" >&6; }
15409 ATOMIC_OPS_LIBS="-latomic_ops"
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
15413 $as_echo "bundled" >&6; }
15414 subdirs="$subdirs libatomic_ops"
15418 if test x$with_libatomic_ops = xno -a x"$THREADS" != xnone; then
15419 USE_INTERNAL_LIBATOMIC_OPS_TRUE=
15420 USE_INTERNAL_LIBATOMIC_OPS_FALSE='#'
15422 USE_INTERNAL_LIBATOMIC_OPS_TRUE='#'
15423 USE_INTERNAL_LIBATOMIC_OPS_FALSE=
15426 if test x$with_libatomic_ops = xno -a x$need_atomic_ops_asm = xtrue; then
15427 NEED_ATOMIC_OPS_ASM_TRUE=
15428 NEED_ATOMIC_OPS_ASM_FALSE='#'
15430 NEED_ATOMIC_OPS_ASM_TRUE='#'
15431 NEED_ATOMIC_OPS_ASM_FALSE=
15436 ac_config_files="$ac_config_files Makefile bdw-gc.pc"
15439 ac_config_commands="$ac_config_commands default"
15442 cat >confcache <<\_ACEOF
15443 # This file is a shell script that caches the results of configure
15444 # tests run on this system so they can be shared between configure
15445 # scripts and configure runs, see configure's option --config-cache.
15446 # It is not useful on other systems. If it contains results you don't
15447 # want to keep, you may remove or edit it.
15449 # config.status only pays attention to the cache file if you give it
15450 # the --recheck option to rerun configure.
15452 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15453 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15454 # following values.
15458 # The following way of writing the cache mishandles newlines in values,
15459 # but we know of no workaround that is simple, portable, and efficient.
15460 # So, we kill variables containing newlines.
15461 # Ultrix sh set writes to stderr and can't be redirected directly,
15462 # and sets the high bit in the cache file unless we assign to the vars.
15464 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15465 eval ac_val=\$$ac_var
15469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15473 _ | IFS | as_nl) ;; #(
15474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15475 *) { eval $ac_var=; unset $ac_var;} ;;
15481 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15482 *${as_nl}ac_space=\ *)
15483 # `set' does not quote correctly, so add quotes: double-quote
15484 # substitution turns \\\\ into \\, and sed turns \\ into \.
15487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15490 # `set' quotes correctly as required by POSIX, so do not add quotes.
15491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15500 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15502 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15504 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15505 if test -w "$cache_file"; then
15506 test "x$cache_file" != "x/dev/null" &&
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15508 $as_echo "$as_me: updating cache $cache_file" >&6;}
15509 cat confcache >$cache_file
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15512 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15518 # Let make expand exec_prefix.
15519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15521 DEFS=-DHAVE_CONFIG_H
15525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15526 # 1. Remove the extension, and $U if already installed.
15527 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15528 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15529 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15530 # will be set to the directory where LIBOBJS objects are built.
15531 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15532 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15534 LIBOBJS=$ac_libobjs
15536 LTLIBOBJS=$ac_ltlibobjs
15539 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15540 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15543 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15544 as_fn_error "conditional \"AMDEP\" was never defined.
15545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15547 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15548 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15552 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15556 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
15557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
15560 as_fn_error "conditional \"THREADS\" was never defined.
15561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15564 as_fn_error "conditional \"PTHREADS\" was never defined.
15565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567 if test -z "${DARWIN_THREADS_TRUE}" && test -z "${DARWIN_THREADS_FALSE}"; then
15568 as_fn_error "conditional \"DARWIN_THREADS\" was never defined.
15569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15571 if test -z "${WIN32_THREADS_TRUE}" && test -z "${WIN32_THREADS_FALSE}"; then
15572 as_fn_error "conditional \"WIN32_THREADS\" was never defined.
15573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15575 if test -z "${OPENBSD_THREADS_TRUE}" && test -z "${OPENBSD_THREADS_FALSE}"; then
15576 as_fn_error "conditional \"OPENBSD_THREADS\" was never defined.
15577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15579 if test -z "${COMPILER_XLC_TRUE}" && test -z "${COMPILER_XLC_FALSE}"; then
15580 as_fn_error "conditional \"COMPILER_XLC\" was never defined.
15581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15583 if test -z "${AVOID_CPP_LIB_TRUE}" && test -z "${AVOID_CPP_LIB_FALSE}"; then
15584 as_fn_error "conditional \"AVOID_CPP_LIB\" was never defined.
15585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
15588 as_fn_error "conditional \"CPLUSPLUS\" was never defined.
15589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15592 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595 if test -z "${ENABLE_GCJ_SUPPORT_TRUE}" && test -z "${ENABLE_GCJ_SUPPORT_FALSE}"; then
15596 as_fn_error "conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599 if test -z "${KEEP_BACK_PTRS_TRUE}" && test -z "${KEEP_BACK_PTRS_FALSE}"; then
15600 as_fn_error "conditional \"KEEP_BACK_PTRS\" was never defined.
15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603 if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
15604 as_fn_error "conditional \"USE_LIBDIR\" was never defined.
15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607 if test -z "${USE_INTERNAL_LIBATOMIC_OPS_TRUE}" && test -z "${USE_INTERNAL_LIBATOMIC_OPS_FALSE}"; then
15608 as_fn_error "conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611 if test -z "${NEED_ATOMIC_OPS_ASM_TRUE}" && test -z "${NEED_ATOMIC_OPS_ASM_FALSE}"; then
15612 as_fn_error "conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
15613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15616 : ${CONFIG_STATUS=./config.status}
15618 ac_clean_files_save=$ac_clean_files
15619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15625 # Generated by $as_me.
15626 # Run this file to recreate the current configuration.
15627 # Compiler output produced by configure, useful for debugging
15628 # configure, is in config.log if it exists.
15631 ac_cs_recheck=false
15634 SHELL=\${CONFIG_SHELL-$SHELL}
15637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15638 ## -------------------- ##
15639 ## M4sh Initialization. ##
15640 ## -------------------- ##
15642 # Be more Bourne compatible
15643 DUALCASE=1; export DUALCASE # for MKS sh
15644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15648 # is contrary to our usage. Disable this feature.
15649 alias -g '${1+"$@"}'='"$@"'
15650 setopt NO_GLOB_SUBST
15652 case `(set -o) 2>/dev/null` in #(
15664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15668 # Prefer a ksh shell builtin over an external printf program on Solaris,
15669 # but without wasting forks for bash or zsh.
15670 if test -z "$BASH_VERSION$ZSH_VERSION" \
15671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15672 as_echo='print -r --'
15673 as_echo_n='print -rn --'
15674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15675 as_echo='printf %s\n'
15676 as_echo_n='printf %s'
15678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15680 as_echo_n='/usr/ucb/echo -n'
15682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15683 as_echo_n_body='eval
15687 expr "X$arg" : "X\\(.*\\)$as_nl";
15688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15692 export as_echo_n_body
15693 as_echo_n='sh -c $as_echo_n_body as_echo'
15695 export as_echo_body
15696 as_echo='sh -c $as_echo_body as_echo'
15699 # The user is always right.
15700 if test "${PATH_SEPARATOR+set}" != set; then
15702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15710 # We need space, tab and new line, in precisely that order. Quoting is
15711 # there to prevent editors from complaining about space-tab.
15712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15713 # splitting by setting IFS to empty value.)
15716 # Find who we are. Look in the path if we contain no directory separator.
15718 *[\\/]* ) as_myself=$0 ;;
15719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720 for as_dir in $PATH
15723 test -z "$as_dir" && as_dir=.
15724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15730 # We did not find ourselves, most probably we were run as `sh COMMAND'
15731 # in which case we are not to be found in the path.
15732 if test "x$as_myself" = x; then
15735 if test ! -f "$as_myself"; then
15736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15740 # Unset variables that we do not need and which cause bugs (e.g. in
15741 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15742 # suppresses any "Segmentation fault" message there. '((' could
15743 # trigger a bug in pdksh 5.2.14.
15744 for as_var in BASH_ENV ENV MAIL MAILPATH
15745 do eval test x\${$as_var+set} = xset \
15746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15762 # as_fn_error ERROR [LINENO LOG_FD]
15763 # ---------------------------------
15764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15766 # script with status $?, using 1 if that was 0.
15769 as_status=$?; test $as_status -eq 0 && as_status=1
15771 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15774 $as_echo "$as_me: error: $1" >&2
15775 as_fn_exit $as_status
15779 # as_fn_set_status STATUS
15780 # -----------------------
15781 # Set $? to STATUS, without forking.
15782 as_fn_set_status ()
15785 } # as_fn_set_status
15787 # as_fn_exit STATUS
15788 # -----------------
15789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15793 as_fn_set_status $1
15799 # Portably unset VAR.
15802 { eval $1=; unset $1;}
15804 as_unset=as_fn_unset
15805 # as_fn_append VAR VALUE
15806 # ----------------------
15807 # Append the text in VALUE to the end of the definition contained in VAR. Take
15808 # advantage of any shell optimizations that allow amortized linear growth over
15809 # repeated appends, instead of the typical quadratic growth present in naive
15811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15812 eval 'as_fn_append ()
15823 # as_fn_arith ARG...
15824 # ------------------
15825 # Perform arithmetic evaluation on the ARGs, and store the result in the
15826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15827 # must be portable across $(()) and expr.
15828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15829 eval 'as_fn_arith ()
15836 as_val=`expr "$@" || test $? -eq 1`
15841 if expr a : '\(a\)' >/dev/null 2>&1 &&
15842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15849 as_basename=basename
15854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15860 as_me=`$as_basename -- "$0" ||
15861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15862 X"$0" : 'X\(//\)$' \| \
15863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15865 sed '/^.*\/\([^/][^/]*\)\/*$/{
15879 # Avoid depending upon Character Ranges.
15880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15883 as_cr_digits='0123456789'
15884 as_cr_alnum=$as_cr_Letters$as_cr_digits
15886 ECHO_C= ECHO_N= ECHO_T=
15887 case `echo -n x` in #(((((
15889 case `echo 'xy\c'` in
15890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15899 rm -f conf$$ conf$$.exe conf$$.file
15900 if test -d conf$$.dir; then
15901 rm -f conf$$.dir/conf$$.file
15904 mkdir conf$$.dir 2>/dev/null
15906 if (echo >conf$$.file) 2>/dev/null; then
15907 if ln -s conf$$.file conf$$ 2>/dev/null; then
15909 # ... but there are two gotchas:
15910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15912 # In both cases, we have to default to `cp -p'.
15913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15915 elif ln conf$$.file conf$$ 2>/dev/null; then
15923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15924 rmdir conf$$.dir 2>/dev/null
15929 # Create "$as_dir" as a directory, including parents if necessary.
15934 -*) as_dir=./$as_dir;;
15936 test -d "$as_dir" || eval $as_mkdir_p || {
15940 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15941 *) as_qdir=$as_dir;;
15943 as_dirs="'$as_qdir' $as_dirs"
15944 as_dir=`$as_dirname -- "$as_dir" ||
15945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15946 X"$as_dir" : 'X\(//\)[^/]' \| \
15947 X"$as_dir" : 'X\(//\)$' \| \
15948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15949 $as_echo X"$as_dir" |
15950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15954 /^X\(\/\/\)[^/].*/{
15967 test -d "$as_dir" && break
15969 test -z "$as_dirs" || eval "mkdir $as_dirs"
15970 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15974 if mkdir -p . 2>/dev/null; then
15975 as_mkdir_p='mkdir -p "$as_dir"'
15977 test -d ./-p && rmdir ./-p
15981 if test -x / >/dev/null 2>&1; then
15982 as_test_x='test -x'
15984 if ls -dL / >/dev/null 2>&1; then
15991 if test -d "$1"; then
15997 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15998 ???[sx]*):;;*)false;;esac;fi
16002 as_executable_p=$as_test_x
16004 # Sed expression to map a string onto a valid CPP name.
16005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16007 # Sed expression to map a string onto a valid variable name.
16008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16012 ## ----------------------------------- ##
16013 ## Main body of $CONFIG_STATUS script. ##
16014 ## ----------------------------------- ##
16016 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019 # Save the log message, to keep $0 and so on meaningful, and to
16020 # report actual input values of CONFIG_FILES etc. instead of their
16021 # values after options handling.
16023 This file was extended by gc $as_me 7.2alpha4, which was
16024 generated by GNU Autoconf 2.64. Invocation command line was
16026 CONFIG_FILES = $CONFIG_FILES
16027 CONFIG_HEADERS = $CONFIG_HEADERS
16028 CONFIG_LINKS = $CONFIG_LINKS
16029 CONFIG_COMMANDS = $CONFIG_COMMANDS
16032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16037 case $ac_config_files in *"
16038 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16041 case $ac_config_headers in *"
16042 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16047 # Files that config.status was made for.
16048 config_files="$ac_config_files"
16049 config_headers="$ac_config_headers"
16050 config_commands="$ac_config_commands"
16054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 \`$as_me' instantiates files and other configuration actions
16057 from templates according to the current configuration. Unless the files
16058 and actions are specified as TAGs, all are instantiated by default.
16060 Usage: $0 [OPTION]... [TAG]...
16062 -h, --help print this help, then exit
16063 -V, --version print version number and configuration settings, then exit
16064 -q, --quiet, --silent
16065 do not print progress messages
16066 -d, --debug don't remove temporary files
16067 --recheck update $as_me by reconfiguring in the same conditions
16068 --file=FILE[:TEMPLATE]
16069 instantiate the configuration file FILE
16070 --header=FILE[:TEMPLATE]
16071 instantiate the configuration header FILE
16073 Configuration files:
16076 Configuration headers:
16079 Configuration commands:
16082 Report bugs to <Hans.Boehm@hp.com>."
16085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16087 gc config.status 7.2alpha4
16088 configured by $0, generated by GNU Autoconf 2.64,
16089 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16091 Copyright (C) 2009 Free Software Foundation, Inc.
16092 This config.status script is free software; the Free Software Foundation
16093 gives unlimited permission to copy, distribute and modify it."
16100 test -n "\$AWK" || AWK=awk
16103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16104 # The default lists apply if the user does not specify any file.
16110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16122 # Handling of the options.
16123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16126 $as_echo "$ac_cs_version"; exit ;;
16127 --debug | --debu | --deb | --de | --d | -d )
16129 --file | --fil | --fi | --f )
16132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16134 as_fn_append CONFIG_FILES " '$ac_optarg'"
16135 ac_need_defaults=false;;
16136 --header | --heade | --head | --hea )
16139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16141 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16142 ac_need_defaults=false;;
16144 # Conflict between --help and --header
16145 as_fn_error "ambiguous option: \`$1'
16146 Try \`$0 --help' for more information.";;
16147 --help | --hel | -h )
16148 $as_echo "$ac_cs_usage"; exit ;;
16149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16150 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16153 # This is an error.
16154 -*) as_fn_error "unrecognized option: \`$1'
16155 Try \`$0 --help' for more information." ;;
16157 *) as_fn_append ac_config_targets " $1"
16158 ac_need_defaults=false ;;
16164 ac_configure_extra_args=
16166 if $ac_cs_silent; then
16168 ac_configure_extra_args="$ac_configure_extra_args --silent"
16172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16173 if \$ac_cs_recheck; then
16174 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16176 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16177 CONFIG_SHELL='$SHELL'
16178 export CONFIG_SHELL
16183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16187 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16188 ## Running $as_me. ##
16194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16198 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16201 # The HP-UX ksh and POSIX shell print the target directory to stdout
16202 # if CDPATH is set.
16203 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16205 sed_quote_subst='$sed_quote_subst'
16206 double_quote_subst='$double_quote_subst'
16207 delay_variable_subst='$delay_variable_subst'
16208 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16209 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16210 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16211 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16212 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16213 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16214 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16215 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16216 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16217 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16218 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16219 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16220 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16221 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16222 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16223 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16224 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16225 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16226 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16227 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16228 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16229 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16230 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16231 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16232 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16233 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16234 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16235 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16236 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16237 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16238 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16239 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16240 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16241 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16242 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16243 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16244 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16245 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16246 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16247 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16248 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16249 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16250 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16251 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16252 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16253 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16254 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16255 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16256 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16257 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16258 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16259 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16260 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16261 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16262 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16263 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16264 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16265 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16266 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16267 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16268 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16269 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16270 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16271 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16272 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16273 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16274 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16275 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16276 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16277 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16278 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16279 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16280 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16281 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16282 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16283 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16284 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16285 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16286 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16287 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16288 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16289 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16290 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16291 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16292 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16293 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16294 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16295 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16296 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16297 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16298 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16299 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16300 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16301 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16302 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16303 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16304 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16305 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16306 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16307 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16308 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16309 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16310 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16311 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16312 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16313 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16314 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16315 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16316 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16317 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16318 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16319 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16320 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16321 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16322 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16323 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16324 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16325 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16326 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16327 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16328 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16329 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16330 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16331 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16332 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16333 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16334 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16335 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16336 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16337 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16338 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16339 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16340 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16341 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16342 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16343 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16344 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16345 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16346 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16347 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16348 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16349 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16350 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16351 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16352 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16353 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16354 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16355 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16356 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16357 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16358 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16359 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16360 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16361 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16362 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16363 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16364 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16365 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16366 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16367 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16368 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16369 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16370 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16371 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16372 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16373 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16374 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16377 LTCFLAGS='$LTCFLAGS'
16378 compiler='$compiler_DEFAULT'
16380 # Quote evaled strings.
16391 deplibs_check_method \
16400 lt_cv_sys_global_symbol_pipe \
16401 lt_cv_sys_global_symbol_to_cdecl \
16402 lt_cv_sys_global_symbol_to_c_name_address \
16403 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16406 lt_prog_compiler_no_builtin_flag \
16407 lt_prog_compiler_wl \
16408 lt_prog_compiler_pic \
16409 lt_prog_compiler_static \
16410 lt_cv_prog_compiler_c_o \
16415 export_dynamic_flag_spec \
16416 whole_archive_flag_spec \
16417 compiler_needs_object \
16419 allow_undefined_flag \
16420 no_undefined_flag \
16421 hardcode_libdir_flag_spec \
16422 hardcode_libdir_flag_spec_ld \
16423 hardcode_libdir_separator \
16428 variables_saved_for_relink \
16430 library_names_spec \
16435 compiler_lib_search_dirs \
16440 compiler_lib_search_path \
16443 lt_prog_compiler_no_builtin_flag_CXX \
16444 lt_prog_compiler_wl_CXX \
16445 lt_prog_compiler_pic_CXX \
16446 lt_prog_compiler_static_CXX \
16447 lt_cv_prog_compiler_c_o_CXX \
16448 export_dynamic_flag_spec_CXX \
16449 whole_archive_flag_spec_CXX \
16450 compiler_needs_object_CXX \
16452 allow_undefined_flag_CXX \
16453 no_undefined_flag_CXX \
16454 hardcode_libdir_flag_spec_CXX \
16455 hardcode_libdir_flag_spec_ld_CXX \
16456 hardcode_libdir_separator_CXX \
16457 fix_srcfile_path_CXX \
16458 exclude_expsyms_CXX \
16459 include_expsyms_CXX \
16460 file_list_spec_CXX \
16461 compiler_lib_search_dirs_CXX \
16462 predep_objects_CXX \
16463 postdep_objects_CXX \
16466 compiler_lib_search_path_CXX; do
16467 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16468 *[\\\\\\\`\\"\\\$]*)
16469 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16472 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16477 # Double-quote double-evaled strings.
16478 for var in reload_cmds \
16479 old_postinstall_cmds \
16480 old_postuninstall_cmds \
16482 extract_expsyms_cmds \
16483 old_archive_from_new_cmds \
16484 old_archive_from_expsyms_cmds \
16486 archive_expsym_cmds \
16488 module_expsym_cmds \
16489 export_symbols_cmds \
16492 postuninstall_cmds \
16494 sys_lib_search_path_spec \
16495 sys_lib_dlsearch_path_spec \
16496 old_archive_cmds_CXX \
16497 old_archive_from_new_cmds_CXX \
16498 old_archive_from_expsyms_cmds_CXX \
16500 archive_expsym_cmds_CXX \
16502 module_expsym_cmds_CXX \
16503 export_symbols_cmds_CXX \
16504 prelink_cmds_CXX; do
16505 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16506 *[\\\\\\\`\\"\\\$]*)
16507 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16510 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16515 # Fix-up fallback echo if it was mangled by the above quoting rules.
16517 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16521 ac_aux_dir='$ac_aux_dir'
16522 xsi_shell='$xsi_shell'
16523 lt_shell_append='$lt_shell_append'
16525 # See if we are running on zsh, and set the options which allow our
16526 # commands through without removal of \ escapes INIT.
16527 if test -n "\${ZSH_VERSION+set}" ; then
16528 setopt NO_GLOB_SUBST
16534 TIMESTAMP='$TIMESTAMP'
16544 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16552 # Handling of arguments.
16553 for ac_config_target in $ac_config_targets
16555 case $ac_config_target in
16556 "include/private/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/config.h" ;;
16557 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16558 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16559 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16560 "bdw-gc.pc") CONFIG_FILES="$CONFIG_FILES bdw-gc.pc" ;;
16561 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16563 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16568 # If the user did not use the arguments to specify the items to instantiate,
16569 # then the envvar interface is used. Set only those that are not.
16570 # We use the long form for the default assignment because of an extremely
16571 # bizarre bug on SunOS 4.1.3.
16572 if $ac_need_defaults; then
16573 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16574 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16575 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16578 # Have a temporary directory for convenience. Make it in the build tree
16579 # simply because there is no reason against having it here, and in addition,
16580 # creating and moving files from /tmp can sometimes cause problems.
16581 # Hook for its removal unless debugging.
16582 # Note that there is a small window in which the directory will not be cleaned:
16583 # after its creation but before its name has been assigned to `$tmp'.
16587 trap 'exit_status=$?
16588 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16590 trap 'as_fn_exit 1' 1 2 13 15
16592 # Create a (secure) tmp directory for tmp files.
16595 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16596 test -n "$tmp" && test -d "$tmp"
16599 tmp=./conf$$-$RANDOM
16600 (umask 077 && mkdir "$tmp")
16601 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16603 # Set up the scripts for CONFIG_FILES section.
16604 # No need to generate them if there are no CONFIG_FILES.
16605 # This happens for instance with `./config.status config.h'.
16606 if test -n "$CONFIG_FILES"; then
16609 ac_cr=`echo X | tr X '\015'`
16610 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16611 # But we know of no other shell where ac_cr would be empty at this
16612 # point, so we can use a bashism as a fallback.
16613 if test "x$ac_cr" = x; then
16614 eval ac_cr=\$\'\\r\'
16616 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16617 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16620 ac_cs_awk_cr=$ac_cr
16623 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16628 echo "cat >conf$$subs.awk <<_ACEOF" &&
16629 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16631 } >conf$$subs.sh ||
16632 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16633 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16635 for ac_last_try in false false false false false :; do
16636 . ./conf$$subs.sh ||
16637 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16639 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16640 if test $ac_delim_n = $ac_delim_num; then
16642 elif $ac_last_try; then
16643 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16648 rm -f conf$$subs.sh
16650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16651 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16655 s/^/S["/; s/!.*/"]=/
16665 s/\(.\{148\}\).*/\1/
16667 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16679 s/\(.\{148\}\).*/\1/
16681 s/["\\]/\\&/g; s/^/"/; s/$/"/
16685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16690 ' <conf$$subs.awk | sed '
16695 ' >>$CONFIG_STATUS || ac_write_fail=1
16696 rm -f conf$$subs.awk
16697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16699 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16700 for (key in S) S_is_set[key] = 1
16706 nfields = split(line, field, "@")
16708 len = length(field[1])
16709 for (i = 2; i < nfields; i++) {
16711 keylen = length(key)
16712 if (S_is_set[key]) {
16714 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16715 len += length(value) + length(field[++i])
16726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16727 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16728 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16731 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16732 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16735 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16736 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16737 # trailing colons and then remove the whole line if VPATH becomes empty
16738 # (actually we leave an empty line to preserve line numbers).
16739 if test "x$srcdir" = x.; then
16740 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16741 s/:*\$(srcdir):*/:/
16742 s/:*\${srcdir}:*/:/
16744 s/^\([^=]*=[ ]*\):*/\1/
16750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16751 fi # test -n "$CONFIG_FILES"
16753 # Set up the scripts for CONFIG_HEADERS section.
16754 # No need to generate them if there are no CONFIG_HEADERS.
16755 # This happens for instance with `./config.status Makefile'.
16756 if test -n "$CONFIG_HEADERS"; then
16757 cat >"$tmp/defines.awk" <<\_ACAWK ||
16761 # Transform confdefs.h into an awk script `defines.awk', embedded as
16762 # here-document in config.status, that substitutes the proper values into
16763 # config.h.in to produce config.h.
16765 # Create a delimiter string that does not exist in confdefs.h, to ease
16766 # handling of long lines.
16768 for ac_last_try in false false :; do
16769 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16770 if test -z "$ac_t"; then
16772 elif $ac_last_try; then
16773 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16779 # For the awk script, D is an array of macro values keyed by name,
16780 # likewise P contains macro parameters if any. Preserve backslash
16781 # newline sequences.
16783 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16785 s/.\{148\}/&'"$ac_delim"'/g
16788 s/^[ ]*#[ ]*define[ ][ ]*/ /
16795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16797 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16801 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16802 D["\1"]=" \3\\\\\\n"\\/p
16804 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16809 s/.\{148\}/&'"$ac_delim"'/g
16814 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16817 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16819 ' <confdefs.h | sed '
16820 s/'"$ac_delim"'/"\\\
16821 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16824 for (key in D) D_is_set[key] = 1
16827 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16829 split(line, arg, " ")
16830 if (arg[1] == "#") {
16834 defundef = substr(arg[1], 2)
16837 split(mac1, mac2, "(") #)
16839 prefix = substr(line, 1, index(line, defundef) - 1)
16840 if (D_is_set[macro]) {
16841 # Preserve the white space surrounding the "#".
16842 print prefix "define", macro P[macro] D[macro]
16845 # Replace #undef with comments. This is necessary, for example,
16846 # in the case of _POSIX_SOURCE, which is predefined and required
16847 # on some systems where configure will not decide to define it.
16848 if (defundef == "undef") {
16849 print "/*", prefix defundef, macro, "*/"
16857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16858 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16859 fi # test -n "$CONFIG_HEADERS"
16862 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16867 :[FHLC]) ac_mode=$ac_tag; continue;;
16869 case $ac_mode$ac_tag in
16871 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16872 :[FH]-) ac_tag=-:-;;
16873 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16890 -) ac_f="$tmp/stdin";;
16891 *) # Look for the file first in the build tree, then in the source tree
16892 # (if the path is not absolute). The absolute path cannot be DOS-style,
16893 # because $ac_f cannot contain `:'.
16897 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16899 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16901 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16902 as_fn_append ac_file_inputs " '$ac_f'"
16905 # Let's still pretend it is `configure' which instantiates (i.e., don't
16906 # use $as_me), people would be surprised to read:
16907 # /* config.h. Generated by config.status. */
16908 configure_input='Generated from '`
16909 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16911 if test x"$ac_file" != x-; then
16912 configure_input="$ac_file. $configure_input"
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16914 $as_echo "$as_me: creating $ac_file" >&6;}
16916 # Neutralize special characters interpreted by sed in replacement strings.
16917 case $configure_input in #(
16918 *\&* | *\|* | *\\* )
16919 ac_sed_conf_input=`$as_echo "$configure_input" |
16920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16921 *) ac_sed_conf_input=$configure_input;;
16925 *:-:* | *:-) cat >"$tmp/stdin" \
16926 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16931 ac_dir=`$as_dirname -- "$ac_file" ||
16932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16933 X"$ac_file" : 'X\(//\)[^/]' \| \
16934 X"$ac_file" : 'X\(//\)$' \| \
16935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16936 $as_echo X"$ac_file" |
16937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16941 /^X\(\/\/\)[^/].*/{
16954 as_dir="$ac_dir"; as_fn_mkdir_p
16958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16960 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16961 # A ".." for each directory in $ac_dir_suffix.
16962 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16963 case $ac_top_builddir_sub in
16964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16968 ac_abs_top_builddir=$ac_pwd
16969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16970 # for backward compatibility:
16971 ac_top_builddir=$ac_top_build_prefix
16974 .) # We are building in place.
16976 ac_top_srcdir=$ac_top_builddir_sub
16977 ac_abs_top_srcdir=$ac_pwd ;;
16978 [\\/]* | ?:[\\/]* ) # Absolute name.
16979 ac_srcdir=$srcdir$ac_dir_suffix;
16980 ac_top_srcdir=$srcdir
16981 ac_abs_top_srcdir=$srcdir ;;
16982 *) # Relative name.
16983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16984 ac_top_srcdir=$ac_top_build_prefix$srcdir
16985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16997 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16998 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17000 ac_MKDIR_P=$MKDIR_P
17002 [\\/$]* | ?:[\\/]* ) ;;
17003 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17008 # If the template does not know about datarootdir, expand it.
17009 # FIXME: This hack should be removed a few years after 2.60.
17010 ac_datarootdir_hack=; ac_datarootdir_seen=
17021 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17022 *datarootdir*) ac_datarootdir_seen=yes;;
17023 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17025 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17028 ac_datarootdir_hack='
17029 s&@datadir@&$datadir&g
17030 s&@docdir@&$docdir&g
17031 s&@infodir@&$infodir&g
17032 s&@localedir@&$localedir&g
17033 s&@mandir@&$mandir&g
17034 s&\\\${datarootdir}&$datarootdir&g' ;;
17038 # Neutralize VPATH when `$srcdir' = `.'.
17039 # Shell code in configure.ac might set extrasub.
17040 # FIXME: do we really want to maintain this feature?
17041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17042 ac_sed_extra="$ac_vpsub
17045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17047 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17048 s|@configure_input@|$ac_sed_conf_input|;t t
17049 s&@top_builddir@&$ac_top_builddir_sub&;t t
17050 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17051 s&@srcdir@&$ac_srcdir&;t t
17052 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17053 s&@top_srcdir@&$ac_top_srcdir&;t t
17054 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17055 s&@builddir@&$ac_builddir&;t t
17056 s&@abs_builddir@&$ac_abs_builddir&;t t
17057 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17058 s&@INSTALL@&$ac_INSTALL&;t t
17059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17060 $ac_datarootdir_hack
17062 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17063 || as_fn_error "could not create $ac_file" "$LINENO" 5
17065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17066 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17069 which seems to be undefined. Please make sure it is defined." >&5
17070 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17071 which seems to be undefined. Please make sure it is defined." >&2;}
17075 -) cat "$tmp/out" && rm -f "$tmp/out";;
17076 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17078 || as_fn_error "could not create $ac_file" "$LINENO" 5
17084 if test x"$ac_file" != x-; then
17086 $as_echo "/* $configure_input */" \
17087 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17088 } >"$tmp/config.h" \
17089 || as_fn_error "could not create $ac_file" "$LINENO" 5
17090 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17092 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17095 mv "$tmp/config.h" "$ac_file" \
17096 || as_fn_error "could not create $ac_file" "$LINENO" 5
17099 $as_echo "/* $configure_input */" \
17100 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17101 || as_fn_error "could not create -" "$LINENO" 5
17103 # Compute "$ac_file"'s index in $config_headers.
17106 for _am_header in $config_headers :; do
17107 case $_am_header in
17108 $_am_arg | $_am_arg:* )
17111 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17114 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17115 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17116 X"$_am_arg" : 'X\(//\)[^/]' \| \
17117 X"$_am_arg" : 'X\(//\)$' \| \
17118 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17119 $as_echo X"$_am_arg" |
17120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17124 /^X\(\/\/\)[^/].*/{
17136 s/.*/./; q'`/stamp-h$_am_stamp_count
17139 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17140 $as_echo "$as_me: executing $ac_file commands" >&6;}
17145 case $ac_file$ac_mode in
17146 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
17147 # are listed without --file. Let's play safe and only enable the eval
17148 # if we detect the quoting.
17149 case $CONFIG_FILES in
17150 *\'*) eval set x "$CONFIG_FILES" ;;
17151 *) set x $CONFIG_FILES ;;
17156 # Strip MF so we end up with the name of the file.
17157 mf=`echo "$mf" | sed -e 's/:.*$//'`
17158 # Check whether this is an Automake generated Makefile or not.
17159 # We used to match only the files named `Makefile.in', but
17160 # some people rename them; so instead we look at the file content.
17161 # Grep'ing the first line is not enough: some people post-process
17162 # each Makefile.in and add a new line on top of each file to say so.
17163 # Grep'ing the whole file is not good either: AIX grep has a line
17164 # limit of 2048, but all sed's we know have understand at least 4000.
17165 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17166 dirpart=`$as_dirname -- "$mf" ||
17167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17168 X"$mf" : 'X\(//\)[^/]' \| \
17169 X"$mf" : 'X\(//\)$' \| \
17170 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17176 /^X\(\/\/\)[^/].*/{
17192 # Extract the definition of DEPDIR, am__include, and am__quote
17193 # from the Makefile without running `make'.
17194 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17195 test -z "$DEPDIR" && continue
17196 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17197 test -z "am__include" && continue
17198 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17199 # When using ansi2knr, U may be empty or an underscore; expand it
17200 U=`sed -n 's/^U = //p' < "$mf"`
17201 # Find all dependency output files, they are included files with
17202 # $(DEPDIR) in their names. We invoke sed twice because it is the
17203 # simplest approach to changing $(DEPDIR) to its actual value in the
17205 for file in `sed -n "
17206 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17207 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17208 # Make sure the directory exists.
17209 test -f "$dirpart/$file" && continue
17210 fdir=`$as_dirname -- "$file" ||
17211 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17212 X"$file" : 'X\(//\)[^/]' \| \
17213 X"$file" : 'X\(//\)$' \| \
17214 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17215 $as_echo X"$file" |
17216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17220 /^X\(\/\/\)[^/].*/{
17233 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17234 # echo "creating $dirpart/$file"
17235 echo '# dummy' > "$dirpart/$file"
17241 # See if we are running on zsh, and set the options which allow our
17242 # commands through without removal of \ escapes.
17243 if test -n "${ZSH_VERSION+set}" ; then
17244 setopt NO_GLOB_SUBST
17247 cfgfile="${ofile}T"
17248 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17251 cat <<_LT_EOF >> "$cfgfile"
17254 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17255 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
17256 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17257 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17259 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17260 # 2006, 2007, 2008 Free Software Foundation, Inc.
17261 # Written by Gordon Matzigkeit, 1996
17263 # This file is part of GNU Libtool.
17265 # GNU Libtool is free software; you can redistribute it and/or
17266 # modify it under the terms of the GNU General Public License as
17267 # published by the Free Software Foundation; either version 2 of
17268 # the License, or (at your option) any later version.
17270 # As a special exception to the GNU General Public License,
17271 # if you distribute this file as part of a program or library that
17272 # is built using GNU Libtool, you may include this file under the
17273 # same distribution terms that you use for the rest of that program.
17275 # GNU Libtool is distributed in the hope that it will be useful,
17276 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17277 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17278 # GNU General Public License for more details.
17280 # You should have received a copy of the GNU General Public License
17281 # along with GNU Libtool; see the file COPYING. If not, a copy
17282 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17283 # obtained by writing to the Free Software Foundation, Inc.,
17284 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17287 # The names of the tagged configurations supported by this script.
17288 available_tags="CXX "
17290 # ### BEGIN LIBTOOL CONFIG
17292 # Whether or not to build shared libraries.
17293 build_libtool_libs=$enable_shared
17295 # Which release of libtool.m4 was used?
17296 macro_version=$macro_version
17297 macro_revision=$macro_revision
17299 # Whether or not to build static libraries.
17300 build_old_libs=$enable_static
17302 # What type of objects to build.
17305 # Whether or not to optimize for fast installation.
17306 fast_install=$enable_fast_install
17309 host_alias=$host_alias
17313 # The build system.
17314 build_alias=$build_alias
17318 # A sed program that does not truncate output.
17321 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17322 Xsed="\$SED -e 1s/^X//"
17324 # A grep program that handles long lines.
17330 # A literal string matcher.
17333 # A BSD- or MS-compatible name lister.
17336 # Whether we need soft or hard links.
17339 # What is the maximum length of a command?
17340 max_cmd_len=$max_cmd_len
17342 # Object file suffix (normally "o").
17345 # Executable file suffix (normally "").
17348 # whether the shell understands "unset".
17351 # turn spaces into newlines.
17354 # turn newlines into spaces.
17357 # How to create reloadable object files.
17358 reload_flag=$lt_reload_flag
17359 reload_cmds=$lt_reload_cmds
17361 # Method to check whether dependent libraries are shared objects.
17362 deplibs_check_method=$lt_deplibs_check_method
17364 # Command to use when deplibs_check_method == "file_magic".
17365 file_magic_cmd=$lt_file_magic_cmd
17369 AR_FLAGS=$lt_AR_FLAGS
17371 # A symbol stripping program.
17374 # Commands used to install an old-style archive.
17376 old_postinstall_cmds=$lt_old_postinstall_cmds
17377 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17382 # LTCC compiler flags.
17383 LTCFLAGS=$lt_CFLAGS
17385 # Take the output of nm and produce a listing of raw symbols and C names.
17386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17388 # Transform the output of nm in a proper C declaration.
17389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17391 # Transform the output of nm in a C name address pair.
17392 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17394 # Transform the output of nm in a C name address pair when lib prefix is needed.
17395 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17397 # The name of the directory that contains temporary libtool files.
17400 # Shell to use when invoking shell scripts.
17403 # An echo program that does not interpret backslashes.
17406 # Used to examine libraries when file_magic_cmd begins with "file".
17407 MAGIC_CMD=$MAGIC_CMD
17409 # Must we lock files when doing compilation?
17410 need_locks=$lt_need_locks
17412 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17413 DSYMUTIL=$lt_DSYMUTIL
17415 # Tool to change global to local symbols on Mac OS X.
17418 # Old archive suffix (normally "a").
17421 # Shared library suffix (normally ".so").
17422 shrext_cmds=$lt_shrext_cmds
17424 # The commands to extract the exported symbol list from a shared archive.
17425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17427 # Variables whose values should be saved in libtool wrapper scripts and
17428 # restored at link time.
17429 variables_saved_for_relink=$lt_variables_saved_for_relink
17431 # Do we need the "lib" prefix for modules?
17432 need_lib_prefix=$need_lib_prefix
17434 # Do we need a version for libraries?
17435 need_version=$need_version
17437 # Library versioning type.
17438 version_type=$version_type
17440 # Shared library runtime path variable.
17441 runpath_var=$runpath_var
17443 # Shared library path variable.
17444 shlibpath_var=$shlibpath_var
17446 # Is shlibpath searched before the hard-coded library search path?
17447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17449 # Format of library name prefix.
17450 libname_spec=$lt_libname_spec
17452 # List of archive names. First name is the real one, the rest are links.
17453 # The last name is the one that the linker finds with -lNAME
17454 library_names_spec=$lt_library_names_spec
17456 # The coded name of the library, if different from the real name.
17457 soname_spec=$lt_soname_spec
17459 # Command to use after installation of a shared archive.
17460 postinstall_cmds=$lt_postinstall_cmds
17462 # Command to use after uninstallation of a shared archive.
17463 postuninstall_cmds=$lt_postuninstall_cmds
17465 # Commands used to finish a libtool library installation in a directory.
17466 finish_cmds=$lt_finish_cmds
17468 # As "finish_cmds", except a single script fragment to be evaled but
17470 finish_eval=$lt_finish_eval
17472 # Whether we should hardcode library paths into libraries.
17473 hardcode_into_libs=$hardcode_into_libs
17475 # Compile-time system search path for libraries.
17476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17478 # Run-time system search path for libraries.
17479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17481 # Whether dlopen is supported.
17482 dlopen_support=$enable_dlopen
17484 # Whether dlopen of programs is supported.
17485 dlopen_self=$enable_dlopen_self
17487 # Whether dlopen of statically linked programs is supported.
17488 dlopen_self_static=$enable_dlopen_self_static
17490 # Commands to strip libraries.
17491 old_striplib=$lt_old_striplib
17492 striplib=$lt_striplib
17495 # The linker used to build libraries.
17498 # Commands used to build an old-style archive.
17499 old_archive_cmds=$lt_old_archive_cmds
17501 # A language specific compiler.
17504 # Is the compiler the GNU compiler?
17507 # Compiler flag to turn off builtin functions.
17508 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17510 # How to pass a linker flag through the compiler.
17511 wl=$lt_lt_prog_compiler_wl
17513 # Additional compiler flags for building library objects.
17514 pic_flag=$lt_lt_prog_compiler_pic
17516 # Compiler flag to prevent dynamic linking.
17517 link_static_flag=$lt_lt_prog_compiler_static
17519 # Does compiler simultaneously support -c and -o options?
17520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17522 # Whether or not to add -lc for building shared libraries.
17523 build_libtool_need_lc=$archive_cmds_need_lc
17525 # Whether or not to disallow shared libs when runtime libs are static.
17526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17528 # Compiler flag to allow reflexive dlopens.
17529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17531 # Compiler flag to generate shared objects directly from archives.
17532 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17534 # Whether the compiler copes with passing no objects directly.
17535 compiler_needs_object=$lt_compiler_needs_object
17537 # Create an old-style archive from a shared archive.
17538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17540 # Create a temporary old-style archive to link instead of a shared archive.
17541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17543 # Commands used to build a shared archive.
17544 archive_cmds=$lt_archive_cmds
17545 archive_expsym_cmds=$lt_archive_expsym_cmds
17547 # Commands used to build a loadable module if different from building
17548 # a shared archive.
17549 module_cmds=$lt_module_cmds
17550 module_expsym_cmds=$lt_module_expsym_cmds
17552 # Whether we are building with GNU ld or not.
17553 with_gnu_ld=$lt_with_gnu_ld
17555 # Flag that allows shared libraries with undefined symbols to be built.
17556 allow_undefined_flag=$lt_allow_undefined_flag
17558 # Flag that enforces no undefined symbols.
17559 no_undefined_flag=$lt_no_undefined_flag
17561 # Flag to hardcode \$libdir into a binary during linking.
17562 # This must work even if \$libdir does not exist
17563 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17565 # If ld is used when linking, flag to hardcode \$libdir into a binary
17566 # during linking. This must work even if \$libdir does not exist.
17567 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17569 # Whether we need a single "-rpath" flag with a separated argument.
17570 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17572 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17573 # DIR into the resulting binary.
17574 hardcode_direct=$hardcode_direct
17576 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17577 # DIR into the resulting binary and the resulting library dependency is
17578 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17579 # library is relocated.
17580 hardcode_direct_absolute=$hardcode_direct_absolute
17582 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17583 # into the resulting binary.
17584 hardcode_minus_L=$hardcode_minus_L
17586 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17587 # into the resulting binary.
17588 hardcode_shlibpath_var=$hardcode_shlibpath_var
17590 # Set to "yes" if building a shared library automatically hardcodes DIR
17591 # into the library and all subsequent libraries and executables linked
17593 hardcode_automatic=$hardcode_automatic
17595 # Set to yes if linker adds runtime paths of dependent libraries
17596 # to runtime path list.
17597 inherit_rpath=$inherit_rpath
17599 # Whether libtool must link a program against all its dependency libraries.
17600 link_all_deplibs=$link_all_deplibs
17602 # Fix the shell variable \$srcfile for the compiler.
17603 fix_srcfile_path=$lt_fix_srcfile_path
17605 # Set to "yes" if exported symbols are required.
17606 always_export_symbols=$always_export_symbols
17608 # The commands to list exported symbols.
17609 export_symbols_cmds=$lt_export_symbols_cmds
17611 # Symbols that should not be listed in the preloaded symbols.
17612 exclude_expsyms=$lt_exclude_expsyms
17614 # Symbols that must always be exported.
17615 include_expsyms=$lt_include_expsyms
17617 # Commands necessary for linking programs (against libraries) with templates.
17618 prelink_cmds=$lt_prelink_cmds
17620 # Specify filename containing input files.
17621 file_list_spec=$lt_file_list_spec
17623 # How to hardcode a shared library path into an executable.
17624 hardcode_action=$hardcode_action
17626 # The directories searched by this compiler when creating a shared library.
17627 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17629 # Dependencies to place before and after the objects being linked to
17630 # create a shared library.
17631 predep_objects=$lt_predep_objects
17632 postdep_objects=$lt_postdep_objects
17633 predeps=$lt_predeps
17634 postdeps=$lt_postdeps
17636 # The library search path used internally by the compiler when linking
17637 # a shared library.
17638 compiler_lib_search_path=$lt_compiler_lib_search_path
17640 # ### END LIBTOOL CONFIG
17646 cat <<\_LT_EOF >> "$cfgfile"
17647 # AIX sometimes has problems with the GCC collect2 program. For some
17648 # reason, if we set the COLLECT_NAMES environment variable, the problems
17649 # vanish in a puff of smoke.
17650 if test "X${COLLECT_NAMES+set}" != Xset; then
17652 export COLLECT_NAMES
17659 ltmain="$ac_aux_dir/ltmain.sh"
17662 # We use sed instead of cat because bash on DJGPP gets confused if
17663 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17664 # text mode, it properly converts lines to CR/LF. This bash problem
17665 # is reportedly fixed, but why not run on old versions too?
17666 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17667 || (rm -f "$cfgfile"; exit 1)
17671 cat << \_LT_EOF >> "$cfgfile"
17672 # func_dirname file append nondir_replacement
17673 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17674 # otherwise set result to NONDIR_REPLACEMENT.
17678 */*) func_dirname_result="${1%/*}${2}" ;;
17679 * ) func_dirname_result="${3}" ;;
17683 # func_basename file
17686 func_basename_result="${1##*/}"
17689 # func_dirname_and_basename file append nondir_replacement
17690 # perform func_basename and func_dirname in a single function
17692 # dirname: Compute the dirname of FILE. If nonempty,
17693 # add APPEND to the result, otherwise set result
17694 # to NONDIR_REPLACEMENT.
17695 # value returned in "$func_dirname_result"
17696 # basename: Compute filename of FILE.
17697 # value retuned in "$func_basename_result"
17698 # Implementation must be kept synchronized with func_dirname
17699 # and func_basename. For efficiency, we do not delegate to
17700 # those functions but instead duplicate the functionality here.
17701 func_dirname_and_basename ()
17704 */*) func_dirname_result="${1%/*}${2}" ;;
17705 * ) func_dirname_result="${3}" ;;
17707 func_basename_result="${1##*/}"
17710 # func_stripname prefix suffix name
17711 # strip PREFIX and SUFFIX off of NAME.
17712 # PREFIX and SUFFIX must not contain globbing or regex special
17713 # characters, hashes, percent signs, but SUFFIX may contain a leading
17714 # dot (in which case that matches only a dot).
17717 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17718 # positional parameters, so assign one to ordinary parameter first.
17719 func_stripname_result=${3}
17720 func_stripname_result=${func_stripname_result#"${1}"}
17721 func_stripname_result=${func_stripname_result%"${2}"}
17727 func_opt_split_opt=${1%%=*}
17728 func_opt_split_arg=${1#*=}
17735 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17736 *) func_lo2o_result=${1} ;;
17741 *) # Bourne compatible functions.
17742 cat << \_LT_EOF >> "$cfgfile"
17743 # func_dirname file append nondir_replacement
17744 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17745 # otherwise set result to NONDIR_REPLACEMENT.
17748 # Extract subdirectory from the argument.
17749 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17750 if test "X$func_dirname_result" = "X${1}"; then
17751 func_dirname_result="${3}"
17753 func_dirname_result="$func_dirname_result${2}"
17757 # func_basename file
17760 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17763 # func_dirname_and_basename file append nondir_replacement
17764 # perform func_basename and func_dirname in a single function
17766 # dirname: Compute the dirname of FILE. If nonempty,
17767 # add APPEND to the result, otherwise set result
17768 # to NONDIR_REPLACEMENT.
17769 # value returned in "$func_dirname_result"
17770 # basename: Compute filename of FILE.
17771 # value retuned in "$func_basename_result"
17772 # Implementation must be kept synchronized with func_dirname
17773 # and func_basename. For efficiency, we do not delegate to
17774 # those functions but instead duplicate the functionality here.
17775 func_dirname_and_basename ()
17777 # Extract subdirectory from the argument.
17778 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17779 if test "X$func_dirname_result" = "X${1}"; then
17780 func_dirname_result="${3}"
17782 func_dirname_result="$func_dirname_result${2}"
17784 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17787 # func_stripname prefix suffix name
17788 # strip PREFIX and SUFFIX off of NAME.
17789 # PREFIX and SUFFIX must not contain globbing or regex special
17790 # characters, hashes, percent signs, but SUFFIX may contain a leading
17791 # dot (in which case that matches only a dot).
17792 # func_strip_suffix prefix name
17796 .*) func_stripname_result=`$ECHO "X${3}" \
17797 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17798 *) func_stripname_result=`$ECHO "X${3}" \
17799 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17804 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17805 my_sed_long_arg='1s/^-[^=]*=//'
17810 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17811 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17817 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17822 case $lt_shell_append in
17824 cat << \_LT_EOF >> "$cfgfile"
17826 # func_append var value
17827 # Append VALUE to the end of shell variable VAR.
17835 cat << \_LT_EOF >> "$cfgfile"
17837 # func_append var value
17838 # Append VALUE to the end of shell variable VAR.
17848 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17849 || (rm -f "$cfgfile"; exit 1)
17851 mv -f "$cfgfile" "$ofile" ||
17852 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17856 cat <<_LT_EOF >> "$ofile"
17858 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17860 # The linker used to build libraries.
17863 # Commands used to build an old-style archive.
17864 old_archive_cmds=$lt_old_archive_cmds_CXX
17866 # A language specific compiler.
17867 CC=$lt_compiler_CXX
17869 # Is the compiler the GNU compiler?
17872 # Compiler flag to turn off builtin functions.
17873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17875 # How to pass a linker flag through the compiler.
17876 wl=$lt_lt_prog_compiler_wl_CXX
17878 # Additional compiler flags for building library objects.
17879 pic_flag=$lt_lt_prog_compiler_pic_CXX
17881 # Compiler flag to prevent dynamic linking.
17882 link_static_flag=$lt_lt_prog_compiler_static_CXX
17884 # Does compiler simultaneously support -c and -o options?
17885 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17887 # Whether or not to add -lc for building shared libraries.
17888 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17890 # Whether or not to disallow shared libs when runtime libs are static.
17891 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17893 # Compiler flag to allow reflexive dlopens.
17894 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17896 # Compiler flag to generate shared objects directly from archives.
17897 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17899 # Whether the compiler copes with passing no objects directly.
17900 compiler_needs_object=$lt_compiler_needs_object_CXX
17902 # Create an old-style archive from a shared archive.
17903 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17905 # Create a temporary old-style archive to link instead of a shared archive.
17906 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17908 # Commands used to build a shared archive.
17909 archive_cmds=$lt_archive_cmds_CXX
17910 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17912 # Commands used to build a loadable module if different from building
17913 # a shared archive.
17914 module_cmds=$lt_module_cmds_CXX
17915 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17917 # Whether we are building with GNU ld or not.
17918 with_gnu_ld=$lt_with_gnu_ld_CXX
17920 # Flag that allows shared libraries with undefined symbols to be built.
17921 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17923 # Flag that enforces no undefined symbols.
17924 no_undefined_flag=$lt_no_undefined_flag_CXX
17926 # Flag to hardcode \$libdir into a binary during linking.
17927 # This must work even if \$libdir does not exist
17928 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17930 # If ld is used when linking, flag to hardcode \$libdir into a binary
17931 # during linking. This must work even if \$libdir does not exist.
17932 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17934 # Whether we need a single "-rpath" flag with a separated argument.
17935 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17937 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17938 # DIR into the resulting binary.
17939 hardcode_direct=$hardcode_direct_CXX
17941 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17942 # DIR into the resulting binary and the resulting library dependency is
17943 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17944 # library is relocated.
17945 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17947 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17948 # into the resulting binary.
17949 hardcode_minus_L=$hardcode_minus_L_CXX
17951 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17952 # into the resulting binary.
17953 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17955 # Set to "yes" if building a shared library automatically hardcodes DIR
17956 # into the library and all subsequent libraries and executables linked
17958 hardcode_automatic=$hardcode_automatic_CXX
17960 # Set to yes if linker adds runtime paths of dependent libraries
17961 # to runtime path list.
17962 inherit_rpath=$inherit_rpath_CXX
17964 # Whether libtool must link a program against all its dependency libraries.
17965 link_all_deplibs=$link_all_deplibs_CXX
17967 # Fix the shell variable \$srcfile for the compiler.
17968 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17970 # Set to "yes" if exported symbols are required.
17971 always_export_symbols=$always_export_symbols_CXX
17973 # The commands to list exported symbols.
17974 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17976 # Symbols that should not be listed in the preloaded symbols.
17977 exclude_expsyms=$lt_exclude_expsyms_CXX
17979 # Symbols that must always be exported.
17980 include_expsyms=$lt_include_expsyms_CXX
17982 # Commands necessary for linking programs (against libraries) with templates.
17983 prelink_cmds=$lt_prelink_cmds_CXX
17985 # Specify filename containing input files.
17986 file_list_spec=$lt_file_list_spec_CXX
17988 # How to hardcode a shared library path into an executable.
17989 hardcode_action=$hardcode_action_CXX
17991 # The directories searched by this compiler when creating a shared library.
17992 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17994 # Dependencies to place before and after the objects being linked to
17995 # create a shared library.
17996 predep_objects=$lt_predep_objects_CXX
17997 postdep_objects=$lt_postdep_objects_CXX
17998 predeps=$lt_predeps_CXX
17999 postdeps=$lt_postdeps_CXX
18001 # The library search path used internally by the compiler when linking
18002 # a shared library.
18003 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18005 # ### END LIBTOOL TAG CONFIG: CXX
18016 ac_clean_files=$ac_clean_files_save
18018 test $ac_write_fail = 0 ||
18019 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18022 # configure is writing to config.log, and then calls config.status.
18023 # config.status does its own redirection, appending to config.log.
18024 # Unfortunately, on DOS this fails, as config.log is still kept open
18025 # by configure, so config.status won't be able to write to it; its
18026 # output is simply discarded. So we exec the FD to /dev/null,
18027 # effectively closing config.log, so it can be properly (re)opened and
18028 # appended to by config.status. When coming back to configure, we
18029 # need to make the FD available again.
18030 if test "$no_create" != yes; then
18032 ac_config_status_args=
18033 test "$silent" = yes &&
18034 ac_config_status_args="$ac_config_status_args --quiet"
18036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18039 # would make configure fail if this is the last instruction.
18040 $ac_cs_success || as_fn_exit $?
18044 # CONFIG_SUBDIRS section.
18046 if test "$no_recursion" != yes; then
18048 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18049 # so they do not pile up.
18050 ac_sub_configure_args=
18052 eval "set x $ac_configure_args"
18056 if test -n "$ac_prev"; then
18061 -cache-file | --cache-file | --cache-fil | --cache-fi \
18062 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18063 ac_prev=cache_file ;;
18064 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18065 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18068 --config-cache | -C)
18070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18078 --disable-option-checking)
18082 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18084 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18088 # Always prepend --prefix to ensure using the same prefix
18089 # in subdir configurations.
18090 ac_arg="--prefix=$prefix"
18092 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18094 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18097 if test "$silent" = yes; then
18098 ac_sub_configure_args="--silent $ac_sub_configure_args"
18101 # Always prepend --disable-option-checking to silence warnings, since
18102 # different subdirs can have different --enable and --with options.
18103 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18106 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18108 # Do not complain, so a configure script can configure whichever
18109 # parts of a large source tree are present.
18110 test -d "$srcdir/$ac_dir" || continue
18112 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18113 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18114 $as_echo "$ac_msg" >&6
18115 as_dir="$ac_dir"; as_fn_mkdir_p
18119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18121 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18122 # A ".." for each directory in $ac_dir_suffix.
18123 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18124 case $ac_top_builddir_sub in
18125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18129 ac_abs_top_builddir=$ac_pwd
18130 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18131 # for backward compatibility:
18132 ac_top_builddir=$ac_top_build_prefix
18135 .) # We are building in place.
18137 ac_top_srcdir=$ac_top_builddir_sub
18138 ac_abs_top_srcdir=$ac_pwd ;;
18139 [\\/]* | ?:[\\/]* ) # Absolute name.
18140 ac_srcdir=$srcdir$ac_dir_suffix;
18141 ac_top_srcdir=$srcdir
18142 ac_abs_top_srcdir=$srcdir ;;
18143 *) # Relative name.
18144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18145 ac_top_srcdir=$ac_top_build_prefix$srcdir
18146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18153 # Check for guested configure; otherwise get Cygnus style configure.
18154 if test -f "$ac_srcdir/configure.gnu"; then
18155 ac_sub_configure=$ac_srcdir/configure.gnu
18156 elif test -f "$ac_srcdir/configure"; then
18157 ac_sub_configure=$ac_srcdir/configure
18158 elif test -f "$ac_srcdir/configure.in"; then
18159 # This should be Cygnus configure.
18160 ac_sub_configure=$ac_aux_dir/configure
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18163 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18167 # The recursion is here.
18168 if test -n "$ac_sub_configure"; then
18169 # Make the cache file name correct relative to the subdirectory.
18170 case $cache_file in
18171 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18172 *) # Relative name.
18173 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18176 { $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
18177 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18178 # The eval makes quoting arguments work.
18179 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18180 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18181 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18187 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18189 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}