2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for glog 0.3.1.
5 # Report bugs to <opensource@google.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: opensource@google.com about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 ac_default_prefix=/usr/local
694 ac_config_libobj_dir=.
701 # Identity of this package.
703 PACKAGE_TARNAME='glog'
704 PACKAGE_VERSION='0.3.1'
705 PACKAGE_STRING='glog 0.3.1'
706 PACKAGE_BUGREPORT='opensource@google.com'
709 ac_unique_file="README"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
723 # ifdef HAVE_STDLIB_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
746 ac_subst_vars='am__EXEEXT_FALSE
761 ac_cv_have_inttypes_h
762 ac_cv_have_systypes_h
764 ac_cv_have___builtin_expect
765 ac_cv___attribute___printf_4_5
766 ac_cv___attribute___noreturn
767 ac_cv_cxx_using_operator
769 ac_google_end_namespace
770 ac_google_start_namespace
782 ENABLE_FRAME_POINTERS_FALSE
783 ENABLE_FRAME_POINTERS_TRUE
846 INSTALL_STRIP_PROGRAM
888 program_transform_name
901 enable_option_checking
902 enable_dependency_tracking
909 enable_frame_pointers
913 ac_precious_vars='build_alias
928 # Initialize some variables set by options.
930 ac_init_version=false
931 ac_unrecognized_opts=
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
942 program_transform_name=s,x,x,
950 # Installation directory options.
951 # These are left unexpanded so users can "make install exec_prefix=/foo"
952 # and all the variables that are supposed to be based on exec_prefix
953 # by default will actually change.
954 # Use braces instead of parens because sh, perl, etc. also accept them.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967 infodir='${datarootdir}/info'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
980 # If the previous option needs an argument, assign it.
981 if test -n "$ac_prev"; then
982 eval $ac_prev=\$ac_option
988 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 # Accept the important Cygnus configure options, so we can diagnose typos.
994 case $ac_dashdash$ac_option in
998 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1000 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001 bindir=$ac_optarg ;;
1003 -build | --build | --buil | --bui | --bu)
1004 ac_prev=build_alias ;;
1005 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006 build_alias=$ac_optarg ;;
1008 -cache-file | --cache-file | --cache-fil | --cache-fi \
1009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010 ac_prev=cache_file ;;
1011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013 cache_file=$ac_optarg ;;
1015 --config-cache | -C)
1016 cache_file=config.cache ;;
1018 -datadir | --datadir | --datadi | --datad)
1020 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021 datadir=$ac_optarg ;;
1023 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024 | --dataroo | --dataro | --datar)
1025 ac_prev=datarootdir ;;
1026 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028 datarootdir=$ac_optarg ;;
1030 -disable-* | --disable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1039 "enable_$ac_useropt"
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1044 eval enable_$ac_useropt=no ;;
1046 -docdir | --docdir | --docdi | --doc | --do)
1048 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1049 docdir=$ac_optarg ;;
1051 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1054 dvidir=$ac_optarg ;;
1056 -enable-* | --enable-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error "invalid feature name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1065 "enable_$ac_useropt"
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1070 eval enable_$ac_useropt=\$ac_optarg ;;
1072 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1073 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074 | --exec | --exe | --ex)
1075 ac_prev=exec_prefix ;;
1076 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1077 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1078 | --exec=* | --exe=* | --ex=*)
1079 exec_prefix=$ac_optarg ;;
1081 -gas | --gas | --ga | --g)
1082 # Obsolete; use --with-gas.
1085 -help | --help | --hel | --he | -h)
1086 ac_init_help=long ;;
1087 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1088 ac_init_help=recursive ;;
1089 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1090 ac_init_help=short ;;
1092 -host | --host | --hos | --ho)
1093 ac_prev=host_alias ;;
1094 -host=* | --host=* | --hos=* | --ho=*)
1095 host_alias=$ac_optarg ;;
1097 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101 htmldir=$ac_optarg ;;
1103 -includedir | --includedir | --includedi | --included | --include \
1104 | --includ | --inclu | --incl | --inc)
1105 ac_prev=includedir ;;
1106 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1107 | --includ=* | --inclu=* | --incl=* | --inc=*)
1108 includedir=$ac_optarg ;;
1110 -infodir | --infodir | --infodi | --infod | --info | --inf)
1112 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1113 infodir=$ac_optarg ;;
1115 -libdir | --libdir | --libdi | --libd)
1117 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1118 libdir=$ac_optarg ;;
1120 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1121 | --libexe | --libex | --libe)
1122 ac_prev=libexecdir ;;
1123 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1124 | --libexe=* | --libex=* | --libe=*)
1125 libexecdir=$ac_optarg ;;
1127 -localedir | --localedir | --localedi | --localed | --locale)
1128 ac_prev=localedir ;;
1129 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1130 localedir=$ac_optarg ;;
1132 -localstatedir | --localstatedir | --localstatedi | --localstated \
1133 | --localstate | --localstat | --localsta | --localst | --locals)
1134 ac_prev=localstatedir ;;
1135 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1136 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1137 localstatedir=$ac_optarg ;;
1139 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1142 mandir=$ac_optarg ;;
1144 -nfp | --nfp | --nf)
1145 # Obsolete; use --without-fp.
1148 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1149 | --no-cr | --no-c | -n)
1152 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1153 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1157 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1158 | --oldin | --oldi | --old | --ol | --o)
1159 ac_prev=oldincludedir ;;
1160 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1161 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1162 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1163 oldincludedir=$ac_optarg ;;
1165 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1168 prefix=$ac_optarg ;;
1170 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1171 | --program-pre | --program-pr | --program-p)
1172 ac_prev=program_prefix ;;
1173 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1174 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1175 program_prefix=$ac_optarg ;;
1177 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1178 | --program-suf | --program-su | --program-s)
1179 ac_prev=program_suffix ;;
1180 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1181 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1182 program_suffix=$ac_optarg ;;
1184 -program-transform-name | --program-transform-name \
1185 | --program-transform-nam | --program-transform-na \
1186 | --program-transform-n | --program-transform- \
1187 | --program-transform | --program-transfor \
1188 | --program-transfo | --program-transf \
1189 | --program-trans | --program-tran \
1190 | --progr-tra | --program-tr | --program-t)
1191 ac_prev=program_transform_name ;;
1192 -program-transform-name=* | --program-transform-name=* \
1193 | --program-transform-nam=* | --program-transform-na=* \
1194 | --program-transform-n=* | --program-transform-=* \
1195 | --program-transform=* | --program-transfor=* \
1196 | --program-transfo=* | --program-transf=* \
1197 | --program-trans=* | --program-tran=* \
1198 | --progr-tra=* | --program-tr=* | --program-t=*)
1199 program_transform_name=$ac_optarg ;;
1201 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1204 pdfdir=$ac_optarg ;;
1206 -psdir | --psdir | --psdi | --psd | --ps)
1208 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1215 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 sbindir=$ac_optarg ;;
1221 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1222 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1223 | --sharedst | --shareds | --shared | --share | --shar \
1225 ac_prev=sharedstatedir ;;
1226 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1227 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1228 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 sharedstatedir=$ac_optarg ;;
1232 -site | --site | --sit)
1234 -site=* | --site=* | --sit=*)
1237 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240 srcdir=$ac_optarg ;;
1242 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1243 | --syscon | --sysco | --sysc | --sys | --sy)
1244 ac_prev=sysconfdir ;;
1245 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1246 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1247 sysconfdir=$ac_optarg ;;
1249 -target | --target | --targe | --targ | --tar | --ta | --t)
1250 ac_prev=target_alias ;;
1251 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1252 target_alias=$ac_optarg ;;
1254 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257 -version | --version | --versio | --versi | --vers | -V)
1258 ac_init_version=: ;;
1261 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 as_fn_error "invalid package name: $ac_useropt"
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1274 eval with_$ac_useropt=\$ac_optarg ;;
1276 -without-* | --without-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1290 eval with_$ac_useropt=no ;;
1293 # Obsolete; use --with-x.
1296 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297 | --x-incl | --x-inc | --x-in | --x-i)
1298 ac_prev=x_includes ;;
1299 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301 x_includes=$ac_optarg ;;
1303 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305 ac_prev=x_libraries ;;
1306 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308 x_libraries=$ac_optarg ;;
1310 -*) as_fn_error "unrecognized option: \`$ac_option'
1311 Try \`$0 --help' for more information."
1315 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316 # Reject names that are not valid shell variable names.
1317 case $ac_envvar in #(
1318 '' | [0-9]* | *[!_$as_cr_alnum]* )
1319 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1321 eval $ac_envvar=\$ac_optarg
1322 export $ac_envvar ;;
1325 # FIXME: should be removed in autoconf 3.0.
1326 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 if test -n "$ac_prev"; then
1336 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337 as_fn_error "missing argument to $ac_option"
1340 if test -n "$ac_unrecognized_opts"; then
1341 case $enable_option_checking in
1343 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1344 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348 # Check all directory arguments for consistency.
1349 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
1354 eval ac_val=\$$ac_var
1355 # Remove trailing slashes.
1358 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1359 eval $ac_var=\$ac_val;;
1361 # Be sure to have absolute directory names.
1363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1369 # There might be people who depend on the old broken behavior: `$host'
1370 # used to hold the argument of --host etc.
1371 # FIXME: To remove some day.
1374 target=$target_alias
1376 # FIXME: To remove some day.
1377 if test "x$host_alias" != x; then
1378 if test "x$build_alias" = x; then
1379 cross_compiling=maybe
1380 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1381 If a cross compiler is detected then cross compile mode will be used." >&2
1382 elif test "x$build_alias" != "x$host_alias"; then
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390 test "$silent" = yes && exec 6>/dev/null
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 as_fn_error "working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398 as_fn_error "pwd does not report name of working directory"
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403 ac_srcdir_defaulted=yes
1404 # Try the directory containing this script, then the parent directory.
1405 ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407 X"$as_myself" : 'X\(//\)[^/]' \| \
1408 X"$as_myself" : 'X\(//\)$' \| \
1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1433 ac_srcdir_defaulted=no
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 # Report the --help message.
1463 if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1467 \`configure' configures glog 0.3.1 to adapt to many kinds of systems.
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE. See below for descriptions of some of the useful variables.
1474 Defaults for the options are specified in brackets.
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487 Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
1489 [$ac_default_prefix]
1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1498 For better control, use the options below.
1500 Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
1525 --program-prefix=PREFIX prepend PREFIX to installed program names
1526 --program-suffix=SUFFIX append SUFFIX to installed program names
1527 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1530 --build=BUILD configure for building on BUILD [guessed]
1531 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 if test -n "$ac_init_help"; then
1536 case $ac_init_help in
1537 short | recursive ) echo "Configuration of glog 0.3.1:";;
1542 --disable-option-checking ignore unrecognized --enable/--with options
1543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1545 --disable-dependency-tracking speeds up one-time build
1546 --enable-dependency-tracking do not reject slow dependency extractors
1547 --enable-shared[=PKGS] build shared libraries [default=yes]
1548 --enable-static[=PKGS] build static libraries [default=yes]
1549 --enable-fast-install[=PKGS]
1550 optimize for fast installation [default=yes]
1551 --disable-libtool-lock avoid locking (might break parallel builds)
1552 --enable-frame-pointers On x86_64 systems, compile with
1553 -fno-omit-frame-pointer (see INSTALL)
1554 --enable-namespace=FOO to define these Google
1555 classes in the FOO namespace. --disable-namespace
1556 to define them in the global namespace. Default
1557 is to define them in namespace google.
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-pic try to use only PIC/non-PIC objects [default=use
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 --with-gflags=GFLAGS_DIR
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
1578 CXXCPP C++ preprocessor
1580 Use these variables to override the choices made by `configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1583 Report bugs to <opensource@google.com>.
1588 if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600 # A ".." for each directory in $ac_dir_suffix.
1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1607 ac_abs_top_builddir=$ac_pwd
1608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609 # for backward compatibility:
1610 ac_top_builddir=$ac_top_build_prefix
1613 .) # We are building in place.
1615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
1618 ac_srcdir=$srcdir$ac_dir_suffix;
1619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for guested configure.
1630 if test -f "$ac_srcdir/configure.gnu"; then
1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633 elif test -f "$ac_srcdir/configure"; then
1635 $SHELL "$ac_srcdir/configure" --help=recursive
1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 cd "$ac_pwd" || { ac_status=$?; break; }
1643 test -n "$ac_init_help" && exit $ac_status
1644 if $ac_init_version; then
1646 glog configure 0.3.1
1647 generated by GNU Autoconf 2.65
1649 Copyright (C) 2009 Free Software Foundation, Inc.
1650 This configure script is free software; the Free Software Foundation
1651 gives unlimited permission to copy, distribute and modify it.
1656 ## ------------------------ ##
1657 ## Autoconf initialization. ##
1658 ## ------------------------ ##
1660 # ac_fn_c_try_compile LINENO
1661 # --------------------------
1662 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_compile ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext
1667 if { { ac_try="$ac_compile"
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_compile") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest.$ac_objext; then :
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694 as_fn_set_status $ac_retval
1696 } # ac_fn_c_try_compile
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } >/dev/null && {
1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 as_fn_set_status $ac_retval
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_cxx_try_compile
1773 # ac_fn_c_try_link LINENO
1774 # -----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded.
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 $as_test_x conftest$ac_exeext
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 as_fn_set_status $ac_retval
1817 } # ac_fn_c_try_link
1819 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1820 # -------------------------------------------------------
1821 # Tests whether HEADER exists and can be compiled using the include files in
1822 # INCLUDES, setting the cache variable VAR accordingly.
1823 ac_fn_c_check_header_compile ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 $as_echo_n "(cached) " >&6
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1836 if ac_fn_c_try_compile "$LINENO"; then :
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 } # ac_fn_c_check_header_compile
1850 # ac_fn_c_try_run LINENO
1851 # ----------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1853 # that executables *can* be run.
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_link"
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>&5
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1868 { { case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_try") 2>&5
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; }; }; then :
1880 $as_echo "$as_me: program exited with status $ac_status" >&5
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=$ac_status
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 as_fn_set_status $ac_retval
1892 # ac_fn_c_check_func LINENO FUNC VAR
1893 # ----------------------------------
1894 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1895 ac_fn_c_check_func ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1907 #define $2 innocuous_$2
1909 /* System header to define __stub macros and hopefully few prototypes,
1910 which can conflict with char $2 (); below.
1911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1912 <limits.h> exists even on freestanding compilers. */
1915 # include <limits.h>
1917 # include <assert.h>
1922 /* Override any GCC internal prototype to avoid an error.
1923 Use char because int might match the return type of a GCC
1924 builtin and then its argument prototype would still apply. */
1929 /* The GNU C library defines this for functions which it implements
1930 to always fail with ENOSYS. Some functions are actually named
1931 something starting with __ and the normal name is an alias. */
1932 #if defined __stub_$2 || defined __stub___$2
1944 if ac_fn_c_try_link "$LINENO"; then :
1949 rm -f core conftest.err conftest.$ac_objext \
1950 conftest$ac_exeext conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 } # ac_fn_c_check_func
1959 # ac_fn_cxx_try_cpp LINENO
1960 # ------------------------
1961 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_cxx_try_cpp ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_cpp conftest.$ac_ext"
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } >/dev/null && {
1981 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1982 test ! -s conftest.err
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 as_fn_set_status $ac_retval
1994 } # ac_fn_cxx_try_cpp
1996 # ac_fn_cxx_try_link LINENO
1997 # -------------------------
1998 # Try to link conftest.$ac_ext, and return whether this succeeded.
1999 ac_fn_cxx_try_link ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 rm -f conftest.$ac_objext conftest$ac_exeext
2003 if { { ac_try="$ac_link"
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_link") 2>conftest.err
2012 if test -s conftest.err; then
2013 grep -v '^ *+' conftest.err >conftest.er1
2014 cat conftest.er1 >&5
2015 mv -f conftest.er1 conftest.err
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } && {
2019 test -z "$ac_cxx_werror_flag" ||
2020 test ! -s conftest.err
2021 } && test -s conftest$ac_exeext && {
2022 test "$cross_compiling" = yes ||
2023 $as_test_x conftest$ac_exeext
2027 $as_echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2032 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2033 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2034 # interfere with the next link command; also delete a directory that is
2035 # left behind by Apple's compiler. We do this before executing the actions.
2036 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 as_fn_set_status $ac_retval
2040 } # ac_fn_cxx_try_link
2042 # ac_fn_cxx_try_run LINENO
2043 # ------------------------
2044 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2045 # that executables *can* be run.
2046 ac_fn_cxx_try_run ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 if { { ac_try="$ac_link"
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_link") 2>&5
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2060 { { case "(($ac_try" in
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_try") 2>&5
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; }; }; then :
2072 $as_echo "$as_me: program exited with status $ac_status" >&5
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2076 ac_retval=$ac_status
2078 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2080 as_fn_set_status $ac_retval
2082 } # ac_fn_cxx_try_run
2084 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2085 # ---------------------------------------------------------
2086 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2087 # the include files in INCLUDES and setting the cache variable VAR
2089 ac_fn_cxx_check_header_mongrel ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096 $as_echo_n "(cached) " >&6
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2102 # Is the header compilable?
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2104 $as_echo_n "checking $2 usability... " >&6; }
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2110 if ac_fn_cxx_try_compile "$LINENO"; then :
2111 ac_header_compiler=yes
2113 ac_header_compiler=no
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2117 $as_echo "$ac_header_compiler" >&6; }
2119 # Is the header present?
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2121 $as_echo_n "checking $2 presence... " >&6; }
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2126 if ac_fn_cxx_try_cpp "$LINENO"; then :
2127 ac_header_preproc=yes
2129 ac_header_preproc=no
2131 rm -f conftest.err conftest.$ac_ext
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2133 $as_echo "$ac_header_preproc" >&6; }
2135 # So? What about this header?
2136 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2139 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2141 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2145 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2147 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2149 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2151 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2153 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2155 ## ------------------------------------ ##
2156 ## Report this to opensource@google.com ##
2157 ## ------------------------------------ ##
2159 ) | sed "s/^/$as_me: WARNING: /" >&2
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163 $as_echo_n "checking for $2... " >&6; }
2164 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2165 $as_echo_n "(cached) " >&6
2167 eval "$3=\$ac_header_compiler"
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175 } # ac_fn_cxx_check_header_mongrel
2177 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2178 # ----------------------------------------------
2179 # Tries to find the compile-time value of EXPR in a program that includes
2180 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2182 ac_fn_cxx_compute_int ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if test "$cross_compiling" = yes; then
2186 # Depending upon the size, compute the lo and hi bounds.
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2193 static int test_array [1 - 2 * !(($2) >= 0)];
2200 if ac_fn_cxx_try_compile "$LINENO"; then :
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2209 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2216 if ac_fn_cxx_try_compile "$LINENO"; then :
2217 ac_hi=$ac_mid; break
2219 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2220 if test $ac_lo -le $ac_mid; then
2224 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2235 static int test_array [1 - 2 * !(($2) < 0)];
2242 if ac_fn_cxx_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2251 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2258 if ac_fn_cxx_try_compile "$LINENO"; then :
2259 ac_lo=$ac_mid; break
2261 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2262 if test $ac_mid -le $ac_hi; then
2266 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 # Binary search between lo and hi bounds.
2277 while test "x$ac_lo" != "x$ac_hi"; do
2278 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2292 if ac_fn_cxx_try_compile "$LINENO"; then :
2295 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2307 static long int longval () { return $2; }
2308 static unsigned long int ulongval () { return $2; }
2315 FILE *f = fopen ("conftest.val", "w");
2320 long int i = longval ();
2323 fprintf (f, "%ld", i);
2327 unsigned long int i = ulongval ();
2330 fprintf (f, "%lu", i);
2332 /* Do not output a trailing newline, as this causes \r\n confusion
2333 on some platforms. */
2334 return ferror (f) || fclose (f) != 0;
2340 if ac_fn_cxx_try_run "$LINENO"; then :
2341 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2346 conftest.$ac_objext conftest.beam conftest.$ac_ext
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351 as_fn_set_status $ac_retval
2353 } # ac_fn_cxx_compute_int
2355 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2356 # ---------------------------------------------
2357 # Tests whether TYPE exists after having included INCLUDES, setting cache
2358 # variable VAR accordingly.
2359 ac_fn_cxx_check_type ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2363 $as_echo_n "checking for $2... " >&6; }
2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365 $as_echo_n "(cached) " >&6
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2380 if ac_fn_cxx_try_compile "$LINENO"; then :
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2393 if ac_fn_cxx_try_compile "$LINENO"; then :
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407 } # ac_fn_cxx_check_type
2409 # ac_fn_cxx_check_func LINENO FUNC VAR
2410 # ------------------------------------
2411 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2412 ac_fn_cxx_check_func ()
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2416 $as_echo_n "checking for $2... " >&6; }
2417 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2418 $as_echo_n "(cached) " >&6
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2422 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2424 #define $2 innocuous_$2
2426 /* System header to define __stub macros and hopefully few prototypes,
2427 which can conflict with char $2 (); below.
2428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2429 <limits.h> exists even on freestanding compilers. */
2432 # include <limits.h>
2434 # include <assert.h>
2439 /* Override any GCC internal prototype to avoid an error.
2440 Use char because int might match the return type of a GCC
2441 builtin and then its argument prototype would still apply. */
2446 /* The GNU C library defines this for functions which it implements
2447 to always fail with ENOSYS. Some functions are actually named
2448 something starting with __ and the normal name is an alias. */
2449 #if defined __stub_$2 || defined __stub___$2
2461 if ac_fn_cxx_try_link "$LINENO"; then :
2466 rm -f core conftest.err conftest.$ac_objext \
2467 conftest$ac_exeext conftest.$ac_ext
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_cxx_check_func
2475 cat >config.log <<_ACEOF
2476 This file contains any messages produced by compilers while
2477 running configure, to aid debugging if configure makes a mistake.
2479 It was created by glog $as_me 0.3.1, which was
2480 generated by GNU Autoconf 2.65. Invocation command line was
2492 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2499 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2501 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2502 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2503 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2504 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2505 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2506 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2507 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir=.
2516 $as_echo "PATH: $as_dir"
2532 # Keep a trace of the command line.
2533 # Strip out --no-create and --no-recursion so they do not pile up.
2534 # Strip out --silent because we don't want to record it for future runs.
2535 # Also quote any args containing shell meta-characters.
2536 # Make two passes to allow for proper duplicate-argument suppression.
2540 ac_must_keep_next=false
2546 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2548 | -silent | --silent | --silen | --sile | --sil)
2551 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2554 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2556 as_fn_append ac_configure_args1 " '$ac_arg'"
2557 if test $ac_must_keep_next = true; then
2558 ac_must_keep_next=false # Got value, back to normal.
2561 *=* | --config-cache | -C | -disable-* | --disable-* \
2562 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2563 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2564 | -with-* | --with-* | -without-* | --without-* | --x)
2565 case "$ac_configure_args0 " in
2566 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2569 -* ) ac_must_keep_next=true ;;
2572 as_fn_append ac_configure_args " '$ac_arg'"
2577 { ac_configure_args0=; unset ac_configure_args0;}
2578 { ac_configure_args1=; unset ac_configure_args1;}
2580 # When interrupted or exit'd, cleanup temporary files, and complete
2581 # config.log. We remove comments because anyway the quotes in there
2582 # would cause problems or look ugly.
2583 # WARNING: Use '\'' to represent an apostrophe within the trap.
2584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2585 trap 'exit_status=$?
2586 # Save into config.log some information that might help in debugging.
2591 ## ---------------- ##
2592 ## Cache variables. ##
2593 ## ---------------- ##
2596 # The following way of writing the cache mishandles newlines in values,
2598 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2599 eval ac_val=\$$ac_var
2603 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2604 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2607 _ | IFS | as_nl) ;; #(
2608 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2609 *) { eval $ac_var=; unset $ac_var;} ;;
2614 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2615 *${as_nl}ac_space=\ *)
2617 "s/'\''/'\''\\\\'\'''\''/g;
2618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2629 ## ----------------- ##
2630 ## Output variables. ##
2631 ## ----------------- ##
2634 for ac_var in $ac_subst_vars
2636 eval ac_val=\$$ac_var
2638 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2640 $as_echo "$ac_var='\''$ac_val'\''"
2644 if test -n "$ac_subst_files"; then
2646 ## ------------------- ##
2647 ## File substitutions. ##
2648 ## ------------------- ##
2651 for ac_var in $ac_subst_files
2653 eval ac_val=\$$ac_var
2655 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2657 $as_echo "$ac_var='\''$ac_val'\''"
2662 if test -s confdefs.h; then
2672 test "$ac_signal" != 0 &&
2673 $as_echo "$as_me: caught signal $ac_signal"
2674 $as_echo "$as_me: exit $exit_status"
2676 rm -f core *.core core.conftest.* &&
2677 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2680 for ac_signal in 1 2 13 15; do
2681 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2685 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2686 rm -f -r conftest* confdefs.h
2688 $as_echo "/* confdefs.h */" > confdefs.h
2690 # Predefined preprocessor variables.
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_NAME "$PACKAGE_NAME"
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_STRING "$PACKAGE_STRING"
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_URL "$PACKAGE_URL"
2717 # Let the site file select an alternate cache file if it wants to.
2718 # Prefer an explicitly selected file to automatically selected ones.
2721 if test -n "$CONFIG_SITE"; then
2722 ac_site_file1=$CONFIG_SITE
2723 elif test "x$prefix" != xNONE; then
2724 ac_site_file1=$prefix/share/config.site
2725 ac_site_file2=$prefix/etc/config.site
2727 ac_site_file1=$ac_default_prefix/share/config.site
2728 ac_site_file2=$ac_default_prefix/etc/config.site
2730 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2732 test "x$ac_site_file" = xNONE && continue
2733 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2735 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2736 sed 's/^/| /' "$ac_site_file" >&5
2741 if test -r "$cache_file"; then
2742 # Some versions of bash will fail to source /dev/null (special files
2743 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2744 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2746 $as_echo "$as_me: loading cache $cache_file" >&6;}
2748 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2749 *) . "./$cache_file";;
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2754 $as_echo "$as_me: creating cache $cache_file" >&6;}
2758 # Check that the precious variables saved in the cache have kept the same
2760 ac_cache_corrupted=false
2761 for ac_var in $ac_precious_vars; do
2762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2763 eval ac_new_set=\$ac_env_${ac_var}_set
2764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2765 eval ac_new_val=\$ac_env_${ac_var}_value
2766 case $ac_old_set,$ac_new_set in
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2769 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2770 ac_cache_corrupted=: ;;
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2773 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2774 ac_cache_corrupted=: ;;
2777 if test "x$ac_old_val" != "x$ac_new_val"; then
2778 # differences in whitespace do not lead to failure.
2779 ac_old_val_w=`echo x $ac_old_val`
2780 ac_new_val_w=`echo x $ac_new_val`
2781 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2783 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2784 ac_cache_corrupted=:
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2787 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2788 eval $ac_var=\$ac_old_val
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2791 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2793 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2796 # Pass precious variables to config.status.
2797 if test "$ac_new_set" = set; then
2799 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2800 *) ac_arg=$ac_var=$ac_new_val ;;
2802 case " $ac_configure_args " in
2803 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2804 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2808 if $ac_cache_corrupted; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2812 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2813 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2815 ## -------------------- ##
2816 ## Main body of script. ##
2817 ## -------------------- ##
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 # The argument here is just something that should be in the current directory
2827 # (for sanity checking)
2830 am__api_version='1.11'
2833 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2834 for ac_t in install-sh install.sh shtool; do
2835 if test -f "$ac_dir/$ac_t"; then
2837 ac_install_sh="$ac_aux_dir/$ac_t -c"
2842 if test -z "$ac_aux_dir"; then
2843 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2846 # These three variables are undocumented and unsupported,
2847 # and are intended to be withdrawn in a future Autoconf release.
2848 # They can cause serious problems if a builder's source tree is in a directory
2849 # whose full name contains unusual characters.
2850 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2851 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2852 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2855 # Find a good install program. We prefer a C program (faster),
2856 # so one script is as good as another. But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 # Reject install programs that cannot install multiple files.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2871 if test -z "$INSTALL"; then
2872 if test "${ac_cv_path_install+set}" = set; then :
2873 $as_echo_n "(cached) " >&6
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 # Account for people who put trailing slashes in PATH elements.
2881 case $as_dir/ in #((
2882 ./ | .// | /[cC]/* | \
2883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2887 # OSF1 and SCO ODT 3.0 have their own names for install.
2888 # Don't use installbsd from OSF since it installs stuff as root
2890 for ac_prog in ginstall scoinst install; do
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2893 if test $ac_prog = install &&
2894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895 # AIX install. It has an incompatible calling convention.
2897 elif test $ac_prog = install &&
2898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899 # program-specific install script used by HP pwplus--don't use.
2902 rm -rf conftest.one conftest.two conftest.dir
2903 echo one > conftest.one
2904 echo two > conftest.two
2906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2907 test -s conftest.one && test -s conftest.two &&
2908 test -s conftest.dir/conftest.one &&
2909 test -s conftest.dir/conftest.two
2911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2924 rm -rf conftest.one conftest.two conftest.dir
2927 if test "${ac_cv_path_install+set}" = set; then
2928 INSTALL=$ac_cv_path_install
2930 # As a last resort, use the slow shell script. Don't cache a
2931 # value for INSTALL within a source directory, because that will
2932 # break other packages using the cache if that directory is
2933 # removed, or if the value is a relative name.
2934 INSTALL=$ac_install_sh
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2938 $as_echo "$INSTALL" >&6; }
2940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2941 # It thinks the first close brace ends the variable substitution.
2942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2949 $as_echo_n "checking whether build environment is sane... " >&6; }
2952 echo timestamp > conftest.file
2953 # Reject unsafe characters in $srcdir or the absolute working directory
2954 # name. Accept space and tab only in the latter.
2958 *[\\\"\#\$\&\'\`$am_lf]*)
2959 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2962 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2963 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2966 # Do `set' in a subshell so we don't clobber the current shell's
2967 # arguments. Must try -L first in case configure is actually a
2968 # symlink; some systems play weird games with the mod time of symlinks
2969 # (eg FreeBSD returns the mod time of the symlink's containing
2972 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2973 if test "$*" = "X"; then
2975 set X `ls -t "$srcdir/configure" conftest.file`
2978 if test "$*" != "X $srcdir/configure conftest.file" \
2979 && test "$*" != "X conftest.file $srcdir/configure"; then
2981 # If neither matched, then we have a broken ls. This can happen
2982 # if, for instance, CONFIG_SHELL is bash and it inherits a
2983 # broken ls alias from the environment. This has actually
2984 # happened. Such a system could not be considered "sane".
2985 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2986 alias in your environment" "$LINENO" 5
2989 test "$2" = conftest.file
2995 as_fn_error "newly created file is older than distributed files!
2996 Check your system clock" "$LINENO" 5
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2999 $as_echo "yes" >&6; }
3000 test "$program_prefix" != NONE &&
3001 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3002 # Use a double $ so make ignores it.
3003 test "$program_suffix" != NONE &&
3004 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3005 # Double any \ or $.
3006 # By default was `s,x,x', remove it if useless.
3007 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3008 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3010 # expand $ac_aux_dir to an absolute path
3011 am_aux_dir=`cd $ac_aux_dir && pwd`
3013 if test x"${MISSING+set}" != xset; then
3016 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3018 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3021 # Use eval to expand $SHELL
3022 if eval "$MISSING --run true"; then
3023 am_missing_run="$MISSING --run "
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3027 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3030 if test x"${install_sh}" != xset; then
3033 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3035 install_sh="\${SHELL} $am_aux_dir/install-sh"
3039 # Installed binaries are usually stripped using `strip' when the user
3040 # run `make install-strip'. However `strip' might not be the right
3041 # tool to use in cross-compilation environments, therefore Automake
3042 # will honor the `STRIP' environment variable to overrule this program.
3043 if test "$cross_compiling" != no; then
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}strip; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_STRIP+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3052 if test -n "$STRIP"; then
3053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 STRIP=$ac_cv_prog_STRIP
3073 if test -n "$STRIP"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3075 $as_echo "$STRIP" >&6; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3083 if test -z "$ac_cv_prog_STRIP"; then
3085 # Extract the first word of "strip", so it can be a program name with args.
3086 set dummy strip; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3092 if test -n "$ac_ct_STRIP"; then
3093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_ac_ct_STRIP="strip"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3113 if test -n "$ac_ct_STRIP"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3115 $as_echo "$ac_ct_STRIP" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3121 if test "x$ac_ct_STRIP" = x; then
3124 case $cross_compiling:$ac_tool_warned in
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3133 STRIP="$ac_cv_prog_STRIP"
3137 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3140 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3141 if test -z "$MKDIR_P"; then
3142 if test "${ac_cv_path_mkdir+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3149 test -z "$as_dir" && as_dir=.
3150 for ac_prog in mkdir gmkdir; do
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3153 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3154 'mkdir (GNU coreutils) '* | \
3155 'mkdir (coreutils) '* | \
3156 'mkdir (fileutils) '4.1*)
3157 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3167 test -d ./--version && rmdir ./--version
3168 if test "${ac_cv_path_mkdir+set}" = set; then
3169 MKDIR_P="$ac_cv_path_mkdir -p"
3171 # As a last resort, use the slow shell script. Don't cache a
3172 # value for MKDIR_P within a source directory, because that will
3173 # break other packages using the cache if that directory is
3174 # removed, or if the value is a relative name.
3175 MKDIR_P="$ac_install_sh -d"
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3179 $as_echo "$MKDIR_P" >&6; }
3183 [\\/$]* | ?:[\\/]*) ;;
3184 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3187 for ac_prog in gawk mawk nawk awk
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_AWK+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3196 if test -n "$AWK"; then
3197 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_AWK="$ac_prog"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 if test -n "$AWK"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3219 $as_echo "$AWK" >&6; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3226 test -n "$AWK" && break
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3230 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3232 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3233 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3234 $as_echo_n "(cached) " >&6
3236 cat >conftest.make <<\_ACEOF
3239 @echo '@@@%%%=$(MAKE)=@@@%%%'
3241 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3242 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3244 eval ac_cv_prog_make_${ac_make}_set=yes;;
3246 eval ac_cv_prog_make_${ac_make}_set=no;;
3250 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 SET_MAKE="MAKE=${MAKE-make}"
3260 rm -rf .tst 2>/dev/null
3261 mkdir .tst 2>/dev/null
3262 if test -d .tst; then
3267 rmdir .tst 2>/dev/null
3269 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3270 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3271 # is not polluted with repeated "-I."
3272 am__isrc=' -I$(srcdir)'
3273 # test to see if srcdir already configured
3274 if test -f $srcdir/config.status; then
3275 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3279 # test whether we have cygpath
3280 if test -z "$CYGPATH_W"; then
3281 if (cygpath --version) >/dev/null 2>/dev/null; then
3282 CYGPATH_W='cygpath -w'
3289 # Define the identity of the package.
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE "$PACKAGE"
3299 cat >>confdefs.h <<_ACEOF
3300 #define VERSION "$VERSION"
3303 # Some tools Automake needs.
3305 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3311 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3314 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3317 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3319 # We need awk for the "check" target. The system "awk" is bad on
3321 # Always define AMTAR for backward compatibility.
3323 AMTAR=${AMTAR-"${am_missing_run}tar"}
3325 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3331 ac_config_headers="$ac_config_headers src/config.h"
3335 ac_cpp='$CXXCPP $CPPFLAGS'
3336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3341 # Checks for programs.
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 if test -n "$ac_tool_prefix"; then
3348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if test "${ac_cv_prog_CC+set}" = set; then :
3353 $as_echo_n "(cached) " >&6
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 if test -n "$CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378 $as_echo "$CC" >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3386 if test -z "$ac_cv_prog_CC"; then
3388 # Extract the first word of "gcc", so it can be a program name with args.
3389 set dummy gcc; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_ac_ct_CC="gcc"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418 $as_echo "$ac_ct_CC" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3424 if test "x$ac_ct_CC" = x; then
3427 case $cross_compiling:$ac_tool_warned in
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431 ac_tool_warned=yes ;;
3439 if test -z "$CC"; then
3440 if test -n "$ac_tool_prefix"; then
3441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3442 set dummy ${ac_tool_prefix}cc; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if test "${ac_cv_prog_CC+set}" = set; then :
3446 $as_echo_n "(cached) " >&6
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC="$CC" # Let the user override the test.
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 ac_cv_prog_CC="${ac_tool_prefix}cc"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 if test -n "$CC"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471 $as_echo "$CC" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3480 if test -z "$CC"; then
3481 # Extract the first word of "cc", so it can be a program name with args.
3482 set dummy cc; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if test "${ac_cv_prog_CC+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3500 ac_prog_rejected=yes
3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 if test $ac_prog_rejected = yes; then
3512 # We found a bogon in the path, so make sure we never use it.
3513 set dummy $ac_cv_prog_CC
3515 if test $# != 0; then
3516 # We chose a different compiler from the bogus one.
3517 # However, it has the same basename, so the bogon will be chosen
3518 # first if we set CC to just the basename; use the full file name.
3520 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3536 if test -z "$CC"; then
3537 if test -n "$ac_tool_prefix"; then
3538 for ac_prog in cl.exe
3540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if test "${ac_cv_prog_CC+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 if test -n "$CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3577 test -n "$CC" && break
3580 if test -z "$CC"; then
3582 for ac_prog in cl.exe
3584 # Extract the first word of "$ac_prog", so it can be a program name with args.
3585 set dummy $ac_prog; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3591 if test -n "$ac_ct_CC"; then
3592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_ac_ct_CC="$ac_prog"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3612 if test -n "$ac_ct_CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3614 $as_echo "$ac_ct_CC" >&6; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3621 test -n "$ac_ct_CC" && break
3624 if test "x$ac_ct_CC" = x; then
3627 case $cross_compiling:$ac_tool_warned in
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631 ac_tool_warned=yes ;;
3640 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error "no acceptable C compiler found in \$PATH
3643 See \`config.log' for more details." "$LINENO" 5; }
3645 # Provide some information about the compiler.
3646 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3649 for ac_option in --version -v -V -qversion; do
3650 { { ac_try="$ac_compiler $ac_option >&5"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3659 if test -s conftest.err; then
3661 ... rest of stderr output deleted ...
3662 10q' conftest.err >conftest.er1
3663 cat conftest.er1 >&5
3665 rm -f conftest.er1 conftest.err
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3681 ac_clean_files_save=$ac_clean_files
3682 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3683 # Try to create an executable without -o first, disregard a.out.
3684 # It will help us diagnose broken compilers, and finding out an intuition
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3687 $as_echo_n "checking whether the C compiler works... " >&6; }
3688 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3690 # The possible output files:
3691 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3694 for ac_file in $ac_files
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3698 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3703 if { { ac_try="$ac_link_default"
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709 $as_echo "$ac_try_echo"; } >&5
3710 (eval "$ac_link_default") 2>&5
3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }; then :
3714 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3716 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3717 # so that the user can short-circuit this test for compilers unknown to
3719 for ac_file in $ac_files ''
3721 test -f "$ac_file" || continue
3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3726 # We found the default executable, but exeext='' is most
3730 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3734 # We set ac_cv_exeext here because the later test for it is not
3735 # safe: cross compilers may not add the suffix if given an `-o'
3736 # argument, so we may need to know it at that point already.
3737 # Even if this section looks crufty: it has the advantage of
3744 test "$ac_cv_exeext" = no && ac_cv_exeext=
3749 if test -z "$ac_file"; then :
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3752 $as_echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 { as_fn_set_status 77
3758 as_fn_error "C compiler cannot create executables
3759 See \`config.log' for more details." "$LINENO" 5; }; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3762 $as_echo "yes" >&6; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3765 $as_echo_n "checking for C compiler default output file name... " >&6; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3767 $as_echo "$ac_file" >&6; }
3768 ac_exeext=$ac_cv_exeext
3770 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3771 ac_clean_files=$ac_clean_files_save
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3773 $as_echo_n "checking for suffix of executables... " >&6; }
3774 if { { ac_try="$ac_link"
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_link") 2>&5
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3786 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3787 # work properly (i.e., refer to `conftest.exe'), while it won't with
3789 for ac_file in conftest.exe conftest conftest.*; do
3790 test -f "$ac_file" || continue
3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3793 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error "cannot compute suffix of executables: cannot compile and link
3802 See \`config.log' for more details." "$LINENO" 5; }
3804 rm -f conftest conftest$ac_cv_exeext
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3806 $as_echo "$ac_cv_exeext" >&6; }
3808 rm -f conftest.$ac_ext
3809 EXEEXT=$ac_cv_exeext
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3817 FILE *f = fopen ("conftest.out", "w");
3818 return ferror (f) || fclose (f) != 0;
3824 ac_clean_files="$ac_clean_files conftest.out"
3825 # Check that the compiler produces executables we can run. If not, either
3826 # the compiler is broken, or we cross compile.
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3828 $as_echo_n "checking whether we are cross compiling... " >&6; }
3829 if test "$cross_compiling" != yes; then
3830 { { ac_try="$ac_link"
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_link") 2>&5
3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840 test $ac_status = 0; }
3841 if { ac_try='./conftest$ac_cv_exeext'
3842 { { case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_try") 2>&5
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }; }; then
3854 if test "$cross_compiling" = maybe; then
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error "cannot run C compiled programs.
3860 If you meant to cross compile, use \`--host'.
3861 See \`config.log' for more details." "$LINENO" 5; }
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3866 $as_echo "$cross_compiling" >&6; }
3868 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3869 ac_clean_files=$ac_clean_files_save
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3871 $as_echo_n "checking for suffix of object files... " >&6; }
3872 if test "${ac_cv_objext+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3886 rm -f conftest.o conftest.obj
3887 if { { ac_try="$ac_compile"
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894 (eval "$ac_compile") 2>&5
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }; then :
3898 for ac_file in conftest.o conftest.obj conftest.*; do
3899 test -f "$ac_file" || continue;
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error "cannot compute suffix of object files: cannot compile
3913 See \`config.log' for more details." "$LINENO" 5; }
3915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3918 $as_echo "$ac_cv_objext" >&6; }
3919 OBJEXT=$ac_cv_objext
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3922 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3923 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3924 $as_echo_n "(cached) " >&6
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3940 if ac_fn_c_try_compile "$LINENO"; then :
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3950 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3951 if test $ac_compiler_gnu = yes; then
3956 ac_test_CFLAGS=${CFLAGS+set}
3957 ac_save_CFLAGS=$CFLAGS
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3959 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3960 if test "${ac_cv_prog_cc_g+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3963 ac_save_c_werror_flag=$ac_c_werror_flag
3964 ac_c_werror_flag=yes
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3978 if ac_fn_c_try_compile "$LINENO"; then :
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3993 if ac_fn_c_try_compile "$LINENO"; then :
3996 ac_c_werror_flag=$ac_save_c_werror_flag
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 if ac_fn_c_try_compile "$LINENO"; then :
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4020 $as_echo "$ac_cv_prog_cc_g" >&6; }
4021 if test "$ac_test_CFLAGS" = set; then
4022 CFLAGS=$ac_save_CFLAGS
4023 elif test $ac_cv_prog_cc_g = yes; then
4024 if test "$GCC" = yes; then
4030 if test "$GCC" = yes; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4037 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4038 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4041 ac_cv_prog_cc_c89=no
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4047 #include <sys/types.h>
4048 #include <sys/stat.h>
4049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4050 struct buf { int x; };
4051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4052 static char *e (p, i)
4058 static char *f (char * (*g) (char **, int), char **p, ...)
4063 s = g (p, va_arg (v,int));
4068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4069 function prototypes and stuff, but not '\xHH' hex character constants.
4070 These don't provoke an error unfortunately, instead are silently treated
4071 as 'x'. The following induces an error, until -std is added to get
4072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4073 array size at least. It's necessary to write '\x00'==0 to get something
4074 that's true only with -std. */
4075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4077 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4078 inside strings and character constants. */
4080 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4082 int test (int i, double x);
4083 struct s1 {int (*f) (int a);};
4084 struct s2 {int (*f) (double a);};
4085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4091 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4096 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4099 CC="$ac_save_CC $ac_arg"
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101 ac_cv_prog_cc_c89=$ac_arg
4103 rm -f core conftest.err conftest.$ac_objext
4104 test "x$ac_cv_prog_cc_c89" != "xno" && break
4106 rm -f conftest.$ac_ext
4111 case "x$ac_cv_prog_cc_c89" in
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4114 $as_echo "none needed" >&6; } ;;
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4117 $as_echo "unsupported" >&6; } ;;
4119 CC="$CC $ac_cv_prog_cc_c89"
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4121 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4123 if test "x$ac_cv_prog_cc_c89" != xno; then :
4128 ac_cpp='$CXXCPP $CPPFLAGS'
4129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4132 DEPDIR="${am__leading_dot}deps"
4134 ac_config_commands="$ac_config_commands depfiles"
4137 am_make=${MAKE-make}
4138 cat > confinc << 'END'
4140 @echo this is the am__doit target
4143 # If we don't find an include directive, just comment out the code.
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4145 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4149 # First try GNU make style include.
4150 echo "include confinc" > confmf
4151 # Ignore all kinds of additional output from `make'.
4152 case `$am_make -s -f confmf 2> /dev/null` in #(
4153 *the\ am__doit\ target*)
4159 # Now try BSD make style include.
4160 if test "$am__include" = "#"; then
4161 echo '.include "confinc"' > confmf
4162 case `$am_make -s -f confmf 2> /dev/null` in #(
4163 *the\ am__doit\ target*)
4164 am__include=.include
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4173 $as_echo "$_am_result" >&6; }
4174 rm -f confinc confmf
4176 # Check whether --enable-dependency-tracking was given.
4177 if test "${enable_dependency_tracking+set}" = set; then :
4178 enableval=$enable_dependency_tracking;
4181 if test "x$enable_dependency_tracking" != xno; then
4182 am_depcomp="$ac_aux_dir/depcomp"
4185 if test "x$enable_dependency_tracking" != xno; then
4195 depcc="$CC" am_compiler_list=
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4198 $as_echo_n "checking dependency style of $depcc... " >&6; }
4199 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4202 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4203 # We make a subdir and do the tests there. Otherwise we can end up
4204 # making bogus files that we don't know about and never remove. For
4205 # instance it was reported that on HP-UX the gcc test will end up
4206 # making a dummy file named `D' -- because `-MD' means `put the output
4209 # Copy depcomp to subdir because otherwise we won't find it if we're
4210 # using a relative directory.
4211 cp "$am_depcomp" conftest.dir
4213 # We will build objects and dependencies in a subdirectory because
4214 # it helps to detect inapplicable dependency modes. For instance
4215 # both Tru64's cc and ICC support -MD to output dependencies as a
4216 # side effect of compilation, but ICC will put the dependencies in
4217 # the current directory while Tru64 will put them in the object
4221 am_cv_CC_dependencies_compiler_type=none
4222 if test "$am_compiler_list" = ""; then
4223 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4226 case " $depcc " in #(
4227 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4230 for depmode in $am_compiler_list; do
4231 # Setup a source with many dependencies, because some compilers
4232 # like to wrap large dependency lists on column 80 (with \), and
4233 # we should not choose a depcomp mode which is confused by this.
4235 # We need to recreate these files for each test, as the compiler may
4236 # overwrite some of them when testing with obscure command lines.
4237 # This happens at least with the AIX C compiler.
4239 for i in 1 2 3 4 5 6; do
4240 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4241 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4242 # Solaris 8's {/usr,}/bin/sh.
4243 touch sub/conftst$i.h
4245 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4247 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4248 # mode. It turns out that the SunPro C++ compiler does not properly
4249 # handle `-M -o', and we need to detect this. Also, some Intel
4250 # versions had trouble with output in subdirs
4251 am__obj=sub/conftest.${OBJEXT-o}
4252 am__minus_obj="-o $am__obj"
4255 # This depmode causes a compiler race in universal mode.
4256 test "$am__universal" = false || continue
4259 # after this tag, mechanisms are not by side-effect, so they'll
4260 # only be used when explicitly requested
4261 if test "x$enable_dependency_tracking" = xyes; then
4267 msvisualcpp | msvcmsys)
4268 # This compiler won't grok `-c -o', but also, the minuso test has
4269 # not run yet. These depmodes are late enough in the game, and
4270 # so weak that their functioning should not be impacted.
4271 am__obj=conftest.${OBJEXT-o}
4276 if depmode=$depmode \
4277 source=sub/conftest.c object=$am__obj \
4278 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4279 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4280 >/dev/null 2>conftest.err &&
4281 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4282 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4283 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4284 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4285 # icc doesn't choke on unknown options, it will just issue warnings
4286 # or remarks (even with -Werror). So we grep stderr for any message
4287 # that says an option was ignored or not supported.
4288 # When given -MP, icc 7.0 and 7.1 complain thusly:
4289 # icc: Command line warning: ignoring option '-M'; no argument required
4290 # The diagnosis changed in icc 8.0:
4291 # icc: Command line remark: option '-MP' not supported
4292 if (grep 'ignoring option' conftest.err ||
4293 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4294 am_cv_CC_dependencies_compiler_type=$depmode
4303 am_cv_CC_dependencies_compiler_type=none
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4308 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4309 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4312 test "x$enable_dependency_tracking" != xno \
4313 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4315 am__fastdepCC_FALSE='#'
4317 am__fastdepCC_TRUE='#'
4318 am__fastdepCC_FALSE=
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4328 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4329 # On Suns, sometimes $CPP names a directory.
4330 if test -n "$CPP" && test -d "$CPP"; then
4333 if test -z "$CPP"; then
4334 if test "${ac_cv_prog_CPP+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4337 # Double quotes because CPP needs to be expanded
4338 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4341 for ac_c_preproc_warn_flag in '' yes
4343 # Use a header file that comes with gcc, so configuring glibc
4344 # with a fresh cross-compiler works.
4345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346 # <limits.h> exists even on freestanding compilers.
4347 # On the NeXT, cc -E runs the code through the compiler's parser,
4348 # not just through cpp. "Syntax error" is here to catch this case.
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4352 # include <limits.h>
4354 # include <assert.h>
4358 if ac_fn_c_try_cpp "$LINENO"; then :
4361 # Broken: fails on valid input.
4364 rm -f conftest.err conftest.$ac_ext
4366 # OK, works on sane cases. Now check whether nonexistent headers
4367 # can be detected and how.
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370 #include <ac_nonexistent.h>
4372 if ac_fn_c_try_cpp "$LINENO"; then :
4373 # Broken: success on invalid input.
4376 # Passes both tests.
4380 rm -f conftest.err conftest.$ac_ext
4383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4384 rm -f conftest.err conftest.$ac_ext
4385 if $ac_preproc_ok; then :
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4398 $as_echo "$CPP" >&6; }
4400 for ac_c_preproc_warn_flag in '' yes
4402 # Use a header file that comes with gcc, so configuring glibc
4403 # with a fresh cross-compiler works.
4404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4405 # <limits.h> exists even on freestanding compilers.
4406 # On the NeXT, cc -E runs the code through the compiler's parser,
4407 # not just through cpp. "Syntax error" is here to catch this case.
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4411 # include <limits.h>
4413 # include <assert.h>
4417 if ac_fn_c_try_cpp "$LINENO"; then :
4420 # Broken: fails on valid input.
4423 rm -f conftest.err conftest.$ac_ext
4425 # OK, works on sane cases. Now check whether nonexistent headers
4426 # can be detected and how.
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 #include <ac_nonexistent.h>
4431 if ac_fn_c_try_cpp "$LINENO"; then :
4432 # Broken: success on invalid input.
4435 # Passes both tests.
4439 rm -f conftest.err conftest.$ac_ext
4442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4443 rm -f conftest.err conftest.$ac_ext
4444 if $ac_preproc_ok; then :
4447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4449 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4450 See \`config.log' for more details." "$LINENO" 5; }
4454 ac_cpp='$CXXCPP $CPPFLAGS'
4455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4460 ac_cpp='$CXXCPP $CPPFLAGS'
4461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4464 if test -z "$CXX"; then
4465 if test -n "$CCC"; then
4468 if test -n "$ac_tool_prefix"; then
4469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474 $as_echo_n "checking for $ac_word... " >&6; }
4475 if test "${ac_cv_prog_CXX+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4478 if test -n "$CXX"; then
4479 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 if test -n "$CXX"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4501 $as_echo "$CXX" >&6; }
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4508 test -n "$CXX" && break
4511 if test -z "$CXX"; then
4513 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4515 # Extract the first word of "$ac_prog", so it can be a program name with args.
4516 set dummy $ac_prog; ac_word=$2
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518 $as_echo_n "checking for $ac_word... " >&6; }
4519 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4522 if test -n "$ac_ct_CXX"; then
4523 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 ac_cv_prog_ac_ct_CXX="$ac_prog"
4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4543 if test -n "$ac_ct_CXX"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4545 $as_echo "$ac_ct_CXX" >&6; }
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4552 test -n "$ac_ct_CXX" && break
4555 if test "x$ac_ct_CXX" = x; then
4558 case $cross_compiling:$ac_tool_warned in
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4562 ac_tool_warned=yes ;;
4570 # Provide some information about the compiler.
4571 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4574 for ac_option in --version -v -V -qversion; do
4575 { { ac_try="$ac_compiler $ac_option >&5"
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4584 if test -s conftest.err; then
4586 ... rest of stderr output deleted ...
4587 10q' conftest.err >conftest.er1
4588 cat conftest.er1 >&5
4590 rm -f conftest.er1 conftest.err
4591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592 test $ac_status = 0; }
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4596 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4597 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4614 if ac_fn_cxx_try_compile "$LINENO"; then :
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4624 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4625 if test $ac_compiler_gnu = yes; then
4630 ac_test_CXXFLAGS=${CXXFLAGS+set}
4631 ac_save_CXXFLAGS=$CXXFLAGS
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4633 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4634 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4637 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4638 ac_cxx_werror_flag=yes
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4652 if ac_fn_cxx_try_compile "$LINENO"; then :
4653 ac_cv_prog_cxx_g=yes
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4667 if ac_fn_cxx_try_compile "$LINENO"; then :
4670 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4683 if ac_fn_cxx_try_compile "$LINENO"; then :
4684 ac_cv_prog_cxx_g=yes
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4694 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4695 if test "$ac_test_CXXFLAGS" = set; then
4696 CXXFLAGS=$ac_save_CXXFLAGS
4697 elif test $ac_cv_prog_cxx_g = yes; then
4698 if test "$GXX" = yes; then
4704 if test "$GXX" = yes; then
4711 ac_cpp='$CXXCPP $CPPFLAGS'
4712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4716 depcc="$CXX" am_compiler_list=
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4719 $as_echo_n "checking dependency style of $depcc... " >&6; }
4720 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4723 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4724 # We make a subdir and do the tests there. Otherwise we can end up
4725 # making bogus files that we don't know about and never remove. For
4726 # instance it was reported that on HP-UX the gcc test will end up
4727 # making a dummy file named `D' -- because `-MD' means `put the output
4730 # Copy depcomp to subdir because otherwise we won't find it if we're
4731 # using a relative directory.
4732 cp "$am_depcomp" conftest.dir
4734 # We will build objects and dependencies in a subdirectory because
4735 # it helps to detect inapplicable dependency modes. For instance
4736 # both Tru64's cc and ICC support -MD to output dependencies as a
4737 # side effect of compilation, but ICC will put the dependencies in
4738 # the current directory while Tru64 will put them in the object
4742 am_cv_CXX_dependencies_compiler_type=none
4743 if test "$am_compiler_list" = ""; then
4744 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4747 case " $depcc " in #(
4748 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4751 for depmode in $am_compiler_list; do
4752 # Setup a source with many dependencies, because some compilers
4753 # like to wrap large dependency lists on column 80 (with \), and
4754 # we should not choose a depcomp mode which is confused by this.
4756 # We need to recreate these files for each test, as the compiler may
4757 # overwrite some of them when testing with obscure command lines.
4758 # This happens at least with the AIX C compiler.
4760 for i in 1 2 3 4 5 6; do
4761 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4762 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4763 # Solaris 8's {/usr,}/bin/sh.
4764 touch sub/conftst$i.h
4766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4768 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4769 # mode. It turns out that the SunPro C++ compiler does not properly
4770 # handle `-M -o', and we need to detect this. Also, some Intel
4771 # versions had trouble with output in subdirs
4772 am__obj=sub/conftest.${OBJEXT-o}
4773 am__minus_obj="-o $am__obj"
4776 # This depmode causes a compiler race in universal mode.
4777 test "$am__universal" = false || continue
4780 # after this tag, mechanisms are not by side-effect, so they'll
4781 # only be used when explicitly requested
4782 if test "x$enable_dependency_tracking" = xyes; then
4788 msvisualcpp | msvcmsys)
4789 # This compiler won't grok `-c -o', but also, the minuso test has
4790 # not run yet. These depmodes are late enough in the game, and
4791 # so weak that their functioning should not be impacted.
4792 am__obj=conftest.${OBJEXT-o}
4797 if depmode=$depmode \
4798 source=sub/conftest.c object=$am__obj \
4799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4800 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4801 >/dev/null 2>conftest.err &&
4802 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4804 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4806 # icc doesn't choke on unknown options, it will just issue warnings
4807 # or remarks (even with -Werror). So we grep stderr for any message
4808 # that says an option was ignored or not supported.
4809 # When given -MP, icc 7.0 and 7.1 complain thusly:
4810 # icc: Command line warning: ignoring option '-M'; no argument required
4811 # The diagnosis changed in icc 8.0:
4812 # icc: Command line remark: option '-MP' not supported
4813 if (grep 'ignoring option' conftest.err ||
4814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4815 am_cv_CXX_dependencies_compiler_type=$depmode
4824 am_cv_CXX_dependencies_compiler_type=none
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4829 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4830 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4833 test "x$enable_dependency_tracking" != xno \
4834 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4835 am__fastdepCXX_TRUE=
4836 am__fastdepCXX_FALSE='#'
4838 am__fastdepCXX_TRUE='#'
4839 am__fastdepCXX_FALSE=
4843 if test "$GCC" = yes; then
4850 # let the Makefile know if we're gcc
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4855 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4860 macro_version='2.2.6b'
4861 macro_revision='1.3017'
4875 ltmain="$ac_aux_dir/ltmain.sh"
4877 # Make sure we can run config.sub.
4878 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4879 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4882 $as_echo_n "checking build system type... " >&6; }
4883 if test "${ac_cv_build+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4886 ac_build_alias=$build_alias
4887 test "x$ac_build_alias" = x &&
4888 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4889 test "x$ac_build_alias" = x &&
4890 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4891 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4892 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4896 $as_echo "$ac_cv_build" >&6; }
4897 case $ac_cv_build in
4899 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4902 ac_save_IFS=$IFS; IFS='-'
4908 # Remember, the first character of IFS is used to create $*,
4909 # except with old shells:
4912 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4916 $as_echo_n "checking host system type... " >&6; }
4917 if test "${ac_cv_host+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4920 if test "x$host_alias" = x; then
4921 ac_cv_host=$ac_cv_build
4923 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4924 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4929 $as_echo "$ac_cv_host" >&6; }
4932 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4935 ac_save_IFS=$IFS; IFS='-'
4941 # Remember, the first character of IFS is used to create $*,
4942 # except with old shells:
4945 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4949 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4950 if test "${ac_cv_path_SED+set}" = set; then :
4951 $as_echo_n "(cached) " >&6
4953 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4954 for ac_i in 1 2 3 4 5 6 7; do
4955 ac_script="$ac_script$as_nl$ac_script"
4957 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4958 { ac_script=; unset ac_script;}
4959 if test -z "$SED"; then
4960 ac_path_SED_found=false
4961 # Loop through the user's path and test for each of PROGNAME-LIST
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 test -z "$as_dir" && as_dir=.
4967 for ac_prog in sed gsed; do
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4970 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4971 # Check for GNU ac_path_SED and select it if it is found.
4972 # Check for GNU $ac_path_SED
4973 case `"$ac_path_SED" --version 2>&1` in
4975 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4978 $as_echo_n 0123456789 >"conftest.in"
4981 cat "conftest.in" "conftest.in" >"conftest.tmp"
4982 mv "conftest.tmp" "conftest.in"
4983 cp "conftest.in" "conftest.nl"
4984 $as_echo '' >> "conftest.nl"
4985 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987 as_fn_arith $ac_count + 1 && ac_count=$as_val
4988 if test $ac_count -gt ${ac_path_SED_max-0}; then
4989 # Best one so far, save it but keep looking for a better one
4990 ac_cv_path_SED="$ac_path_SED"
4991 ac_path_SED_max=$ac_count
4993 # 10*(2^10) chars as input seems more than enough
4994 test $ac_count -gt 10 && break
4996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4999 $ac_path_SED_found && break 3
5004 if test -z "$ac_cv_path_SED"; then
5005 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5013 $as_echo "$ac_cv_path_SED" >&6; }
5014 SED="$ac_cv_path_SED"
5017 test -z "$SED" && SED=sed
5018 Xsed="$SED -e 1s/^X//"
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5031 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5032 if test "${ac_cv_path_GREP+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5035 if test -z "$GREP"; then
5036 ac_path_GREP_found=false
5037 # Loop through the user's path and test for each of PROGNAME-LIST
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5042 test -z "$as_dir" && as_dir=.
5043 for ac_prog in grep ggrep; do
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5046 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5047 # Check for GNU ac_path_GREP and select it if it is found.
5048 # Check for GNU $ac_path_GREP
5049 case `"$ac_path_GREP" --version 2>&1` in
5051 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5054 $as_echo_n 0123456789 >"conftest.in"
5057 cat "conftest.in" "conftest.in" >"conftest.tmp"
5058 mv "conftest.tmp" "conftest.in"
5059 cp "conftest.in" "conftest.nl"
5060 $as_echo 'GREP' >> "conftest.nl"
5061 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5063 as_fn_arith $ac_count + 1 && ac_count=$as_val
5064 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5065 # Best one so far, save it but keep looking for a better one
5066 ac_cv_path_GREP="$ac_path_GREP"
5067 ac_path_GREP_max=$ac_count
5069 # 10*(2^10) chars as input seems more than enough
5070 test $ac_count -gt 10 && break
5072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5075 $ac_path_GREP_found && break 3
5080 if test -z "$ac_cv_path_GREP"; then
5081 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5084 ac_cv_path_GREP=$GREP
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5089 $as_echo "$ac_cv_path_GREP" >&6; }
5090 GREP="$ac_cv_path_GREP"
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5094 $as_echo_n "checking for egrep... " >&6; }
5095 if test "${ac_cv_path_EGREP+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5098 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5099 then ac_cv_path_EGREP="$GREP -E"
5101 if test -z "$EGREP"; then
5102 ac_path_EGREP_found=false
5103 # Loop through the user's path and test for each of PROGNAME-LIST
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5108 test -z "$as_dir" && as_dir=.
5109 for ac_prog in egrep; do
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5112 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5113 # Check for GNU ac_path_EGREP and select it if it is found.
5114 # Check for GNU $ac_path_EGREP
5115 case `"$ac_path_EGREP" --version 2>&1` in
5117 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5120 $as_echo_n 0123456789 >"conftest.in"
5123 cat "conftest.in" "conftest.in" >"conftest.tmp"
5124 mv "conftest.tmp" "conftest.in"
5125 cp "conftest.in" "conftest.nl"
5126 $as_echo 'EGREP' >> "conftest.nl"
5127 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5129 as_fn_arith $ac_count + 1 && ac_count=$as_val
5130 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5131 # Best one so far, save it but keep looking for a better one
5132 ac_cv_path_EGREP="$ac_path_EGREP"
5133 ac_path_EGREP_max=$ac_count
5135 # 10*(2^10) chars as input seems more than enough
5136 test $ac_count -gt 10 && break
5138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5141 $ac_path_EGREP_found && break 3
5146 if test -z "$ac_cv_path_EGREP"; then
5147 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5150 ac_cv_path_EGREP=$EGREP
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5156 $as_echo "$ac_cv_path_EGREP" >&6; }
5157 EGREP="$ac_cv_path_EGREP"
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5161 $as_echo_n "checking for fgrep... " >&6; }
5162 if test "${ac_cv_path_FGREP+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5165 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5166 then ac_cv_path_FGREP="$GREP -F"
5168 if test -z "$FGREP"; then
5169 ac_path_FGREP_found=false
5170 # Loop through the user's path and test for each of PROGNAME-LIST
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5175 test -z "$as_dir" && as_dir=.
5176 for ac_prog in fgrep; do
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5179 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5180 # Check for GNU ac_path_FGREP and select it if it is found.
5181 # Check for GNU $ac_path_FGREP
5182 case `"$ac_path_FGREP" --version 2>&1` in
5184 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5187 $as_echo_n 0123456789 >"conftest.in"
5190 cat "conftest.in" "conftest.in" >"conftest.tmp"
5191 mv "conftest.tmp" "conftest.in"
5192 cp "conftest.in" "conftest.nl"
5193 $as_echo 'FGREP' >> "conftest.nl"
5194 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5196 as_fn_arith $ac_count + 1 && ac_count=$as_val
5197 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5198 # Best one so far, save it but keep looking for a better one
5199 ac_cv_path_FGREP="$ac_path_FGREP"
5200 ac_path_FGREP_max=$ac_count
5202 # 10*(2^10) chars as input seems more than enough
5203 test $ac_count -gt 10 && break
5205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5208 $ac_path_FGREP_found && break 3
5213 if test -z "$ac_cv_path_FGREP"; then
5214 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5217 ac_cv_path_FGREP=$FGREP
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5223 $as_echo "$ac_cv_path_FGREP" >&6; }
5224 FGREP="$ac_cv_path_FGREP"
5227 test -z "$GREP" && GREP=grep
5247 # Check whether --with-gnu-ld was given.
5248 if test "${with_gnu_ld+set}" = set; then :
5249 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5255 if test "$GCC" = yes; then
5256 # Check if gcc -print-prog-name=ld gives a path.
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5258 $as_echo_n "checking for ld used by $CC... " >&6; }
5261 # gcc leaves a trailing carriage return which upsets mingw
5262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5267 # Accept absolute paths.
5269 re_direlt='/[^/][^/]*/\.\./'
5270 # Canonicalize the pathname of ld
5271 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5272 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5273 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5275 test -z "$LD" && LD="$ac_prog"
5278 # If it fails, then pretend we aren't using GCC.
5282 # If it is relative, then search for the first ld in PATH.
5286 elif test "$with_gnu_ld" = yes; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5288 $as_echo_n "checking for GNU ld... " >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5291 $as_echo_n "checking for non-GNU ld... " >&6; }
5293 if test "${lt_cv_path_LD+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5296 if test -z "$LD"; then
5297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5298 for ac_dir in $PATH; do
5300 test -z "$ac_dir" && ac_dir=.
5301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5302 lt_cv_path_LD="$ac_dir/$ac_prog"
5303 # Check to see if the program is GNU ld. I'd rather use --version,
5304 # but apparently some variants of GNU ld only accept -v.
5305 # Break only if it was the GNU/non-GNU ld that we prefer.
5306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5307 *GNU* | *'with BFD'*)
5308 test "$with_gnu_ld" != no && break
5311 test "$with_gnu_ld" != yes && break
5318 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5323 if test -n "$LD"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5325 $as_echo "$LD" >&6; }
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5330 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5332 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5333 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5337 case `$LD -v 2>&1 </dev/null` in
5338 *GNU* | *'with BFD'*)
5339 lt_cv_prog_gnu_ld=yes
5342 lt_cv_prog_gnu_ld=no
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5347 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5348 with_gnu_ld=$lt_cv_prog_gnu_ld
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5359 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5360 if test "${lt_cv_path_NM+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5363 if test -n "$NM"; then
5364 # Let the user override the test.
5367 lt_nm_to_check="${ac_tool_prefix}nm"
5368 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5369 lt_nm_to_check="$lt_nm_to_check nm"
5371 for lt_tmp_nm in $lt_nm_to_check; do
5372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5373 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5375 test -z "$ac_dir" && ac_dir=.
5376 tmp_nm="$ac_dir/$lt_tmp_nm"
5377 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5378 # Check to see if the nm accepts a BSD-compat flag.
5379 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5380 # nm: unknown option "B" ignored
5381 # Tru64's nm complains that /dev/null is an invalid object file
5382 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5383 */dev/null* | *'Invalid file or object type'*)
5384 lt_cv_path_NM="$tmp_nm -B"
5388 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5390 lt_cv_path_NM="$tmp_nm -p"
5394 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5395 continue # so that we can try to find one that supports BSD flags
5404 : ${lt_cv_path_NM=no}
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5408 $as_echo "$lt_cv_path_NM" >&6; }
5409 if test "$lt_cv_path_NM" != "no"; then
5412 # Didn't find any BSD compatible name lister, look for dumpbin.
5413 if test -n "$ac_tool_prefix"; then
5414 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5423 if test -n "$DUMPBIN"; then
5424 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 DUMPBIN=$ac_cv_prog_DUMPBIN
5444 if test -n "$DUMPBIN"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5446 $as_echo "$DUMPBIN" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5453 test -n "$DUMPBIN" && break
5456 if test -z "$DUMPBIN"; then
5457 ac_ct_DUMPBIN=$DUMPBIN
5458 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5460 # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5467 if test -n "$ac_ct_DUMPBIN"; then
5468 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5488 if test -n "$ac_ct_DUMPBIN"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5490 $as_echo "$ac_ct_DUMPBIN" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5497 test -n "$ac_ct_DUMPBIN" && break
5500 if test "x$ac_ct_DUMPBIN" = x; then
5503 case $cross_compiling:$ac_tool_warned in
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5509 DUMPBIN=$ac_ct_DUMPBIN
5514 if test "$DUMPBIN" != ":"; then
5518 test -z "$NM" && NM=nm
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5526 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5527 if test "${lt_cv_nm_interface+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5530 lt_cv_nm_interface="BSD nm"
5531 echo "int some_variable = 0;" > conftest.$ac_ext
5532 (eval echo "\"\$as_me:5532: $ac_compile\"" >&5)
5533 (eval "$ac_compile" 2>conftest.err)
5534 cat conftest.err >&5
5535 (eval echo "\"\$as_me:5535: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5536 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5537 cat conftest.err >&5
5538 (eval echo "\"\$as_me:5538: output\"" >&5)
5539 cat conftest.out >&5
5540 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5541 lt_cv_nm_interface="MS dumpbin"
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5546 $as_echo "$lt_cv_nm_interface" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5549 $as_echo_n "checking whether ln -s works... " >&6; }
5551 if test "$LN_S" = "ln -s"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553 $as_echo "yes" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5556 $as_echo "no, using $LN_S" >&6; }
5559 # find the maximum length of command line arguments
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5561 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5562 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5570 # On DJGPP, this test can blow up pretty badly due to problems in libc
5571 # (any single argument exceeding 2000 bytes causes a buffer overrun
5572 # during glob expansion). Even if it were fixed, the result of this
5573 # check would be larger than it should be.
5574 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5578 # Under GNU Hurd, this test is not required because there is
5579 # no limit to the length of command line arguments.
5580 # Libtool will interpret -1 as no limit whatsoever
5581 lt_cv_sys_max_cmd_len=-1;
5584 cygwin* | mingw* | cegcc*)
5585 # On Win9x/ME, this test blows up -- it succeeds, but takes
5586 # about 5 minutes as the teststring grows exponentially.
5587 # Worse, since 9x/ME are not pre-emptively multitasking,
5588 # you end up with a "frozen" computer, even though with patience
5589 # the test eventually succeeds (with a max line length of 256k).
5590 # Instead, let's just punt: use the minimum linelength reported by
5591 # all of the supported platforms: 8192 (on NT/2K/XP).
5592 lt_cv_sys_max_cmd_len=8192;
5596 # On AmigaOS with pdksh, this test takes hours, literally.
5597 # So we just punt and use a minimum line length of 8192.
5598 lt_cv_sys_max_cmd_len=8192;
5601 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5602 # This has been around since 386BSD, at least. Likely further.
5603 if test -x /sbin/sysctl; then
5604 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5605 elif test -x /usr/sbin/sysctl; then
5606 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5608 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5610 # And add a safety zone
5611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5616 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5617 lt_cv_sys_max_cmd_len=196608
5621 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5622 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5623 # nice to cause kernel panics so lets avoid the loop below.
5624 # First set a reasonable default.
5625 lt_cv_sys_max_cmd_len=16384
5627 if test -x /sbin/sysconfig; then
5628 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5629 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5634 lt_cv_sys_max_cmd_len=102400
5636 sysv5* | sco5v6* | sysv4.2uw2*)
5637 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5638 if test -n "$kargmax"; then
5639 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5641 lt_cv_sys_max_cmd_len=32768
5645 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5646 if test -n "$lt_cv_sys_max_cmd_len"; then
5647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5650 # Make teststring a little bigger before we do anything with it.
5651 # a 1K string should be a reasonable start.
5652 for i in 1 2 3 4 5 6 7 8 ; do
5653 teststring=$teststring$teststring
5655 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5656 # If test is not a shell built-in, we'll probably end up computing a
5657 # maximum length that is only half of the actual maximum length, but
5659 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5660 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5661 test $i != 17 # 1/2 MB should be enough
5664 teststring=$teststring$teststring
5666 # Only check the string length outside the loop.
5667 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5669 # Add a significant safety factor because C++ compilers can tack on
5670 # massive amounts of additional arguments before passing them to the
5671 # linker. It appears as though 1/2 is a usable value.
5672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5679 if test -n $lt_cv_sys_max_cmd_len ; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5681 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5684 $as_echo "none" >&6; }
5686 max_cmd_len=$lt_cv_sys_max_cmd_len
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5698 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5699 # Try some XSI features
5702 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5704 && eval 'test $(( 1 + 1 )) -eq 2 \
5705 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5708 $as_echo "$xsi_shell" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5712 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5714 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5716 && lt_shell_append=yes
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5718 $as_echo "$lt_shell_append" >&6; }
5721 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5731 # test EBCDIC or ASCII
5732 case `echo X|tr X '\101'` in
5733 A) # ASCII based system
5734 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5735 lt_SP2NL='tr \040 \012'
5736 lt_NL2SP='tr \015\012 \040\040'
5738 *) # EBCDIC based system
5739 lt_SP2NL='tr \100 \n'
5740 lt_NL2SP='tr \r\n \100\100'
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5753 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5754 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5757 lt_cv_ld_reload_flag='-r'
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5760 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5761 reload_flag=$lt_cv_ld_reload_flag
5762 case $reload_flag in
5764 *) reload_flag=" $reload_flag" ;;
5766 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5769 if test "$GCC" = yes; then
5770 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5772 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5785 if test -n "$ac_tool_prefix"; then
5786 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
5793 if test -n "$OBJDUMP"; then
5794 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 OBJDUMP=$ac_cv_prog_OBJDUMP
5814 if test -n "$OBJDUMP"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5816 $as_echo "$OBJDUMP" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5824 if test -z "$ac_cv_prog_OBJDUMP"; then
5825 ac_ct_OBJDUMP=$OBJDUMP
5826 # Extract the first word of "objdump", so it can be a program name with args.
5827 set dummy objdump; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5831 $as_echo_n "(cached) " >&6
5833 if test -n "$ac_ct_OBJDUMP"; then
5834 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5854 if test -n "$ac_ct_OBJDUMP"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5856 $as_echo "$ac_ct_OBJDUMP" >&6; }
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5862 if test "x$ac_ct_OBJDUMP" = x; then
5865 case $cross_compiling:$ac_tool_warned in
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5871 OBJDUMP=$ac_ct_OBJDUMP
5874 OBJDUMP="$ac_cv_prog_OBJDUMP"
5877 test -z "$OBJDUMP" && OBJDUMP=objdump
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5888 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5889 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5892 lt_cv_file_magic_cmd='$MAGIC_CMD'
5893 lt_cv_file_magic_test_file=
5894 lt_cv_deplibs_check_method='unknown'
5895 # Need to set the preceding variable on all platforms that support
5896 # interlibrary dependencies.
5897 # 'none' -- dependencies not supported.
5898 # `unknown' -- same as none, but documents that we really don't know.
5899 # 'pass_all' -- all dependencies passed with no checks.
5900 # 'test_compile' -- check by making test program.
5901 # 'file_magic [[regex]]' -- check by looking for files in library path
5902 # which responds to the $file_magic_cmd with a given extended regex.
5903 # If you have `file' or equivalent on your system and you're not sure
5904 # whether `pass_all' will *always* work, you probably want this one.
5908 lt_cv_deplibs_check_method=pass_all
5912 lt_cv_deplibs_check_method=pass_all
5916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5917 lt_cv_file_magic_cmd='/usr/bin/file -L'
5918 lt_cv_file_magic_test_file=/shlib/libc.so
5922 # func_win32_libid is a shell function defined in ltmain.sh
5923 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5924 lt_cv_file_magic_cmd='func_win32_libid'
5928 # Base MSYS/MinGW do not provide the 'file' command needed by
5929 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5930 # unless we find 'file', for example because we are cross-compiling.
5931 if ( file / ) >/dev/null 2>&1; then
5932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5933 lt_cv_file_magic_cmd='func_win32_libid'
5935 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5936 lt_cv_file_magic_cmd='$OBJDUMP -f'
5941 # use the weaker test based on 'objdump'. See mingw*.
5942 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5943 lt_cv_file_magic_cmd='$OBJDUMP -f'
5946 darwin* | rhapsody*)
5947 lt_cv_deplibs_check_method=pass_all
5950 freebsd* | dragonfly*)
5951 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5954 # Not sure whether the presence of OpenBSD here was a mistake.
5955 # Let's accept both of them until this is cleared up.
5956 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5957 lt_cv_file_magic_cmd=/usr/bin/file
5958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5962 lt_cv_deplibs_check_method=pass_all
5967 lt_cv_deplibs_check_method=pass_all
5970 hpux10.20* | hpux11*)
5971 lt_cv_file_magic_cmd=/usr/bin/file
5974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5978 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]'
5979 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5983 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5989 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5993 irix5* | irix6* | nonstopux*)
5995 *-32|*"-32 ") libmagic=32-bit;;
5996 *-n32|*"-n32 ") libmagic=N32;;
5997 *-64|*"-64 ") libmagic=64-bit;;
5998 *) libmagic=never-match;;
6000 lt_cv_deplibs_check_method=pass_all
6003 # This must be Linux ELF.
6004 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6005 lt_cv_deplibs_check_method=pass_all
6008 netbsd* | netbsdelf*-gnu)
6009 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6018 lt_cv_file_magic_cmd=/usr/bin/file
6019 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6023 lt_cv_deplibs_check_method=pass_all
6027 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6034 osf3* | osf4* | osf5*)
6035 lt_cv_deplibs_check_method=pass_all
6039 lt_cv_deplibs_check_method=pass_all
6043 lt_cv_deplibs_check_method=pass_all
6046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6047 lt_cv_deplibs_check_method=pass_all
6051 case $host_vendor in
6053 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]'
6054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6057 lt_cv_deplibs_check_method=pass_all
6060 lt_cv_file_magic_cmd='/bin/file'
6061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6064 lt_cv_file_magic_cmd='/bin/file'
6065 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6066 lt_cv_file_magic_test_file=/lib/libc.so
6069 lt_cv_deplibs_check_method=pass_all
6072 lt_cv_deplibs_check_method=pass_all
6078 lt_cv_deplibs_check_method=pass_all
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6084 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6085 file_magic_cmd=$lt_cv_file_magic_cmd
6086 deplibs_check_method=$lt_cv_deplibs_check_method
6087 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6100 if test -n "$ac_tool_prefix"; then
6101 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6102 set dummy ${ac_tool_prefix}ar; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_prog_AR+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6108 if test -n "$AR"; then
6109 ac_cv_prog_AR="$AR" # Let the user override the test.
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_AR="${ac_tool_prefix}ar"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 if test -n "$AR"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6131 $as_echo "$AR" >&6; }
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6139 if test -z "$ac_cv_prog_AR"; then
6141 # Extract the first word of "ar", so it can be a program name with args.
6142 set dummy ar; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6148 if test -n "$ac_ct_AR"; then
6149 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_ac_ct_AR="ar"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6169 if test -n "$ac_ct_AR"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6171 $as_echo "$ac_ct_AR" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6177 if test "x$ac_ct_AR" = x; then
6180 case $cross_compiling:$ac_tool_warned in
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184 ac_tool_warned=yes ;;
6192 test -z "$AR" && AR=ar
6193 test -z "$AR_FLAGS" && AR_FLAGS=cru
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}strip; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_STRIP+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6213 if test -n "$STRIP"; then
6214 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 STRIP=$ac_cv_prog_STRIP
6234 if test -n "$STRIP"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6236 $as_echo "$STRIP" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6244 if test -z "$ac_cv_prog_STRIP"; then
6246 # Extract the first word of "strip", so it can be a program name with args.
6247 set dummy strip; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6253 if test -n "$ac_ct_STRIP"; then
6254 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_ac_ct_STRIP="strip"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6274 if test -n "$ac_ct_STRIP"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6276 $as_echo "$ac_ct_STRIP" >&6; }
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6282 if test "x$ac_ct_STRIP" = x; then
6285 case $cross_compiling:$ac_tool_warned in
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289 ac_tool_warned=yes ;;
6294 STRIP="$ac_cv_prog_STRIP"
6297 test -z "$STRIP" && STRIP=:
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6312 if test -n "$RANLIB"; then
6313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 RANLIB=$ac_cv_prog_RANLIB
6333 if test -n "$RANLIB"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6335 $as_echo "$RANLIB" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6343 if test -z "$ac_cv_prog_RANLIB"; then
6344 ac_ct_RANLIB=$RANLIB
6345 # Extract the first word of "ranlib", so it can be a program name with args.
6346 set dummy ranlib; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6352 if test -n "$ac_ct_RANLIB"; then
6353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_ac_ct_RANLIB="ranlib"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6373 if test -n "$ac_ct_RANLIB"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6375 $as_echo "$ac_ct_RANLIB" >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6381 if test "x$ac_ct_RANLIB" = x; then
6384 case $cross_compiling:$ac_tool_warned in
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6390 RANLIB=$ac_ct_RANLIB
6393 RANLIB="$ac_cv_prog_RANLIB"
6396 test -z "$RANLIB" && RANLIB=:
6403 # Determine commands to create old-style static archives.
6404 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6405 old_postinstall_cmds='chmod 644 $oldlib'
6406 old_postuninstall_cmds=
6408 if test -n "$RANLIB"; then
6411 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6414 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6417 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6453 # If no C compiler was specified, use CC.
6456 # If no C compiler flags were specified, use CFLAGS.
6457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6459 # Allow CC to be a program name with arguments.
6463 # Check for command to grab the raw symbol name followed by C symbol from nm.
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6465 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6466 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6467 $as_echo_n "(cached) " >&6
6470 # These are sane defaults that work on at least a few old systems.
6471 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6473 # Character class describing NM global symbol codes.
6474 symcode='[BCDEGRST]'
6476 # Regexp to match symbols that can be accessed directly from C.
6477 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6479 # Define system-specific variables.
6484 cygwin* | mingw* | pw32* | cegcc*)
6485 symcode='[ABCDGISTW]'
6488 if test "$host_cpu" = ia64; then
6489 symcode='[ABCDEGRST]'
6493 symcode='[BCDEGRST]'
6496 symcode='[BCDEGQRST]'
6507 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6515 # If we're using GNU nm, then use its standard symbol codes.
6516 case `$NM -V 2>&1` in
6517 *GNU* | *'with BFD'*)
6518 symcode='[ABCDGIRSTW]' ;;
6521 # Transform an extracted symbol line into a proper C declaration.
6522 # Some systems (esp. on ia64) link data and code symbols differently,
6523 # so use this general approach.
6524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6526 # Transform an extracted symbol line into symbol name and symbol address
6527 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6528 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'"
6530 # Handle CRLF in mingw tool chain
6534 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6538 # Try without a prefix underscore, then with it.
6539 for ac_symprfx in "" "_"; do
6541 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6542 symxfrm="\\1 $ac_symprfx\\2 \\2"
6544 # Write the raw and C identifiers.
6545 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6546 # Fake it for dumpbin and say T for any non-static function
6547 # and D for any global variable.
6548 # Also find C++ and __fastcall symbols from MSVC++,
6549 # which start with @ or ?.
6550 lt_cv_sys_global_symbol_pipe="$AWK '"\
6551 " {last_section=section; section=\$ 3};"\
6552 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6553 " \$ 0!~/External *\|/{next};"\
6554 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6555 " {if(hide[section]) next};"\
6556 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6557 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6558 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6559 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6560 " ' prfx=^$ac_symprfx"
6562 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6565 # Check to see that the pipe works correctly.
6569 cat > conftest.$ac_ext <<_LT_EOF
6574 void nm_test_func(void);
6575 void nm_test_func(void){}
6579 int main(){nm_test_var='a';nm_test_func();return(0);}
6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6583 (eval $ac_compile) 2>&5
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; }; then
6587 # Now try to grab the symbols.
6589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6590 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593 test $ac_status = 0; } && test -s "$nlist"; then
6594 # Try sorting and uniquifying the output.
6595 if sort "$nlist" | uniq > "$nlist"T; then
6596 mv -f "$nlist"T "$nlist"
6601 # Make sure that we snagged all the symbols we need.
6602 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6603 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6604 cat <<_LT_EOF > conftest.$ac_ext
6610 # Now generate the symbol file.
6611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6613 cat <<_LT_EOF >> conftest.$ac_ext
6615 /* The mapping between symbol names and symbols. */
6620 lt__PROGRAM__LTX_preloaded_symbols[] =
6622 { "@PROGRAM@", (void *) 0 },
6624 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6625 cat <<\_LT_EOF >> conftest.$ac_ext
6629 /* This works around a problem in FreeBSD linker */
6630 #ifdef FREEBSD_WORKAROUND
6631 static const void *lt_preloaded_setup() {
6632 return lt__PROGRAM__LTX_preloaded_symbols;
6640 # Now try linking the two files.
6641 mv conftest.$ac_objext conftstm.$ac_objext
6642 lt_save_LIBS="$LIBS"
6643 lt_save_CFLAGS="$CFLAGS"
6644 LIBS="conftstm.$ac_objext"
6645 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6647 (eval $ac_link) 2>&5
6649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6650 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6653 LIBS="$lt_save_LIBS"
6654 CFLAGS="$lt_save_CFLAGS"
6656 echo "cannot find nm_test_func in $nlist" >&5
6659 echo "cannot find nm_test_var in $nlist" >&5
6662 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6665 echo "$progname: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 rm -rf conftest* conftst*
6670 # Do not use the global_symbol_pipe unless it works.
6671 if test "$pipe_works" = yes; then
6674 lt_cv_sys_global_symbol_pipe=
6680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6681 lt_cv_sys_global_symbol_to_cdecl=
6683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6685 $as_echo "failed" >&6; }
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6688 $as_echo "ok" >&6; }
6713 # Check whether --enable-libtool-lock was given.
6714 if test "${enable_libtool_lock+set}" = set; then :
6715 enableval=$enable_libtool_lock;
6718 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6720 # Some flags need to be propagated to the compiler or linker for good
6724 # Find out which ABI we are using.
6725 echo 'int i;' > conftest.$ac_ext
6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6727 (eval $ac_compile) 2>&5
6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; }; then
6731 case `/usr/bin/file conftest.$ac_objext` in
6743 # Find out which ABI we are using.
6744 echo '#line 6744 "configure"' > conftest.$ac_ext
6745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6746 (eval $ac_compile) 2>&5
6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; }; then
6750 if test "$lt_cv_prog_gnu_ld" = yes; then
6751 case `/usr/bin/file conftest.$ac_objext` in
6753 LD="${LD-ld} -melf32bsmip"
6756 LD="${LD-ld} -melf32bmipn32"
6759 LD="${LD-ld} -melf64bmip"
6763 case `/usr/bin/file conftest.$ac_objext` in
6779 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6780 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6781 # Find out which ABI we are using.
6782 echo 'int i;' > conftest.$ac_ext
6783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6784 (eval $ac_compile) 2>&5
6786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787 test $ac_status = 0; }; then
6788 case `/usr/bin/file conftest.o` in
6791 x86_64-*kfreebsd*-gnu)
6792 LD="${LD-ld} -m elf_i386_fbsd"
6795 LD="${LD-ld} -m elf_i386"
6797 ppc64-*linux*|powerpc64-*linux*)
6798 LD="${LD-ld} -m elf32ppclinux"
6801 LD="${LD-ld} -m elf_s390"
6804 LD="${LD-ld} -m elf32_sparc"
6810 x86_64-*kfreebsd*-gnu)
6811 LD="${LD-ld} -m elf_x86_64_fbsd"
6814 LD="${LD-ld} -m elf_x86_64"
6816 ppc*-*linux*|powerpc*-*linux*)
6817 LD="${LD-ld} -m elf64ppc"
6819 s390*-*linux*|s390*-*tpf*)
6820 LD="${LD-ld} -m elf64_s390"
6823 LD="${LD-ld} -m elf64_sparc"
6833 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6834 SAVE_CFLAGS="$CFLAGS"
6835 CFLAGS="$CFLAGS -belf"
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6837 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6838 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6858 if ac_fn_c_try_link "$LINENO"; then :
6859 lt_cv_cc_needs_belf=yes
6861 lt_cv_cc_needs_belf=no
6863 rm -f core conftest.err conftest.$ac_objext \
6864 conftest$ac_exeext conftest.$ac_ext
6866 ac_cpp='$CPP $CPPFLAGS'
6867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6873 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6874 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6875 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6876 CFLAGS="$SAVE_CFLAGS"
6880 # Find out which ABI we are using.
6881 echo 'int i;' > conftest.$ac_ext
6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883 (eval $ac_compile) 2>&5
6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886 test $ac_status = 0; }; then
6887 case `/usr/bin/file conftest.o` in
6889 case $lt_cv_prog_gnu_ld in
6890 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6892 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6904 need_locks="$enable_libtool_lock"
6908 rhapsody* | darwin*)
6909 if test -n "$ac_tool_prefix"; then
6910 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6911 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6917 if test -n "$DSYMUTIL"; then
6918 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6938 if test -n "$DSYMUTIL"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6940 $as_echo "$DSYMUTIL" >&6; }
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6948 if test -z "$ac_cv_prog_DSYMUTIL"; then
6949 ac_ct_DSYMUTIL=$DSYMUTIL
6950 # Extract the first word of "dsymutil", so it can be a program name with args.
6951 set dummy dsymutil; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6957 if test -n "$ac_ct_DSYMUTIL"; then
6958 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6978 if test -n "$ac_ct_DSYMUTIL"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6980 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6986 if test "x$ac_ct_DSYMUTIL" = x; then
6989 case $cross_compiling:$ac_tool_warned in
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993 ac_tool_warned=yes ;;
6995 DSYMUTIL=$ac_ct_DSYMUTIL
6998 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7009 if test -n "$NMEDIT"; then
7010 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 NMEDIT=$ac_cv_prog_NMEDIT
7030 if test -n "$NMEDIT"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7032 $as_echo "$NMEDIT" >&6; }
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7040 if test -z "$ac_cv_prog_NMEDIT"; then
7041 ac_ct_NMEDIT=$NMEDIT
7042 # Extract the first word of "nmedit", so it can be a program name with args.
7043 set dummy nmedit; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
7049 if test -n "$ac_ct_NMEDIT"; then
7050 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7070 if test -n "$ac_ct_NMEDIT"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7072 $as_echo "$ac_ct_NMEDIT" >&6; }
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7078 if test "x$ac_ct_NMEDIT" = x; then
7081 case $cross_compiling:$ac_tool_warned in
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085 ac_tool_warned=yes ;;
7087 NMEDIT=$ac_ct_NMEDIT
7090 NMEDIT="$ac_cv_prog_NMEDIT"
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_LIPO+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7101 if test -n "$LIPO"; then
7102 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 LIPO=$ac_cv_prog_LIPO
7122 if test -n "$LIPO"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7124 $as_echo "$LIPO" >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7132 if test -z "$ac_cv_prog_LIPO"; then
7134 # Extract the first word of "lipo", so it can be a program name with args.
7135 set dummy lipo; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7141 if test -n "$ac_ct_LIPO"; then
7142 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_LIPO="lipo"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7162 if test -n "$ac_ct_LIPO"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7164 $as_echo "$ac_ct_LIPO" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7170 if test "x$ac_ct_LIPO" = x; then
7173 case $cross_compiling:$ac_tool_warned in
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7182 LIPO="$ac_cv_prog_LIPO"
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}otool; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7193 if test -n "$OTOOL"; then
7194 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 OTOOL=$ac_cv_prog_OTOOL
7214 if test -n "$OTOOL"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7216 $as_echo "$OTOOL" >&6; }
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7224 if test -z "$ac_cv_prog_OTOOL"; then
7226 # Extract the first word of "otool", so it can be a program name with args.
7227 set dummy otool; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7233 if test -n "$ac_ct_OTOOL"; then
7234 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_ac_ct_OTOOL="otool"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7254 if test -n "$ac_ct_OTOOL"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7256 $as_echo "$ac_ct_OTOOL" >&6; }
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7262 if test "x$ac_ct_OTOOL" = x; then
7265 case $cross_compiling:$ac_tool_warned in
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7274 OTOOL="$ac_cv_prog_OTOOL"
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7285 if test -n "$OTOOL64"; then
7286 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 OTOOL64=$ac_cv_prog_OTOOL64
7306 if test -n "$OTOOL64"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7308 $as_echo "$OTOOL64" >&6; }
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7316 if test -z "$ac_cv_prog_OTOOL64"; then
7317 ac_ct_OTOOL64=$OTOOL64
7318 # Extract the first word of "otool64", so it can be a program name with args.
7319 set dummy otool64; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7325 if test -n "$ac_ct_OTOOL64"; then
7326 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_ac_ct_OTOOL64="otool64"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7346 if test -n "$ac_ct_OTOOL64"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7348 $as_echo "$ac_ct_OTOOL64" >&6; }
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7354 if test "x$ac_ct_OTOOL64" = x; then
7357 case $cross_compiling:$ac_tool_warned in
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361 ac_tool_warned=yes ;;
7363 OTOOL64=$ac_ct_OTOOL64
7366 OTOOL64="$ac_cv_prog_OTOOL64"
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7396 $as_echo_n "checking for -single_module linker flag... " >&6; }
7397 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7398 $as_echo_n "(cached) " >&6
7400 lt_cv_apple_cc_single_mod=no
7401 if test -z "${LT_MULTI_MODULE}"; then
7402 # By default we will add the -single_module flag. You can override
7403 # by either setting the environment variable LT_MULTI_MODULE
7404 # non-empty at configure time, or by adding -multi_module to the
7406 rm -rf libconftest.dylib*
7407 echo "int foo(void){return 1;}" > conftest.c
7408 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7409 -dynamiclib -Wl,-single_module conftest.c" >&5
7410 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7411 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7413 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7414 lt_cv_apple_cc_single_mod=yes
7416 cat conftest.err >&5
7418 rm -rf libconftest.dylib*
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7423 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7425 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7426 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7429 lt_cv_ld_exported_symbols_list=no
7430 save_LDFLAGS=$LDFLAGS
7431 echo "_main" > conftest.sym
7432 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7444 if ac_fn_c_try_link "$LINENO"; then :
7445 lt_cv_ld_exported_symbols_list=yes
7447 lt_cv_ld_exported_symbols_list=no
7449 rm -f core conftest.err conftest.$ac_objext \
7450 conftest$ac_exeext conftest.$ac_ext
7451 LDFLAGS="$save_LDFLAGS"
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7455 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7457 rhapsody* | darwin1.[012])
7458 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7460 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7461 darwin*) # darwin 5.x on
7462 # if running on 10.5 or later, the deployment target defaults
7463 # to the OS version, if on x86, and 10.4, the deployment
7464 # target defaults to 10.4. Don't you love it?
7465 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7466 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7467 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7469 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7471 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7475 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7476 _lt_dar_single_mod='$single_module'
7478 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7479 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7481 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7483 if test "$DSYMUTIL" != ":"; then
7484 _lt_dsymutil='~$DSYMUTIL $lib || :'
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7493 $as_echo_n "checking for ANSI C header files... " >&6; }
7494 if test "${ac_cv_header_stdc+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7512 if ac_fn_c_try_compile "$LINENO"; then :
7513 ac_cv_header_stdc=yes
7515 ac_cv_header_stdc=no
7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7519 if test $ac_cv_header_stdc = yes; then
7520 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7527 $EGREP "memchr" >/dev/null 2>&1; then :
7530 ac_cv_header_stdc=no
7536 if test $ac_cv_header_stdc = yes; then
7537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7544 $EGREP "free" >/dev/null 2>&1; then :
7547 ac_cv_header_stdc=no
7553 if test $ac_cv_header_stdc = yes; then
7554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7555 if test "$cross_compiling" = yes; then :
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7562 #if ((' ' & 0x0FF) == 0x020)
7563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7566 # define ISLOWER(c) \
7567 (('a' <= (c) && (c) <= 'i') \
7568 || ('j' <= (c) && (c) <= 'r') \
7569 || ('s' <= (c) && (c) <= 'z'))
7570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7578 for (i = 0; i < 256; i++)
7579 if (XOR (islower (i), ISLOWER (i))
7580 || toupper (i) != TOUPPER (i))
7585 if ac_fn_c_try_run "$LINENO"; then :
7588 ac_cv_header_stdc=no
7590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7591 conftest.$ac_objext conftest.beam conftest.$ac_ext
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7597 $as_echo "$ac_cv_header_stdc" >&6; }
7598 if test $ac_cv_header_stdc = yes; then
7600 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7605 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7606 inttypes.h stdint.h unistd.h
7608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7609 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7611 eval as_val=\$$as_ac_Header
7612 if test "x$as_val" = x""yes; then :
7613 cat >>confdefs.h <<_ACEOF
7614 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7622 for ac_header in dlfcn.h
7624 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7626 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7627 cat >>confdefs.h <<_ACEOF
7628 #define HAVE_DLFCN_H 1
7638 ac_cpp='$CXXCPP $CPPFLAGS'
7639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7642 if test -z "$CXX"; then
7643 if test -n "$CCC"; then
7646 if test -n "$ac_tool_prefix"; then
7647 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if test "${ac_cv_prog_CXX+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7656 if test -n "$CXX"; then
7657 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7666 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 if test -n "$CXX"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7679 $as_echo "$CXX" >&6; }
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7686 test -n "$CXX" && break
7689 if test -z "$CXX"; then
7691 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7693 # Extract the first word of "$ac_prog", so it can be a program name with args.
7694 set dummy $ac_prog; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7700 if test -n "$ac_ct_CXX"; then
7701 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710 ac_cv_prog_ac_ct_CXX="$ac_prog"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7721 if test -n "$ac_ct_CXX"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7723 $as_echo "$ac_ct_CXX" >&6; }
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7730 test -n "$ac_ct_CXX" && break
7733 if test "x$ac_ct_CXX" = x; then
7736 case $cross_compiling:$ac_tool_warned in
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740 ac_tool_warned=yes ;;
7748 # Provide some information about the compiler.
7749 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7752 for ac_option in --version -v -V -qversion; do
7753 { { ac_try="$ac_compiler $ac_option >&5"
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7759 $as_echo "$ac_try_echo"; } >&5
7760 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7762 if test -s conftest.err; then
7764 ... rest of stderr output deleted ...
7765 10q' conftest.err >conftest.er1
7766 cat conftest.er1 >&5
7768 rm -f conftest.er1 conftest.err
7769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7770 test $ac_status = 0; }
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7774 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7775 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7792 if ac_fn_cxx_try_compile "$LINENO"; then :
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7802 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7803 if test $ac_compiler_gnu = yes; then
7808 ac_test_CXXFLAGS=${CXXFLAGS+set}
7809 ac_save_CXXFLAGS=$CXXFLAGS
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7811 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7812 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7815 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7816 ac_cxx_werror_flag=yes
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7830 if ac_fn_cxx_try_compile "$LINENO"; then :
7831 ac_cv_prog_cxx_g=yes
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7845 if ac_fn_cxx_try_compile "$LINENO"; then :
7848 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7861 if ac_fn_cxx_try_compile "$LINENO"; then :
7862 ac_cv_prog_cxx_g=yes
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7872 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7873 if test "$ac_test_CXXFLAGS" = set; then
7874 CXXFLAGS=$ac_save_CXXFLAGS
7875 elif test $ac_cv_prog_cxx_g = yes; then
7876 if test "$GXX" = yes; then
7882 if test "$GXX" = yes; then
7889 ac_cpp='$CXXCPP $CPPFLAGS'
7890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7894 depcc="$CXX" am_compiler_list=
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7897 $as_echo_n "checking dependency style of $depcc... " >&6; }
7898 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7902 # We make a subdir and do the tests there. Otherwise we can end up
7903 # making bogus files that we don't know about and never remove. For
7904 # instance it was reported that on HP-UX the gcc test will end up
7905 # making a dummy file named `D' -- because `-MD' means `put the output
7908 # Copy depcomp to subdir because otherwise we won't find it if we're
7909 # using a relative directory.
7910 cp "$am_depcomp" conftest.dir
7912 # We will build objects and dependencies in a subdirectory because
7913 # it helps to detect inapplicable dependency modes. For instance
7914 # both Tru64's cc and ICC support -MD to output dependencies as a
7915 # side effect of compilation, but ICC will put the dependencies in
7916 # the current directory while Tru64 will put them in the object
7920 am_cv_CXX_dependencies_compiler_type=none
7921 if test "$am_compiler_list" = ""; then
7922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7925 case " $depcc " in #(
7926 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7929 for depmode in $am_compiler_list; do
7930 # Setup a source with many dependencies, because some compilers
7931 # like to wrap large dependency lists on column 80 (with \), and
7932 # we should not choose a depcomp mode which is confused by this.
7934 # We need to recreate these files for each test, as the compiler may
7935 # overwrite some of them when testing with obscure command lines.
7936 # This happens at least with the AIX C compiler.
7938 for i in 1 2 3 4 5 6; do
7939 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7940 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7941 # Solaris 8's {/usr,}/bin/sh.
7942 touch sub/conftst$i.h
7944 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7946 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7947 # mode. It turns out that the SunPro C++ compiler does not properly
7948 # handle `-M -o', and we need to detect this. Also, some Intel
7949 # versions had trouble with output in subdirs
7950 am__obj=sub/conftest.${OBJEXT-o}
7951 am__minus_obj="-o $am__obj"
7954 # This depmode causes a compiler race in universal mode.
7955 test "$am__universal" = false || continue
7958 # after this tag, mechanisms are not by side-effect, so they'll
7959 # only be used when explicitly requested
7960 if test "x$enable_dependency_tracking" = xyes; then
7966 msvisualcpp | msvcmsys)
7967 # This compiler won't grok `-c -o', but also, the minuso test has
7968 # not run yet. These depmodes are late enough in the game, and
7969 # so weak that their functioning should not be impacted.
7970 am__obj=conftest.${OBJEXT-o}
7975 if depmode=$depmode \
7976 source=sub/conftest.c object=$am__obj \
7977 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7978 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7979 >/dev/null 2>conftest.err &&
7980 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7981 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7982 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7983 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7984 # icc doesn't choke on unknown options, it will just issue warnings
7985 # or remarks (even with -Werror). So we grep stderr for any message
7986 # that says an option was ignored or not supported.
7987 # When given -MP, icc 7.0 and 7.1 complain thusly:
7988 # icc: Command line warning: ignoring option '-M'; no argument required
7989 # The diagnosis changed in icc 8.0:
7990 # icc: Command line remark: option '-MP' not supported
7991 if (grep 'ignoring option' conftest.err ||
7992 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7993 am_cv_CXX_dependencies_compiler_type=$depmode
8002 am_cv_CXX_dependencies_compiler_type=none
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8007 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8008 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8011 test "x$enable_dependency_tracking" != xno \
8012 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8013 am__fastdepCXX_TRUE=
8014 am__fastdepCXX_FALSE='#'
8016 am__fastdepCXX_TRUE='#'
8017 am__fastdepCXX_FALSE=
8021 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8022 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8023 (test "X$CXX" != "Xg++"))) ; then
8025 ac_cpp='$CXXCPP $CPPFLAGS'
8026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8030 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8031 if test -z "$CXXCPP"; then
8032 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8035 # Double quotes because CXXCPP needs to be expanded
8036 for CXXCPP in "$CXX -E" "/lib/cpp"
8039 for ac_cxx_preproc_warn_flag in '' yes
8041 # Use a header file that comes with gcc, so configuring glibc
8042 # with a fresh cross-compiler works.
8043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8044 # <limits.h> exists even on freestanding compilers.
8045 # On the NeXT, cc -E runs the code through the compiler's parser,
8046 # not just through cpp. "Syntax error" is here to catch this case.
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8050 # include <limits.h>
8052 # include <assert.h>
8056 if ac_fn_cxx_try_cpp "$LINENO"; then :
8059 # Broken: fails on valid input.
8062 rm -f conftest.err conftest.$ac_ext
8064 # OK, works on sane cases. Now check whether nonexistent headers
8065 # can be detected and how.
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8068 #include <ac_nonexistent.h>
8070 if ac_fn_cxx_try_cpp "$LINENO"; then :
8071 # Broken: success on invalid input.
8074 # Passes both tests.
8078 rm -f conftest.err conftest.$ac_ext
8081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8082 rm -f conftest.err conftest.$ac_ext
8083 if $ac_preproc_ok; then :
8088 ac_cv_prog_CXXCPP=$CXXCPP
8091 CXXCPP=$ac_cv_prog_CXXCPP
8093 ac_cv_prog_CXXCPP=$CXXCPP
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8096 $as_echo "$CXXCPP" >&6; }
8098 for ac_cxx_preproc_warn_flag in '' yes
8100 # Use a header file that comes with gcc, so configuring glibc
8101 # with a fresh cross-compiler works.
8102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8103 # <limits.h> exists even on freestanding compilers.
8104 # On the NeXT, cc -E runs the code through the compiler's parser,
8105 # not just through cpp. "Syntax error" is here to catch this case.
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8109 # include <limits.h>
8111 # include <assert.h>
8115 if ac_fn_cxx_try_cpp "$LINENO"; then :
8118 # Broken: fails on valid input.
8121 rm -f conftest.err conftest.$ac_ext
8123 # OK, works on sane cases. Now check whether nonexistent headers
8124 # can be detected and how.
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 #include <ac_nonexistent.h>
8129 if ac_fn_cxx_try_cpp "$LINENO"; then :
8130 # Broken: success on invalid input.
8133 # Passes both tests.
8137 rm -f conftest.err conftest.$ac_ext
8140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8141 rm -f conftest.err conftest.$ac_ext
8142 if $ac_preproc_ok; then :
8145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8147 _lt_caught_CXX_error=yes; }
8151 ac_cpp='$CXXCPP $CPPFLAGS'
8152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8157 _lt_caught_CXX_error=yes
8174 # Check whether --enable-shared was given.
8175 if test "${enable_shared+set}" = set; then :
8176 enableval=$enable_shared; p=${PACKAGE-default}
8178 yes) enable_shared=yes ;;
8179 no) enable_shared=no ;;
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for pkg in $enableval; do
8186 if test "X$pkg" = "X$p"; then
8205 # Check whether --enable-static was given.
8206 if test "${enable_static+set}" = set; then :
8207 enableval=$enable_static; p=${PACKAGE-default}
8209 yes) enable_static=yes ;;
8210 no) enable_static=no ;;
8213 # Look at the argument we got. We use all the common list separators.
8214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8215 for pkg in $enableval; do
8217 if test "X$pkg" = "X$p"; then
8237 # Check whether --with-pic was given.
8238 if test "${with_pic+set}" = set; then :
8239 withval=$with_pic; pic_mode="$withval"
8245 test -z "$pic_mode" && pic_mode=default
8253 # Check whether --enable-fast-install was given.
8254 if test "${enable_fast_install+set}" = set; then :
8255 enableval=$enable_fast_install; p=${PACKAGE-default}
8257 yes) enable_fast_install=yes ;;
8258 no) enable_fast_install=no ;;
8260 enable_fast_install=no
8261 # Look at the argument we got. We use all the common list separators.
8262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8263 for pkg in $enableval; do
8265 if test "X$pkg" = "X$p"; then
8266 enable_fast_install=yes
8273 enable_fast_install=yes
8286 # This can be used to rebuild libtool when needed
8287 LIBTOOL_DEPS="$ltmain"
8289 # Always use our own libtool.
8290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8316 test -z "$LN_S" && LN_S="ln -s"
8331 if test -n "${ZSH_VERSION+set}" ; then
8332 setopt NO_GLOB_SUBST
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8336 $as_echo_n "checking for objdir... " >&6; }
8337 if test "${lt_cv_objdir+set}" = set; then :
8338 $as_echo_n "(cached) " >&6
8340 rm -f .libs 2>/dev/null
8341 mkdir .libs 2>/dev/null
8342 if test -d .libs; then
8345 # MS-DOS does not allow filenames that begin with a dot.
8348 rmdir .libs 2>/dev/null
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8351 $as_echo "$lt_cv_objdir" >&6; }
8352 objdir=$lt_cv_objdir
8358 cat >>confdefs.h <<_ACEOF
8359 #define LT_OBJDIR "$lt_cv_objdir/"
8380 # AIX sometimes has problems with the GCC collect2 program. For some
8381 # reason, if we set the COLLECT_NAMES environment variable, the problems
8382 # vanish in a puff of smoke.
8383 if test "X${COLLECT_NAMES+set}" != Xset; then
8385 export COLLECT_NAMES
8390 # Sed substitution that helps us do robust quoting. It backslashifies
8391 # metacharacters that are still active within double-quoted strings.
8392 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8394 # Same as above, but do not quote variable references.
8395 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8397 # Sed substitution to delay expansion of an escaped shell variable in a
8398 # double_quote_subst'ed string.
8399 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8401 # Sed substitution to delay expansion of an escaped single quote.
8402 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8404 # Sed substitution to avoid accidental globbing in evaled expressions
8405 no_glob_subst='s/\*/\\\*/g'
8409 can_build_shared=yes
8411 # All known linkers require a `.a' archive for static linking (except MSVC,
8412 # which needs '.lib').
8415 with_gnu_ld="$lt_cv_prog_gnu_ld"
8418 old_CFLAGS="$CFLAGS"
8420 # Set sane defaults for various variables
8421 test -z "$CC" && CC=cc
8422 test -z "$LTCC" && LTCC=$CC
8423 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8424 test -z "$LD" && LD=ld
8425 test -z "$ac_objext" && ac_objext=o
8427 for cc_temp in $compiler""; do
8429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8435 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8438 # Only perform the check for file, if the check method requires it
8439 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8440 case $deplibs_check_method in
8442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8444 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8445 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8446 $as_echo_n "(cached) " >&6
8450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8453 lt_save_MAGIC_CMD="$MAGIC_CMD"
8454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8455 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8456 for ac_dir in $ac_dummy; do
8458 test -z "$ac_dir" && ac_dir=.
8459 if test -f $ac_dir/${ac_tool_prefix}file; then
8460 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8461 if test -n "$file_magic_test_file"; then
8462 case $deplibs_check_method in
8464 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8466 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8467 $EGREP "$file_magic_regex" > /dev/null; then
8472 *** Warning: the command libtool uses to detect shared libraries,
8473 *** $file_magic_cmd, produces output that libtool cannot recognize.
8474 *** The result is that libtool may fail to recognize shared libraries
8475 *** as such. This will affect the creation of libtool libraries that
8476 *** depend on shared libraries, but programs linked with such libtool
8477 *** libraries will work regardless of this problem. Nevertheless, you
8478 *** may want to report the problem to your system manager and/or to
8479 *** bug-libtool@gnu.org
8489 MAGIC_CMD="$lt_save_MAGIC_CMD"
8494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8495 if test -n "$MAGIC_CMD"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8497 $as_echo "$MAGIC_CMD" >&6; }
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8507 if test -z "$lt_cv_path_MAGIC_CMD"; then
8508 if test -n "$ac_tool_prefix"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8510 $as_echo_n "checking for file... " >&6; }
8511 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
8516 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8519 lt_save_MAGIC_CMD="$MAGIC_CMD"
8520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8521 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8522 for ac_dir in $ac_dummy; do
8524 test -z "$ac_dir" && ac_dir=.
8525 if test -f $ac_dir/file; then
8526 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8527 if test -n "$file_magic_test_file"; then
8528 case $deplibs_check_method in
8530 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8533 $EGREP "$file_magic_regex" > /dev/null; then
8538 *** Warning: the command libtool uses to detect shared libraries,
8539 *** $file_magic_cmd, produces output that libtool cannot recognize.
8540 *** The result is that libtool may fail to recognize shared libraries
8541 *** as such. This will affect the creation of libtool libraries that
8542 *** depend on shared libraries, but programs linked with such libtool
8543 *** libraries will work regardless of this problem. Nevertheless, you
8544 *** may want to report the problem to your system manager and/or to
8545 *** bug-libtool@gnu.org
8555 MAGIC_CMD="$lt_save_MAGIC_CMD"
8560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8561 if test -n "$MAGIC_CMD"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8563 $as_echo "$MAGIC_CMD" >&6; }
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8579 # Use C for the default configuration in the libtool script
8583 ac_cpp='$CPP $CPPFLAGS'
8584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8589 # Source file extension for C test sources.
8592 # Object file extension for compiled C test sources.
8596 # Code to be used in simple compile tests
8597 lt_simple_compile_test_code="int some_variable = 0;"
8599 # Code to be used in simple link tests
8600 lt_simple_link_test_code='int main(){return(0);}'
8608 # If no C compiler was specified, use CC.
8611 # If no C compiler flags were specified, use CFLAGS.
8612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8614 # Allow CC to be a program name with arguments.
8617 # Save the default compiler, since it gets overwritten when the other
8618 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8619 compiler_DEFAULT=$CC
8621 # save warnings/boilerplate of simple test code
8622 ac_outfile=conftest.$ac_objext
8623 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8624 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8625 _lt_compiler_boilerplate=`cat conftest.err`
8628 ac_outfile=conftest.$ac_objext
8629 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8630 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8631 _lt_linker_boilerplate=`cat conftest.err`
8636 ## There is no encapsulation within the following macros, do not change
8637 ## the running order or otherwise move them around unless you know exactly
8638 ## what you are doing...
8639 if test -n "$compiler"; then
8641 lt_prog_compiler_no_builtin_flag=
8643 if test "$GCC" = yes; then
8644 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8647 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8648 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
8651 lt_cv_prog_compiler_rtti_exceptions=no
8652 ac_outfile=conftest.$ac_objext
8653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8654 lt_compiler_flag="-fno-rtti -fno-exceptions"
8655 # Insert the option either (1) after the last *FLAGS variable, or
8656 # (2) before a word containing "conftest.", or (3) at the end.
8657 # Note that $ac_compile itself does not contain backslashes and begins
8658 # with a dollar sign (not a hyphen), so the echo should work correctly.
8659 # The option is referenced via a variable to avoid confusing sed.
8660 lt_compile=`echo "$ac_compile" | $SED \
8661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8663 -e 's:$: $lt_compiler_flag:'`
8664 (eval echo "\"\$as_me:8664: $lt_compile\"" >&5)
8665 (eval "$lt_compile" 2>conftest.err)
8667 cat conftest.err >&5
8668 echo "$as_me:8668: \$? = $ac_status" >&5
8669 if (exit $ac_status) && test -s "$ac_outfile"; then
8670 # The compiler can only warn and ignore the option if not recognized
8671 # So say no if there are warnings other than the usual output.
8672 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8675 lt_cv_prog_compiler_rtti_exceptions=yes
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8682 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8684 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8685 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8697 lt_prog_compiler_wl=
8698 lt_prog_compiler_pic=
8699 lt_prog_compiler_static=
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8702 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8704 if test "$GCC" = yes; then
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_static='-static'
8710 # All AIX code is PIC.
8711 if test "$host_cpu" = ia64; then
8712 # AIX 5 now supports IA64 processor
8713 lt_prog_compiler_static='-Bstatic'
8720 # see comment about AmigaOS4 .so support
8721 lt_prog_compiler_pic='-fPIC'
8724 # FIXME: we need at least 68020 code to build shared libraries, but
8725 # adding the `-m68020' flag to GCC prevents building anything better,
8727 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8733 # PIC is the default for these OSes.
8736 mingw* | cygwin* | pw32* | os2* | cegcc*)
8737 # This hack is so that the source file can tell whether it is being
8738 # built for inclusion in a dll (and should export symbols for example).
8739 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8740 # (--disable-auto-import) libraries
8741 lt_prog_compiler_pic='-DDLL_EXPORT'
8744 darwin* | rhapsody*)
8745 # PIC is the default on this platform
8746 # Common symbols not allowed in MH_DYLIB files
8747 lt_prog_compiler_pic='-fno-common'
8751 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8752 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8753 # sets the default TLS model and affects inlining.
8759 lt_prog_compiler_pic='-fPIC'
8765 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8766 # Instead, we relocate shared libraries at runtime.
8770 # Just because we use GCC doesn't mean we suddenly get shared libraries
8771 # on systems that don't support them.
8772 lt_prog_compiler_can_build_shared=no
8777 # QNX uses GNU C++, but need to define -shared option too, otherwise
8779 lt_prog_compiler_pic='-fPIC -shared'
8783 if test -d /usr/nec; then
8784 lt_prog_compiler_pic=-Kconform_pic
8789 lt_prog_compiler_pic='-fPIC'
8793 # PORTME Check for flag to pass linker flags through the system compiler.
8796 lt_prog_compiler_wl='-Wl,'
8797 if test "$host_cpu" = ia64; then
8798 # AIX 5 now supports IA64 processor
8799 lt_prog_compiler_static='-Bstatic'
8801 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8805 mingw* | cygwin* | pw32* | os2* | cegcc*)
8806 # This hack is so that the source file can tell whether it is being
8807 # built for inclusion in a dll (and should export symbols for example).
8808 lt_prog_compiler_pic='-DDLL_EXPORT'
8811 hpux9* | hpux10* | hpux11*)
8812 lt_prog_compiler_wl='-Wl,'
8813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8820 lt_prog_compiler_pic='+Z'
8823 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8824 lt_prog_compiler_static='${wl}-a ${wl}archive'
8827 irix5* | irix6* | nonstopux*)
8828 lt_prog_compiler_wl='-Wl,'
8829 # PIC (with -KPIC) is the default.
8830 lt_prog_compiler_static='-non_shared'
8833 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8834 case $cc_basename in
8835 # old Intel for x86_64 which still supported -KPIC.
8837 lt_prog_compiler_wl='-Wl,'
8838 lt_prog_compiler_pic='-KPIC'
8839 lt_prog_compiler_static='-static'
8841 # icc used to be incompatible with GCC.
8842 # ICC 10 doesn't accept -KPIC any more.
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_pic='-fPIC'
8846 lt_prog_compiler_static='-static'
8848 # Lahey Fortran 8.1.
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='--shared'
8852 lt_prog_compiler_static='--static'
8854 pgcc* | pgf77* | pgf90* | pgf95*)
8855 # Portland Group compilers (*not* the Pentium gcc compiler,
8856 # which looks to be a dead project)
8857 lt_prog_compiler_wl='-Wl,'
8858 lt_prog_compiler_pic='-fpic'
8859 lt_prog_compiler_static='-Bstatic'
8862 lt_prog_compiler_wl='-Wl,'
8863 # All Alpha code is PIC.
8864 lt_prog_compiler_static='-non_shared'
8867 # IBM XL C 8.0/Fortran 10.1 on PPC
8868 lt_prog_compiler_wl='-Wl,'
8869 lt_prog_compiler_pic='-qpic'
8870 lt_prog_compiler_static='-qstaticlink'
8873 case `$CC -V 2>&1 | sed 5q` in
8876 lt_prog_compiler_pic='-KPIC'
8877 lt_prog_compiler_static='-Bstatic'
8878 lt_prog_compiler_wl='-Wl,'
8881 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8882 lt_prog_compiler_pic='-KPIC'
8883 lt_prog_compiler_static='-Bstatic'
8884 lt_prog_compiler_wl=''
8892 lt_prog_compiler_pic='-KPIC'
8893 lt_prog_compiler_static='-Bstatic'
8897 # QNX uses GNU C++, but need to define -shared option too, otherwise
8899 lt_prog_compiler_pic='-fPIC -shared'
8902 osf3* | osf4* | osf5*)
8903 lt_prog_compiler_wl='-Wl,'
8904 # All OSF/1 code is PIC.
8905 lt_prog_compiler_static='-non_shared'
8909 lt_prog_compiler_static='-non_shared'
8913 lt_prog_compiler_pic='-KPIC'
8914 lt_prog_compiler_static='-Bstatic'
8915 case $cc_basename in
8917 lt_prog_compiler_wl='-Qoption ld ';;
8919 lt_prog_compiler_wl='-Wl,';;
8924 lt_prog_compiler_wl='-Qoption ld '
8925 lt_prog_compiler_pic='-PIC'
8926 lt_prog_compiler_static='-Bstatic'
8929 sysv4 | sysv4.2uw2* | sysv4.3*)
8930 lt_prog_compiler_wl='-Wl,'
8931 lt_prog_compiler_pic='-KPIC'
8932 lt_prog_compiler_static='-Bstatic'
8936 if test -d /usr/nec ;then
8937 lt_prog_compiler_pic='-Kconform_pic'
8938 lt_prog_compiler_static='-Bstatic'
8942 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-KPIC'
8945 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_wl='-Wl,'
8950 lt_prog_compiler_can_build_shared=no
8954 lt_prog_compiler_pic='-pic'
8955 lt_prog_compiler_static='-Bstatic'
8959 lt_prog_compiler_can_build_shared=no
8965 # For platforms which do not support PIC, -DPIC is meaningless:
8967 lt_prog_compiler_pic=
8970 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8974 $as_echo "$lt_prog_compiler_pic" >&6; }
8982 # Check to make sure the PIC flag actually works.
8984 if test -n "$lt_prog_compiler_pic"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8986 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8987 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8988 $as_echo_n "(cached) " >&6
8990 lt_cv_prog_compiler_pic_works=no
8991 ac_outfile=conftest.$ac_objext
8992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8993 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8994 # Insert the option either (1) after the last *FLAGS variable, or
8995 # (2) before a word containing "conftest.", or (3) at the end.
8996 # Note that $ac_compile itself does not contain backslashes and begins
8997 # with a dollar sign (not a hyphen), so the echo should work correctly.
8998 # The option is referenced via a variable to avoid confusing sed.
8999 lt_compile=`echo "$ac_compile" | $SED \
9000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9002 -e 's:$: $lt_compiler_flag:'`
9003 (eval echo "\"\$as_me:9003: $lt_compile\"" >&5)
9004 (eval "$lt_compile" 2>conftest.err)
9006 cat conftest.err >&5
9007 echo "$as_me:9007: \$? = $ac_status" >&5
9008 if (exit $ac_status) && test -s "$ac_outfile"; then
9009 # The compiler can only warn and ignore the option if not recognized
9010 # So say no if there are warnings other than the usual output.
9011 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9014 lt_cv_prog_compiler_pic_works=yes
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9021 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9023 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9024 case $lt_prog_compiler_pic in
9026 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9029 lt_prog_compiler_pic=
9030 lt_prog_compiler_can_build_shared=no
9041 # Check to make sure the static flag actually works.
9043 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9045 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9046 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9049 lt_cv_prog_compiler_static_works=no
9050 save_LDFLAGS="$LDFLAGS"
9051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9052 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9054 # The linker can only warn and ignore the option if not recognized
9055 # So say no if there are warnings
9056 if test -s conftest.err; then
9057 # Append any errors to the config.log.
9058 cat conftest.err 1>&5
9059 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9061 if diff conftest.exp conftest.er2 >/dev/null; then
9062 lt_cv_prog_compiler_static_works=yes
9065 lt_cv_prog_compiler_static_works=yes
9069 LDFLAGS="$save_LDFLAGS"
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9073 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9075 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9078 lt_prog_compiler_static=
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9088 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9089 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9092 lt_cv_prog_compiler_c_o=no
9093 $RM -r conftest 2>/dev/null
9097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9099 lt_compiler_flag="-o out/conftest2.$ac_objext"
9100 # Insert the option either (1) after the last *FLAGS variable, or
9101 # (2) before a word containing "conftest.", or (3) at the end.
9102 # Note that $ac_compile itself does not contain backslashes and begins
9103 # with a dollar sign (not a hyphen), so the echo should work correctly.
9104 lt_compile=`echo "$ac_compile" | $SED \
9105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9107 -e 's:$: $lt_compiler_flag:'`
9108 (eval echo "\"\$as_me:9108: $lt_compile\"" >&5)
9109 (eval "$lt_compile" 2>out/conftest.err)
9111 cat out/conftest.err >&5
9112 echo "$as_me:9112: \$? = $ac_status" >&5
9113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9115 # The compiler can only warn and ignore the option if not recognized
9116 # So say no if there are warnings
9117 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9118 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9119 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9120 lt_cv_prog_compiler_c_o=yes
9125 # SGI C++ compiler will create directory out/ii_files/ for
9126 # template instantiation
9127 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9128 $RM out/* && rmdir out
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9135 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9143 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9144 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9145 $as_echo_n "(cached) " >&6
9147 lt_cv_prog_compiler_c_o=no
9148 $RM -r conftest 2>/dev/null
9152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154 lt_compiler_flag="-o out/conftest2.$ac_objext"
9155 # Insert the option either (1) after the last *FLAGS variable, or
9156 # (2) before a word containing "conftest.", or (3) at the end.
9157 # Note that $ac_compile itself does not contain backslashes and begins
9158 # with a dollar sign (not a hyphen), so the echo should work correctly.
9159 lt_compile=`echo "$ac_compile" | $SED \
9160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9162 -e 's:$: $lt_compiler_flag:'`
9163 (eval echo "\"\$as_me:9163: $lt_compile\"" >&5)
9164 (eval "$lt_compile" 2>out/conftest.err)
9166 cat out/conftest.err >&5
9167 echo "$as_me:9167: \$? = $ac_status" >&5
9168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9170 # The compiler can only warn and ignore the option if not recognized
9171 # So say no if there are warnings
9172 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9175 lt_cv_prog_compiler_c_o=yes
9180 # SGI C++ compiler will create directory out/ii_files/ for
9181 # template instantiation
9182 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9183 $RM out/* && rmdir out
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9190 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9195 hard_links="nottested"
9196 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9197 # do not overwrite the value of need_locks provided by the user
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9199 $as_echo_n "checking if we can lock with hard links... " >&6; }
9202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9204 ln conftest.a conftest.b 2>&5 || hard_links=no
9205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9207 $as_echo "$hard_links" >&6; }
9208 if test "$hard_links" = no; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9210 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9223 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9226 allow_undefined_flag=
9227 always_export_symbols=no
9229 archive_expsym_cmds=
9230 compiler_needs_object=no
9231 enable_shared_with_static_runtimes=no
9232 export_dynamic_flag_spec=
9233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9234 hardcode_automatic=no
9236 hardcode_direct_absolute=no
9237 hardcode_libdir_flag_spec=
9238 hardcode_libdir_flag_spec_ld=
9239 hardcode_libdir_separator=
9241 hardcode_shlibpath_var=unsupported
9243 link_all_deplibs=unknown
9246 old_archive_from_new_cmds=
9247 old_archive_from_expsyms_cmds=
9248 thread_safe_flag_spec=
9249 whole_archive_flag_spec=
9250 # include_expsyms should be a list of space-separated symbols to be *always*
9251 # included in the symbol list
9253 # exclude_expsyms can be an extended regexp of symbols to exclude
9254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9256 # as well as any symbol that contains `d'.
9257 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9259 # platforms (ab)use it in PIC code, but their linkers get confused if
9260 # the symbol is explicitly referenced. Since portable code cannot
9261 # rely on this symbol name, it's probably fine to never include it in
9262 # preloaded symbol tables.
9263 # Exclude shared library initialization/finalization symbols.
9264 extract_expsyms_cmds=
9267 cygwin* | mingw* | pw32* | cegcc*)
9268 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9269 # When not using gcc, we currently assume that we are using
9270 # Microsoft Visual C++.
9271 if test "$GCC" != yes; then
9276 # we just hope/assume this is gcc and not c89 (= MSVC++)
9282 linux* | k*bsd*-gnu)
9288 if test "$with_gnu_ld" = yes; then
9289 # If archive_cmds runs LD, not CC, wlarc should be empty
9292 # Set some defaults for GNU ld with shared library support. These
9293 # are reset later if shared libraries are not supported. Putting them
9294 # here allows them to be overridden if necessary.
9295 runpath_var=LD_RUN_PATH
9296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297 export_dynamic_flag_spec='${wl}--export-dynamic'
9298 # ancient GNU ld didn't support --whole-archive et. al.
9299 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9300 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9302 whole_archive_flag_spec=
9304 supports_anon_versioning=no
9305 case `$LD -v 2>&1` in
9306 *GNU\ gold*) supports_anon_versioning=yes ;;
9307 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9308 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9309 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9310 *\ 2.11.*) ;; # other 2.11 versions
9311 *) supports_anon_versioning=yes ;;
9314 # See if GNU ld supports shared libraries.
9317 # On AIX/PPC, the GNU linker is very broken
9318 if test "$host_cpu" != ia64; then
9322 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9323 *** to be unable to reliably create shared libraries on AIX.
9324 *** Therefore, libtool is disabling shared libraries support. If you
9325 *** really care for shared libraries, you may want to modify your PATH
9326 *** so that a non-GNU linker is found, and then restart.
9335 # see comment about AmigaOS4 .so support
9336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337 archive_expsym_cmds=''
9340 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)'
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 hardcode_minus_L=yes
9348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9349 allow_undefined_flag=unsupported
9350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9351 # support --undefined. This deserves some investigation. FIXME
9352 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 cygwin* | mingw* | pw32* | cegcc*)
9359 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9360 # as there is no search path for DLLs.
9361 hardcode_libdir_flag_spec='-L$libdir'
9362 allow_undefined_flag=unsupported
9363 always_export_symbols=no
9364 enable_shared_with_static_runtimes=yes
9365 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9367 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9369 # If the export-symbols file already is a .def file (1st line
9370 # is EXPORTS), use it as is; otherwise, prepend...
9371 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9372 cp $export_symbols $output_objdir/$soname.def;
9374 echo EXPORTS > $output_objdir/$soname.def;
9375 cat $export_symbols >> $output_objdir/$soname.def;
9377 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9385 hardcode_shlibpath_var=no
9386 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9387 export_dynamic_flag_spec='${wl}-E'
9388 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9389 # Instead, shared libraries are loaded at an image base (0x10000000 by
9390 # default) and relocated if they conflict, which is a slow very memory
9391 # consuming and fragmenting process. To avoid this, we pick a random,
9392 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9393 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9394 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9395 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'
9398 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9400 if test "$host_os" = linux-dietlibc; then
9401 case $cc_basename in
9402 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9405 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9406 && test "$tmp_diet" = no
9409 tmp_sharedflag='-shared'
9410 case $cc_basename,$host_cpu in
9411 pgcc*) # Portland Group C compiler
9412 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'
9413 tmp_addflag=' $pic_flag'
9415 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9416 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'
9417 tmp_addflag=' $pic_flag -Mnomain' ;;
9418 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9419 tmp_addflag=' -i_dynamic' ;;
9420 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9421 tmp_addflag=' -i_dynamic -nofor_main' ;;
9422 ifc* | ifort*) # Intel Fortran compiler
9423 tmp_addflag=' -nofor_main' ;;
9424 lf95*) # Lahey Fortran 8.1
9425 whole_archive_flag_spec=
9426 tmp_sharedflag='--shared' ;;
9427 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9428 tmp_sharedflag='-qmkshrobj'
9431 case `$CC -V 2>&1 | sed 5q` in
9432 *Sun\ C*) # Sun C 5.9
9433 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'
9434 compiler_needs_object=yes
9435 tmp_sharedflag='-G' ;;
9436 *Sun\ F*) # Sun Fortran 8.3
9437 tmp_sharedflag='-G' ;;
9439 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 if test "x$supports_anon_versioning" = xyes; then
9442 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9443 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9444 echo "local: *; };" >> $output_objdir/$libname.ver~
9445 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9448 case $cc_basename in
9450 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9451 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9452 hardcode_libdir_flag_spec=
9453 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9454 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9455 if test "x$supports_anon_versioning" = xyes; then
9456 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9457 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9458 echo "local: *; };" >> $output_objdir/$libname.ver~
9459 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9468 netbsd* | netbsdelf*-gnu)
9469 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9470 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9479 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9483 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9484 *** create shared libraries on Solaris systems. Therefore, libtool
9485 *** is disabling shared libraries support. We urge you to upgrade GNU
9486 *** binutils to release 2.9.1 or newer. Another option is to modify
9487 *** your PATH or compiler configuration so that the native linker is
9488 *** used, and then restart.
9491 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9500 case `$LD -v 2>&1` in
9501 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9505 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9506 *** reliably create shared libraries on SCO systems. Therefore, libtool
9507 *** is disabling shared libraries support. We urge you to upgrade GNU
9508 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9509 *** your PATH or compiler configuration so that the native linker is
9510 *** used, and then restart.
9515 # For security reasons, it is highly recommended that you always
9516 # use absolute paths for naming shared libraries, and exclude the
9517 # DT_RUNPATH tag from executables and libraries. But doing so
9518 # requires that you compile everything twice, which is a pain.
9519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9531 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_shlibpath_var=no
9538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9547 if test "$ld_shlibs" = no; then
9549 hardcode_libdir_flag_spec=
9550 export_dynamic_flag_spec=
9551 whole_archive_flag_spec=
9554 # PORTME fill in a description of your system's linker (not GNU ld)
9557 allow_undefined_flag=unsupported
9558 always_export_symbols=yes
9559 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'
9560 # Note: this linker hardcodes the directories in LIBPATH if there
9561 # are no directories specified by -L.
9562 hardcode_minus_L=yes
9563 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9564 # Neither direct hardcoding nor static linking is supported with a
9566 hardcode_direct=unsupported
9571 if test "$host_cpu" = ia64; then
9572 # On IA64, the linker does run time linking by default, so we don't
9573 # have to do anything special.
9574 aix_use_runtimelinking=no
9575 exp_sym_flag='-Bexport'
9578 # If we're using GNU nm, then we don't want the "-C" option.
9579 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9580 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9581 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'
9583 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'
9585 aix_use_runtimelinking=no
9587 # Test if we are trying to use run time linking or normal
9588 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9589 # need to do runtime linking.
9590 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9591 for ld_flag in $LDFLAGS; do
9592 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9593 aix_use_runtimelinking=yes
9600 exp_sym_flag='-bexport'
9601 no_entry_flag='-bnoentry'
9604 # When large executables or shared objects are built, AIX ld can
9605 # have problems creating the table of contents. If linking a library
9606 # or program results in "error TOC overflow" add -mminimal-toc to
9607 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9608 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9612 hardcode_direct_absolute=yes
9613 hardcode_libdir_separator=':'
9614 link_all_deplibs=yes
9615 file_list_spec='${wl}-f,'
9617 if test "$GCC" = yes; then
9618 case $host_os in aix4.[012]|aix4.[012].*)
9619 # We only want to do this on AIX 4.2 and lower, the check
9620 # below for broken collect2 doesn't work under 4.3+
9621 collect2name=`${CC} -print-prog-name=collect2`
9622 if test -f "$collect2name" &&
9623 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9625 # We have reworked collect2
9628 # We have old collect2
9629 hardcode_direct=unsupported
9630 # It fails to find uninstalled libraries when the uninstalled
9631 # path is not listed in the libpath. Setting hardcode_minus_L
9632 # to unsupported forces relinking
9633 hardcode_minus_L=yes
9634 hardcode_libdir_flag_spec='-L$libdir'
9635 hardcode_libdir_separator=
9639 shared_flag='-shared'
9640 if test "$aix_use_runtimelinking" = yes; then
9641 shared_flag="$shared_flag "'${wl}-G'
9646 if test "$host_cpu" = ia64; then
9647 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9648 # chokes on -Wl,-G. The following line is correct:
9651 if test "$aix_use_runtimelinking" = yes; then
9652 shared_flag='${wl}-G'
9654 shared_flag='${wl}-bM:SRE'
9659 export_dynamic_flag_spec='${wl}-bexpall'
9660 # It seems that -bexpall does not export symbols beginning with
9661 # underscore (_), so it is better to generate a list of symbols to export.
9662 always_export_symbols=yes
9663 if test "$aix_use_runtimelinking" = yes; then
9664 # Warning - without using the other runtime loading flags (-brtl),
9665 # -berok will link without error, but may produce a broken library.
9666 allow_undefined_flag='-berok'
9667 # Determine the default libpath from the value encoded in an
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9680 if ac_fn_c_try_link "$LINENO"; then :
9682 lt_aix_libpath_sed='
9683 /Import File Strings/,/^$/ {
9689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9690 # Check for a 64-bit object if we didn't find anything.
9691 if test -z "$aix_libpath"; then
9692 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9699 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9700 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"
9702 if test "$host_cpu" = ia64; then
9703 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9704 allow_undefined_flag="-z nodefs"
9705 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"
9707 # Determine the default libpath from the value encoded in an
9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9720 if ac_fn_c_try_link "$LINENO"; then :
9722 lt_aix_libpath_sed='
9723 /Import File Strings/,/^$/ {
9729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9730 # Check for a 64-bit object if we didn't find anything.
9731 if test -z "$aix_libpath"; then
9732 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9735 rm -f core conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
9737 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9739 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9740 # Warning - without using the other run time loading flags,
9741 # -berok will link without error, but may produce a broken library.
9742 no_undefined_flag=' ${wl}-bernotok'
9743 allow_undefined_flag=' ${wl}-berok'
9744 # Exported symbols can be pulled into shared objects from archives
9745 whole_archive_flag_spec='$convenience'
9746 archive_cmds_need_lc=yes
9747 # This is similar to how AIX traditionally builds its shared libraries.
9748 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'
9756 # see comment about AmigaOS4 .so support
9757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9758 archive_expsym_cmds=''
9761 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)'
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_minus_L=yes
9769 export_dynamic_flag_spec=-rdynamic
9772 cygwin* | mingw* | pw32* | cegcc*)
9773 # When not using gcc, we currently assume that we are using
9774 # Microsoft Visual C++.
9775 # hardcode_libdir_flag_spec is actually meaningless, as there is
9776 # no search path for DLLs.
9777 hardcode_libdir_flag_spec=' '
9778 allow_undefined_flag=unsupported
9779 # Tell ltmain to make .lib files, not .a files.
9781 # Tell ltmain to make .dll files, not .so files.
9783 # FIXME: Setting linknames here is a bad hack.
9784 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9785 # The linker will automatically build a .lib file if we build a DLL.
9786 old_archive_from_new_cmds='true'
9787 # FIXME: Should let the user specify the lib program.
9788 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9789 fix_srcfile_path='`cygpath -w "$srcfile"`'
9790 enable_shared_with_static_runtimes=yes
9793 darwin* | rhapsody*)
9796 archive_cmds_need_lc=no
9798 hardcode_automatic=yes
9799 hardcode_shlibpath_var=unsupported
9800 whole_archive_flag_spec=''
9801 link_all_deplibs=yes
9802 allow_undefined_flag="$_lt_dar_allow_undefined"
9803 case $cc_basename in
9804 ifort*) _lt_dar_can_shared=yes ;;
9805 *) _lt_dar_can_shared=$GCC ;;
9807 if test "$_lt_dar_can_shared" = "yes"; then
9808 output_verbose_link_cmd=echo
9809 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9810 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9811 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}"
9812 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}"
9821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9822 hardcode_libdir_flag_spec='-L$libdir'
9823 hardcode_shlibpath_var=no
9830 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9831 # support. Future versions do this automatically, but an explicit c++rt0.o
9832 # does not break anything, and helps significantly (at the cost of a little
9835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9836 hardcode_libdir_flag_spec='-R$libdir'
9838 hardcode_shlibpath_var=no
9841 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_minus_L=yes
9846 hardcode_shlibpath_var=no
9849 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9850 freebsd* | dragonfly*)
9851 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9852 hardcode_libdir_flag_spec='-R$libdir'
9854 hardcode_shlibpath_var=no
9858 if test "$GCC" = yes; then
9859 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'
9861 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'
9863 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9864 hardcode_libdir_separator=:
9867 # hardcode_minus_L: Not really in the search PATH,
9868 # but as the default location of the library.
9869 hardcode_minus_L=yes
9870 export_dynamic_flag_spec='${wl}-E'
9874 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9875 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9877 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9879 if test "$with_gnu_ld" = no; then
9880 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9881 hardcode_libdir_flag_spec_ld='+b $libdir'
9882 hardcode_libdir_separator=:
9884 hardcode_direct_absolute=yes
9885 export_dynamic_flag_spec='${wl}-E'
9886 # hardcode_minus_L: Not really in the search PATH,
9887 # but as the default location of the library.
9888 hardcode_minus_L=yes
9893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9896 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9908 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9911 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9918 if test "$with_gnu_ld" = no; then
9919 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9920 hardcode_libdir_separator=:
9925 hardcode_shlibpath_var=no
9929 hardcode_direct_absolute=yes
9930 export_dynamic_flag_spec='${wl}-E'
9932 # hardcode_minus_L: Not really in the search PATH,
9933 # but as the default location of the library.
9934 hardcode_minus_L=yes
9940 irix5* | irix6* | nonstopux*)
9941 if test "$GCC" = yes; then
9942 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'
9943 # Try to use the -exported_symbol ld option, if it does not
9944 # work, assume that -exports_file does not work either and
9945 # implicitly export all symbols.
9946 save_LDFLAGS="$LDFLAGS"
9947 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9952 if ac_fn_c_try_link "$LINENO"; then :
9953 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'
9956 rm -f core conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 LDFLAGS="$save_LDFLAGS"
9960 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'
9961 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'
9963 archive_cmds_need_lc='no'
9964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9965 hardcode_libdir_separator=:
9967 link_all_deplibs=yes
9970 netbsd* | netbsdelf*-gnu)
9971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9974 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9976 hardcode_libdir_flag_spec='-R$libdir'
9978 hardcode_shlibpath_var=no
9982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9985 hardcode_libdir_separator=:
9986 hardcode_shlibpath_var=no
9993 if test -f /usr/libexec/ld.so; then
9995 hardcode_shlibpath_var=no
9996 hardcode_direct_absolute=yes
9997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10000 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10001 export_dynamic_flag_spec='${wl}-E'
10004 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_libdir_flag_spec='-R$libdir'
10009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10010 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10020 hardcode_libdir_flag_spec='-L$libdir'
10021 hardcode_minus_L=yes
10022 allow_undefined_flag=unsupported
10023 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'
10024 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10028 if test "$GCC" = yes; then
10029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10030 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'
10032 allow_undefined_flag=' -expect_unresolved \*'
10033 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'
10035 archive_cmds_need_lc='no'
10036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10037 hardcode_libdir_separator=:
10040 osf4* | osf5*) # as osf3* with the addition of -msym flag
10041 if test "$GCC" = yes; then
10042 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10043 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'
10044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10046 allow_undefined_flag=' -expect_unresolved \*'
10047 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'
10048 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~
10049 $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'
10051 # Both c and cxx compiler support -rpath directly
10052 hardcode_libdir_flag_spec='-rpath $libdir'
10054 archive_cmds_need_lc='no'
10055 hardcode_libdir_separator=:
10059 no_undefined_flag=' -z defs'
10060 if test "$GCC" = yes; then
10062 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10066 case `$CC -V 2>&1` in
10069 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10071 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10075 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10077 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10081 hardcode_libdir_flag_spec='-R$libdir'
10082 hardcode_shlibpath_var=no
10084 solaris2.[0-5] | solaris2.[0-5].*) ;;
10086 # The compiler driver will combine and reorder linker options,
10087 # but understands `-z linker_flag'. GCC discards it without `$wl',
10088 # but is careful enough not to reorder.
10089 # Supported since Solaris 2.6 (maybe 2.5.1?)
10090 if test "$GCC" = yes; then
10091 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10093 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10097 link_all_deplibs=yes
10101 if test "x$host_vendor" = xsequent; then
10102 # Use $CC to link under sequent, because it throws in some extra .o
10103 # files that make .init and .fini sections work.
10104 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10108 hardcode_libdir_flag_spec='-L$libdir'
10109 hardcode_direct=yes
10110 hardcode_minus_L=yes
10111 hardcode_shlibpath_var=no
10115 case $host_vendor in
10117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118 hardcode_direct=yes # is this really true???
10121 ## LD is ld it makes a PLAMLIB
10122 ## CC just makes a GrossModule.
10123 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10124 reload_cmds='$CC -r -o $output$reload_objs'
10128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10132 runpath_var='LD_RUN_PATH'
10133 hardcode_shlibpath_var=no
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_shlibpath_var=no
10139 export_dynamic_flag_spec='-Bexport'
10143 if test -d /usr/nec; then
10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_shlibpath_var=no
10146 runpath_var=LD_RUN_PATH
10147 hardcode_runpath_var=yes
10152 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10153 no_undefined_flag='${wl}-z,text'
10154 archive_cmds_need_lc=no
10155 hardcode_shlibpath_var=no
10156 runpath_var='LD_RUN_PATH'
10158 if test "$GCC" = yes; then
10159 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 sysv5* | sco3.2v5* | sco5v6*)
10168 # Note: We can NOT use -z defs as we might desire, because we do not
10169 # link with -lc, and that would cause any symbols used from libc to
10170 # always be unresolved, which means just about no library would
10171 # ever link correctly. If we're not using GNU ld we use -z text
10172 # though, which does catch some bad symbols but isn't as heavy-handed
10174 no_undefined_flag='${wl}-z,text'
10175 allow_undefined_flag='${wl}-z,nodefs'
10176 archive_cmds_need_lc=no
10177 hardcode_shlibpath_var=no
10178 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10179 hardcode_libdir_separator=':'
10180 link_all_deplibs=yes
10181 export_dynamic_flag_spec='${wl}-Bexport'
10182 runpath_var='LD_RUN_PATH'
10184 if test "$GCC" = yes; then
10185 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_libdir_flag_spec='-L$libdir'
10196 hardcode_shlibpath_var=no
10204 if test x$host_vendor = xsni; then
10206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10207 export_dynamic_flag_spec='${wl}-Blargedynsym'
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10214 $as_echo "$ld_shlibs" >&6; }
10215 test "$ld_shlibs" = no && can_build_shared=no
10217 with_gnu_ld=$with_gnu_ld
10234 # Do we need to explicitly link libc?
10236 case "x$archive_cmds_need_lc" in
10238 # Assume -lc should be added
10239 archive_cmds_need_lc=yes
10241 if test "$enable_shared" = yes && test "$GCC" = yes; then
10242 case $archive_cmds in
10244 # FIXME: we may have to deal with multi-command sequences.
10247 # Test whether the compiler implicitly links with -lc since on some
10248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10249 # to ld, don't add -lc before -lgcc.
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10251 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10256 (eval $ac_compile) 2>&5
10258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10259 test $ac_status = 0; } 2>conftest.err; then
10262 libobjs=conftest.$ac_objext
10264 wl=$lt_prog_compiler_wl
10265 pic_flag=$lt_prog_compiler_pic
10271 lt_save_allow_undefined_flag=$allow_undefined_flag
10272 allow_undefined_flag=
10273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10274 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10277 test $ac_status = 0; }
10279 archive_cmds_need_lc=no
10281 archive_cmds_need_lc=yes
10283 allow_undefined_flag=$lt_save_allow_undefined_flag
10285 cat conftest.err 1>&5
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10289 $as_echo "$archive_cmds_need_lc" >&6; }
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10453 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10455 if test "$GCC" = yes; then
10457 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10458 *) lt_awk_arg="/^libraries:/" ;;
10460 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10461 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10462 # if the path contains ";" then we assume it to be the separator
10463 # otherwise default to the standard path separator (i.e. ":") - it is
10464 # assumed that no part of a normal pathname contains ";" but that should
10465 # okay in the real world where ";" in dirpaths is itself problematic.
10466 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10468 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10470 # Ok, now we have the path, separated by spaces, we can step through it
10471 # and add multilib dir if necessary.
10472 lt_tmp_lt_search_path_spec=
10473 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10474 for lt_sys_path in $lt_search_path_spec; do
10475 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10476 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10478 test -d "$lt_sys_path" && \
10479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10482 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10483 BEGIN {RS=" "; FS="/|\n";} {
10486 for (lt_i = NF; lt_i > 0; lt_i--) {
10487 if ($lt_i != "" && $lt_i != ".") {
10488 if ($lt_i == "..") {
10491 if (lt_count == 0) {
10492 lt_foo="/" $lt_i lt_foo;
10499 if (lt_foo != "") { lt_freq[lt_foo]++; }
10500 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10502 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10504 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10506 library_names_spec=
10507 libname_spec='lib$name'
10511 postuninstall_cmds=
10515 shlibpath_overrides_runpath=unknown
10517 dynamic_linker="$host_os ld.so"
10518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10519 need_lib_prefix=unknown
10520 hardcode_into_libs=no
10522 # when you set need_version to no, make sure it does not cause -set_version
10523 # flags to be left without arguments
10524 need_version=unknown
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10530 shlibpath_var=LIBPATH
10532 # AIX 3 has no versioning support, so we append a major version to the name.
10533 soname_spec='${libname}${release}${shared_ext}$major'
10540 hardcode_into_libs=yes
10541 if test "$host_cpu" = ia64; then
10542 # AIX 5 supports IA64
10543 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10544 shlibpath_var=LD_LIBRARY_PATH
10546 # With GCC up to 2.95.x, collect2 would create an import file
10547 # for dependence libraries. The import file would start with
10548 # the line `#! .'. This would cause the generated library to
10549 # depend on `.', always an invalid library. This was fixed in
10550 # development snapshots of GCC prior to 3.0.
10552 aix4 | aix4.[01] | aix4.[01].*)
10553 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10555 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10558 can_build_shared=no
10562 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10563 # soname into executable. Probably we can add versioning support to
10564 # collect2, so additional links can be useful in future.
10565 if test "$aix_use_runtimelinking" = yes; then
10566 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10567 # instead of lib<name>.a to let people know that these are not
10568 # typical AIX shared libraries.
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571 # We preserve .a as extension for shared libraries through AIX4.2
10572 # and later when we are not doing run time linking.
10573 library_names_spec='${libname}${release}.a $libname.a'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LIBPATH
10583 # Since July 2007 AmigaOS4 officially supports .so libraries.
10584 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 library_names_spec='$libname.ixlibrary $libname.a'
10589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10590 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'
10596 library_names_spec='${libname}${shared_ext}'
10597 dynamic_linker="$host_os ld.so"
10598 shlibpath_var=LIBRARY_PATH
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10609 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10610 # the default ld.so.conf also contains /usr/contrib/lib and
10611 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10612 # libtool to hard-code these into programs
10615 cygwin* | mingw* | pw32* | cegcc*)
10616 version_type=windows
10621 case $GCC,$host_os in
10622 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10623 library_names_spec='$libname.dll.a'
10624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10625 postinstall_cmds='base_file=`basename \${file}`~
10626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10627 dldir=$destdir/`dirname \$dlpath`~
10628 test -d \$dldir || mkdir -p \$dldir~
10629 $install_prog $dir/$dlname \$dldir/$dlname~
10630 chmod a+x \$dldir/$dlname~
10631 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10632 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10635 dlpath=$dir/\$dldll~
10637 shlibpath_overrides_runpath=yes
10641 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10642 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10643 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10646 # MinGW DLLs use traditional 'lib' prefix
10647 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10648 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10649 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10650 # It is most probably a Windows format PATH printed by
10651 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10652 # path with ; separators, and with drive letters. We can handle the
10653 # drive letters (cygwin fileutils understands them), so leave them,
10654 # especially as we might pass files found there to a mingw objdump,
10655 # which wouldn't understand a cygwinified path. Ahh.
10656 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10658 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10662 # pw32 DLLs use 'pw' prefix rather than 'lib'
10663 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10669 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10672 dynamic_linker='Win32 ld.exe'
10673 # FIXME: first we should search . and the directory the executable is in
10677 darwin* | rhapsody*)
10678 dynamic_linker="$host_os dyld"
10679 version_type=darwin
10682 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10683 soname_spec='${libname}${release}${major}$shared_ext'
10684 shlibpath_overrides_runpath=yes
10685 shlibpath_var=DYLD_LIBRARY_PATH
10686 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 shlibpath_var=LD_LIBRARY_PATH
10705 freebsd* | dragonfly*)
10706 # DragonFly does not have aout. When/if they implement a new
10707 # versioning mechanism, adjust this.
10708 if test -x /usr/bin/objformat; then
10709 objformat=`/usr/bin/objformat`
10712 freebsd[123]*) objformat=aout ;;
10713 *) objformat=elf ;;
10716 version_type=freebsd-$objformat
10717 case $version_type in
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10728 shlibpath_var=LD_LIBRARY_PATH
10731 shlibpath_overrides_runpath=yes
10733 freebsd3.[01]* | freebsdelf3.[01]*)
10734 shlibpath_overrides_runpath=yes
10735 hardcode_into_libs=yes
10737 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10738 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10739 shlibpath_overrides_runpath=no
10740 hardcode_into_libs=yes
10742 *) # from 4.6 on, and DragonFly
10743 shlibpath_overrides_runpath=yes
10744 hardcode_into_libs=yes
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 hardcode_into_libs=yes
10759 hpux9* | hpux10* | hpux11*)
10760 # Give a soname corresponding to the major version so that dld.sl refuses to
10761 # link against other versions.
10768 hardcode_into_libs=yes
10769 dynamic_linker="$host_os dld.so"
10770 shlibpath_var=LD_LIBRARY_PATH
10771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 soname_spec='${libname}${release}${shared_ext}$major'
10774 if test "X$HPUX_IA64_MODE" = X32; then
10775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10777 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10783 hardcode_into_libs=yes
10784 dynamic_linker="$host_os dld.sl"
10785 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10794 dynamic_linker="$host_os dld.sl"
10795 shlibpath_var=SHLIB_PATH
10796 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10801 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10802 postinstall_cmds='chmod 555 $lib'
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=no
10814 hardcode_into_libs=yes
10817 irix5* | irix6* | nonstopux*)
10819 nonstopux*) version_type=nonstopux ;;
10821 if test "$lt_cv_prog_gnu_ld" = yes; then
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10832 irix5* | nonstopux*)
10833 libsuff= shlibsuff=
10836 case $LD in # libtool.m4 will add one of these switches to LD
10837 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10838 libsuff= shlibsuff= libmagic=32-bit;;
10839 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10840 libsuff=32 shlibsuff=N32 libmagic=N32;;
10841 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10842 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10843 *) libsuff= shlibsuff= libmagic=never-match;;
10847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10848 shlibpath_overrides_runpath=no
10849 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10850 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10851 hardcode_into_libs=yes
10854 # No shared lib support for Linux oldld, aout, or coff.
10855 linux*oldld* | linux*aout* | linux*coff*)
10859 # This must be Linux ELF.
10860 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10865 soname_spec='${libname}${release}${shared_ext}$major'
10866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10867 shlibpath_var=LD_LIBRARY_PATH
10868 shlibpath_overrides_runpath=no
10869 # Some binutils ld are patched to set DT_RUNPATH
10870 save_LDFLAGS=$LDFLAGS
10871 save_libdir=$libdir
10872 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10873 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10885 if ac_fn_c_try_link "$LINENO"; then :
10886 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10887 shlibpath_overrides_runpath=yes
10890 rm -f core conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892 LDFLAGS=$save_LDFLAGS
10893 libdir=$save_libdir
10895 # This implies no fast_install, which is unacceptable.
10896 # Some rework will be needed to allow for fast_install
10897 # before this can be enabled.
10898 hardcode_into_libs=yes
10900 # Append ld.so.conf contents to the search path
10901 if test -f /etc/ld.so.conf; then
10902 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' ' '`
10903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10906 # We used to test for /lib/ld.so.1 and disable shared libraries on
10907 # powerpc, because MkLinux only supported shared libraries with the
10908 # GNU dynamic linker. Since this was broken with cross compilers,
10909 # most powerpc-linux boxes support dynamic linking these days and
10910 # people can always --disable-shared, the test was removed, and we
10911 # assume the GNU/Linux dynamic linker is in use.
10912 dynamic_linker='GNU/Linux ld.so'
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=no
10923 hardcode_into_libs=yes
10924 dynamic_linker='NetBSD ld.elf_so'
10931 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10934 dynamic_linker='NetBSD (a.out) ld.so'
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 dynamic_linker='NetBSD ld.elf_so'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=yes
10942 hardcode_into_libs=yes
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 shlibpath_overrides_runpath=yes
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath=no
10960 hardcode_into_libs=yes
10961 dynamic_linker='ldqnx.so'
10966 sys_lib_dlsearch_path_spec="/usr/lib"
10968 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10970 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10971 *) need_version=no ;;
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10978 openbsd2.[89] | openbsd2.[89].*)
10979 shlibpath_overrides_runpath=no
10982 shlibpath_overrides_runpath=yes
10986 shlibpath_overrides_runpath=yes
10991 libname_spec='$name'
10994 library_names_spec='$libname${shared_ext} $libname.a'
10995 dynamic_linker='OS/2 ld.exe'
10996 shlibpath_var=LIBPATH
10999 osf3* | osf4* | osf5*)
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 shlibpath_var=LD_LIBRARY_PATH
11021 shlibpath_overrides_runpath=yes
11022 hardcode_into_libs=yes
11023 # ldd complains unless libraries are executable
11024 postinstall_cmds='chmod +x $lib'
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11030 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath=yes
11033 if test "$with_gnu_ld" = yes; then
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 case $host_vendor in
11046 shlibpath_overrides_runpath=no
11048 runpath_var=LD_RUN_PATH
11056 shlibpath_overrides_runpath=no
11057 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11063 if test -d /usr/nec ;then
11065 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11066 soname_spec='$libname${shared_ext}.$major'
11067 shlibpath_var=LD_LIBRARY_PATH
11071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11072 version_type=freebsd-elf
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 shlibpath_var=LD_LIBRARY_PATH
11078 shlibpath_overrides_runpath=yes
11079 hardcode_into_libs=yes
11080 if test "$with_gnu_ld" = yes; then
11081 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11083 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11086 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11090 sys_lib_dlsearch_path_spec='/usr/lib'
11094 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 shlibpath_overrides_runpath=no
11101 hardcode_into_libs=yes
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11116 $as_echo "$dynamic_linker" >&6; }
11117 test "$dynamic_linker" = no && can_build_shared=no
11119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11120 if test "$GCC" = yes; then
11121 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11124 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11125 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11127 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11128 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11218 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11220 if test -n "$hardcode_libdir_flag_spec" ||
11221 test -n "$runpath_var" ||
11222 test "X$hardcode_automatic" = "Xyes" ; then
11224 # We can hardcode non-existent directories.
11225 if test "$hardcode_direct" != no &&
11226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11227 # have to relink, otherwise we might link with an installed library
11228 # when we should be linking with a yet-to-be-installed one
11229 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11230 test "$hardcode_minus_L" != no; then
11231 # Linking always hardcodes the temporary library directory.
11232 hardcode_action=relink
11234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11235 hardcode_action=immediate
11238 # We cannot hardcode anything, or else we can only hardcode existing
11240 hardcode_action=unsupported
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11243 $as_echo "$hardcode_action" >&6; }
11245 if test "$hardcode_action" = relink ||
11246 test "$inherit_rpath" = yes; then
11247 # Fast installation is not supported
11248 enable_fast_install=no
11249 elif test "$shlibpath_overrides_runpath" = yes ||
11250 test "$enable_shared" = no; then
11251 # Fast installation is not necessary
11252 enable_fast_install=needless
11260 if test "x$enable_dlopen" != xyes; then
11261 enable_dlopen=unknown
11262 enable_dlopen_self=unknown
11263 enable_dlopen_self_static=unknown
11270 lt_cv_dlopen="load_add_on"
11272 lt_cv_dlopen_self=yes
11275 mingw* | pw32* | cegcc*)
11276 lt_cv_dlopen="LoadLibrary"
11281 lt_cv_dlopen="dlopen"
11286 # if libdl is installed we need to link against it
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11288 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
11292 ac_check_lib_save_LIBS=$LIBS
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11297 /* Override any GCC internal prototype to avoid an error.
11298 Use char because int might match the return type of a GCC
11299 builtin and then its argument prototype would still apply. */
11312 if ac_fn_c_try_link "$LINENO"; then :
11313 ac_cv_lib_dl_dlopen=yes
11315 ac_cv_lib_dl_dlopen=no
11317 rm -f core conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11322 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11323 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11327 lt_cv_dlopen="dyld"
11329 lt_cv_dlopen_self=yes
11336 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11337 if test "x$ac_cv_func_shl_load" = x""yes; then :
11338 lt_cv_dlopen="shl_load"
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11341 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11342 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11343 $as_echo_n "(cached) " >&6
11345 ac_check_lib_save_LIBS=$LIBS
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11350 /* Override any GCC internal prototype to avoid an error.
11351 Use char because int might match the return type of a GCC
11352 builtin and then its argument prototype would still apply. */
11360 return shl_load ();
11365 if ac_fn_c_try_link "$LINENO"; then :
11366 ac_cv_lib_dld_shl_load=yes
11368 ac_cv_lib_dld_shl_load=no
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LIBS=$ac_check_lib_save_LIBS
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11375 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11376 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11377 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11379 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11380 if test "x$ac_cv_func_dlopen" = x""yes; then :
11381 lt_cv_dlopen="dlopen"
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11384 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
11388 ac_check_lib_save_LIBS=$LIBS
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_lib_dl_dlopen=yes
11411 ac_cv_lib_dl_dlopen=no
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11419 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11423 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11424 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
11427 ac_check_lib_save_LIBS=$LIBS
11428 LIBS="-lsvld $LIBS"
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11432 /* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11447 if ac_fn_c_try_link "$LINENO"; then :
11448 ac_cv_lib_svld_dlopen=yes
11450 ac_cv_lib_svld_dlopen=no
11452 rm -f core conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11457 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11458 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11462 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11463 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11464 $as_echo_n "(cached) " >&6
11466 ac_check_lib_save_LIBS=$LIBS
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11471 /* Override any GCC internal prototype to avoid an error.
11472 Use char because int might match the return type of a GCC
11473 builtin and then its argument prototype would still apply. */
11481 return dld_link ();
11486 if ac_fn_c_try_link "$LINENO"; then :
11487 ac_cv_lib_dld_dld_link=yes
11489 ac_cv_lib_dld_dld_link=no
11491 rm -f core conftest.err conftest.$ac_objext \
11492 conftest$ac_exeext conftest.$ac_ext
11493 LIBS=$ac_check_lib_save_LIBS
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11496 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11497 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11519 if test "x$lt_cv_dlopen" != xno; then
11525 case $lt_cv_dlopen in
11527 save_CPPFLAGS="$CPPFLAGS"
11528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11530 save_LDFLAGS="$LDFLAGS"
11531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11534 LIBS="$lt_cv_dlopen_libs $LIBS"
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11537 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11538 if test "${lt_cv_dlopen_self+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11541 if test "$cross_compiling" = yes; then :
11542 lt_cv_dlopen_self=cross
11544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11545 lt_status=$lt_dlunknown
11546 cat > conftest.$ac_ext <<_LT_EOF
11547 #line 11547 "configure"
11548 #include "confdefs.h"
11557 # define LT_DLGLOBAL RTLD_GLOBAL
11560 # define LT_DLGLOBAL DL_GLOBAL
11562 # define LT_DLGLOBAL 0
11566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11567 find out it does not work in some platform. */
11568 #ifndef LT_DLLAZY_OR_NOW
11570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11573 # define LT_DLLAZY_OR_NOW DL_LAZY
11576 # define LT_DLLAZY_OR_NOW RTLD_NOW
11579 # define LT_DLLAZY_OR_NOW DL_NOW
11581 # define LT_DLLAZY_OR_NOW 0
11588 void fnord() { int i=42;}
11591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11592 int status = $lt_dlunknown;
11596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11598 /* dlclose (self); */
11606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11607 (eval $ac_link) 2>&5
11609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11610 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11611 (./conftest; exit; ) >&5 2>/dev/null
11613 case x$lt_status in
11614 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11615 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11616 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11619 # compilation failed
11620 lt_cv_dlopen_self=no
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11628 $as_echo "$lt_cv_dlopen_self" >&6; }
11630 if test "x$lt_cv_dlopen_self" = xyes; then
11631 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11633 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11634 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
11637 if test "$cross_compiling" = yes; then :
11638 lt_cv_dlopen_self_static=cross
11640 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11641 lt_status=$lt_dlunknown
11642 cat > conftest.$ac_ext <<_LT_EOF
11643 #line 11643 "configure"
11644 #include "confdefs.h"
11653 # define LT_DLGLOBAL RTLD_GLOBAL
11656 # define LT_DLGLOBAL DL_GLOBAL
11658 # define LT_DLGLOBAL 0
11662 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11663 find out it does not work in some platform. */
11664 #ifndef LT_DLLAZY_OR_NOW
11666 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11669 # define LT_DLLAZY_OR_NOW DL_LAZY
11672 # define LT_DLLAZY_OR_NOW RTLD_NOW
11675 # define LT_DLLAZY_OR_NOW DL_NOW
11677 # define LT_DLLAZY_OR_NOW 0
11684 void fnord() { int i=42;}
11687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11688 int status = $lt_dlunknown;
11692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11693 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11694 /* dlclose (self); */
11702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11703 (eval $ac_link) 2>&5
11705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11706 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11707 (./conftest; exit; ) >&5 2>/dev/null
11709 case x$lt_status in
11710 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11711 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11712 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11715 # compilation failed
11716 lt_cv_dlopen_self_static=no
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11724 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11727 CPPFLAGS="$save_CPPFLAGS"
11728 LDFLAGS="$save_LDFLAGS"
11733 case $lt_cv_dlopen_self in
11734 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11735 *) enable_dlopen_self=unknown ;;
11738 case $lt_cv_dlopen_self_static in
11739 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11740 *) enable_dlopen_self_static=unknown ;;
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11763 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11764 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11765 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11766 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11768 $as_echo "yes" >&6; }
11770 # FIXME - insert some real tests, host_os isn't really good enough
11773 if test -n "$STRIP" ; then
11774 striplib="$STRIP -x"
11775 old_striplib="$STRIP -S"
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11777 $as_echo "yes" >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11801 # Report which library types will actually be built
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11803 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11805 $as_echo "$can_build_shared" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11808 $as_echo_n "checking whether to build shared libraries... " >&6; }
11809 test "$can_build_shared" = "no" && enable_shared=no
11811 # On AIX, shared libraries and static libraries use the same namespace, and
11812 # are all built from PIC.
11815 test "$enable_shared" = yes && enable_static=no
11816 if test -n "$RANLIB"; then
11817 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11818 postinstall_cmds='$RANLIB $lib'
11823 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11824 test "$enable_shared" = yes && enable_static=no
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11829 $as_echo "$enable_shared" >&6; }
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11832 $as_echo_n "checking whether to build static libraries... " >&6; }
11833 # Make sure either enable_shared or enable_static is yes.
11834 test "$enable_shared" = yes || enable_static=yes
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11836 $as_echo "$enable_static" >&6; }
11843 ac_cpp='$CXXCPP $CPPFLAGS'
11844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11852 ac_cpp='$CXXCPP $CPPFLAGS'
11853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11857 archive_cmds_need_lc_CXX=no
11858 allow_undefined_flag_CXX=
11859 always_export_symbols_CXX=no
11860 archive_expsym_cmds_CXX=
11861 compiler_needs_object_CXX=no
11862 export_dynamic_flag_spec_CXX=
11863 hardcode_direct_CXX=no
11864 hardcode_direct_absolute_CXX=no
11865 hardcode_libdir_flag_spec_CXX=
11866 hardcode_libdir_flag_spec_ld_CXX=
11867 hardcode_libdir_separator_CXX=
11868 hardcode_minus_L_CXX=no
11869 hardcode_shlibpath_var_CXX=unsupported
11870 hardcode_automatic_CXX=no
11871 inherit_rpath_CXX=no
11873 module_expsym_cmds_CXX=
11874 link_all_deplibs_CXX=unknown
11875 old_archive_cmds_CXX=$old_archive_cmds
11876 no_undefined_flag_CXX=
11877 whole_archive_flag_spec_CXX=
11878 enable_shared_with_static_runtimes_CXX=no
11880 # Source file extension for C++ test sources.
11883 # Object file extension for compiled C++ test sources.
11887 # No sense in running all these tests if we already determined that
11888 # the CXX compiler isn't working. Some variables (like enable_shared)
11889 # are currently assumed to apply to all compilers on this platform,
11890 # and will be corrupted by setting them based on a non-working compiler.
11891 if test "$_lt_caught_CXX_error" != yes; then
11892 # Code to be used in simple compile tests
11893 lt_simple_compile_test_code="int some_variable = 0;"
11895 # Code to be used in simple link tests
11896 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11905 # If no C compiler was specified, use CC.
11908 # If no C compiler flags were specified, use CFLAGS.
11909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11911 # Allow CC to be a program name with arguments.
11915 # save warnings/boilerplate of simple test code
11916 ac_outfile=conftest.$ac_objext
11917 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11919 _lt_compiler_boilerplate=`cat conftest.err`
11922 ac_outfile=conftest.$ac_objext
11923 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11925 _lt_linker_boilerplate=`cat conftest.err`
11929 # Allow CC to be a program name with arguments.
11934 lt_save_with_gnu_ld=$with_gnu_ld
11935 lt_save_path_LD=$lt_cv_path_LD
11936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11937 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11939 $as_unset lt_cv_prog_gnu_ld
11941 if test -n "${lt_cv_path_LDCXX+set}"; then
11942 lt_cv_path_LD=$lt_cv_path_LDCXX
11944 $as_unset lt_cv_path_LD
11946 test -z "${LDCXX+set}" || LD=$LDCXX
11950 for cc_temp in $compiler""; do
11952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11958 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11961 if test -n "$compiler"; then
11962 # We don't want -fno-exception when compiling C++ code, so set the
11963 # no_builtin_flag separately
11964 if test "$GXX" = yes; then
11965 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11967 lt_prog_compiler_no_builtin_flag_CXX=
11970 if test "$GXX" = yes; then
11971 # Set up default GNU C++ configuration
11975 # Check whether --with-gnu-ld was given.
11976 if test "${with_gnu_ld+set}" = set; then :
11977 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11983 if test "$GCC" = yes; then
11984 # Check if gcc -print-prog-name=ld gives a path.
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11986 $as_echo_n "checking for ld used by $CC... " >&6; }
11989 # gcc leaves a trailing carriage return which upsets mingw
11990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11995 # Accept absolute paths.
11997 re_direlt='/[^/][^/]*/\.\./'
11998 # Canonicalize the pathname of ld
11999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12003 test -z "$LD" && LD="$ac_prog"
12006 # If it fails, then pretend we aren't using GCC.
12010 # If it is relative, then search for the first ld in PATH.
12011 with_gnu_ld=unknown
12014 elif test "$with_gnu_ld" = yes; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12016 $as_echo_n "checking for GNU ld... " >&6; }
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12019 $as_echo_n "checking for non-GNU ld... " >&6; }
12021 if test "${lt_cv_path_LD+set}" = set; then :
12022 $as_echo_n "(cached) " >&6
12024 if test -z "$LD"; then
12025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12026 for ac_dir in $PATH; do
12028 test -z "$ac_dir" && ac_dir=.
12029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12030 lt_cv_path_LD="$ac_dir/$ac_prog"
12031 # Check to see if the program is GNU ld. I'd rather use --version,
12032 # but apparently some variants of GNU ld only accept -v.
12033 # Break only if it was the GNU/non-GNU ld that we prefer.
12034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12035 *GNU* | *'with BFD'*)
12036 test "$with_gnu_ld" != no && break
12039 test "$with_gnu_ld" != yes && break
12046 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12050 LD="$lt_cv_path_LD"
12051 if test -n "$LD"; then
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12053 $as_echo "$LD" >&6; }
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12058 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12060 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12061 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12062 $as_echo_n "(cached) " >&6
12064 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12065 case `$LD -v 2>&1 </dev/null` in
12066 *GNU* | *'with BFD'*)
12067 lt_cv_prog_gnu_ld=yes
12070 lt_cv_prog_gnu_ld=no
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12075 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12076 with_gnu_ld=$lt_cv_prog_gnu_ld
12084 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12085 # archiving commands below assume that GNU ld is being used.
12086 if test "$with_gnu_ld" = yes; then
12087 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12088 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'
12090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12093 # If archive_cmds runs LD, not CC, wlarc should be empty
12094 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12095 # investigate it a little bit more. (MM)
12098 # ancient GNU ld didn't support --whole-archive et. al.
12099 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12100 $GREP 'no-whole-archive' > /dev/null; then
12101 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12103 whole_archive_flag_spec_CXX=
12109 # A generic and very simple default shared library creation
12110 # command for GNU C++ for the case where it uses the native
12111 # linker, instead of GNU ld. If possible, this setting should
12112 # overridden to take advantage of the native linker features on
12113 # the platform it is being used on.
12114 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12117 # Commands to make compiler produce verbose output that lists
12118 # what "hidden" libraries, object files and flags are used when
12119 # linking a shared library.
12120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12128 # PORTME: fill in a description of your system's C++ link characteristics
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12130 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12134 # FIXME: insert proper C++ library support
12138 if test "$host_cpu" = ia64; then
12139 # On IA64, the linker does run time linking by default, so we don't
12140 # have to do anything special.
12141 aix_use_runtimelinking=no
12142 exp_sym_flag='-Bexport'
12145 aix_use_runtimelinking=no
12147 # Test if we are trying to use run time linking or normal
12148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12149 # need to do runtime linking.
12150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12151 for ld_flag in $LDFLAGS; do
12154 aix_use_runtimelinking=yes
12162 exp_sym_flag='-bexport'
12163 no_entry_flag='-bnoentry'
12166 # When large executables or shared objects are built, AIX ld can
12167 # have problems creating the table of contents. If linking a library
12168 # or program results in "error TOC overflow" add -mminimal-toc to
12169 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12170 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12172 archive_cmds_CXX=''
12173 hardcode_direct_CXX=yes
12174 hardcode_direct_absolute_CXX=yes
12175 hardcode_libdir_separator_CXX=':'
12176 link_all_deplibs_CXX=yes
12177 file_list_spec_CXX='${wl}-f,'
12179 if test "$GXX" = yes; then
12180 case $host_os in aix4.[012]|aix4.[012].*)
12181 # We only want to do this on AIX 4.2 and lower, the check
12182 # below for broken collect2 doesn't work under 4.3+
12183 collect2name=`${CC} -print-prog-name=collect2`
12184 if test -f "$collect2name" &&
12185 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12187 # We have reworked collect2
12190 # We have old collect2
12191 hardcode_direct_CXX=unsupported
12192 # It fails to find uninstalled libraries when the uninstalled
12193 # path is not listed in the libpath. Setting hardcode_minus_L
12194 # to unsupported forces relinking
12195 hardcode_minus_L_CXX=yes
12196 hardcode_libdir_flag_spec_CXX='-L$libdir'
12197 hardcode_libdir_separator_CXX=
12200 shared_flag='-shared'
12201 if test "$aix_use_runtimelinking" = yes; then
12202 shared_flag="$shared_flag "'${wl}-G'
12206 if test "$host_cpu" = ia64; then
12207 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12208 # chokes on -Wl,-G. The following line is correct:
12211 if test "$aix_use_runtimelinking" = yes; then
12212 shared_flag='${wl}-G'
12214 shared_flag='${wl}-bM:SRE'
12219 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12220 # It seems that -bexpall does not export symbols beginning with
12221 # underscore (_), so it is better to generate a list of symbols to
12223 always_export_symbols_CXX=yes
12224 if test "$aix_use_runtimelinking" = yes; then
12225 # Warning - without using the other runtime loading flags (-brtl),
12226 # -berok will link without error, but may produce a broken library.
12227 allow_undefined_flag_CXX='-berok'
12228 # Determine the default libpath from the value encoded in an empty
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12241 if ac_fn_cxx_try_link "$LINENO"; then :
12243 lt_aix_libpath_sed='
12244 /Import File Strings/,/^$/ {
12250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12251 # Check for a 64-bit object if we didn't find anything.
12252 if test -z "$aix_libpath"; then
12253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12256 rm -f core conftest.err conftest.$ac_objext \
12257 conftest$ac_exeext conftest.$ac_ext
12258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12260 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12262 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"
12264 if test "$host_cpu" = ia64; then
12265 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12266 allow_undefined_flag_CXX="-z nodefs"
12267 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"
12269 # Determine the default libpath from the value encoded in an
12270 # empty executable.
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12282 if ac_fn_cxx_try_link "$LINENO"; then :
12284 lt_aix_libpath_sed='
12285 /Import File Strings/,/^$/ {
12291 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12292 # Check for a 64-bit object if we didn't find anything.
12293 if test -z "$aix_libpath"; then
12294 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12297 rm -f core conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12301 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12302 # Warning - without using the other run time loading flags,
12303 # -berok will link without error, but may produce a broken library.
12304 no_undefined_flag_CXX=' ${wl}-bernotok'
12305 allow_undefined_flag_CXX=' ${wl}-berok'
12306 # Exported symbols can be pulled into shared objects from archives
12307 whole_archive_flag_spec_CXX='$convenience'
12308 archive_cmds_need_lc_CXX=yes
12309 # This is similar to how AIX traditionally builds its shared
12311 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'
12317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12318 allow_undefined_flag_CXX=unsupported
12319 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12320 # support --undefined. This deserves some investigation. FIXME
12321 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12328 case $cc_basename in
12330 # FIXME: insert proper C++ library support
12336 cygwin* | mingw* | pw32* | cegcc*)
12337 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12338 # as there is no search path for DLLs.
12339 hardcode_libdir_flag_spec_CXX='-L$libdir'
12340 allow_undefined_flag_CXX=unsupported
12341 always_export_symbols_CXX=no
12342 enable_shared_with_static_runtimes_CXX=yes
12344 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12345 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'
12346 # If the export-symbols file already is a .def file (1st line
12347 # is EXPORTS), use it as is; otherwise, prepend...
12348 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12349 cp $export_symbols $output_objdir/$soname.def;
12351 echo EXPORTS > $output_objdir/$soname.def;
12352 cat $export_symbols >> $output_objdir/$soname.def;
12354 $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'
12359 darwin* | rhapsody*)
12362 archive_cmds_need_lc_CXX=no
12363 hardcode_direct_CXX=no
12364 hardcode_automatic_CXX=yes
12365 hardcode_shlibpath_var_CXX=unsupported
12366 whole_archive_flag_spec_CXX=''
12367 link_all_deplibs_CXX=yes
12368 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12369 case $cc_basename in
12370 ifort*) _lt_dar_can_shared=yes ;;
12371 *) _lt_dar_can_shared=$GCC ;;
12373 if test "$_lt_dar_can_shared" = "yes"; then
12374 output_verbose_link_cmd=echo
12375 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}"
12376 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12377 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}"
12378 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}"
12379 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12380 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}"
12381 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}"
12391 case $cc_basename in
12393 # FIXME: insert proper C++ library support
12397 # Green Hills C++ Compiler
12398 # FIXME: insert proper C++ library support
12402 # FIXME: insert proper C++ library support
12409 # C++ shared libraries reported to be fairly broken before
12415 archive_cmds_need_lc_CXX=no
12418 freebsd* | dragonfly*)
12419 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12428 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12429 hardcode_libdir_separator_CXX=:
12430 export_dynamic_flag_spec_CXX='${wl}-E'
12431 hardcode_direct_CXX=yes
12432 hardcode_minus_L_CXX=yes # Not in the search PATH,
12433 # but as the default
12434 # location of the library.
12436 case $cc_basename in
12438 # FIXME: insert proper C++ library support
12442 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'
12443 # Commands to make compiler produce verbose output that lists
12444 # what "hidden" libraries, object files and flags are used when
12445 # linking a shared library.
12447 # There doesn't appear to be a way to prevent this compiler from
12448 # explicitly linking system object files so we need to strip them
12449 # from the output so that they don't get included in the library
12451 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'
12454 if test "$GXX" = yes; then
12455 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'
12457 # FIXME: insert proper C++ library support
12465 if test $with_gnu_ld = no; then
12466 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12467 hardcode_libdir_separator_CXX=:
12473 export_dynamic_flag_spec_CXX='${wl}-E'
12479 hardcode_direct_CXX=no
12480 hardcode_shlibpath_var_CXX=no
12483 hardcode_direct_CXX=yes
12484 hardcode_direct_absolute_CXX=yes
12485 hardcode_minus_L_CXX=yes # Not in the search PATH,
12486 # but as the default
12487 # location of the library.
12491 case $cc_basename in
12493 # FIXME: insert proper C++ library support
12499 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12502 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12505 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12508 # Commands to make compiler produce verbose output that lists
12509 # what "hidden" libraries, object files and flags are used when
12510 # linking a shared library.
12512 # There doesn't appear to be a way to prevent this compiler from
12513 # explicitly linking system object files so we need to strip them
12514 # from the output so that they don't get included in the library
12516 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'
12519 if test "$GXX" = yes; then
12520 if test $with_gnu_ld = no; then
12523 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12526 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12529 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'
12534 # FIXME: insert proper C++ library support
12542 hardcode_direct_CXX=no
12543 hardcode_shlibpath_var_CXX=no
12544 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12545 export_dynamic_flag_spec_CXX='${wl}-E'
12546 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12547 # Instead, shared libraries are loaded at an image base (0x10000000 by
12548 # default) and relocated if they conflict, which is a slow very memory
12549 # consuming and fragmenting process. To avoid this, we pick a random,
12550 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12551 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12552 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'
12553 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'
12556 case $cc_basename in
12559 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'
12561 # Archives containing C++ object files must be created using
12562 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12563 # necessary to make sure instantiated templates are included
12565 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12568 if test "$GXX" = yes; then
12569 if test "$with_gnu_ld" = no; then
12570 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'
12572 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'
12575 link_all_deplibs_CXX=yes
12578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12579 hardcode_libdir_separator_CXX=:
12580 inherit_rpath_CXX=yes
12583 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12584 case $cc_basename in
12586 # Kuck and Associates, Inc. (KAI) C++ Compiler
12588 # KCC will only create a shared library if the output file
12589 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12590 # to its proper name (with version) after linking.
12591 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'
12592 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'
12593 # Commands to make compiler produce verbose output that lists
12594 # what "hidden" libraries, object files and flags are used when
12595 # linking a shared library.
12597 # There doesn't appear to be a way to prevent this compiler from
12598 # explicitly linking system object files so we need to strip them
12599 # from the output so that they don't get included in the library
12601 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'
12603 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12604 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12606 # Archives containing C++ object files must be created using
12607 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12608 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12613 # version 8.0 and above of icpc choke on multiply defined symbols
12614 # if we add $predep_objects and $postdep_objects, however 7.1 and
12615 # earlier do not add the objects themselves.
12616 case `$CC -V 2>&1` in
12618 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619 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'
12621 *) # Version 8.0 or newer
12624 ia64*) tmp_idyn=' -i_dynamic';;
12626 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12627 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'
12630 archive_cmds_need_lc_CXX=no
12631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12632 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12633 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12636 # Portland Group C++ compiler
12638 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12639 prelink_cmds_CXX='tpldir=Template.dir~
12641 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12642 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12643 old_archive_cmds_CXX='tpldir=Template.dir~
12645 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12646 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12648 archive_cmds_CXX='tpldir=Template.dir~
12650 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12651 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12652 archive_expsym_cmds_CXX='tpldir=Template.dir~
12654 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12655 $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'
12657 *) # Version 6 will use weak symbols
12658 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12659 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'
12663 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12664 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12665 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'
12669 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12670 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'
12672 runpath_var=LD_RUN_PATH
12673 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12674 hardcode_libdir_separator_CXX=:
12676 # Commands to make compiler produce verbose output that lists
12677 # what "hidden" libraries, object files and flags are used when
12678 # linking a shared library.
12680 # There doesn't appear to be a way to prevent this compiler from
12681 # explicitly linking system object files so we need to strip them
12682 # from the output so that they don't get included in the library
12684 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'
12687 # IBM XL 8.0 on PPC, with GNU ld
12688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12690 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12691 if test "x$supports_anon_versioning" = xyes; then
12692 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12693 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12694 echo "local: *; };" >> $output_objdir/$libname.ver~
12695 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12699 case `$CC -V 2>&1 | sed 5q` in
12702 no_undefined_flag_CXX=' -zdefs'
12703 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12704 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'
12705 hardcode_libdir_flag_spec_CXX='-R$libdir'
12706 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'
12707 compiler_needs_object_CXX=yes
12709 # Not sure whether something based on
12710 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12712 output_verbose_link_cmd='echo'
12714 # Archives containing C++ object files must be created using
12715 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12716 # necessary to make sure instantiated templates are included
12718 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12726 # FIXME: insert proper C++ library support
12731 # FIXME: insert proper C++ library support
12736 case $cc_basename in
12738 # FIXME: insert proper C++ library support
12742 # FIXME: insert proper C++ library support
12749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12750 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12752 hardcode_libdir_flag_spec_CXX='-R$libdir'
12753 hardcode_direct_CXX=yes
12754 hardcode_shlibpath_var_CXX=no
12756 # Workaround some broken pre-1.5 toolchains
12757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12765 # C++ shared libraries are fairly broken
12770 if test -f /usr/libexec/ld.so; then
12771 hardcode_direct_CXX=yes
12772 hardcode_shlibpath_var_CXX=no
12773 hardcode_direct_absolute_CXX=yes
12774 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12775 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12777 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12778 export_dynamic_flag_spec_CXX='${wl}-E'
12779 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12781 output_verbose_link_cmd=echo
12787 osf3* | osf4* | osf5*)
12788 case $cc_basename in
12790 # Kuck and Associates, Inc. (KAI) C++ Compiler
12792 # KCC will only create a shared library if the output file
12793 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12794 # to its proper name (with version) after linking.
12795 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'
12797 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12798 hardcode_libdir_separator_CXX=:
12800 # Archives containing C++ object files must be created using
12801 # the KAI C++ compiler.
12803 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12804 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12808 # Rational C++ 2.4.1
12809 # FIXME: insert proper C++ library support
12815 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12816 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'
12817 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12820 allow_undefined_flag_CXX=' -expect_unresolved \*'
12821 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'
12822 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12823 echo "-hidden">> $lib.exp~
12824 $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~
12826 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12830 hardcode_libdir_separator_CXX=:
12832 # Commands to make compiler produce verbose output that lists
12833 # what "hidden" libraries, object files and flags are used when
12834 # linking a shared library.
12836 # There doesn't appear to be a way to prevent this compiler from
12837 # explicitly linking system object files so we need to strip them
12838 # from the output so that they don't get included in the library
12840 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'
12843 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12844 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12847 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'
12850 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'
12854 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12855 hardcode_libdir_separator_CXX=:
12857 # Commands to make compiler produce verbose output that lists
12858 # what "hidden" libraries, object files and flags are used when
12859 # linking a shared library.
12860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12863 # FIXME: insert proper C++ library support
12871 # FIXME: insert proper C++ library support
12876 case $cc_basename in
12879 # FIXME: insert proper C++ library support
12884 # FIXME: insert proper C++ library support
12888 # FIXME: insert proper C++ library support
12895 case $cc_basename in
12897 # Sun C++ 4.2, 5.x and Centerline C++
12898 archive_cmds_need_lc_CXX=yes
12899 no_undefined_flag_CXX=' -zdefs'
12900 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12901 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12902 $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'
12904 hardcode_libdir_flag_spec_CXX='-R$libdir'
12905 hardcode_shlibpath_var_CXX=no
12907 solaris2.[0-5] | solaris2.[0-5].*) ;;
12909 # The compiler driver will combine and reorder linker options,
12910 # but understands `-z linker_flag'.
12911 # Supported since Solaris 2.6 (maybe 2.5.1?)
12912 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12915 link_all_deplibs_CXX=yes
12917 output_verbose_link_cmd='echo'
12919 # Archives containing C++ object files must be created using
12920 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12921 # necessary to make sure instantiated templates are included
12923 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12926 # Green Hills C++ Compiler
12927 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12929 # The C++ compiler must be used to create the archive.
12930 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12933 # GNU C++ compiler with Solaris linker
12934 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12935 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12936 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12937 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12938 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12939 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12941 # Commands to make compiler produce verbose output that lists
12942 # what "hidden" libraries, object files and flags are used when
12943 # linking a shared library.
12944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12946 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12948 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12949 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12950 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12952 # Commands to make compiler produce verbose output that lists
12953 # what "hidden" libraries, object files and flags are used when
12954 # linking a shared library.
12955 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12958 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12960 solaris2.[0-5] | solaris2.[0-5].*) ;;
12962 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12971 no_undefined_flag_CXX='${wl}-z,text'
12972 archive_cmds_need_lc_CXX=no
12973 hardcode_shlibpath_var_CXX=no
12974 runpath_var='LD_RUN_PATH'
12976 case $cc_basename in
12978 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12979 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12982 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12983 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12988 sysv5* | sco3.2v5* | sco5v6*)
12989 # Note: We can NOT use -z defs as we might desire, because we do not
12990 # link with -lc, and that would cause any symbols used from libc to
12991 # always be unresolved, which means just about no library would
12992 # ever link correctly. If we're not using GNU ld we use -z text
12993 # though, which does catch some bad symbols but isn't as heavy-handed
12995 no_undefined_flag_CXX='${wl}-z,text'
12996 allow_undefined_flag_CXX='${wl}-z,nodefs'
12997 archive_cmds_need_lc_CXX=no
12998 hardcode_shlibpath_var_CXX=no
12999 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13000 hardcode_libdir_separator_CXX=':'
13001 link_all_deplibs_CXX=yes
13002 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13003 runpath_var='LD_RUN_PATH'
13005 case $cc_basename in
13007 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13008 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13011 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13012 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13018 case $cc_basename in
13020 # NonStop-UX NCC 3.20
13021 # FIXME: insert proper C++ library support
13025 # FIXME: insert proper C++ library support
13032 # FIXME: insert proper C++ library support
13037 # FIXME: insert proper C++ library support
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13043 $as_echo "$ld_shlibs_CXX" >&6; }
13044 test "$ld_shlibs_CXX" = no && can_build_shared=no
13050 ## There is no encapsulation within the following macros, do not change
13051 ## the running order or otherwise move them around unless you know exactly
13052 ## what you are doing...
13053 # Dependencies to place before and after the object being linked:
13054 predep_objects_CXX=
13055 postdep_objects_CXX=
13058 compiler_lib_search_path_CXX=
13060 cat > conftest.$ac_ext <<_LT_EOF
13064 Foo (void) { a = 0; }
13070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13071 (eval $ac_compile) 2>&5
13073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13074 test $ac_status = 0; }; then
13075 # Parse the compiler output and extract the necessary
13076 # objects, libraries and library flags.
13078 # Sentinel used to keep track of whether or not we are before
13079 # the conftest object file.
13080 pre_test_object_deps_done=no
13082 for p in `eval "$output_verbose_link_cmd"`; do
13086 # Some compilers place space between "-{L,R}" and the path.
13087 # Remove the space.
13088 if test $p = "-L" ||
13089 test $p = "-R"; then
13096 if test "$pre_test_object_deps_done" = no; then
13099 # Internal compiler library paths should come after those
13100 # provided the user. The postdeps already come after the
13101 # user supplied libs so there is no need to process them.
13102 if test -z "$compiler_lib_search_path_CXX"; then
13103 compiler_lib_search_path_CXX="${prev}${p}"
13105 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13108 # The "-l" case would never come before the object being
13109 # linked, so don't bother handling this case.
13112 if test -z "$postdeps_CXX"; then
13113 postdeps_CXX="${prev}${p}"
13115 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13121 # This assumes that the test object file only shows up
13122 # once in the compiler output.
13123 if test "$p" = "conftest.$objext"; then
13124 pre_test_object_deps_done=yes
13128 if test "$pre_test_object_deps_done" = no; then
13129 if test -z "$predep_objects_CXX"; then
13130 predep_objects_CXX="$p"
13132 predep_objects_CXX="$predep_objects_CXX $p"
13135 if test -z "$postdep_objects_CXX"; then
13136 postdep_objects_CXX="$p"
13138 postdep_objects_CXX="$postdep_objects_CXX $p"
13143 *) ;; # Ignore the rest.
13151 echo "libtool.m4: error: problem compiling CXX test program"
13154 $RM -f confest.$objext
13156 # PORTME: override above test on systems where it is broken
13159 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13160 # hack all around it, let's just trust "g++" to DTRT.
13161 predep_objects_CXX=
13162 postdep_objects_CXX=
13167 case `$CC -V 2>&1 | sed 5q` in
13171 # The more standards-conforming stlport4 library is
13172 # incompatible with the Cstd library. Avoid specifying
13173 # it if it's in CXXFLAGS. Ignore libCrun as
13174 # -library=stlport4 depends on it.
13175 case " $CXX $CXXFLAGS " in
13176 *" -library=stlport4 "*)
13177 solaris_use_stlport4=yes
13181 if test "$solaris_use_stlport4" != yes; then
13182 postdeps_CXX='-library=Cstd -library=Crun'
13189 case $cc_basename in
13191 # The more standards-conforming stlport4 library is
13192 # incompatible with the Cstd library. Avoid specifying
13193 # it if it's in CXXFLAGS. Ignore libCrun as
13194 # -library=stlport4 depends on it.
13195 case " $CXX $CXXFLAGS " in
13196 *" -library=stlport4 "*)
13197 solaris_use_stlport4=yes
13201 # Adding this requires a known-good setup of shared libraries for
13202 # Sun compiler versions before 5.6, else PIC objects from an old
13203 # archive will be linked into the output, leading to subtle bugs.
13204 if test "$solaris_use_stlport4" != yes; then
13205 postdeps_CXX='-library=Cstd -library=Crun'
13213 case " $postdeps_CXX " in
13214 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13216 compiler_lib_search_dirs_CXX=
13217 if test -n "${compiler_lib_search_path_CXX}"; then
13218 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13251 lt_prog_compiler_wl_CXX=
13252 lt_prog_compiler_pic_CXX=
13253 lt_prog_compiler_static_CXX=
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13256 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13258 # C++ specific cases for pic, static, wl, etc.
13259 if test "$GXX" = yes; then
13260 lt_prog_compiler_wl_CXX='-Wl,'
13261 lt_prog_compiler_static_CXX='-static'
13265 # All AIX code is PIC.
13266 if test "$host_cpu" = ia64; then
13267 # AIX 5 now supports IA64 processor
13268 lt_prog_compiler_static_CXX='-Bstatic'
13275 # see comment about AmigaOS4 .so support
13276 lt_prog_compiler_pic_CXX='-fPIC'
13279 # FIXME: we need at least 68020 code to build shared libraries, but
13280 # adding the `-m68020' flag to GCC prevents building anything better,
13282 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13287 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13288 # PIC is the default for these OSes.
13290 mingw* | cygwin* | os2* | pw32* | cegcc*)
13291 # This hack is so that the source file can tell whether it is being
13292 # built for inclusion in a dll (and should export symbols for example).
13293 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13294 # (--disable-auto-import) libraries
13295 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13297 darwin* | rhapsody*)
13298 # PIC is the default on this platform
13299 # Common symbols not allowed in MH_DYLIB files
13300 lt_prog_compiler_pic_CXX='-fno-common'
13303 # DJGPP does not support shared libraries at all
13304 lt_prog_compiler_pic_CXX=
13307 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13308 # Instead, we relocate shared libraries at runtime.
13311 if test -d /usr/nec; then
13312 lt_prog_compiler_pic_CXX=-Kconform_pic
13316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13318 # sets the default TLS model and affects inlining.
13323 lt_prog_compiler_pic_CXX='-fPIC'
13328 # QNX uses GNU C++, but need to define -shared option too, otherwise
13329 # it will coredump.
13330 lt_prog_compiler_pic_CXX='-fPIC -shared'
13333 lt_prog_compiler_pic_CXX='-fPIC'
13339 # All AIX code is PIC.
13340 if test "$host_cpu" = ia64; then
13341 # AIX 5 now supports IA64 processor
13342 lt_prog_compiler_static_CXX='-Bstatic'
13344 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13348 case $cc_basename in
13350 # Green Hills C++ Compiler
13351 # _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"
13356 case $cc_basename in
13358 lt_prog_compiler_pic_CXX='-KPIC'
13361 # Green Hills C++ Compiler
13362 lt_prog_compiler_pic_CXX='-pic'
13368 freebsd* | dragonfly*)
13369 # FreeBSD uses GNU C++
13371 hpux9* | hpux10* | hpux11*)
13372 case $cc_basename in
13374 lt_prog_compiler_wl_CXX='-Wl,'
13375 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13376 if test "$host_cpu" != ia64; then
13377 lt_prog_compiler_pic_CXX='+Z'
13381 lt_prog_compiler_wl_CXX='-Wl,'
13382 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13388 lt_prog_compiler_pic_CXX='+Z'
13397 # This is c89, which is MS Visual C++ (no shared libs)
13398 # Anyone wants to do a port?
13400 irix5* | irix6* | nonstopux*)
13401 case $cc_basename in
13403 lt_prog_compiler_wl_CXX='-Wl,'
13404 lt_prog_compiler_static_CXX='-non_shared'
13405 # CC pic flag -KPIC is the default.
13411 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13412 case $cc_basename in
13415 lt_prog_compiler_wl_CXX='--backend -Wl,'
13416 lt_prog_compiler_pic_CXX='-fPIC'
13419 # old Intel C++ for x86_64 which still supported -KPIC.
13420 lt_prog_compiler_wl_CXX='-Wl,'
13421 lt_prog_compiler_pic_CXX='-KPIC'
13422 lt_prog_compiler_static_CXX='-static'
13425 # Intel C++, used to be incompatible with GCC.
13426 # ICC 10 doesn't accept -KPIC any more.
13427 lt_prog_compiler_wl_CXX='-Wl,'
13428 lt_prog_compiler_pic_CXX='-fPIC'
13429 lt_prog_compiler_static_CXX='-static'
13432 # Portland Group C++ compiler
13433 lt_prog_compiler_wl_CXX='-Wl,'
13434 lt_prog_compiler_pic_CXX='-fpic'
13435 lt_prog_compiler_static_CXX='-Bstatic'
13439 # Make sure the PIC flag is empty. It appears that all Alpha
13440 # Linux and Compaq Tru64 Unix objects are PIC.
13441 lt_prog_compiler_pic_CXX=
13442 lt_prog_compiler_static_CXX='-non_shared'
13445 # IBM XL 8.0 on PPC
13446 lt_prog_compiler_wl_CXX='-Wl,'
13447 lt_prog_compiler_pic_CXX='-qpic'
13448 lt_prog_compiler_static_CXX='-qstaticlink'
13451 case `$CC -V 2>&1 | sed 5q` in
13454 lt_prog_compiler_pic_CXX='-KPIC'
13455 lt_prog_compiler_static_CXX='-Bstatic'
13456 lt_prog_compiler_wl_CXX='-Qoption ld '
13467 case $cc_basename in
13469 lt_prog_compiler_pic_CXX='-W c,exportall'
13475 netbsd* | netbsdelf*-gnu)
13478 # QNX uses GNU C++, but need to define -shared option too, otherwise
13479 # it will coredump.
13480 lt_prog_compiler_pic_CXX='-fPIC -shared'
13482 osf3* | osf4* | osf5*)
13483 case $cc_basename in
13485 lt_prog_compiler_wl_CXX='--backend -Wl,'
13488 # Rational C++ 2.4.1
13489 lt_prog_compiler_pic_CXX='-pic'
13492 # Digital/Compaq C++
13493 lt_prog_compiler_wl_CXX='-Wl,'
13494 # Make sure the PIC flag is empty. It appears that all Alpha
13495 # Linux and Compaq Tru64 Unix objects are PIC.
13496 lt_prog_compiler_pic_CXX=
13497 lt_prog_compiler_static_CXX='-non_shared'
13506 case $cc_basename in
13508 # Sun C++ 4.2, 5.x and Centerline C++
13509 lt_prog_compiler_pic_CXX='-KPIC'
13510 lt_prog_compiler_static_CXX='-Bstatic'
13511 lt_prog_compiler_wl_CXX='-Qoption ld '
13514 # Green Hills C++ Compiler
13515 lt_prog_compiler_pic_CXX='-PIC'
13522 case $cc_basename in
13525 lt_prog_compiler_pic_CXX='-pic'
13526 lt_prog_compiler_static_CXX='-Bstatic'
13530 lt_prog_compiler_pic_CXX='-pic'
13536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13537 case $cc_basename in
13539 lt_prog_compiler_wl_CXX='-Wl,'
13540 lt_prog_compiler_pic_CXX='-KPIC'
13541 lt_prog_compiler_static_CXX='-Bstatic'
13546 case $cc_basename in
13548 # NonStop-UX NCC 3.20
13549 lt_prog_compiler_pic_CXX='-KPIC'
13558 lt_prog_compiler_can_build_shared_CXX=no
13564 # For platforms which do not support PIC, -DPIC is meaningless:
13566 lt_prog_compiler_pic_CXX=
13569 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13573 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13578 # Check to make sure the PIC flag actually works.
13580 if test -n "$lt_prog_compiler_pic_CXX"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13582 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13583 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13584 $as_echo_n "(cached) " >&6
13586 lt_cv_prog_compiler_pic_works_CXX=no
13587 ac_outfile=conftest.$ac_objext
13588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13589 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13590 # Insert the option either (1) after the last *FLAGS variable, or
13591 # (2) before a word containing "conftest.", or (3) at the end.
13592 # Note that $ac_compile itself does not contain backslashes and begins
13593 # with a dollar sign (not a hyphen), so the echo should work correctly.
13594 # The option is referenced via a variable to avoid confusing sed.
13595 lt_compile=`echo "$ac_compile" | $SED \
13596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13598 -e 's:$: $lt_compiler_flag:'`
13599 (eval echo "\"\$as_me:13599: $lt_compile\"" >&5)
13600 (eval "$lt_compile" 2>conftest.err)
13602 cat conftest.err >&5
13603 echo "$as_me:13603: \$? = $ac_status" >&5
13604 if (exit $ac_status) && test -s "$ac_outfile"; then
13605 # The compiler can only warn and ignore the option if not recognized
13606 # So say no if there are warnings other than the usual output.
13607 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13610 lt_cv_prog_compiler_pic_works_CXX=yes
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13617 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13619 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13620 case $lt_prog_compiler_pic_CXX in
13622 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13625 lt_prog_compiler_pic_CXX=
13626 lt_prog_compiler_can_build_shared_CXX=no
13634 # Check to make sure the static flag actually works.
13636 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13638 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13639 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13640 $as_echo_n "(cached) " >&6
13642 lt_cv_prog_compiler_static_works_CXX=no
13643 save_LDFLAGS="$LDFLAGS"
13644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13647 # The linker can only warn and ignore the option if not recognized
13648 # So say no if there are warnings
13649 if test -s conftest.err; then
13650 # Append any errors to the config.log.
13651 cat conftest.err 1>&5
13652 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13654 if diff conftest.exp conftest.er2 >/dev/null; then
13655 lt_cv_prog_compiler_static_works_CXX=yes
13658 lt_cv_prog_compiler_static_works_CXX=yes
13662 LDFLAGS="$save_LDFLAGS"
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13666 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13668 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13671 lt_prog_compiler_static_CXX=
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13679 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13680 $as_echo_n "(cached) " >&6
13682 lt_cv_prog_compiler_c_o_CXX=no
13683 $RM -r conftest 2>/dev/null
13687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13689 lt_compiler_flag="-o out/conftest2.$ac_objext"
13690 # Insert the option either (1) after the last *FLAGS variable, or
13691 # (2) before a word containing "conftest.", or (3) at the end.
13692 # Note that $ac_compile itself does not contain backslashes and begins
13693 # with a dollar sign (not a hyphen), so the echo should work correctly.
13694 lt_compile=`echo "$ac_compile" | $SED \
13695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13697 -e 's:$: $lt_compiler_flag:'`
13698 (eval echo "\"\$as_me:13698: $lt_compile\"" >&5)
13699 (eval "$lt_compile" 2>out/conftest.err)
13701 cat out/conftest.err >&5
13702 echo "$as_me:13702: \$? = $ac_status" >&5
13703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13705 # The compiler can only warn and ignore the option if not recognized
13706 # So say no if there are warnings
13707 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13710 lt_cv_prog_compiler_c_o_CXX=yes
13715 # SGI C++ compiler will create directory out/ii_files/ for
13716 # template instantiation
13717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13718 $RM out/* && rmdir out
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13725 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13730 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13731 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13732 $as_echo_n "(cached) " >&6
13734 lt_cv_prog_compiler_c_o_CXX=no
13735 $RM -r conftest 2>/dev/null
13739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13741 lt_compiler_flag="-o out/conftest2.$ac_objext"
13742 # Insert the option either (1) after the last *FLAGS variable, or
13743 # (2) before a word containing "conftest.", or (3) at the end.
13744 # Note that $ac_compile itself does not contain backslashes and begins
13745 # with a dollar sign (not a hyphen), so the echo should work correctly.
13746 lt_compile=`echo "$ac_compile" | $SED \
13747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13749 -e 's:$: $lt_compiler_flag:'`
13750 (eval echo "\"\$as_me:13750: $lt_compile\"" >&5)
13751 (eval "$lt_compile" 2>out/conftest.err)
13753 cat out/conftest.err >&5
13754 echo "$as_me:13754: \$? = $ac_status" >&5
13755 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13757 # The compiler can only warn and ignore the option if not recognized
13758 # So say no if there are warnings
13759 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13762 lt_cv_prog_compiler_c_o_CXX=yes
13767 # SGI C++ compiler will create directory out/ii_files/ for
13768 # template instantiation
13769 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13770 $RM out/* && rmdir out
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13777 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13782 hard_links="nottested"
13783 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13784 # do not overwrite the value of need_locks provided by the user
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13786 $as_echo_n "checking if we can lock with hard links... " >&6; }
13789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13791 ln conftest.a conftest.b 2>&5 || hard_links=no
13792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13794 $as_echo "$hard_links" >&6; }
13795 if test "$hard_links" = no; then
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13797 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13807 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13809 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13812 # If we're using GNU nm, then we don't want the "-C" option.
13813 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13814 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13815 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'
13817 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'
13821 export_symbols_cmds_CXX="$ltdll_cmds"
13823 cygwin* | mingw* | cegcc*)
13824 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'
13826 linux* | k*bsd*-gnu)
13827 link_all_deplibs_CXX=no
13830 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13833 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13836 $as_echo "$ld_shlibs_CXX" >&6; }
13837 test "$ld_shlibs_CXX" = no && can_build_shared=no
13839 with_gnu_ld_CXX=$with_gnu_ld
13847 # Do we need to explicitly link libc?
13849 case "x$archive_cmds_need_lc_CXX" in
13851 # Assume -lc should be added
13852 archive_cmds_need_lc_CXX=yes
13854 if test "$enable_shared" = yes && test "$GCC" = yes; then
13855 case $archive_cmds_CXX in
13857 # FIXME: we may have to deal with multi-command sequences.
13860 # Test whether the compiler implicitly links with -lc since on some
13861 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13862 # to ld, don't add -lc before -lgcc.
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13864 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13869 (eval $ac_compile) 2>&5
13871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13872 test $ac_status = 0; } 2>conftest.err; then
13875 libobjs=conftest.$ac_objext
13877 wl=$lt_prog_compiler_wl_CXX
13878 pic_flag=$lt_prog_compiler_pic_CXX
13884 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13885 allow_undefined_flag_CXX=
13886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13887 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13890 test $ac_status = 0; }
13892 archive_cmds_need_lc_CXX=no
13894 archive_cmds_need_lc_CXX=yes
13896 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13898 cat conftest.err 1>&5
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13902 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13975 library_names_spec=
13976 libname_spec='lib$name'
13980 postuninstall_cmds=
13984 shlibpath_overrides_runpath=unknown
13986 dynamic_linker="$host_os ld.so"
13987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13988 need_lib_prefix=unknown
13989 hardcode_into_libs=no
13991 # when you set need_version to no, make sure it does not cause -set_version
13992 # flags to be left without arguments
13993 need_version=unknown
13998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13999 shlibpath_var=LIBPATH
14001 # AIX 3 has no versioning support, so we append a major version to the name.
14002 soname_spec='${libname}${release}${shared_ext}$major'
14009 hardcode_into_libs=yes
14010 if test "$host_cpu" = ia64; then
14011 # AIX 5 supports IA64
14012 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14013 shlibpath_var=LD_LIBRARY_PATH
14015 # With GCC up to 2.95.x, collect2 would create an import file
14016 # for dependence libraries. The import file would start with
14017 # the line `#! .'. This would cause the generated library to
14018 # depend on `.', always an invalid library. This was fixed in
14019 # development snapshots of GCC prior to 3.0.
14021 aix4 | aix4.[01] | aix4.[01].*)
14022 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14024 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14027 can_build_shared=no
14031 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14032 # soname into executable. Probably we can add versioning support to
14033 # collect2, so additional links can be useful in future.
14034 if test "$aix_use_runtimelinking" = yes; then
14035 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14036 # instead of lib<name>.a to let people know that these are not
14037 # typical AIX shared libraries.
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14040 # We preserve .a as extension for shared libraries through AIX4.2
14041 # and later when we are not doing run time linking.
14042 library_names_spec='${libname}${release}.a $libname.a'
14043 soname_spec='${libname}${release}${shared_ext}$major'
14045 shlibpath_var=LIBPATH
14052 # Since July 2007 AmigaOS4 officially supports .so libraries.
14053 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057 library_names_spec='$libname.ixlibrary $libname.a'
14058 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14059 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'
14065 library_names_spec='${libname}${shared_ext}'
14066 dynamic_linker="$host_os ld.so"
14067 shlibpath_var=LIBRARY_PATH
14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074 soname_spec='${libname}${release}${shared_ext}$major'
14075 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14078 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14079 # the default ld.so.conf also contains /usr/contrib/lib and
14080 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14081 # libtool to hard-code these into programs
14084 cygwin* | mingw* | pw32* | cegcc*)
14085 version_type=windows
14090 case $GCC,$host_os in
14091 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14092 library_names_spec='$libname.dll.a'
14093 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14094 postinstall_cmds='base_file=`basename \${file}`~
14095 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14096 dldir=$destdir/`dirname \$dlpath`~
14097 test -d \$dldir || mkdir -p \$dldir~
14098 $install_prog $dir/$dlname \$dldir/$dlname~
14099 chmod a+x \$dldir/$dlname~
14100 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14101 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14104 dlpath=$dir/\$dldll~
14106 shlibpath_overrides_runpath=yes
14110 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14111 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14112 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14115 # MinGW DLLs use traditional 'lib' prefix
14116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14117 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14118 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14119 # It is most probably a Windows format PATH printed by
14120 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14121 # path with ; separators, and with drive letters. We can handle the
14122 # drive letters (cygwin fileutils understands them), so leave them,
14123 # especially as we might pass files found there to a mingw objdump,
14124 # which wouldn't understand a cygwinified path. Ahh.
14125 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14127 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14131 # pw32 DLLs use 'pw' prefix rather than 'lib'
14132 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14138 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14141 dynamic_linker='Win32 ld.exe'
14142 # FIXME: first we should search . and the directory the executable is in
14146 darwin* | rhapsody*)
14147 dynamic_linker="$host_os dyld"
14148 version_type=darwin
14151 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14152 soname_spec='${libname}${release}${major}$shared_ext'
14153 shlibpath_overrides_runpath=yes
14154 shlibpath_var=DYLD_LIBRARY_PATH
14155 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14157 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14165 soname_spec='${libname}${release}${shared_ext}$major'
14166 shlibpath_var=LD_LIBRARY_PATH
14173 freebsd* | dragonfly*)
14174 # DragonFly does not have aout. When/if they implement a new
14175 # versioning mechanism, adjust this.
14176 if test -x /usr/bin/objformat; then
14177 objformat=`/usr/bin/objformat`
14180 freebsd[123]*) objformat=aout ;;
14181 *) objformat=elf ;;
14184 version_type=freebsd-$objformat
14185 case $version_type in
14187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14196 shlibpath_var=LD_LIBRARY_PATH
14199 shlibpath_overrides_runpath=yes
14201 freebsd3.[01]* | freebsdelf3.[01]*)
14202 shlibpath_overrides_runpath=yes
14203 hardcode_into_libs=yes
14205 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14206 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14207 shlibpath_overrides_runpath=no
14208 hardcode_into_libs=yes
14210 *) # from 4.6 on, and DragonFly
14211 shlibpath_overrides_runpath=yes
14212 hardcode_into_libs=yes
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14222 soname_spec='${libname}${release}${shared_ext}$major'
14223 shlibpath_var=LD_LIBRARY_PATH
14224 hardcode_into_libs=yes
14227 hpux9* | hpux10* | hpux11*)
14228 # Give a soname corresponding to the major version so that dld.sl refuses to
14229 # link against other versions.
14236 hardcode_into_libs=yes
14237 dynamic_linker="$host_os dld.so"
14238 shlibpath_var=LD_LIBRARY_PATH
14239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14241 soname_spec='${libname}${release}${shared_ext}$major'
14242 if test "X$HPUX_IA64_MODE" = X32; then
14243 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14245 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14251 hardcode_into_libs=yes
14252 dynamic_linker="$host_os dld.sl"
14253 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14262 dynamic_linker="$host_os dld.sl"
14263 shlibpath_var=SHLIB_PATH
14264 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14266 soname_spec='${libname}${release}${shared_ext}$major'
14269 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14270 postinstall_cmds='chmod 555 $lib'
14277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14278 soname_spec='${libname}${release}${shared_ext}$major'
14279 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14280 shlibpath_var=LD_LIBRARY_PATH
14281 shlibpath_overrides_runpath=no
14282 hardcode_into_libs=yes
14285 irix5* | irix6* | nonstopux*)
14287 nonstopux*) version_type=nonstopux ;;
14289 if test "$lt_cv_prog_gnu_ld" = yes; then
14297 soname_spec='${libname}${release}${shared_ext}$major'
14298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14300 irix5* | nonstopux*)
14301 libsuff= shlibsuff=
14304 case $LD in # libtool.m4 will add one of these switches to LD
14305 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14306 libsuff= shlibsuff= libmagic=32-bit;;
14307 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14308 libsuff=32 shlibsuff=N32 libmagic=N32;;
14309 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14310 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14311 *) libsuff= shlibsuff= libmagic=never-match;;
14315 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14316 shlibpath_overrides_runpath=no
14317 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14318 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14319 hardcode_into_libs=yes
14322 # No shared lib support for Linux oldld, aout, or coff.
14323 linux*oldld* | linux*aout* | linux*coff*)
14327 # This must be Linux ELF.
14328 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14333 soname_spec='${libname}${release}${shared_ext}$major'
14334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14335 shlibpath_var=LD_LIBRARY_PATH
14336 shlibpath_overrides_runpath=no
14337 # Some binutils ld are patched to set DT_RUNPATH
14338 save_LDFLAGS=$LDFLAGS
14339 save_libdir=$libdir
14340 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14341 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14353 if ac_fn_cxx_try_link "$LINENO"; then :
14354 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14355 shlibpath_overrides_runpath=yes
14358 rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LDFLAGS=$save_LDFLAGS
14361 libdir=$save_libdir
14363 # This implies no fast_install, which is unacceptable.
14364 # Some rework will be needed to allow for fast_install
14365 # before this can be enabled.
14366 hardcode_into_libs=yes
14368 # Append ld.so.conf contents to the search path
14369 if test -f /etc/ld.so.conf; then
14370 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' ' '`
14371 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14374 # We used to test for /lib/ld.so.1 and disable shared libraries on
14375 # powerpc, because MkLinux only supported shared libraries with the
14376 # GNU dynamic linker. Since this was broken with cross compilers,
14377 # most powerpc-linux boxes support dynamic linking these days and
14378 # people can always --disable-shared, the test was removed, and we
14379 # assume the GNU/Linux dynamic linker is in use.
14380 dynamic_linker='GNU/Linux ld.so'
14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14388 soname_spec='${libname}${release}${shared_ext}$major'
14389 shlibpath_var=LD_LIBRARY_PATH
14390 shlibpath_overrides_runpath=no
14391 hardcode_into_libs=yes
14392 dynamic_linker='NetBSD ld.elf_so'
14399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14402 dynamic_linker='NetBSD (a.out) ld.so'
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14405 soname_spec='${libname}${release}${shared_ext}$major'
14406 dynamic_linker='NetBSD ld.elf_so'
14408 shlibpath_var=LD_LIBRARY_PATH
14409 shlibpath_overrides_runpath=yes
14410 hardcode_into_libs=yes
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416 shlibpath_var=LD_LIBRARY_PATH
14417 shlibpath_overrides_runpath=yes
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425 soname_spec='${libname}${release}${shared_ext}$major'
14426 shlibpath_var=LD_LIBRARY_PATH
14427 shlibpath_overrides_runpath=no
14428 hardcode_into_libs=yes
14429 dynamic_linker='ldqnx.so'
14434 sys_lib_dlsearch_path_spec="/usr/lib"
14436 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14438 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14439 *) need_version=no ;;
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14443 shlibpath_var=LD_LIBRARY_PATH
14444 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14446 openbsd2.[89] | openbsd2.[89].*)
14447 shlibpath_overrides_runpath=no
14450 shlibpath_overrides_runpath=yes
14454 shlibpath_overrides_runpath=yes
14459 libname_spec='$name'
14462 library_names_spec='$libname${shared_ext} $libname.a'
14463 dynamic_linker='OS/2 ld.exe'
14464 shlibpath_var=LIBPATH
14467 osf3* | osf4* | osf5*)
14471 soname_spec='${libname}${release}${shared_ext}$major'
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14475 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 shlibpath_var=LD_LIBRARY_PATH
14489 shlibpath_overrides_runpath=yes
14490 hardcode_into_libs=yes
14491 # ldd complains unless libraries are executable
14492 postinstall_cmds='chmod +x $lib'
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14498 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14499 shlibpath_var=LD_LIBRARY_PATH
14500 shlibpath_overrides_runpath=yes
14501 if test "$with_gnu_ld" = yes; then
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510 soname_spec='${libname}${release}${shared_ext}$major'
14511 shlibpath_var=LD_LIBRARY_PATH
14512 case $host_vendor in
14514 shlibpath_overrides_runpath=no
14516 runpath_var=LD_RUN_PATH
14524 shlibpath_overrides_runpath=no
14525 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14531 if test -d /usr/nec ;then
14533 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14534 soname_spec='$libname${shared_ext}.$major'
14535 shlibpath_var=LD_LIBRARY_PATH
14539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14540 version_type=freebsd-elf
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14544 soname_spec='${libname}${release}${shared_ext}$major'
14545 shlibpath_var=LD_LIBRARY_PATH
14546 shlibpath_overrides_runpath=yes
14547 hardcode_into_libs=yes
14548 if test "$with_gnu_ld" = yes; then
14549 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14551 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14554 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14558 sys_lib_dlsearch_path_spec='/usr/lib'
14562 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 shlibpath_overrides_runpath=no
14569 hardcode_into_libs=yes
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575 soname_spec='${libname}${release}${shared_ext}$major'
14576 shlibpath_var=LD_LIBRARY_PATH
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14584 $as_echo "$dynamic_linker" >&6; }
14585 test "$dynamic_linker" = no && can_build_shared=no
14587 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14588 if test "$GCC" = yes; then
14589 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14592 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14593 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14595 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14596 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14635 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14636 hardcode_action_CXX=
14637 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14638 test -n "$runpath_var_CXX" ||
14639 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14641 # We can hardcode non-existent directories.
14642 if test "$hardcode_direct_CXX" != no &&
14643 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14644 # have to relink, otherwise we might link with an installed library
14645 # when we should be linking with a yet-to-be-installed one
14646 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14647 test "$hardcode_minus_L_CXX" != no; then
14648 # Linking always hardcodes the temporary library directory.
14649 hardcode_action_CXX=relink
14651 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14652 hardcode_action_CXX=immediate
14655 # We cannot hardcode anything, or else we can only hardcode existing
14657 hardcode_action_CXX=unsupported
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14660 $as_echo "$hardcode_action_CXX" >&6; }
14662 if test "$hardcode_action_CXX" = relink ||
14663 test "$inherit_rpath_CXX" = yes; then
14664 # Fast installation is not supported
14665 enable_fast_install=no
14666 elif test "$shlibpath_overrides_runpath" = yes ||
14667 test "$enable_shared" = no; then
14668 # Fast installation is not necessary
14669 enable_fast_install=needless
14678 fi # test -n "$compiler"
14684 with_gnu_ld=$lt_save_with_gnu_ld
14685 lt_cv_path_LDCXX=$lt_cv_path_LD
14686 lt_cv_path_LD=$lt_save_path_LD
14687 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14688 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14689 fi # test "$_lt_caught_CXX_error" != yes
14692 ac_cpp='$CXXCPP $CPPFLAGS'
14693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14709 ac_config_commands="$ac_config_commands libtool"
14714 # Only expand once:
14719 # Check whether some low-level functions/files are available
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14722 $as_echo_n "checking for ANSI C header files... " >&6; }
14723 if test "${ac_cv_header_stdc+set}" = set; then :
14724 $as_echo_n "(cached) " >&6
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 #include <stdlib.h>
14729 #include <stdarg.h>
14730 #include <string.h>
14741 if ac_fn_cxx_try_compile "$LINENO"; then :
14742 ac_cv_header_stdc=yes
14744 ac_cv_header_stdc=no
14746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14748 if test $ac_cv_header_stdc = yes; then
14749 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 #include <string.h>
14755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14756 $EGREP "memchr" >/dev/null 2>&1; then :
14759 ac_cv_header_stdc=no
14765 if test $ac_cv_header_stdc = yes; then
14766 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14769 #include <stdlib.h>
14772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14773 $EGREP "free" >/dev/null 2>&1; then :
14776 ac_cv_header_stdc=no
14782 if test $ac_cv_header_stdc = yes; then
14783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14784 if test "$cross_compiling" = yes; then :
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14790 #include <stdlib.h>
14791 #if ((' ' & 0x0FF) == 0x020)
14792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14795 # define ISLOWER(c) \
14796 (('a' <= (c) && (c) <= 'i') \
14797 || ('j' <= (c) && (c) <= 'r') \
14798 || ('s' <= (c) && (c) <= 'z'))
14799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14807 for (i = 0; i < 256; i++)
14808 if (XOR (islower (i), ISLOWER (i))
14809 || toupper (i) != TOUPPER (i))
14814 if ac_fn_cxx_try_run "$LINENO"; then :
14817 ac_cv_header_stdc=no
14819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14820 conftest.$ac_objext conftest.beam conftest.$ac_ext
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14826 $as_echo "$ac_cv_header_stdc" >&6; }
14827 if test $ac_cv_header_stdc = yes; then
14829 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14834 # These are tested for by AC_HEADER_STDC, but I check again to set the var
14835 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14836 if test "x$ac_cv_header_stdint_h" = x""yes; then :
14837 ac_cv_have_stdint_h=1
14839 ac_cv_have_stdint_h=0
14843 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14844 if test "x$ac_cv_header_sys_types_h" = x""yes; then :
14845 ac_cv_have_systypes_h=1
14847 ac_cv_have_systypes_h=0
14851 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14852 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
14853 ac_cv_have_inttypes_h=1
14855 ac_cv_have_inttypes_h=0
14859 for ac_header in unistd.h
14861 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14862 if test "x$ac_cv_header_unistd_h" = x""yes; then :
14863 cat >>confdefs.h <<_ACEOF
14864 #define HAVE_UNISTD_H 1
14866 ac_cv_have_unistd_h=1
14868 ac_cv_have_unistd_h=0
14873 for ac_header in syscall.h
14875 ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
14876 if test "x$ac_cv_header_syscall_h" = x""yes; then :
14877 cat >>confdefs.h <<_ACEOF
14878 #define HAVE_SYSCALL_H 1
14885 for ac_header in sys/syscall.h
14887 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
14888 if test "x$ac_cv_header_sys_syscall_h" = x""yes; then :
14889 cat >>confdefs.h <<_ACEOF
14890 #define HAVE_SYS_SYSCALL_H 1
14897 # For backtrace with glibc.
14898 for ac_header in execinfo.h
14900 ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
14901 if test "x$ac_cv_header_execinfo_h" = x""yes; then :
14902 cat >>confdefs.h <<_ACEOF
14903 #define HAVE_EXECINFO_H 1
14910 # For backtrace with libunwind.
14911 for ac_header in libunwind.h
14913 ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
14914 if test "x$ac_cv_header_libunwind_h" = x""yes; then :
14915 cat >>confdefs.h <<_ACEOF
14916 #define HAVE_LIBUNWIND_H 1
14918 ac_cv_have_libunwind_h=1
14920 ac_cv_have_libunwind_h=0
14925 for ac_header in ucontext.h
14927 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
14928 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
14929 cat >>confdefs.h <<_ACEOF
14930 #define HAVE_UCONTEXT_H 1
14937 for ac_header in sys/utsname.h
14939 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
14940 if test "x$ac_cv_header_sys_utsname_h" = x""yes; then :
14941 cat >>confdefs.h <<_ACEOF
14942 #define HAVE_SYS_UTSNAME_H 1
14949 for ac_header in pwd.h
14951 ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
14952 if test "x$ac_cv_header_pwd_h" = x""yes; then :
14953 cat >>confdefs.h <<_ACEOF
14954 #define HAVE_PWD_H 1
14961 for ac_header in syslog.h
14963 ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14964 if test "x$ac_cv_header_syslog_h" = x""yes; then :
14965 cat >>confdefs.h <<_ACEOF
14966 #define HAVE_SYSLOG_H 1
14973 for ac_header in sys/time.h
14975 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14976 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
14977 cat >>confdefs.h <<_ACEOF
14978 #define HAVE_SYS_TIME_H 1
14985 for ac_header in glob.h
14987 ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
14988 if test "x$ac_cv_header_glob_h" = x""yes; then :
14989 cat >>confdefs.h <<_ACEOF
14990 #define HAVE_GLOB_H 1
14998 # The cast to long int works around a bug in the HP C Compiler
14999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15001 # This bug is HP SR number 8606223364.
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15003 $as_echo_n "checking size of void *... " >&6; }
15004 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15005 $as_echo_n "(cached) " >&6
15007 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15010 if test "$ac_cv_type_void_p" = yes; then
15011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15013 { as_fn_set_status 77
15014 as_fn_error "cannot compute sizeof (void *)
15015 See \`config.log' for more details." "$LINENO" 5; }; }
15017 ac_cv_sizeof_void_p=0
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15023 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15027 cat >>confdefs.h <<_ACEOF
15028 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15033 # These are the types I need. We look for them in either stdint.h,
15034 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15035 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15036 if test "x$ac_cv_type_uint16_t" = x""yes; then :
15037 ac_cv_have_uint16_t=1
15039 ac_cv_have_uint16_t=0
15042 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15043 if test "x$ac_cv_type_u_int16_t" = x""yes; then :
15044 ac_cv_have_u_int16_t=1
15046 ac_cv_have_u_int16_t=0
15049 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15050 if test "x$ac_cv_type___uint16" = x""yes; then :
15051 ac_cv_have___uint16=1
15053 ac_cv_have___uint16=0
15057 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15058 if test "x$ac_cv_func_sigaltstack" = x""yes; then :
15060 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15064 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15065 if test "x$ac_cv_func_dladdr" = x""yes; then :
15067 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15071 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15072 if test "x$ac_cv_func_fcntl" = x""yes; then :
15074 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15081 $as_echo_n "checking for __attribute__... " >&6; }
15082 if test "${ac_cv___attribute__+set}" = set; then :
15083 $as_echo_n "(cached) " >&6
15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h. */
15088 #include <stdlib.h>
15089 static void foo(void) __attribute__ ((unused));
15090 void foo(void) { exit(1); }
15099 if ac_fn_cxx_try_compile "$LINENO"; then :
15100 ac_cv___attribute__=yes
15102 ac_cv___attribute__=no
15105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15108 if test "$ac_cv___attribute__" = "yes"; then
15110 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15114 $as_echo "$ac_cv___attribute__" >&6; }
15116 # We only care about these two attributes.
15117 if test x"$ac_cv___attribute__" = x"yes"; then
15118 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15119 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15121 ac_cv___attribute___noreturn=
15122 ac_cv___attribute___printf_4_5=
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15127 $as_echo_n "checking for __builtin_expect... " >&6; }
15128 if test "${ac_cv___builtin_expect+set}" = set; then :
15129 $as_echo_n "(cached) " >&6
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15134 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15143 if ac_fn_cxx_try_compile "$LINENO"; then :
15144 ac_cv___builtin_expect=yes
15146 ac_cv___builtin_expect=no
15149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15152 if test "$ac_cv___builtin_expect" = "yes"; then
15154 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15158 $as_echo "$ac_cv___builtin_expect" >&6; }
15160 if test x"$ac_cv___builtin_expect" = x"yes"; then
15161 ac_cv_have___builtin_expect=1
15163 ac_cv_have___builtin_expect=0
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15168 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15169 if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then :
15170 $as_echo_n "(cached) " >&6
15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15179 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15184 if ac_fn_cxx_try_link "$LINENO"; then :
15185 ac_cv___sync_val_compare_and_swap=yes
15187 ac_cv___sync_val_compare_and_swap=no
15190 rm -f core conftest.err conftest.$ac_objext \
15191 conftest$ac_exeext conftest.$ac_ext
15194 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15196 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15200 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15203 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15204 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15205 # Check whether --enable-frame_pointers was given.
15206 if test "${enable_frame_pointers+set}" = set; then :
15207 enableval=$enable_frame_pointers;
15209 enable_frame_pointers=no
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15218 return __x86_64__ == 1 ? 0 : 1
15223 if ac_fn_cxx_try_compile "$LINENO"; then :
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229 if test "$enable_frame_pointers" = yes; then
15230 ENABLE_FRAME_POINTERS_TRUE=
15231 ENABLE_FRAME_POINTERS_FALSE='#'
15233 ENABLE_FRAME_POINTERS_TRUE='#'
15234 ENABLE_FRAME_POINTERS_FALSE=
15237 if test "$is_x86_64" = yes; then
15246 # Some of the code in this directory depends on pthreads
15251 ac_cpp='$CPP $CPPFLAGS'
15252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15258 # We used to check for pthread.h first, but this fails if pthread.h
15259 # requires special compiler flags (e.g. on True64 or Sequent).
15260 # It gets checked for in the link test anyway.
15262 # First of all, check if the user has set any of the PTHREAD_LIBS,
15263 # etcetera environment variables, and if threads linking works using
15265 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15266 save_CFLAGS="$CFLAGS"
15267 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15269 LIBS="$PTHREAD_LIBS $LIBS"
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15271 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15275 /* Override any GCC internal prototype to avoid an error.
15276 Use char because int might match the return type of a GCC
15277 builtin and then its argument prototype would still apply. */
15281 char pthread_join ();
15285 return pthread_join ();
15290 if ac_fn_c_try_link "$LINENO"; then :
15293 rm -f core conftest.err conftest.$ac_objext \
15294 conftest$ac_exeext conftest.$ac_ext
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15296 $as_echo "$acx_pthread_ok" >&6; }
15297 if test x"$acx_pthread_ok" = xno; then
15302 CFLAGS="$save_CFLAGS"
15305 # We must check for the threads library under a number of different
15306 # names; the ordering is very important because some systems
15307 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15308 # libraries is broken (non-POSIX).
15310 # Create a list of thread flags to try. Items starting with a "-" are
15311 # C compiler flags, and other items are library names, except for "none"
15312 # which indicates that we try without any flags at all, and "pthread-config"
15313 # which is a program returning the flags for the Pth emulation library.
15315 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15317 # The ordering *is* (sometimes) important. Some notes on the
15318 # individual items follow:
15320 # pthreads: AIX (must check this before -lpthread)
15321 # none: in case threads are in libc; should be tried before -Kthread and
15322 # other compiler flags to prevent continual compiler warnings
15323 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15324 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15325 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15326 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15327 # -pthreads: Solaris/gcc
15328 # -mthreads: Mingw32/gcc, Lynx/gcc
15329 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15330 # doesn't hurt to check since this sometimes defines pthreads too;
15331 # also defines -D_REENTRANT)
15332 # ... -mt is also the pthreads flag for HP/aCC
15333 # pthread: Linux, etcetera
15334 # --thread-safe: KAI C++
15335 # pthread-config: use pthread-config program (for GNU Pth library)
15337 case "${host_cpu}-${host_os}" in
15340 # On Solaris (at least, for some versions), libc contains stubbed
15341 # (non-functional) versions of the pthreads routines, so link-based
15342 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15343 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15344 # a function called by this macro, so we could check for that, but
15345 # who knows whether they'll stub that too in a future libc.) So,
15346 # we'll just look for -pthreads and -lpthread first:
15348 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15352 if test x"$acx_pthread_ok" = xno; then
15353 for flag in $acx_pthread_flags; do
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15358 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15363 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15364 PTHREAD_CFLAGS="$flag"
15368 # Extract the first word of "pthread-config", so it can be a program name with args.
15369 set dummy pthread-config; ac_word=$2
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15371 $as_echo_n "checking for $ac_word... " >&6; }
15372 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
15373 $as_echo_n "(cached) " >&6
15375 if test -n "$acx_pthread_config"; then
15376 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15379 for as_dir in $PATH
15382 test -z "$as_dir" && as_dir=.
15383 for ac_exec_ext in '' $ac_executable_extensions; do
15384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15385 ac_cv_prog_acx_pthread_config="yes"
15386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15393 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15396 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15397 if test -n "$acx_pthread_config"; then
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15399 $as_echo "$acx_pthread_config" >&6; }
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15402 $as_echo "no" >&6; }
15406 if test x"$acx_pthread_config" = xno; then continue; fi
15407 PTHREAD_CFLAGS="`pthread-config --cflags`"
15408 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15413 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15414 PTHREAD_LIBS="-l$flag"
15419 save_CFLAGS="$CFLAGS"
15420 LIBS="$PTHREAD_LIBS $LIBS"
15421 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15423 # Check for various functions. We must include pthread.h,
15424 # since some functions may be macros. (On the Sequent, we
15425 # need a special flag -Kthread to make this header compile.)
15426 # We check for pthread_join because it is in -lpthread on IRIX
15427 # while pthread_create is in libc. We check for pthread_attr_init
15428 # due to DEC craziness with -lpthreads. We check for
15429 # pthread_cleanup_push because it is one of the few pthread
15430 # functions on Solaris that doesn't have a non-functional libc stub.
15431 # We try pthread_create on general principles.
15432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433 /* end confdefs.h. */
15434 #include <pthread.h>
15438 pthread_t th; pthread_join(th, 0);
15439 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15440 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15445 if ac_fn_c_try_link "$LINENO"; then :
15448 rm -f core conftest.err conftest.$ac_objext \
15449 conftest$ac_exeext conftest.$ac_ext
15452 CFLAGS="$save_CFLAGS"
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15455 $as_echo "$acx_pthread_ok" >&6; }
15456 if test "x$acx_pthread_ok" = xyes; then
15465 # Various other checks:
15466 if test "x$acx_pthread_ok" = xyes; then
15468 LIBS="$PTHREAD_LIBS $LIBS"
15469 save_CFLAGS="$CFLAGS"
15470 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15472 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15474 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15476 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15479 #include <pthread.h>
15483 int attr=$attr; return attr;
15488 if ac_fn_c_try_link "$LINENO"; then :
15489 attr_name=$attr; break
15491 rm -f core conftest.err conftest.$ac_objext \
15492 conftest$ac_exeext conftest.$ac_ext
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15495 $as_echo "$attr_name" >&6; }
15496 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15498 cat >>confdefs.h <<_ACEOF
15499 #define PTHREAD_CREATE_JOINABLE $attr_name
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15505 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15507 case "${host_cpu}-${host_os}" in
15508 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15509 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15512 $as_echo "${flag}" >&6; }
15513 if test "x$flag" != xno; then
15514 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15518 CFLAGS="$save_CFLAGS"
15519 # More AIX lossage: must compile with xlc_r or cc_r
15520 if test x"$GCC" != xyes; then
15521 for ac_prog in xlc_r cc_r
15523 # Extract the first word of "$ac_prog", so it can be a program name with args.
15524 set dummy $ac_prog; ac_word=$2
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15526 $as_echo_n "checking for $ac_word... " >&6; }
15527 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
15528 $as_echo_n "(cached) " >&6
15530 if test -n "$PTHREAD_CC"; then
15531 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15534 for as_dir in $PATH
15537 test -z "$as_dir" && as_dir=.
15538 for ac_exec_ext in '' $ac_executable_extensions; do
15539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15540 ac_cv_prog_PTHREAD_CC="$ac_prog"
15541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15550 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15551 if test -n "$PTHREAD_CC"; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15553 $as_echo "$PTHREAD_CC" >&6; }
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556 $as_echo "no" >&6; }
15560 test -n "$PTHREAD_CC" && break
15562 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15568 # The next part tries to detect GCC inconsistency with -shared on some
15569 # architectures and systems. The problem is that in certain
15570 # configurations, when -shared is specified, GCC "forgets" to
15571 # internally use various flags which are still necessary.
15574 # Prepare the flags
15576 save_CFLAGS="$CFLAGS"
15580 # Try with the flags determined by the earlier checks.
15582 # -Wl,-z,defs forces link-time symbol resolution, so that the
15583 # linking checks with -shared actually have any value
15585 # FIXME: -fPIC is required for -shared on many architectures,
15586 # so we specify it here, but the right way would probably be to
15587 # properly detect whether it is actually required.
15588 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15589 LIBS="$PTHREAD_LIBS $LIBS"
15592 # In order not to create several levels of indentation, we test
15593 # the value of "$done" until we find the cure or run out of ideas.
15596 # First, make sure the CFLAGS we added are actually accepted by our
15597 # compiler. If not (and OS X's ld, for instance, does not accept -z),
15598 # then we can't do this test.
15599 if test x"$done" = xno; then
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15601 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15613 if ac_fn_c_try_link "$LINENO"; then :
15618 rm -f core conftest.err conftest.$ac_objext \
15619 conftest$ac_exeext conftest.$ac_ext
15621 if test "x$done" = xyes ; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15623 $as_echo "no" >&6; }
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15626 $as_echo "yes" >&6; }
15630 if test x"$done" = xno; then
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15632 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 #include <pthread.h>
15639 pthread_t th; pthread_join(th, 0);
15640 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15641 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15646 if ac_fn_c_try_link "$LINENO"; then :
15649 rm -f core conftest.err conftest.$ac_objext \
15650 conftest$ac_exeext conftest.$ac_ext
15652 if test "x$done" = xyes; then
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15654 $as_echo "yes" >&6; }
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15657 $as_echo "no" >&6; }
15662 # Linux gcc on some architectures such as mips/mipsel forgets
15665 if test x"$done" = xno; then
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15667 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
15668 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671 #include <pthread.h>
15675 pthread_t th; pthread_join(th, 0);
15676 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15677 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15682 if ac_fn_c_try_link "$LINENO"; then :
15685 rm -f core conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
15688 if test "x$done" = xyes; then
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15690 $as_echo "yes" >&6; }
15691 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15694 $as_echo "no" >&6; }
15698 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15700 if test x"$done" = xno; then
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15702 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
15703 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706 #include <pthread.h>
15710 pthread_t th; pthread_join(th, 0);
15711 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15712 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15717 if ac_fn_c_try_link "$LINENO"; then :
15720 rm -f core conftest.err conftest.$ac_objext \
15721 conftest$ac_exeext conftest.$ac_ext
15723 if test "x$done" = xyes; then
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15725 $as_echo "yes" >&6; }
15726 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15729 $as_echo "no" >&6; }
15732 if test x"$done" = xno; then
15733 # OK, we have run out of ideas
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15735 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15737 # so it's not safe to assume that we may use pthreads
15741 CFLAGS="$save_CFLAGS"
15752 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15753 if test x"$acx_pthread_ok" = xyes; then
15755 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15763 ac_cpp='$CXXCPP $CPPFLAGS'
15764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15769 if test x"$acx_pthread_ok" = x"yes"; then
15770 # To make libglog depend on libpthread on Linux, we need to add
15771 # -lpthread in addition to -pthread.
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
15773 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
15774 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
15775 $as_echo_n "(cached) " >&6
15777 ac_check_lib_save_LIBS=$LIBS
15778 LIBS="-lpthread $LIBS"
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15782 /* Override any GCC internal prototype to avoid an error.
15783 Use char because int might match the return type of a GCC
15784 builtin and then its argument prototype would still apply. */
15788 char pthread_self ();
15792 return pthread_self ();
15797 if ac_fn_cxx_try_link "$LINENO"; then :
15798 ac_cv_lib_pthread_pthread_self=yes
15800 ac_cv_lib_pthread_pthread_self=no
15802 rm -f core conftest.err conftest.$ac_objext \
15803 conftest$ac_exeext conftest.$ac_ext
15804 LIBS=$ac_check_lib_save_LIBS
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
15807 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
15808 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
15809 cat >>confdefs.h <<_ACEOF
15810 #define HAVE_LIBPTHREAD 1
15813 LIBS="-lpthread $LIBS"
15819 # Check if there is google-gflags library installed.
15820 SAVE_CFLAGS="$CFLAGS"
15823 # Check whether --with-gflags was given.
15824 if test "${with_gflags+set}" = set; then :
15825 withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
15826 GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
15827 CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
15828 LIBS="$LIBS $GFLAGS_LIBS"
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
15833 $as_echo_n "checking for main in -lgflags... " >&6; }
15834 if test "${ac_cv_lib_gflags_main+set}" = set; then :
15835 $as_echo_n "(cached) " >&6
15837 ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lgflags $LIBS"
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15851 if ac_fn_cxx_try_link "$LINENO"; then :
15852 ac_cv_lib_gflags_main=yes
15854 ac_cv_lib_gflags_main=no
15856 rm -f core conftest.err conftest.$ac_objext \
15857 conftest$ac_exeext conftest.$ac_ext
15858 LIBS=$ac_check_lib_save_LIBS
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
15861 $as_echo "$ac_cv_lib_gflags_main" >&6; }
15862 if test "x$ac_cv_lib_gflags_main" = x""yes; then :
15863 ac_cv_have_libgflags=1
15865 ac_cv_have_libgflags=0
15868 if test x"$ac_cv_have_libgflags" = x"1"; then
15870 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
15872 if test x"$GFLAGS_LIBS" = x""; then
15873 GFLAGS_LIBS="-lgflags"
15879 CFLAGS="$SAVE_CFLAGS"
15882 # TODO(hamaji): Use official m4 macros provided by testing libraries
15883 # once the m4 macro of Google Mocking becomes ready.
15884 # Check if there is Google Test library installed.
15885 # Extract the first word of "gtest-config", so it can be a program name with args.
15886 set dummy gtest-config; ac_word=$2
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15888 $as_echo_n "checking for $ac_word... " >&6; }
15889 if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then :
15890 $as_echo_n "(cached) " >&6
15892 if test -n "$GTEST_CONFIG"; then
15893 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
15895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15896 for as_dir in $PATH
15899 test -z "$as_dir" && as_dir=.
15900 for ac_exec_ext in '' $ac_executable_extensions; do
15901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15902 ac_cv_prog_GTEST_CONFIG=""yes""
15903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15912 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
15913 if test -n "$GTEST_CONFIG"; then
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
15915 $as_echo "$GTEST_CONFIG" >&6; }
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15918 $as_echo "no" >&6; }
15922 if test x"$GTEST_CONFIG" = "xyes"; then
15923 GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
15924 GTEST_LIBS=`gtest-config --ldflags --libs`
15926 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
15929 # Check if there is Google Mocking library installed.
15930 # Extract the first word of "gmock-config", so it can be a program name with args.
15931 set dummy gmock-config; ac_word=$2
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15933 $as_echo_n "checking for $ac_word... " >&6; }
15934 if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then :
15935 $as_echo_n "(cached) " >&6
15937 if test -n "$GMOCK_CONFIG"; then
15938 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
15940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15941 for as_dir in $PATH
15944 test -z "$as_dir" && as_dir=.
15945 for ac_exec_ext in '' $ac_executable_extensions; do
15946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15947 ac_cv_prog_GMOCK_CONFIG=""yes""
15948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15957 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
15958 if test -n "$GMOCK_CONFIG"; then
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
15960 $as_echo "$GMOCK_CONFIG" >&6; }
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15963 $as_echo "no" >&6; }
15967 if test x"$GMOCK_CONFIG" = "xyes"; then
15968 GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
15969 GMOCK_LIBS=`gmock-config --ldflags --libs`
15971 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
15974 # We don't run test cases which use Google Mocking framework.
15979 # We'll use src/googletest.h for our unittests.
15983 if test x"$GMOCK_CONFIG" = "xyes"; then
15985 HAVE_GMOCK_FALSE='#'
15987 HAVE_GMOCK_TRUE='#'
15992 # We want to link in libunwind if it exists
15994 # Unfortunately, we need to check the header file in addition to the
15995 # lib file to check if libunwind is available since libunwind-0.98
15996 # doesn't install all necessary header files.
15997 if test x"$ac_cv_have_libunwind_h" = x"1"; then
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
15999 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16000 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then :
16001 $as_echo_n "(cached) " >&6
16003 ac_check_lib_save_LIBS=$LIBS
16004 LIBS="-lunwind $LIBS"
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16008 /* Override any GCC internal prototype to avoid an error.
16009 Use char because int might match the return type of a GCC
16010 builtin and then its argument prototype would still apply. */
16018 return backtrace ();
16023 if ac_fn_cxx_try_link "$LINENO"; then :
16024 ac_cv_lib_unwind_backtrace=yes
16026 ac_cv_lib_unwind_backtrace=no
16028 rm -f core conftest.err conftest.$ac_objext \
16029 conftest$ac_exeext conftest.$ac_ext
16030 LIBS=$ac_check_lib_save_LIBS
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16033 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16034 if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then :
16035 UNWIND_LIBS=-lunwind
16040 if test x"$UNWIND_LIBS" != x""; then
16042 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16046 # We'd like to use read/write locks in several places in the code.
16047 # See if our pthreads support extends to that. Note: for linux, it
16048 # does as long as you define _XOPEN_SOURCE appropriately.
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16050 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16051 if test "${ac_cv_rwlock+set}" = set; then :
16052 $as_echo_n "(cached) " >&6
16056 ac_cpp='$CPP $CPPFLAGS'
16057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16063 #define _XOPEN_SOURCE 500
16064 #include <pthread.h>
16068 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16069 pthread_rwlock_rdlock(&l);
16075 if ac_fn_c_try_compile "$LINENO"; then :
16080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16082 ac_cpp='$CXXCPP $CPPFLAGS'
16083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16090 $as_echo "$ac_cv_rwlock" >&6; }
16091 if test "$ac_cv_rwlock" = yes; then
16093 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16098 # Find out what namespace 'normal' STL code lives in, and also what namespace
16099 # the user wants our classes to be defined in
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16101 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16102 if test "${ac_cv_cxx_namespaces+set}" = set; then :
16103 $as_echo_n "(cached) " >&6
16107 ac_cpp='$CXXCPP $CPPFLAGS'
16108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h. */
16115 namespace Inner { int i = 0; }}
16119 using namespace Outer::Inner; return i;
16124 if ac_fn_cxx_try_compile "$LINENO"; then :
16125 ac_cv_cxx_namespaces=yes
16127 ac_cv_cxx_namespaces=no
16129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16131 ac_cpp='$CXXCPP $CPPFLAGS'
16132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16138 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16139 if test "$ac_cv_cxx_namespaces" = yes; then
16141 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16145 $as_echo_n "checking what namespace STL code is in... " >&6; }
16146 if test "${ac_cv_cxx_stl_namespace+set}" = set; then :
16147 $as_echo_n "(cached) " >&6
16152 ac_cpp='$CXXCPP $CPPFLAGS'
16153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16163 vector<int> t; return 0;
16168 if ac_fn_cxx_try_compile "$LINENO"; then :
16169 ac_cv_cxx_stl_namespace=none
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173 /* end confdefs.h. */
16178 std::vector<int> t; return 0;
16183 if ac_fn_cxx_try_compile "$LINENO"; then :
16184 ac_cv_cxx_stl_namespace=std
16186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188 ac_cpp='$CXXCPP $CPPFLAGS'
16189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16195 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16196 if test "$ac_cv_cxx_stl_namespace" = none; then
16198 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16201 if test "$ac_cv_cxx_stl_namespace" = std; then
16203 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
16207 google_namespace_default=google
16208 # Check whether --enable-namespace was given.
16209 if test "${enable_namespace+set}" = set; then :
16210 enableval=$enable_namespace; case "$enableval" in
16211 yes) google_namespace="$google_namespace_default" ;;
16212 no) google_namespace="" ;;
16213 *) google_namespace="$enableval" ;;
16216 google_namespace="$google_namespace_default"
16219 if test -n "$google_namespace"; then
16220 ac_google_namespace="$google_namespace"
16221 ac_google_start_namespace="namespace $google_namespace {"
16222 ac_google_end_namespace="}"
16224 ac_google_namespace=""
16225 ac_google_start_namespace=""
16226 ac_google_end_namespace=""
16229 cat >>confdefs.h <<_ACEOF
16230 #define GOOGLE_NAMESPACE $ac_google_namespace
16234 cat >>confdefs.h <<_ACEOF
16235 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
16239 cat >>confdefs.h <<_ACEOF
16240 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
16246 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
16247 if test "${ac_cv_cxx_using_operator+set}" = set; then :
16248 $as_echo_n "(cached) " >&6
16252 ac_cpp='$CXXCPP $CPPFLAGS'
16253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16259 #include <iostream>
16260 std::ostream& operator<<(std::ostream&, struct s);
16264 using ::operator<<; return 0;
16269 if ac_fn_cxx_try_compile "$LINENO"; then :
16270 ac_cv_cxx_using_operator=1
16272 ac_cv_cxx_using_operator=0
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 ac_cpp='$CXXCPP $CPPFLAGS'
16277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
16283 $as_echo "$ac_cv_cxx_using_operator" >&6; }
16284 if test "$ac_cv_cxx_using_operator" = 1; then
16286 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
16290 for ac_header in ucontext.h
16292 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
16293 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
16294 cat >>confdefs.h <<_ACEOF
16295 #define HAVE_UCONTEXT_H 1
16302 for ac_header in sys/ucontext.h
16304 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
16305 if test "x$ac_cv_header_sys_ucontext_h" = x""yes; then :
16306 cat >>confdefs.h <<_ACEOF
16307 #define HAVE_SYS_UCONTEXT_H 1
16313 # ucontext on OS X 10.6 (at least)
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
16315 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
16316 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
16317 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
16318 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
16319 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
16320 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
16321 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
16322 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
16323 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
16324 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
16325 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
16326 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
16327 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
16328 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
16329 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
16330 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
16331 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
16332 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
16333 pc_field_found=false
16334 for pc_field in $pc_fields; do
16335 if ! $pc_field_found; then
16336 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339 #define _GNU_SOURCE 1
16340 #include <sys/ucontext.h>
16344 ucontext_t u; return u.$pc_field == 0;
16349 if ac_fn_cxx_try_compile "$LINENO"; then :
16351 cat >>confdefs.h <<_ACEOF
16352 #define PC_FROM_UCONTEXT $pc_field
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16356 $as_echo "$pc_field" >&6; }
16357 pc_field_found=true
16359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h. */
16363 #define _GNU_SOURCE 1
16364 #include <ucontext.h>
16368 ucontext_t u; return u.$pc_field == 0;
16373 if ac_fn_cxx_try_compile "$LINENO"; then :
16375 cat >>confdefs.h <<_ACEOF
16376 #define PC_FROM_UCONTEXT $pc_field
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16380 $as_echo "$pc_field" >&6; }
16381 pc_field_found=true
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 if ! $pc_field_found; then
16388 pc_fields=" sc_eip" # OpenBSD (i386)
16389 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
16390 for pc_field in $pc_fields; do
16391 if ! $pc_field_found; then
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h. */
16394 #include <signal.h>
16398 ucontext_t u; return u.$pc_field == 0;
16403 if ac_fn_cxx_try_compile "$LINENO"; then :
16405 cat >>confdefs.h <<_ACEOF
16406 #define PC_FROM_UCONTEXT $pc_field
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16410 $as_echo "$pc_field" >&6; }
16411 pc_field_found=true
16413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16417 if ! $pc_field_found; then
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not output failed addresses..." >&5
16419 $as_echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
16423 cat >>confdefs.h <<_ACEOF
16424 #define TEST_SRC_DIR "$srcdir"
16428 # These are what's needed by logging.h.in and raw_logging.h.in
16451 # Write generated configuration file
16452 ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
16454 ac_config_files="$ac_config_files libglog.pc"
16456 cat >confcache <<\_ACEOF
16457 # This file is a shell script that caches the results of configure
16458 # tests run on this system so they can be shared between configure
16459 # scripts and configure runs, see configure's option --config-cache.
16460 # It is not useful on other systems. If it contains results you don't
16461 # want to keep, you may remove or edit it.
16463 # config.status only pays attention to the cache file if you give it
16464 # the --recheck option to rerun configure.
16466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16468 # following values.
16472 # The following way of writing the cache mishandles newlines in values,
16473 # but we know of no workaround that is simple, portable, and efficient.
16474 # So, we kill variables containing newlines.
16475 # Ultrix sh set writes to stderr and can't be redirected directly,
16476 # and sets the high bit in the cache file unless we assign to the vars.
16478 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16479 eval ac_val=\$$ac_var
16483 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16487 _ | IFS | as_nl) ;; #(
16488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16489 *) { eval $ac_var=; unset $ac_var;} ;;
16495 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16496 *${as_nl}ac_space=\ *)
16497 # `set' does not quote correctly, so add quotes: double-quote
16498 # substitution turns \\\\ into \\, and sed turns \\ into \.
16501 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16504 # `set' quotes correctly as required by POSIX, so do not add quotes.
16505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16516 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16518 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16519 if test -w "$cache_file"; then
16520 test "x$cache_file" != "x/dev/null" &&
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16522 $as_echo "$as_me: updating cache $cache_file" >&6;}
16523 cat confcache >$cache_file
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16526 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16531 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16532 # Let make expand exec_prefix.
16533 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16535 DEFS=-DHAVE_CONFIG_H
16539 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16540 # 1. Remove the extension, and $U if already installed.
16541 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16542 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16543 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16544 # will be set to the directory where LIBOBJS objects are built.
16545 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16546 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16548 LIBOBJS=$ac_libobjs
16550 LTLIBOBJS=$ac_ltlibobjs
16553 if test -n "$EXEEXT"; then
16555 am__EXEEXT_FALSE='#'
16557 am__EXEEXT_TRUE='#'
16561 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16562 as_fn_error "conditional \"AMDEP\" was never defined.
16563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16565 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16566 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16569 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16570 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16573 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
16574 as_fn_error "conditional \"GCC\" was never defined.
16575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16577 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16578 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16581 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
16582 as_fn_error "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
16583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16585 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
16586 as_fn_error "conditional \"X86_64\" was never defined.
16587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16589 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
16590 as_fn_error "conditional \"HAVE_GMOCK\" was never defined.
16591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16594 : ${CONFIG_STATUS=./config.status}
16596 ac_clean_files_save=$ac_clean_files
16597 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16599 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16601 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16603 # Generated by $as_me.
16604 # Run this file to recreate the current configuration.
16605 # Compiler output produced by configure, useful for debugging
16606 # configure, is in config.log if it exists.
16609 ac_cs_recheck=false
16612 SHELL=\${CONFIG_SHELL-$SHELL}
16615 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16616 ## -------------------- ##
16617 ## M4sh Initialization. ##
16618 ## -------------------- ##
16620 # Be more Bourne compatible
16621 DUALCASE=1; export DUALCASE # for MKS sh
16622 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16625 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16626 # is contrary to our usage. Disable this feature.
16627 alias -g '${1+"$@"}'='"$@"'
16628 setopt NO_GLOB_SUBST
16630 case `(set -o) 2>/dev/null` in #(
16642 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16643 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16644 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16646 # Prefer a ksh shell builtin over an external printf program on Solaris,
16647 # but without wasting forks for bash or zsh.
16648 if test -z "$BASH_VERSION$ZSH_VERSION" \
16649 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16650 as_echo='print -r --'
16651 as_echo_n='print -rn --'
16652 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16653 as_echo='printf %s\n'
16654 as_echo_n='printf %s'
16656 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16657 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16658 as_echo_n='/usr/ucb/echo -n'
16660 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16661 as_echo_n_body='eval
16665 expr "X$arg" : "X\\(.*\\)$as_nl";
16666 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16668 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16670 export as_echo_n_body
16671 as_echo_n='sh -c $as_echo_n_body as_echo'
16673 export as_echo_body
16674 as_echo='sh -c $as_echo_body as_echo'
16677 # The user is always right.
16678 if test "${PATH_SEPARATOR+set}" != set; then
16680 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16681 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16688 # We need space, tab and new line, in precisely that order. Quoting is
16689 # there to prevent editors from complaining about space-tab.
16690 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16691 # splitting by setting IFS to empty value.)
16694 # Find who we are. Look in the path if we contain no directory separator.
16696 *[\\/]* ) as_myself=$0 ;;
16697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16698 for as_dir in $PATH
16701 test -z "$as_dir" && as_dir=.
16702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16708 # We did not find ourselves, most probably we were run as `sh COMMAND'
16709 # in which case we are not to be found in the path.
16710 if test "x$as_myself" = x; then
16713 if test ! -f "$as_myself"; then
16714 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16718 # Unset variables that we do not need and which cause bugs (e.g. in
16719 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16720 # suppresses any "Segmentation fault" message there. '((' could
16721 # trigger a bug in pdksh 5.2.14.
16722 for as_var in BASH_ENV ENV MAIL MAILPATH
16723 do eval test x\${$as_var+set} = xset \
16724 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16737 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16740 # as_fn_error ERROR [LINENO LOG_FD]
16741 # ---------------------------------
16742 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16743 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16744 # script with status $?, using 1 if that was 0.
16747 as_status=$?; test $as_status -eq 0 && as_status=1
16749 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16750 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16752 $as_echo "$as_me: error: $1" >&2
16753 as_fn_exit $as_status
16757 # as_fn_set_status STATUS
16758 # -----------------------
16759 # Set $? to STATUS, without forking.
16760 as_fn_set_status ()
16763 } # as_fn_set_status
16765 # as_fn_exit STATUS
16766 # -----------------
16767 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16771 as_fn_set_status $1
16777 # Portably unset VAR.
16780 { eval $1=; unset $1;}
16782 as_unset=as_fn_unset
16783 # as_fn_append VAR VALUE
16784 # ----------------------
16785 # Append the text in VALUE to the end of the definition contained in VAR. Take
16786 # advantage of any shell optimizations that allow amortized linear growth over
16787 # repeated appends, instead of the typical quadratic growth present in naive
16789 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16790 eval 'as_fn_append ()
16801 # as_fn_arith ARG...
16802 # ------------------
16803 # Perform arithmetic evaluation on the ARGs, and store the result in the
16804 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16805 # must be portable across $(()) and expr.
16806 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16807 eval 'as_fn_arith ()
16814 as_val=`expr "$@" || test $? -eq 1`
16819 if expr a : '\(a\)' >/dev/null 2>&1 &&
16820 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16826 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16827 as_basename=basename
16832 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16838 as_me=`$as_basename -- "$0" ||
16839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16840 X"$0" : 'X\(//\)$' \| \
16841 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16843 sed '/^.*\/\([^/][^/]*\)\/*$/{
16857 # Avoid depending upon Character Ranges.
16858 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16859 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16860 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16861 as_cr_digits='0123456789'
16862 as_cr_alnum=$as_cr_Letters$as_cr_digits
16864 ECHO_C= ECHO_N= ECHO_T=
16865 case `echo -n x` in #(((((
16867 case `echo 'xy\c'` in
16868 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16870 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16877 rm -f conf$$ conf$$.exe conf$$.file
16878 if test -d conf$$.dir; then
16879 rm -f conf$$.dir/conf$$.file
16882 mkdir conf$$.dir 2>/dev/null
16884 if (echo >conf$$.file) 2>/dev/null; then
16885 if ln -s conf$$.file conf$$ 2>/dev/null; then
16887 # ... but there are two gotchas:
16888 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16889 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16890 # In both cases, we have to default to `cp -p'.
16891 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16893 elif ln conf$$.file conf$$ 2>/dev/null; then
16901 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16902 rmdir conf$$.dir 2>/dev/null
16907 # Create "$as_dir" as a directory, including parents if necessary.
16912 -*) as_dir=./$as_dir;;
16914 test -d "$as_dir" || eval $as_mkdir_p || {
16918 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16919 *) as_qdir=$as_dir;;
16921 as_dirs="'$as_qdir' $as_dirs"
16922 as_dir=`$as_dirname -- "$as_dir" ||
16923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16924 X"$as_dir" : 'X\(//\)[^/]' \| \
16925 X"$as_dir" : 'X\(//\)$' \| \
16926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16927 $as_echo X"$as_dir" |
16928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16932 /^X\(\/\/\)[^/].*/{
16945 test -d "$as_dir" && break
16947 test -z "$as_dirs" || eval "mkdir $as_dirs"
16948 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16952 if mkdir -p . 2>/dev/null; then
16953 as_mkdir_p='mkdir -p "$as_dir"'
16955 test -d ./-p && rmdir ./-p
16959 if test -x / >/dev/null 2>&1; then
16960 as_test_x='test -x'
16962 if ls -dL / >/dev/null 2>&1; then
16969 if test -d "$1"; then
16975 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16976 ???[sx]*):;;*)false;;esac;fi
16980 as_executable_p=$as_test_x
16982 # Sed expression to map a string onto a valid CPP name.
16983 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16985 # Sed expression to map a string onto a valid variable name.
16986 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16990 ## ----------------------------------- ##
16991 ## Main body of $CONFIG_STATUS script. ##
16992 ## ----------------------------------- ##
16994 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16997 # Save the log message, to keep $0 and so on meaningful, and to
16998 # report actual input values of CONFIG_FILES etc. instead of their
16999 # values after options handling.
17001 This file was extended by glog $as_me 0.3.1, which was
17002 generated by GNU Autoconf 2.65. Invocation command line was
17004 CONFIG_FILES = $CONFIG_FILES
17005 CONFIG_HEADERS = $CONFIG_HEADERS
17006 CONFIG_LINKS = $CONFIG_LINKS
17007 CONFIG_COMMANDS = $CONFIG_COMMANDS
17010 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17015 case $ac_config_files in *"
17016 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17019 case $ac_config_headers in *"
17020 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17025 # Files that config.status was made for.
17026 config_files="$ac_config_files"
17027 config_headers="$ac_config_headers"
17028 config_commands="$ac_config_commands"
17032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17034 \`$as_me' instantiates files and other configuration actions
17035 from templates according to the current configuration. Unless the files
17036 and actions are specified as TAGs, all are instantiated by default.
17038 Usage: $0 [OPTION]... [TAG]...
17040 -h, --help print this help, then exit
17041 -V, --version print version number and configuration settings, then exit
17042 --config print configuration, then exit
17043 -q, --quiet, --silent
17044 do not print progress messages
17045 -d, --debug don't remove temporary files
17046 --recheck update $as_me by reconfiguring in the same conditions
17047 --file=FILE[:TEMPLATE]
17048 instantiate the configuration file FILE
17049 --header=FILE[:TEMPLATE]
17050 instantiate the configuration header FILE
17052 Configuration files:
17055 Configuration headers:
17058 Configuration commands:
17061 Report bugs to <opensource@google.com>."
17064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17065 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17067 glog config.status 0.3.1
17068 configured by $0, generated by GNU Autoconf 2.65,
17069 with options \\"\$ac_cs_config\\"
17071 Copyright (C) 2009 Free Software Foundation, Inc.
17072 This config.status script is free software; the Free Software Foundation
17073 gives unlimited permission to copy, distribute and modify it."
17080 test -n "\$AWK" || AWK=awk
17083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17084 # The default lists apply if the user does not specify any file.
17090 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17091 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17102 # Handling of the options.
17103 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17105 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17106 $as_echo "$ac_cs_version"; exit ;;
17107 --config | --confi | --conf | --con | --co | --c )
17108 $as_echo "$ac_cs_config"; exit ;;
17109 --debug | --debu | --deb | --de | --d | -d )
17111 --file | --fil | --fi | --f )
17114 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17116 as_fn_append CONFIG_FILES " '$ac_optarg'"
17117 ac_need_defaults=false;;
17118 --header | --heade | --head | --hea )
17121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17123 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17124 ac_need_defaults=false;;
17126 # Conflict between --help and --header
17127 as_fn_error "ambiguous option: \`$1'
17128 Try \`$0 --help' for more information.";;
17129 --help | --hel | -h )
17130 $as_echo "$ac_cs_usage"; exit ;;
17131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17132 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17135 # This is an error.
17136 -*) as_fn_error "unrecognized option: \`$1'
17137 Try \`$0 --help' for more information." ;;
17139 *) as_fn_append ac_config_targets " $1"
17140 ac_need_defaults=false ;;
17146 ac_configure_extra_args=
17148 if $ac_cs_silent; then
17150 ac_configure_extra_args="$ac_configure_extra_args --silent"
17154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17155 if \$ac_cs_recheck; then
17156 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17158 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17159 CONFIG_SHELL='$SHELL'
17160 export CONFIG_SHELL
17165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17170 ## Running $as_me. ##
17176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17180 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17183 # The HP-UX ksh and POSIX shell print the target directory to stdout
17184 # if CDPATH is set.
17185 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17187 sed_quote_subst='$sed_quote_subst'
17188 double_quote_subst='$double_quote_subst'
17189 delay_variable_subst='$delay_variable_subst'
17190 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17191 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17192 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17193 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17194 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17195 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17196 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17197 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17198 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17199 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17200 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17201 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17202 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17203 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17204 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17205 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17206 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17207 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17208 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17209 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17210 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17211 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17212 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17213 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17214 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17215 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17216 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17217 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17218 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17219 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17220 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17221 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17222 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17223 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17224 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17225 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17226 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17227 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17228 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17229 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17230 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17231 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17232 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17233 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17234 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"`'
17235 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"`'
17236 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17237 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17238 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17239 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17240 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17241 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17242 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17243 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17244 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17245 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17246 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17247 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17248 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17249 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17250 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17251 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17252 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17253 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17254 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17255 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17256 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17257 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17258 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17259 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17260 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17261 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17262 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17263 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17264 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17265 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17266 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17267 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17268 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17269 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17270 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17271 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17272 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17273 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17274 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17275 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17276 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17277 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17278 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17279 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17280 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17281 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17282 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17283 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17284 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17285 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17286 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17287 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17288 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17289 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17290 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17291 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17292 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17293 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17294 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17295 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17296 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17297 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17298 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17299 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17300 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17301 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17302 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17303 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17304 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17305 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17306 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17307 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17308 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17309 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17310 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17311 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17312 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17313 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17314 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17315 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17316 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17317 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17318 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17319 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17320 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17321 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17322 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17323 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17324 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17325 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17326 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17327 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17328 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17329 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17330 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17331 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17332 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17333 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17334 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17335 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17336 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17337 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17338 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17339 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17340 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17341 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17342 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17343 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17344 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17345 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17346 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17347 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17348 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17349 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17350 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17351 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17352 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17353 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17354 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17355 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17356 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17357 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17358 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17359 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17360 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17363 LTCFLAGS='$LTCFLAGS'
17364 compiler='$compiler_DEFAULT'
17366 # Quote evaled strings.
17378 deplibs_check_method \
17387 lt_cv_sys_global_symbol_pipe \
17388 lt_cv_sys_global_symbol_to_cdecl \
17389 lt_cv_sys_global_symbol_to_c_name_address \
17390 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17393 lt_prog_compiler_no_builtin_flag \
17394 lt_prog_compiler_wl \
17395 lt_prog_compiler_pic \
17396 lt_prog_compiler_static \
17397 lt_cv_prog_compiler_c_o \
17405 export_dynamic_flag_spec \
17406 whole_archive_flag_spec \
17407 compiler_needs_object \
17409 allow_undefined_flag \
17410 no_undefined_flag \
17411 hardcode_libdir_flag_spec \
17412 hardcode_libdir_flag_spec_ld \
17413 hardcode_libdir_separator \
17418 variables_saved_for_relink \
17420 library_names_spec \
17425 compiler_lib_search_dirs \
17430 compiler_lib_search_path \
17433 lt_prog_compiler_no_builtin_flag_CXX \
17434 lt_prog_compiler_wl_CXX \
17435 lt_prog_compiler_pic_CXX \
17436 lt_prog_compiler_static_CXX \
17437 lt_cv_prog_compiler_c_o_CXX \
17438 export_dynamic_flag_spec_CXX \
17439 whole_archive_flag_spec_CXX \
17440 compiler_needs_object_CXX \
17442 allow_undefined_flag_CXX \
17443 no_undefined_flag_CXX \
17444 hardcode_libdir_flag_spec_CXX \
17445 hardcode_libdir_flag_spec_ld_CXX \
17446 hardcode_libdir_separator_CXX \
17447 fix_srcfile_path_CXX \
17448 exclude_expsyms_CXX \
17449 include_expsyms_CXX \
17450 file_list_spec_CXX \
17451 compiler_lib_search_dirs_CXX \
17452 predep_objects_CXX \
17453 postdep_objects_CXX \
17456 compiler_lib_search_path_CXX; do
17457 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17458 *[\\\\\\\`\\"\\\$]*)
17459 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17462 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17467 # Double-quote double-evaled strings.
17468 for var in reload_cmds \
17469 old_postinstall_cmds \
17470 old_postuninstall_cmds \
17472 extract_expsyms_cmds \
17473 old_archive_from_new_cmds \
17474 old_archive_from_expsyms_cmds \
17476 archive_expsym_cmds \
17478 module_expsym_cmds \
17479 export_symbols_cmds \
17482 postuninstall_cmds \
17484 sys_lib_search_path_spec \
17485 sys_lib_dlsearch_path_spec \
17486 old_archive_cmds_CXX \
17487 old_archive_from_new_cmds_CXX \
17488 old_archive_from_expsyms_cmds_CXX \
17490 archive_expsym_cmds_CXX \
17492 module_expsym_cmds_CXX \
17493 export_symbols_cmds_CXX \
17494 prelink_cmds_CXX; do
17495 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17496 *[\\\\\\\`\\"\\\$]*)
17497 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17500 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17505 # Fix-up fallback echo if it was mangled by the above quoting rules.
17507 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17511 ac_aux_dir='$ac_aux_dir'
17512 xsi_shell='$xsi_shell'
17513 lt_shell_append='$lt_shell_append'
17515 # See if we are running on zsh, and set the options which allow our
17516 # commands through without removal of \ escapes INIT.
17517 if test -n "\${ZSH_VERSION+set}" ; then
17518 setopt NO_GLOB_SUBST
17524 TIMESTAMP='$TIMESTAMP'
17535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17537 # Handling of arguments.
17538 for ac_config_target in $ac_config_targets
17540 case $ac_config_target in
17541 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17542 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17543 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17544 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17545 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
17546 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
17547 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
17548 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
17549 "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
17551 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17556 # If the user did not use the arguments to specify the items to instantiate,
17557 # then the envvar interface is used. Set only those that are not.
17558 # We use the long form for the default assignment because of an extremely
17559 # bizarre bug on SunOS 4.1.3.
17560 if $ac_need_defaults; then
17561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17566 # Have a temporary directory for convenience. Make it in the build tree
17567 # simply because there is no reason against having it here, and in addition,
17568 # creating and moving files from /tmp can sometimes cause problems.
17569 # Hook for its removal unless debugging.
17570 # Note that there is a small window in which the directory will not be cleaned:
17571 # after its creation but before its name has been assigned to `$tmp'.
17575 trap 'exit_status=$?
17576 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17578 trap 'as_fn_exit 1' 1 2 13 15
17580 # Create a (secure) tmp directory for tmp files.
17583 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17584 test -n "$tmp" && test -d "$tmp"
17587 tmp=./conf$$-$RANDOM
17588 (umask 077 && mkdir "$tmp")
17589 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17591 # Set up the scripts for CONFIG_FILES section.
17592 # No need to generate them if there are no CONFIG_FILES.
17593 # This happens for instance with `./config.status config.h'.
17594 if test -n "$CONFIG_FILES"; then
17597 ac_cr=`echo X | tr X '\015'`
17598 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17599 # But we know of no other shell where ac_cr would be empty at this
17600 # point, so we can use a bashism as a fallback.
17601 if test "x$ac_cr" = x; then
17602 eval ac_cr=\$\'\\r\'
17604 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17605 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17608 ac_cs_awk_cr=$ac_cr
17611 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17616 echo "cat >conf$$subs.awk <<_ACEOF" &&
17617 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17619 } >conf$$subs.sh ||
17620 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17621 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17623 for ac_last_try in false false false false false :; do
17624 . ./conf$$subs.sh ||
17625 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17627 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17628 if test $ac_delim_n = $ac_delim_num; then
17630 elif $ac_last_try; then
17631 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17636 rm -f conf$$subs.sh
17638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17639 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17643 s/^/S["/; s/!.*/"]=/
17653 s/\(.\{148\}\)..*/\1/
17655 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17660 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17667 s/\(.\{148\}\)..*/\1/
17669 s/["\\]/\\&/g; s/^/"/; s/$/"/
17673 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17678 ' <conf$$subs.awk | sed '
17683 ' >>$CONFIG_STATUS || ac_write_fail=1
17684 rm -f conf$$subs.awk
17685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17687 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17688 for (key in S) S_is_set[key] = 1
17694 nfields = split(line, field, "@")
17696 len = length(field[1])
17697 for (i = 2; i < nfields; i++) {
17699 keylen = length(key)
17700 if (S_is_set[key]) {
17702 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17703 len += length(value) + length(field[++i])
17714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17715 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17716 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17719 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17720 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17723 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17724 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17725 # trailing colons and then remove the whole line if VPATH becomes empty
17726 # (actually we leave an empty line to preserve line numbers).
17727 if test "x$srcdir" = x.; then
17728 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17729 s/:*\$(srcdir):*/:/
17730 s/:*\${srcdir}:*/:/
17732 s/^\([^=]*=[ ]*\):*/\1/
17738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17739 fi # test -n "$CONFIG_FILES"
17741 # Set up the scripts for CONFIG_HEADERS section.
17742 # No need to generate them if there are no CONFIG_HEADERS.
17743 # This happens for instance with `./config.status Makefile'.
17744 if test -n "$CONFIG_HEADERS"; then
17745 cat >"$tmp/defines.awk" <<\_ACAWK ||
17749 # Transform confdefs.h into an awk script `defines.awk', embedded as
17750 # here-document in config.status, that substitutes the proper values into
17751 # config.h.in to produce config.h.
17753 # Create a delimiter string that does not exist in confdefs.h, to ease
17754 # handling of long lines.
17756 for ac_last_try in false false :; do
17757 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17758 if test -z "$ac_t"; then
17760 elif $ac_last_try; then
17761 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17767 # For the awk script, D is an array of macro values keyed by name,
17768 # likewise P contains macro parameters if any. Preserve backslash
17769 # newline sequences.
17771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17773 s/.\{148\}/&'"$ac_delim"'/g
17776 s/^[ ]*#[ ]*define[ ][ ]*/ /
17783 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17785 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17790 D["\1"]=" \3\\\\\\n"\\/p
17792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17797 s/.\{148\}/&'"$ac_delim"'/g
17802 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17805 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17807 ' <confdefs.h | sed '
17808 s/'"$ac_delim"'/"\\\
17809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17812 for (key in D) D_is_set[key] = 1
17815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17817 split(line, arg, " ")
17818 if (arg[1] == "#") {
17822 defundef = substr(arg[1], 2)
17825 split(mac1, mac2, "(") #)
17827 prefix = substr(line, 1, index(line, defundef) - 1)
17828 if (D_is_set[macro]) {
17829 # Preserve the white space surrounding the "#".
17830 print prefix "define", macro P[macro] D[macro]
17833 # Replace #undef with comments. This is necessary, for example,
17834 # in the case of _POSIX_SOURCE, which is predefined and required
17835 # on some systems where configure will not decide to define it.
17836 if (defundef == "undef") {
17837 print "/*", prefix defundef, macro, "*/"
17845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17846 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17847 fi # test -n "$CONFIG_HEADERS"
17850 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17855 :[FHLC]) ac_mode=$ac_tag; continue;;
17857 case $ac_mode$ac_tag in
17859 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17860 :[FH]-) ac_tag=-:-;;
17861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17878 -) ac_f="$tmp/stdin";;
17879 *) # Look for the file first in the build tree, then in the source tree
17880 # (if the path is not absolute). The absolute path cannot be DOS-style,
17881 # because $ac_f cannot contain `:'.
17885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17887 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17889 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17890 as_fn_append ac_file_inputs " '$ac_f'"
17893 # Let's still pretend it is `configure' which instantiates (i.e., don't
17894 # use $as_me), people would be surprised to read:
17895 # /* config.h. Generated by config.status. */
17896 configure_input='Generated from '`
17897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17899 if test x"$ac_file" != x-; then
17900 configure_input="$ac_file. $configure_input"
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17902 $as_echo "$as_me: creating $ac_file" >&6;}
17904 # Neutralize special characters interpreted by sed in replacement strings.
17905 case $configure_input in #(
17906 *\&* | *\|* | *\\* )
17907 ac_sed_conf_input=`$as_echo "$configure_input" |
17908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17909 *) ac_sed_conf_input=$configure_input;;
17913 *:-:* | *:-) cat >"$tmp/stdin" \
17914 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17919 ac_dir=`$as_dirname -- "$ac_file" ||
17920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17921 X"$ac_file" : 'X\(//\)[^/]' \| \
17922 X"$ac_file" : 'X\(//\)$' \| \
17923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17924 $as_echo X"$ac_file" |
17925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17929 /^X\(\/\/\)[^/].*/{
17942 as_dir="$ac_dir"; as_fn_mkdir_p
17946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17949 # A ".." for each directory in $ac_dir_suffix.
17950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17951 case $ac_top_builddir_sub in
17952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17956 ac_abs_top_builddir=$ac_pwd
17957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17958 # for backward compatibility:
17959 ac_top_builddir=$ac_top_build_prefix
17962 .) # We are building in place.
17964 ac_top_srcdir=$ac_top_builddir_sub
17965 ac_abs_top_srcdir=$ac_pwd ;;
17966 [\\/]* | ?:[\\/]* ) # Absolute name.
17967 ac_srcdir=$srcdir$ac_dir_suffix;
17968 ac_top_srcdir=$srcdir
17969 ac_abs_top_srcdir=$srcdir ;;
17970 *) # Relative name.
17971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17972 ac_top_srcdir=$ac_top_build_prefix$srcdir
17973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17986 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17988 ac_MKDIR_P=$MKDIR_P
17990 [\\/$]* | ?:[\\/]* ) ;;
17991 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17996 # If the template does not know about datarootdir, expand it.
17997 # FIXME: This hack should be removed a few years after 2.60.
17998 ac_datarootdir_hack=; ac_datarootdir_seen=
18009 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18010 *datarootdir*) ac_datarootdir_seen=yes;;
18011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18013 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18016 ac_datarootdir_hack='
18017 s&@datadir@&$datadir&g
18018 s&@docdir@&$docdir&g
18019 s&@infodir@&$infodir&g
18020 s&@localedir@&$localedir&g
18021 s&@mandir@&$mandir&g
18022 s&\\\${datarootdir}&$datarootdir&g' ;;
18026 # Neutralize VPATH when `$srcdir' = `.'.
18027 # Shell code in configure.ac might set extrasub.
18028 # FIXME: do we really want to maintain this feature?
18029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18030 ac_sed_extra="$ac_vpsub
18033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18036 s|@configure_input@|$ac_sed_conf_input|;t t
18037 s&@top_builddir@&$ac_top_builddir_sub&;t t
18038 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18039 s&@srcdir@&$ac_srcdir&;t t
18040 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18041 s&@top_srcdir@&$ac_top_srcdir&;t t
18042 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18043 s&@builddir@&$ac_builddir&;t t
18044 s&@abs_builddir@&$ac_abs_builddir&;t t
18045 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18046 s&@INSTALL@&$ac_INSTALL&;t t
18047 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18048 $ac_datarootdir_hack
18050 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18051 || as_fn_error "could not create $ac_file" "$LINENO" 5
18053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18054 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18057 which seems to be undefined. Please make sure it is defined." >&5
18058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18059 which seems to be undefined. Please make sure it is defined." >&2;}
18063 -) cat "$tmp/out" && rm -f "$tmp/out";;
18064 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18066 || as_fn_error "could not create $ac_file" "$LINENO" 5
18072 if test x"$ac_file" != x-; then
18074 $as_echo "/* $configure_input */" \
18075 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18076 } >"$tmp/config.h" \
18077 || as_fn_error "could not create $ac_file" "$LINENO" 5
18078 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18080 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18083 mv "$tmp/config.h" "$ac_file" \
18084 || as_fn_error "could not create $ac_file" "$LINENO" 5
18087 $as_echo "/* $configure_input */" \
18088 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18089 || as_fn_error "could not create -" "$LINENO" 5
18091 # Compute "$ac_file"'s index in $config_headers.
18094 for _am_header in $config_headers :; do
18095 case $_am_header in
18096 $_am_arg | $_am_arg:* )
18099 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18102 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18103 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18104 X"$_am_arg" : 'X\(//\)[^/]' \| \
18105 X"$_am_arg" : 'X\(//\)$' \| \
18106 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18107 $as_echo X"$_am_arg" |
18108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18112 /^X\(\/\/\)[^/].*/{
18124 s/.*/./; q'`/stamp-h$_am_stamp_count
18127 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18128 $as_echo "$as_me: executing $ac_file commands" >&6;}
18133 case $ac_file$ac_mode in
18134 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18135 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18136 # are listed without --file. Let's play safe and only enable the eval
18137 # if we detect the quoting.
18138 case $CONFIG_FILES in
18139 *\'*) eval set x "$CONFIG_FILES" ;;
18140 *) set x $CONFIG_FILES ;;
18145 # Strip MF so we end up with the name of the file.
18146 mf=`echo "$mf" | sed -e 's/:.*$//'`
18147 # Check whether this is an Automake generated Makefile or not.
18148 # We used to match only the files named `Makefile.in', but
18149 # some people rename them; so instead we look at the file content.
18150 # Grep'ing the first line is not enough: some people post-process
18151 # each Makefile.in and add a new line on top of each file to say so.
18152 # Grep'ing the whole file is not good either: AIX grep has a line
18153 # limit of 2048, but all sed's we know have understand at least 4000.
18154 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18155 dirpart=`$as_dirname -- "$mf" ||
18156 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18157 X"$mf" : 'X\(//\)[^/]' \| \
18158 X"$mf" : 'X\(//\)$' \| \
18159 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18165 /^X\(\/\/\)[^/].*/{
18181 # Extract the definition of DEPDIR, am__include, and am__quote
18182 # from the Makefile without running `make'.
18183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18184 test -z "$DEPDIR" && continue
18185 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18186 test -z "am__include" && continue
18187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18188 # When using ansi2knr, U may be empty or an underscore; expand it
18189 U=`sed -n 's/^U = //p' < "$mf"`
18190 # Find all dependency output files, they are included files with
18191 # $(DEPDIR) in their names. We invoke sed twice because it is the
18192 # simplest approach to changing $(DEPDIR) to its actual value in the
18194 for file in `sed -n "
18195 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18197 # Make sure the directory exists.
18198 test -f "$dirpart/$file" && continue
18199 fdir=`$as_dirname -- "$file" ||
18200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18201 X"$file" : 'X\(//\)[^/]' \| \
18202 X"$file" : 'X\(//\)$' \| \
18203 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18204 $as_echo X"$file" |
18205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18209 /^X\(\/\/\)[^/].*/{
18222 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18223 # echo "creating $dirpart/$file"
18224 echo '# dummy' > "$dirpart/$file"
18231 # See if we are running on zsh, and set the options which allow our
18232 # commands through without removal of \ escapes.
18233 if test -n "${ZSH_VERSION+set}" ; then
18234 setopt NO_GLOB_SUBST
18237 cfgfile="${ofile}T"
18238 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18241 cat <<_LT_EOF >> "$cfgfile"
18244 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18245 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18247 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18249 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18250 # 2006, 2007, 2008 Free Software Foundation, Inc.
18251 # Written by Gordon Matzigkeit, 1996
18253 # This file is part of GNU Libtool.
18255 # GNU Libtool is free software; you can redistribute it and/or
18256 # modify it under the terms of the GNU General Public License as
18257 # published by the Free Software Foundation; either version 2 of
18258 # the License, or (at your option) any later version.
18260 # As a special exception to the GNU General Public License,
18261 # if you distribute this file as part of a program or library that
18262 # is built using GNU Libtool, you may include this file under the
18263 # same distribution terms that you use for the rest of that program.
18265 # GNU Libtool is distributed in the hope that it will be useful,
18266 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18267 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18268 # GNU General Public License for more details.
18270 # You should have received a copy of the GNU General Public License
18271 # along with GNU Libtool; see the file COPYING. If not, a copy
18272 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18273 # obtained by writing to the Free Software Foundation, Inc.,
18274 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18277 # The names of the tagged configurations supported by this script.
18278 available_tags="CXX "
18280 # ### BEGIN LIBTOOL CONFIG
18282 # Which release of libtool.m4 was used?
18283 macro_version=$macro_version
18284 macro_revision=$macro_revision
18286 # Whether or not to build shared libraries.
18287 build_libtool_libs=$enable_shared
18289 # Whether or not to build static libraries.
18290 build_old_libs=$enable_static
18292 # What type of objects to build.
18295 # Whether or not to optimize for fast installation.
18296 fast_install=$enable_fast_install
18299 host_alias=$host_alias
18303 # The build system.
18304 build_alias=$build_alias
18308 # A sed program that does not truncate output.
18311 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18312 Xsed="\$SED -e 1s/^X//"
18314 # A grep program that handles long lines.
18320 # A literal string matcher.
18323 # A BSD- or MS-compatible name lister.
18326 # Whether we need soft or hard links.
18329 # What is the maximum length of a command?
18330 max_cmd_len=$max_cmd_len
18332 # Object file suffix (normally "o").
18335 # Executable file suffix (normally "").
18338 # whether the shell understands "unset".
18341 # turn spaces into newlines.
18344 # turn newlines into spaces.
18347 # How to create reloadable object files.
18348 reload_flag=$lt_reload_flag
18349 reload_cmds=$lt_reload_cmds
18351 # An object symbol dumper.
18352 OBJDUMP=$lt_OBJDUMP
18354 # Method to check whether dependent libraries are shared objects.
18355 deplibs_check_method=$lt_deplibs_check_method
18357 # Command to use when deplibs_check_method == "file_magic".
18358 file_magic_cmd=$lt_file_magic_cmd
18362 AR_FLAGS=$lt_AR_FLAGS
18364 # A symbol stripping program.
18367 # Commands used to install an old-style archive.
18369 old_postinstall_cmds=$lt_old_postinstall_cmds
18370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18375 # LTCC compiler flags.
18376 LTCFLAGS=$lt_CFLAGS
18378 # Take the output of nm and produce a listing of raw symbols and C names.
18379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18381 # Transform the output of nm in a proper C declaration.
18382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18384 # Transform the output of nm in a C name address pair.
18385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18387 # Transform the output of nm in a C name address pair when lib prefix is needed.
18388 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18390 # The name of the directory that contains temporary libtool files.
18393 # Shell to use when invoking shell scripts.
18396 # An echo program that does not interpret backslashes.
18399 # Used to examine libraries when file_magic_cmd begins with "file".
18400 MAGIC_CMD=$MAGIC_CMD
18402 # Must we lock files when doing compilation?
18403 need_locks=$lt_need_locks
18405 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18406 DSYMUTIL=$lt_DSYMUTIL
18408 # Tool to change global to local symbols on Mac OS X.
18411 # Tool to manipulate fat objects and archives on Mac OS X.
18414 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18417 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18418 OTOOL64=$lt_OTOOL64
18420 # Old archive suffix (normally "a").
18423 # Shared library suffix (normally ".so").
18424 shrext_cmds=$lt_shrext_cmds
18426 # The commands to extract the exported symbol list from a shared archive.
18427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18429 # Variables whose values should be saved in libtool wrapper scripts and
18430 # restored at link time.
18431 variables_saved_for_relink=$lt_variables_saved_for_relink
18433 # Do we need the "lib" prefix for modules?
18434 need_lib_prefix=$need_lib_prefix
18436 # Do we need a version for libraries?
18437 need_version=$need_version
18439 # Library versioning type.
18440 version_type=$version_type
18442 # Shared library runtime path variable.
18443 runpath_var=$runpath_var
18445 # Shared library path variable.
18446 shlibpath_var=$shlibpath_var
18448 # Is shlibpath searched before the hard-coded library search path?
18449 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18451 # Format of library name prefix.
18452 libname_spec=$lt_libname_spec
18454 # List of archive names. First name is the real one, the rest are links.
18455 # The last name is the one that the linker finds with -lNAME
18456 library_names_spec=$lt_library_names_spec
18458 # The coded name of the library, if different from the real name.
18459 soname_spec=$lt_soname_spec
18461 # Command to use after installation of a shared archive.
18462 postinstall_cmds=$lt_postinstall_cmds
18464 # Command to use after uninstallation of a shared archive.
18465 postuninstall_cmds=$lt_postuninstall_cmds
18467 # Commands used to finish a libtool library installation in a directory.
18468 finish_cmds=$lt_finish_cmds
18470 # As "finish_cmds", except a single script fragment to be evaled but
18472 finish_eval=$lt_finish_eval
18474 # Whether we should hardcode library paths into libraries.
18475 hardcode_into_libs=$hardcode_into_libs
18477 # Compile-time system search path for libraries.
18478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18480 # Run-time system search path for libraries.
18481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18483 # Whether dlopen is supported.
18484 dlopen_support=$enable_dlopen
18486 # Whether dlopen of programs is supported.
18487 dlopen_self=$enable_dlopen_self
18489 # Whether dlopen of statically linked programs is supported.
18490 dlopen_self_static=$enable_dlopen_self_static
18492 # Commands to strip libraries.
18493 old_striplib=$lt_old_striplib
18494 striplib=$lt_striplib
18497 # The linker used to build libraries.
18500 # Commands used to build an old-style archive.
18501 old_archive_cmds=$lt_old_archive_cmds
18503 # A language specific compiler.
18506 # Is the compiler the GNU compiler?
18509 # Compiler flag to turn off builtin functions.
18510 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18512 # How to pass a linker flag through the compiler.
18513 wl=$lt_lt_prog_compiler_wl
18515 # Additional compiler flags for building library objects.
18516 pic_flag=$lt_lt_prog_compiler_pic
18518 # Compiler flag to prevent dynamic linking.
18519 link_static_flag=$lt_lt_prog_compiler_static
18521 # Does compiler simultaneously support -c and -o options?
18522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18524 # Whether or not to add -lc for building shared libraries.
18525 build_libtool_need_lc=$archive_cmds_need_lc
18527 # Whether or not to disallow shared libs when runtime libs are static.
18528 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18530 # Compiler flag to allow reflexive dlopens.
18531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18533 # Compiler flag to generate shared objects directly from archives.
18534 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18536 # Whether the compiler copes with passing no objects directly.
18537 compiler_needs_object=$lt_compiler_needs_object
18539 # Create an old-style archive from a shared archive.
18540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18542 # Create a temporary old-style archive to link instead of a shared archive.
18543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18545 # Commands used to build a shared archive.
18546 archive_cmds=$lt_archive_cmds
18547 archive_expsym_cmds=$lt_archive_expsym_cmds
18549 # Commands used to build a loadable module if different from building
18550 # a shared archive.
18551 module_cmds=$lt_module_cmds
18552 module_expsym_cmds=$lt_module_expsym_cmds
18554 # Whether we are building with GNU ld or not.
18555 with_gnu_ld=$lt_with_gnu_ld
18557 # Flag that allows shared libraries with undefined symbols to be built.
18558 allow_undefined_flag=$lt_allow_undefined_flag
18560 # Flag that enforces no undefined symbols.
18561 no_undefined_flag=$lt_no_undefined_flag
18563 # Flag to hardcode \$libdir into a binary during linking.
18564 # This must work even if \$libdir does not exist
18565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18567 # If ld is used when linking, flag to hardcode \$libdir into a binary
18568 # during linking. This must work even if \$libdir does not exist.
18569 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18571 # Whether we need a single "-rpath" flag with a separated argument.
18572 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18574 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18575 # DIR into the resulting binary.
18576 hardcode_direct=$hardcode_direct
18578 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18579 # DIR into the resulting binary and the resulting library dependency is
18580 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18581 # library is relocated.
18582 hardcode_direct_absolute=$hardcode_direct_absolute
18584 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18585 # into the resulting binary.
18586 hardcode_minus_L=$hardcode_minus_L
18588 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18589 # into the resulting binary.
18590 hardcode_shlibpath_var=$hardcode_shlibpath_var
18592 # Set to "yes" if building a shared library automatically hardcodes DIR
18593 # into the library and all subsequent libraries and executables linked
18595 hardcode_automatic=$hardcode_automatic
18597 # Set to yes if linker adds runtime paths of dependent libraries
18598 # to runtime path list.
18599 inherit_rpath=$inherit_rpath
18601 # Whether libtool must link a program against all its dependency libraries.
18602 link_all_deplibs=$link_all_deplibs
18604 # Fix the shell variable \$srcfile for the compiler.
18605 fix_srcfile_path=$lt_fix_srcfile_path
18607 # Set to "yes" if exported symbols are required.
18608 always_export_symbols=$always_export_symbols
18610 # The commands to list exported symbols.
18611 export_symbols_cmds=$lt_export_symbols_cmds
18613 # Symbols that should not be listed in the preloaded symbols.
18614 exclude_expsyms=$lt_exclude_expsyms
18616 # Symbols that must always be exported.
18617 include_expsyms=$lt_include_expsyms
18619 # Commands necessary for linking programs (against libraries) with templates.
18620 prelink_cmds=$lt_prelink_cmds
18622 # Specify filename containing input files.
18623 file_list_spec=$lt_file_list_spec
18625 # How to hardcode a shared library path into an executable.
18626 hardcode_action=$hardcode_action
18628 # The directories searched by this compiler when creating a shared library.
18629 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18631 # Dependencies to place before and after the objects being linked to
18632 # create a shared library.
18633 predep_objects=$lt_predep_objects
18634 postdep_objects=$lt_postdep_objects
18635 predeps=$lt_predeps
18636 postdeps=$lt_postdeps
18638 # The library search path used internally by the compiler when linking
18639 # a shared library.
18640 compiler_lib_search_path=$lt_compiler_lib_search_path
18642 # ### END LIBTOOL CONFIG
18648 cat <<\_LT_EOF >> "$cfgfile"
18649 # AIX sometimes has problems with the GCC collect2 program. For some
18650 # reason, if we set the COLLECT_NAMES environment variable, the problems
18651 # vanish in a puff of smoke.
18652 if test "X${COLLECT_NAMES+set}" != Xset; then
18654 export COLLECT_NAMES
18661 ltmain="$ac_aux_dir/ltmain.sh"
18664 # We use sed instead of cat because bash on DJGPP gets confused if
18665 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18666 # text mode, it properly converts lines to CR/LF. This bash problem
18667 # is reportedly fixed, but why not run on old versions too?
18668 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18669 || (rm -f "$cfgfile"; exit 1)
18673 cat << \_LT_EOF >> "$cfgfile"
18675 # func_dirname file append nondir_replacement
18676 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18677 # otherwise set result to NONDIR_REPLACEMENT.
18681 */*) func_dirname_result="${1%/*}${2}" ;;
18682 * ) func_dirname_result="${3}" ;;
18686 # func_basename file
18689 func_basename_result="${1##*/}"
18692 # func_dirname_and_basename file append nondir_replacement
18693 # perform func_basename and func_dirname in a single function
18695 # dirname: Compute the dirname of FILE. If nonempty,
18696 # add APPEND to the result, otherwise set result
18697 # to NONDIR_REPLACEMENT.
18698 # value returned in "$func_dirname_result"
18699 # basename: Compute filename of FILE.
18700 # value retuned in "$func_basename_result"
18701 # Implementation must be kept synchronized with func_dirname
18702 # and func_basename. For efficiency, we do not delegate to
18703 # those functions but instead duplicate the functionality here.
18704 func_dirname_and_basename ()
18707 */*) func_dirname_result="${1%/*}${2}" ;;
18708 * ) func_dirname_result="${3}" ;;
18710 func_basename_result="${1##*/}"
18713 # func_stripname prefix suffix name
18714 # strip PREFIX and SUFFIX off of NAME.
18715 # PREFIX and SUFFIX must not contain globbing or regex special
18716 # characters, hashes, percent signs, but SUFFIX may contain a leading
18717 # dot (in which case that matches only a dot).
18720 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18721 # positional parameters, so assign one to ordinary parameter first.
18722 func_stripname_result=${3}
18723 func_stripname_result=${func_stripname_result#"${1}"}
18724 func_stripname_result=${func_stripname_result%"${2}"}
18730 func_opt_split_opt=${1%%=*}
18731 func_opt_split_arg=${1#*=}
18738 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18739 *) func_lo2o_result=${1} ;;
18743 # func_xform libobj-or-source
18746 func_xform_result=${1%.*}.lo
18749 # func_arith arithmetic-term...
18752 func_arith_result=$(( $* ))
18756 # STRING may not start with a hyphen.
18759 func_len_result=${#1}
18764 *) # Bourne compatible functions.
18765 cat << \_LT_EOF >> "$cfgfile"
18767 # func_dirname file append nondir_replacement
18768 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18769 # otherwise set result to NONDIR_REPLACEMENT.
18772 # Extract subdirectory from the argument.
18773 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18774 if test "X$func_dirname_result" = "X${1}"; then
18775 func_dirname_result="${3}"
18777 func_dirname_result="$func_dirname_result${2}"
18781 # func_basename file
18784 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18788 # func_stripname prefix suffix name
18789 # strip PREFIX and SUFFIX off of NAME.
18790 # PREFIX and SUFFIX must not contain globbing or regex special
18791 # characters, hashes, percent signs, but SUFFIX may contain a leading
18792 # dot (in which case that matches only a dot).
18793 # func_strip_suffix prefix name
18797 .*) func_stripname_result=`$ECHO "X${3}" \
18798 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18799 *) func_stripname_result=`$ECHO "X${3}" \
18800 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18805 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18806 my_sed_long_arg='1s/^-[^=]*=//'
18811 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18812 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18818 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18821 # func_xform libobj-or-source
18824 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18827 # func_arith arithmetic-term...
18830 func_arith_result=`expr "$@"`
18834 # STRING may not start with a hyphen.
18837 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18843 case $lt_shell_append in
18845 cat << \_LT_EOF >> "$cfgfile"
18847 # func_append var value
18848 # Append VALUE to the end of shell variable VAR.
18856 cat << \_LT_EOF >> "$cfgfile"
18858 # func_append var value
18859 # Append VALUE to the end of shell variable VAR.
18870 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18871 || (rm -f "$cfgfile"; exit 1)
18873 mv -f "$cfgfile" "$ofile" ||
18874 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18878 cat <<_LT_EOF >> "$ofile"
18880 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18882 # The linker used to build libraries.
18885 # Commands used to build an old-style archive.
18886 old_archive_cmds=$lt_old_archive_cmds_CXX
18888 # A language specific compiler.
18889 CC=$lt_compiler_CXX
18891 # Is the compiler the GNU compiler?
18894 # Compiler flag to turn off builtin functions.
18895 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18897 # How to pass a linker flag through the compiler.
18898 wl=$lt_lt_prog_compiler_wl_CXX
18900 # Additional compiler flags for building library objects.
18901 pic_flag=$lt_lt_prog_compiler_pic_CXX
18903 # Compiler flag to prevent dynamic linking.
18904 link_static_flag=$lt_lt_prog_compiler_static_CXX
18906 # Does compiler simultaneously support -c and -o options?
18907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18909 # Whether or not to add -lc for building shared libraries.
18910 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18912 # Whether or not to disallow shared libs when runtime libs are static.
18913 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18915 # Compiler flag to allow reflexive dlopens.
18916 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18918 # Compiler flag to generate shared objects directly from archives.
18919 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18921 # Whether the compiler copes with passing no objects directly.
18922 compiler_needs_object=$lt_compiler_needs_object_CXX
18924 # Create an old-style archive from a shared archive.
18925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18927 # Create a temporary old-style archive to link instead of a shared archive.
18928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18930 # Commands used to build a shared archive.
18931 archive_cmds=$lt_archive_cmds_CXX
18932 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18934 # Commands used to build a loadable module if different from building
18935 # a shared archive.
18936 module_cmds=$lt_module_cmds_CXX
18937 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18939 # Whether we are building with GNU ld or not.
18940 with_gnu_ld=$lt_with_gnu_ld_CXX
18942 # Flag that allows shared libraries with undefined symbols to be built.
18943 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18945 # Flag that enforces no undefined symbols.
18946 no_undefined_flag=$lt_no_undefined_flag_CXX
18948 # Flag to hardcode \$libdir into a binary during linking.
18949 # This must work even if \$libdir does not exist
18950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18952 # If ld is used when linking, flag to hardcode \$libdir into a binary
18953 # during linking. This must work even if \$libdir does not exist.
18954 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18956 # Whether we need a single "-rpath" flag with a separated argument.
18957 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18959 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18960 # DIR into the resulting binary.
18961 hardcode_direct=$hardcode_direct_CXX
18963 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18964 # DIR into the resulting binary and the resulting library dependency is
18965 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18966 # library is relocated.
18967 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18969 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18970 # into the resulting binary.
18971 hardcode_minus_L=$hardcode_minus_L_CXX
18973 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18974 # into the resulting binary.
18975 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18977 # Set to "yes" if building a shared library automatically hardcodes DIR
18978 # into the library and all subsequent libraries and executables linked
18980 hardcode_automatic=$hardcode_automatic_CXX
18982 # Set to yes if linker adds runtime paths of dependent libraries
18983 # to runtime path list.
18984 inherit_rpath=$inherit_rpath_CXX
18986 # Whether libtool must link a program against all its dependency libraries.
18987 link_all_deplibs=$link_all_deplibs_CXX
18989 # Fix the shell variable \$srcfile for the compiler.
18990 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18992 # Set to "yes" if exported symbols are required.
18993 always_export_symbols=$always_export_symbols_CXX
18995 # The commands to list exported symbols.
18996 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18998 # Symbols that should not be listed in the preloaded symbols.
18999 exclude_expsyms=$lt_exclude_expsyms_CXX
19001 # Symbols that must always be exported.
19002 include_expsyms=$lt_include_expsyms_CXX
19004 # Commands necessary for linking programs (against libraries) with templates.
19005 prelink_cmds=$lt_prelink_cmds_CXX
19007 # Specify filename containing input files.
19008 file_list_spec=$lt_file_list_spec_CXX
19010 # How to hardcode a shared library path into an executable.
19011 hardcode_action=$hardcode_action_CXX
19013 # The directories searched by this compiler when creating a shared library.
19014 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19016 # Dependencies to place before and after the objects being linked to
19017 # create a shared library.
19018 predep_objects=$lt_predep_objects_CXX
19019 postdep_objects=$lt_postdep_objects_CXX
19020 predeps=$lt_predeps_CXX
19021 postdeps=$lt_postdeps_CXX
19023 # The library search path used internally by the compiler when linking
19024 # a shared library.
19025 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19027 # ### END LIBTOOL TAG CONFIG: CXX
19038 ac_clean_files=$ac_clean_files_save
19040 test $ac_write_fail = 0 ||
19041 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19044 # configure is writing to config.log, and then calls config.status.
19045 # config.status does its own redirection, appending to config.log.
19046 # Unfortunately, on DOS this fails, as config.log is still kept open
19047 # by configure, so config.status won't be able to write to it; its
19048 # output is simply discarded. So we exec the FD to /dev/null,
19049 # effectively closing config.log, so it can be properly (re)opened and
19050 # appended to by config.status. When coming back to configure, we
19051 # need to make the FD available again.
19052 if test "$no_create" != yes; then
19054 ac_config_status_args=
19055 test "$silent" = yes &&
19056 ac_config_status_args="$ac_config_status_args --quiet"
19058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19061 # would make configure fail if this is the last instruction.
19062 $ac_cs_success || as_fn_exit $?
19064 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19066 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}