2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glog 0.3.2.
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, 2010 Free Software
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.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: opensource@google.com about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
572 PACKAGE_TARNAME='glog'
573 PACKAGE_VERSION='0.3.2'
574 PACKAGE_STRING='glog 0.3.2'
575 PACKAGE_BUGREPORT='opensource@google.com'
578 ac_unique_file="README"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
630 ac_cv_have_inttypes_h
631 ac_cv_have_systypes_h
633 ac_cv_have___builtin_expect
634 ac_cv___attribute___printf_4_5
635 ac_cv___attribute___noreturn
636 ac_cv_cxx_using_operator
638 ac_google_end_namespace
639 ac_google_start_namespace
653 ENABLE_FRAME_POINTERS_FALSE
654 ENABLE_FRAME_POINTERS_TRUE
720 INSTALL_STRIP_PROGRAM
762 program_transform_name
775 enable_option_checking
776 enable_dependency_tracking
784 enable_frame_pointers
789 ac_precious_vars='build_alias
804 # Initialize some variables set by options.
806 ac_init_version=false
807 ac_unrecognized_opts=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
818 program_transform_name=s,x,x,
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\$ac_option
864 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 # Accept the important Cygnus configure options, so we can diagnose typos.
871 case $ac_dashdash$ac_option in
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
893 cache_file=config.cache ;;
895 -datadir | --datadir | --datadi | --datad)
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
921 eval enable_$ac_useropt=no ;;
923 -docdir | --docdir | --docdi | --doc | --do)
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
947 eval enable_$ac_useropt=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
962 -help | --help | --hel | --he | -h)
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1111 -site=* | --site=* | --sit=*)
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1151 eval with_$ac_useropt=\$ac_optarg ;;
1153 -without-* | --without-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1167 eval with_$ac_useropt=no ;;
1170 # Obsolete; use --with-x.
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1187 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information"
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1196 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error $? "missing argument to $ac_option"
1217 if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 # Check all directory arguments for consistency.
1226 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
1231 eval ac_val=\$$ac_var
1232 # Remove trailing slashes.
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1238 # Be sure to have absolute directory names.
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1251 target=$target_alias
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1258 If a cross compiler is detected then cross compile mode will be used" >&2
1259 elif test "x$build_alias" != "x$host_alias"; then
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267 test "$silent" = yes && exec 6>/dev/null
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1310 ac_srcdir_defaulted=no
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 # Report the --help message.
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1344 \`configure' configures glog 0.3.2 to adapt to many kinds of systems.
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1351 Defaults for the options are specified in brackets.
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1375 For better control, use the options below.
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 if test -n "$ac_init_help"; then
1413 case $ac_init_help in
1414 short | recursive ) echo "Configuration of glog 0.3.2:";;
1419 --disable-option-checking ignore unrecognized --enable/--with options
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --disable-dependency-tracking speeds up one-time build
1423 --enable-dependency-tracking do not reject slow dependency extractors
1424 --enable-shared[=PKGS] build shared libraries [default=yes]
1425 --enable-static[=PKGS] build static libraries [default=yes]
1426 --enable-fast-install[=PKGS]
1427 optimize for fast installation [default=yes]
1428 --disable-libtool-lock avoid locking (might break parallel builds)
1429 --enable-frame-pointers On x86_64 systems, compile with
1430 -fno-omit-frame-pointer (see INSTALL)
1431 --disable-rtti Disable RTTI in glog
1432 --enable-namespace=FOO to define these Google
1433 classes in the FOO namespace. --disable-namespace
1434 to define them in the global namespace. Default
1435 is to define them in namespace google.
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 --with-sysroot=DIR Search for dependent libraries within DIR
1444 (or the compiler's sysroot if not specified).
1445 --with-gflags=GFLAGS_DIR
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1456 CXX C++ compiler command
1457 CXXFLAGS C++ compiler flags
1458 CXXCPP C++ preprocessor
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1463 Report bugs to <opensource@google.com>.
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1493 .) # We are building in place.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1526 glog configure 0.3.2
1527 generated by GNU Autoconf 2.68
1529 Copyright (C) 2010 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1576 } # ac_fn_c_try_compile
1578 # ac_fn_c_try_cpp LINENO
1579 # ----------------------
1580 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_cpp conftest.$ac_ext"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } > conftest.i && {
1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1615 # ac_fn_cxx_try_compile LINENO
1616 # ----------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_cxx_try_compile ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_cxx_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1651 } # ac_fn_cxx_try_compile
1653 # ac_fn_c_try_link LINENO
1654 # -----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded.
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext conftest$ac_exeext
1660 if { { ac_try="$ac_link"
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>conftest.err
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest$ac_exeext && {
1679 test "$cross_compiling" = yes ||
1680 $as_test_x conftest$ac_exeext
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1697 } # ac_fn_c_try_link
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1716 if ac_fn_c_try_compile "$LINENO"; then :
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 } # ac_fn_c_check_header_compile
1730 # ac_fn_c_try_run LINENO
1731 # ----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1733 # that executables *can* be run.
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_link"
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>&5
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1748 { { case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_try") 2>&5
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; }; }; then :
1760 $as_echo "$as_me: program exited with status $ac_status" >&5
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1764 ac_retval=$ac_status
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1772 # ac_fn_c_check_func LINENO FUNC VAR
1773 # ----------------------------------
1774 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1775 ac_fn_c_check_func ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1787 #define $2 innocuous_$2
1789 /* System header to define __stub macros and hopefully few prototypes,
1790 which can conflict with char $2 (); below.
1791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792 <limits.h> exists even on freestanding compilers. */
1795 # include <limits.h>
1797 # include <assert.h>
1802 /* Override any GCC internal prototype to avoid an error.
1803 Use char because int might match the return type of a GCC
1804 builtin and then its argument prototype would still apply. */
1809 /* The GNU C library defines this for functions which it implements
1810 to always fail with ENOSYS. Some functions are actually named
1811 something starting with __ and the normal name is an alias. */
1812 #if defined __stub_$2 || defined __stub___$2
1824 if ac_fn_c_try_link "$LINENO"; then :
1829 rm -f core conftest.err conftest.$ac_objext \
1830 conftest$ac_exeext conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 } # ac_fn_c_check_func
1839 # ac_fn_cxx_try_cpp LINENO
1840 # ------------------------
1841 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_cxx_try_cpp ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 if { { ac_try="$ac_cpp conftest.$ac_ext"
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } > conftest.i && {
1861 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1862 test ! -s conftest.err
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1874 } # ac_fn_cxx_try_cpp
1876 # ac_fn_cxx_try_link LINENO
1877 # -------------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded.
1879 ac_fn_cxx_try_link ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 rm -f conftest.$ac_objext conftest$ac_exeext
1883 if { { ac_try="$ac_link"
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>conftest.err
1892 if test -s conftest.err; then
1893 grep -v '^ *+' conftest.err >conftest.er1
1894 cat conftest.er1 >&5
1895 mv -f conftest.er1 conftest.err
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && {
1899 test -z "$ac_cxx_werror_flag" ||
1900 test ! -s conftest.err
1901 } && test -s conftest$ac_exeext && {
1902 test "$cross_compiling" = yes ||
1903 $as_test_x conftest$ac_exeext
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1912 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1913 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1914 # interfere with the next link command; also delete a directory that is
1915 # left behind by Apple's compiler. We do this before executing the actions.
1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 as_fn_set_status $ac_retval
1920 } # ac_fn_cxx_try_link
1922 # ac_fn_cxx_try_run LINENO
1923 # ------------------------
1924 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1925 # that executables *can* be run.
1926 ac_fn_cxx_try_run ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if { { ac_try="$ac_link"
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_link") 2>&5
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1940 { { case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_try") 2>&5
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; }; }; then :
1952 $as_echo "$as_me: program exited with status $ac_status" >&5
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1956 ac_retval=$ac_status
1958 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 as_fn_set_status $ac_retval
1962 } # ac_fn_cxx_try_run
1964 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1965 # ---------------------------------------------------------
1966 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1967 # the include files in INCLUDES and setting the cache variable VAR
1969 ac_fn_cxx_check_header_mongrel ()
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if eval \${$3+:} false; then :
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1982 # Is the header compilable?
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1984 $as_echo_n "checking $2 usability... " >&6; }
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1990 if ac_fn_cxx_try_compile "$LINENO"; then :
1991 ac_header_compiler=yes
1993 ac_header_compiler=no
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1997 $as_echo "$ac_header_compiler" >&6; }
1999 # Is the header present?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2001 $as_echo_n "checking $2 presence... " >&6; }
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2006 if ac_fn_cxx_try_cpp "$LINENO"; then :
2007 ac_header_preproc=yes
2009 ac_header_preproc=no
2011 rm -f conftest.err conftest.i conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2013 $as_echo "$ac_header_preproc" >&6; }
2015 # So? What about this header?
2016 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2019 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2025 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2027 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2029 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2031 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ( $as_echo "## ------------------------------------ ##
2035 ## Report this to opensource@google.com ##
2036 ## ------------------------------------ ##"
2037 ) | sed "s/^/$as_me: WARNING: /" >&2
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2045 eval "$3=\$ac_header_compiler"
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 } # ac_fn_cxx_check_header_mongrel
2055 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2056 # ----------------------------------------------
2057 # Tries to find the compile-time value of EXPR in a program that includes
2058 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2060 ac_fn_cxx_compute_int ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 if test "$cross_compiling" = yes; then
2064 # Depending upon the size, compute the lo and hi bounds.
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2071 static int test_array [1 - 2 * !(($2) >= 0)];
2078 if ac_fn_cxx_try_compile "$LINENO"; then :
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2094 if ac_fn_cxx_try_compile "$LINENO"; then :
2095 ac_hi=$ac_mid; break
2097 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2098 if test $ac_lo -le $ac_mid; then
2102 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 static int test_array [1 - 2 * !(($2) < 0)];
2120 if ac_fn_cxx_try_compile "$LINENO"; then :
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2129 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2136 if ac_fn_cxx_try_compile "$LINENO"; then :
2137 ac_lo=$ac_mid; break
2139 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2140 if test $ac_mid -le $ac_hi; then
2144 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 # Binary search between lo and hi bounds.
2155 while test "x$ac_lo" != "x$ac_hi"; do
2156 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2170 if ac_fn_cxx_try_compile "$LINENO"; then :
2173 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2193 FILE *f = fopen ("conftest.val", "w");
2198 long int i = longval ();
2201 fprintf (f, "%ld", i);
2205 unsigned long int i = ulongval ();
2208 fprintf (f, "%lu", i);
2210 /* Do not output a trailing newline, as this causes \r\n confusion
2211 on some platforms. */
2212 return ferror (f) || fclose (f) != 0;
2218 if ac_fn_cxx_try_run "$LINENO"; then :
2219 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2224 conftest.$ac_objext conftest.beam conftest.$ac_ext
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 as_fn_set_status $ac_retval
2231 } # ac_fn_cxx_compute_int
2233 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2234 # ---------------------------------------------
2235 # Tests whether TYPE exists after having included INCLUDES, setting cache
2236 # variable VAR accordingly.
2237 ac_fn_cxx_check_type ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \${$3+:} false; then :
2243 $as_echo_n "(cached) " >&6
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2258 if ac_fn_cxx_try_compile "$LINENO"; then :
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2271 if ac_fn_cxx_try_compile "$LINENO"; then :
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 } # ac_fn_cxx_check_type
2287 # ac_fn_cxx_check_func LINENO FUNC VAR
2288 # ------------------------------------
2289 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2290 ac_fn_cxx_check_func ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if eval \${$3+:} false; then :
2296 $as_echo_n "(cached) " >&6
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2302 #define $2 innocuous_$2
2304 /* System header to define __stub macros and hopefully few prototypes,
2305 which can conflict with char $2 (); below.
2306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2307 <limits.h> exists even on freestanding compilers. */
2310 # include <limits.h>
2312 # include <assert.h>
2317 /* Override any GCC internal prototype to avoid an error.
2318 Use char because int might match the return type of a GCC
2319 builtin and then its argument prototype would still apply. */
2324 /* The GNU C library defines this for functions which it implements
2325 to always fail with ENOSYS. Some functions are actually named
2326 something starting with __ and the normal name is an alias. */
2327 #if defined __stub_$2 || defined __stub___$2
2339 if ac_fn_cxx_try_link "$LINENO"; then :
2344 rm -f core conftest.err conftest.$ac_objext \
2345 conftest$ac_exeext conftest.$ac_ext
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 } # ac_fn_cxx_check_func
2353 cat >config.log <<_ACEOF
2354 This file contains any messages produced by compilers while
2355 running configure, to aid debugging if configure makes a mistake.
2357 It was created by glog $as_me 0.3.2, which was
2358 generated by GNU Autoconf 2.68. Invocation command line was
2370 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2371 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2372 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2373 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2374 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2376 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2377 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2379 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2380 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2381 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2382 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2383 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2384 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2385 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 $as_echo "PATH: $as_dir"
2410 # Keep a trace of the command line.
2411 # Strip out --no-create and --no-recursion so they do not pile up.
2412 # Strip out --silent because we don't want to record it for future runs.
2413 # Also quote any args containing shell meta-characters.
2414 # Make two passes to allow for proper duplicate-argument suppression.
2418 ac_must_keep_next=false
2424 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2426 | -silent | --silent | --silen | --sile | --sil)
2429 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2434 as_fn_append ac_configure_args1 " '$ac_arg'"
2435 if test $ac_must_keep_next = true; then
2436 ac_must_keep_next=false # Got value, back to normal.
2439 *=* | --config-cache | -C | -disable-* | --disable-* \
2440 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2441 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2442 | -with-* | --with-* | -without-* | --without-* | --x)
2443 case "$ac_configure_args0 " in
2444 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2447 -* ) ac_must_keep_next=true ;;
2450 as_fn_append ac_configure_args " '$ac_arg'"
2455 { ac_configure_args0=; unset ac_configure_args0;}
2456 { ac_configure_args1=; unset ac_configure_args1;}
2458 # When interrupted or exit'd, cleanup temporary files, and complete
2459 # config.log. We remove comments because anyway the quotes in there
2460 # would cause problems or look ugly.
2461 # WARNING: Use '\'' to represent an apostrophe within the trap.
2462 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2463 trap 'exit_status=$?
2464 # Save into config.log some information that might help in debugging.
2468 $as_echo "## ---------------- ##
2469 ## Cache variables. ##
2470 ## ---------------- ##"
2472 # The following way of writing the cache mishandles newlines in values,
2474 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2475 eval ac_val=\$$ac_var
2479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2483 _ | IFS | as_nl) ;; #(
2484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2485 *) { eval $ac_var=; unset $ac_var;} ;;
2490 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2491 *${as_nl}ac_space=\ *)
2493 "s/'\''/'\''\\\\'\'''\''/g;
2494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2504 $as_echo "## ----------------- ##
2505 ## Output variables. ##
2506 ## ----------------- ##"
2508 for ac_var in $ac_subst_vars
2510 eval ac_val=\$$ac_var
2512 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 $as_echo "$ac_var='\''$ac_val'\''"
2518 if test -n "$ac_subst_files"; then
2519 $as_echo "## ------------------- ##
2520 ## File substitutions. ##
2521 ## ------------------- ##"
2523 for ac_var in $ac_subst_files
2525 eval ac_val=\$$ac_var
2527 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529 $as_echo "$ac_var='\''$ac_val'\''"
2534 if test -s confdefs.h; then
2535 $as_echo "## ----------- ##
2542 test "$ac_signal" != 0 &&
2543 $as_echo "$as_me: caught signal $ac_signal"
2544 $as_echo "$as_me: exit $exit_status"
2546 rm -f core *.core core.conftest.* &&
2547 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2550 for ac_signal in 1 2 13 15; do
2551 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2555 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2556 rm -f -r conftest* confdefs.h
2558 $as_echo "/* confdefs.h */" > confdefs.h
2560 # Predefined preprocessor variables.
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_NAME "$PACKAGE_NAME"
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_STRING "$PACKAGE_STRING"
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_URL "$PACKAGE_URL"
2587 # Let the site file select an alternate cache file if it wants to.
2588 # Prefer an explicitly selected file to automatically selected ones.
2591 if test -n "$CONFIG_SITE"; then
2592 # We do not want a PATH search for config.site.
2593 case $CONFIG_SITE in #((
2594 -*) ac_site_file1=./$CONFIG_SITE;;
2595 */*) ac_site_file1=$CONFIG_SITE;;
2596 *) ac_site_file1=./$CONFIG_SITE;;
2598 elif test "x$prefix" != xNONE; then
2599 ac_site_file1=$prefix/share/config.site
2600 ac_site_file2=$prefix/etc/config.site
2602 ac_site_file1=$ac_default_prefix/share/config.site
2603 ac_site_file2=$ac_default_prefix/etc/config.site
2605 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2607 test "x$ac_site_file" = xNONE && continue
2608 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2610 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2611 sed 's/^/| /' "$ac_site_file" >&5
2613 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 as_fn_error $? "failed to load site script $ac_site_file
2616 See \`config.log' for more details" "$LINENO" 5; }
2620 if test -r "$cache_file"; then
2621 # Some versions of bash will fail to source /dev/null (special files
2622 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2623 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2625 $as_echo "$as_me: loading cache $cache_file" >&6;}
2627 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2628 *) . "./$cache_file";;
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2633 $as_echo "$as_me: creating cache $cache_file" >&6;}
2637 # Check that the precious variables saved in the cache have kept the same
2639 ac_cache_corrupted=false
2640 for ac_var in $ac_precious_vars; do
2641 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2642 eval ac_new_set=\$ac_env_${ac_var}_set
2643 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2644 eval ac_new_val=\$ac_env_${ac_var}_value
2645 case $ac_old_set,$ac_new_set in
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2648 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2649 ac_cache_corrupted=: ;;
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2653 ac_cache_corrupted=: ;;
2656 if test "x$ac_old_val" != "x$ac_new_val"; then
2657 # differences in whitespace do not lead to failure.
2658 ac_old_val_w=`echo x $ac_old_val`
2659 ac_new_val_w=`echo x $ac_new_val`
2660 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2662 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2663 ac_cache_corrupted=:
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2666 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2667 eval $ac_var=\$ac_old_val
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2670 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2672 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2675 # Pass precious variables to config.status.
2676 if test "$ac_new_set" = set; then
2678 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2679 *) ac_arg=$ac_var=$ac_new_val ;;
2681 case " $ac_configure_args " in
2682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2683 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2687 if $ac_cache_corrupted; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2691 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2692 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2694 ## -------------------- ##
2695 ## Main body of script. ##
2696 ## -------------------- ##
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705 # The argument here is just something that should be in the current directory
2706 # (for sanity checking)
2709 am__api_version='1.11'
2712 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2713 if test -f "$ac_dir/install-sh"; then
2715 ac_install_sh="$ac_aux_dir/install-sh -c"
2717 elif test -f "$ac_dir/install.sh"; then
2719 ac_install_sh="$ac_aux_dir/install.sh -c"
2721 elif test -f "$ac_dir/shtool"; then
2723 ac_install_sh="$ac_aux_dir/shtool install -c"
2727 if test -z "$ac_aux_dir"; then
2728 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2731 # These three variables are undocumented and unsupported,
2732 # and are intended to be withdrawn in a future Autoconf release.
2733 # They can cause serious problems if a builder's source tree is in a directory
2734 # whose full name contains unusual characters.
2735 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2736 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2737 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2740 # Find a good install program. We prefer a C program (faster),
2741 # so one script is as good as another. But avoid the broken or
2742 # incompatible versions:
2743 # SysV /etc/install, /usr/sbin/install
2744 # SunOS /usr/etc/install
2745 # IRIX /sbin/install
2747 # AmigaOS /C/install, which installs bootblocks on floppy discs
2748 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2751 # OS/2's system install, which has a completely different semantic
2752 # ./install, which can be erroneously created by make from ./install.sh.
2753 # Reject install programs that cannot install multiple files.
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2755 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2756 if test -z "$INSTALL"; then
2757 if ${ac_cv_path_install+:} false; then :
2758 $as_echo_n "(cached) " >&6
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 # Account for people who put trailing slashes in PATH elements.
2766 case $as_dir/ in #((
2767 ./ | .// | /[cC]/* | \
2768 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2769 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2772 # OSF1 and SCO ODT 3.0 have their own names for install.
2773 # Don't use installbsd from OSF since it installs stuff as root
2775 for ac_prog in ginstall scoinst install; do
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2778 if test $ac_prog = install &&
2779 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2780 # AIX install. It has an incompatible calling convention.
2782 elif test $ac_prog = install &&
2783 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2784 # program-specific install script used by HP pwplus--don't use.
2787 rm -rf conftest.one conftest.two conftest.dir
2788 echo one > conftest.one
2789 echo two > conftest.two
2791 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2792 test -s conftest.one && test -s conftest.two &&
2793 test -s conftest.dir/conftest.one &&
2794 test -s conftest.dir/conftest.two
2796 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2809 rm -rf conftest.one conftest.two conftest.dir
2812 if test "${ac_cv_path_install+set}" = set; then
2813 INSTALL=$ac_cv_path_install
2815 # As a last resort, use the slow shell script. Don't cache a
2816 # value for INSTALL within a source directory, because that will
2817 # break other packages using the cache if that directory is
2818 # removed, or if the value is a relative name.
2819 INSTALL=$ac_install_sh
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2823 $as_echo "$INSTALL" >&6; }
2825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2826 # It thinks the first close brace ends the variable substitution.
2827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2834 $as_echo_n "checking whether build environment is sane... " >&6; }
2837 echo timestamp > conftest.file
2838 # Reject unsafe characters in $srcdir or the absolute working directory
2839 # name. Accept space and tab only in the latter.
2843 *[\\\"\#\$\&\'\`$am_lf]*)
2844 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2847 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2848 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2851 # Do `set' in a subshell so we don't clobber the current shell's
2852 # arguments. Must try -L first in case configure is actually a
2853 # symlink; some systems play weird games with the mod time of symlinks
2854 # (eg FreeBSD returns the mod time of the symlink's containing
2857 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2858 if test "$*" = "X"; then
2860 set X `ls -t "$srcdir/configure" conftest.file`
2863 if test "$*" != "X $srcdir/configure conftest.file" \
2864 && test "$*" != "X conftest.file $srcdir/configure"; then
2866 # If neither matched, then we have a broken ls. This can happen
2867 # if, for instance, CONFIG_SHELL is bash and it inherits a
2868 # broken ls alias from the environment. This has actually
2869 # happened. Such a system could not be considered "sane".
2870 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2871 alias in your environment" "$LINENO" 5
2874 test "$2" = conftest.file
2880 as_fn_error $? "newly created file is older than distributed files!
2881 Check your system clock" "$LINENO" 5
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2884 $as_echo "yes" >&6; }
2885 test "$program_prefix" != NONE &&
2886 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2887 # Use a double $ so make ignores it.
2888 test "$program_suffix" != NONE &&
2889 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2890 # Double any \ or $.
2891 # By default was `s,x,x', remove it if useless.
2892 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2893 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2895 # expand $ac_aux_dir to an absolute path
2896 am_aux_dir=`cd $ac_aux_dir && pwd`
2898 if test x"${MISSING+set}" != xset; then
2901 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2903 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2906 # Use eval to expand $SHELL
2907 if eval "$MISSING --run true"; then
2908 am_missing_run="$MISSING --run "
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2912 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2915 if test x"${install_sh}" != xset; then
2918 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2920 install_sh="\${SHELL} $am_aux_dir/install-sh"
2924 # Installed binaries are usually stripped using `strip' when the user
2925 # run `make install-strip'. However `strip' might not be the right
2926 # tool to use in cross-compilation environments, therefore Automake
2927 # will honor the `STRIP' environment variable to overrule this program.
2928 if test "$cross_compiling" != no; then
2929 if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}strip; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_STRIP+:} false; then :
2935 $as_echo_n "(cached) " >&6
2937 if test -n "$STRIP"; then
2938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 STRIP=$ac_cv_prog_STRIP
2958 if test -n "$STRIP"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2960 $as_echo "$STRIP" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2968 if test -z "$ac_cv_prog_STRIP"; then
2970 # Extract the first word of "strip", so it can be a program name with args.
2971 set dummy strip; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2975 $as_echo_n "(cached) " >&6
2977 if test -n "$ac_ct_STRIP"; then
2978 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987 ac_cv_prog_ac_ct_STRIP="strip"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2998 if test -n "$ac_ct_STRIP"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3000 $as_echo "$ac_ct_STRIP" >&6; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3006 if test "x$ac_ct_STRIP" = x; then
3009 case $cross_compiling:$ac_tool_warned in
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3013 ac_tool_warned=yes ;;
3018 STRIP="$ac_cv_prog_STRIP"
3022 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3025 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3026 if test -z "$MKDIR_P"; then
3027 if ${ac_cv_path_mkdir+:} false; then :
3028 $as_echo_n "(cached) " >&6
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3034 test -z "$as_dir" && as_dir=.
3035 for ac_prog in mkdir gmkdir; do
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3038 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3039 'mkdir (GNU coreutils) '* | \
3040 'mkdir (coreutils) '* | \
3041 'mkdir (fileutils) '4.1*)
3042 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3052 test -d ./--version && rmdir ./--version
3053 if test "${ac_cv_path_mkdir+set}" = set; then
3054 MKDIR_P="$ac_cv_path_mkdir -p"
3056 # As a last resort, use the slow shell script. Don't cache a
3057 # value for MKDIR_P within a source directory, because that will
3058 # break other packages using the cache if that directory is
3059 # removed, or if the value is a relative name.
3060 MKDIR_P="$ac_install_sh -d"
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3064 $as_echo "$MKDIR_P" >&6; }
3068 [\\/$]* | ?:[\\/]*) ;;
3069 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3072 for ac_prog in gawk mawk nawk awk
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_AWK+:} false; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$AWK"; then
3082 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_AWK="$ac_prog"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 if test -n "$AWK"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3104 $as_echo "$AWK" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3111 test -n "$AWK" && break
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3115 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3117 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3118 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3119 $as_echo_n "(cached) " >&6
3121 cat >conftest.make <<\_ACEOF
3124 @echo '@@@%%%=$(MAKE)=@@@%%%'
3126 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3127 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3129 eval ac_cv_prog_make_${ac_make}_set=yes;;
3131 eval ac_cv_prog_make_${ac_make}_set=no;;
3135 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3137 $as_echo "yes" >&6; }
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 SET_MAKE="MAKE=${MAKE-make}"
3145 rm -rf .tst 2>/dev/null
3146 mkdir .tst 2>/dev/null
3147 if test -d .tst; then
3152 rmdir .tst 2>/dev/null
3154 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3155 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3156 # is not polluted with repeated "-I."
3157 am__isrc=' -I$(srcdir)'
3158 # test to see if srcdir already configured
3159 if test -f $srcdir/config.status; then
3160 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3164 # test whether we have cygpath
3165 if test -z "$CYGPATH_W"; then
3166 if (cygpath --version) >/dev/null 2>/dev/null; then
3167 CYGPATH_W='cygpath -w'
3174 # Define the identity of the package.
3179 cat >>confdefs.h <<_ACEOF
3180 #define PACKAGE "$PACKAGE"
3184 cat >>confdefs.h <<_ACEOF
3185 #define VERSION "$VERSION"
3188 # Some tools Automake needs.
3190 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3193 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3196 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3199 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3202 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3204 # We need awk for the "check" target. The system "awk" is bad on
3206 # Always define AMTAR for backward compatibility. Yes, it's still used
3207 # in the wild :-( We should find a proper way to deprecate it ...
3210 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3216 ac_config_headers="$ac_config_headers src/config.h"
3220 ac_cpp='$CXXCPP $CPPFLAGS'
3221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3226 # Checks for programs.
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3271 if test -z "$ac_cv_prog_CC"; then
3273 # Extract the first word of "gcc", so it can be a program name with args.
3274 set dummy gcc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_ac_ct_CC="gcc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 $as_echo "$ac_ct_CC" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3309 if test "x$ac_ct_CC" = x; then
3312 case $cross_compiling:$ac_tool_warned in
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3324 if test -z "$CC"; then
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}cc; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_CC+:} false; then :
3331 $as_echo_n "(cached) " >&6
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343 ac_cv_prog_CC="${ac_tool_prefix}cc"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 if test -n "$CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 $as_echo "$CC" >&6; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3365 if test -z "$CC"; then
3366 # Extract the first word of "cc", so it can be a program name with args.
3367 set dummy cc; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_CC+:} false; then :
3371 $as_echo_n "(cached) " >&6
3373 if test -n "$CC"; then
3374 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3385 ac_prog_rejected=yes
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 if test $ac_prog_rejected = yes; then
3397 # We found a bogon in the path, so make sure we never use it.
3398 set dummy $ac_cv_prog_CC
3400 if test $# != 0; then
3401 # We chose a different compiler from the bogus one.
3402 # However, it has the same basename, so the bogon will be chosen
3403 # first if we set CC to just the basename; use the full file name.
3405 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3411 if test -n "$CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413 $as_echo "$CC" >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3421 if test -z "$CC"; then
3422 if test -n "$ac_tool_prefix"; then
3423 for ac_prog in cl.exe
3425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if ${ac_cv_prog_CC+:} false; then :
3430 $as_echo_n "(cached) " >&6
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 if test -n "$CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455 $as_echo "$CC" >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3462 test -n "$CC" && break
3465 if test -z "$CC"; then
3467 for ac_prog in cl.exe
3469 # Extract the first word of "$ac_prog", so it can be a program name with args.
3470 set dummy $ac_prog; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3474 $as_echo_n "(cached) " >&6
3476 if test -n "$ac_ct_CC"; then
3477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_ac_ct_CC="$ac_prog"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497 if test -n "$ac_ct_CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3499 $as_echo "$ac_ct_CC" >&6; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3506 test -n "$ac_ct_CC" && break
3509 if test "x$ac_ct_CC" = x; then
3512 case $cross_compiling:$ac_tool_warned in
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned=yes ;;
3525 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "no acceptable C compiler found in \$PATH
3528 See \`config.log' for more details" "$LINENO" 5; }
3530 # Provide some information about the compiler.
3531 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3534 for ac_option in --version -v -V -qversion; do
3535 { { ac_try="$ac_compiler $ac_option >&5"
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3544 if test -s conftest.err; then
3546 ... rest of stderr output deleted ...
3547 10q' conftest.err >conftest.er1
3548 cat conftest.er1 >&5
3550 rm -f conftest.er1 conftest.err
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3566 ac_clean_files_save=$ac_clean_files
3567 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3568 # Try to create an executable without -o first, disregard a.out.
3569 # It will help us diagnose broken compilers, and finding out an intuition
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572 $as_echo_n "checking whether the C compiler works... " >&6; }
3573 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3575 # The possible output files:
3576 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3579 for ac_file in $ac_files
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3583 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3588 if { { ac_try="$ac_link_default"
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_link_default") 2>&5
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; then :
3599 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3600 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3601 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3602 # so that the user can short-circuit this test for compilers unknown to
3604 for ac_file in $ac_files ''
3606 test -f "$ac_file" || continue
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3611 # We found the default executable, but exeext='' is most
3615 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3617 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3619 # We set ac_cv_exeext here because the later test for it is not
3620 # safe: cross compilers may not add the suffix if given an `-o'
3621 # argument, so we may need to know it at that point already.
3622 # Even if this section looks crufty: it has the advantage of
3629 test "$ac_cv_exeext" = no && ac_cv_exeext=
3634 if test -z "$ac_file"; then :
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 { { $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 77 "C compiler cannot create executables
3643 See \`config.log' for more details" "$LINENO" 5; }
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646 $as_echo "yes" >&6; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3649 $as_echo_n "checking for C compiler default output file name... " >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3651 $as_echo "$ac_file" >&6; }
3652 ac_exeext=$ac_cv_exeext
3654 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3655 ac_clean_files=$ac_clean_files_save
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3657 $as_echo_n "checking for suffix of executables... " >&6; }
3658 if { { ac_try="$ac_link"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link") 2>&5
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3670 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3671 # work properly (i.e., refer to `conftest.exe'), while it won't with
3673 for ac_file in conftest.exe conftest conftest.*; do
3674 test -f "$ac_file" || continue
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3686 See \`config.log' for more details" "$LINENO" 5; }
3688 rm -f conftest conftest$ac_cv_exeext
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3690 $as_echo "$ac_cv_exeext" >&6; }
3692 rm -f conftest.$ac_ext
3693 EXEEXT=$ac_cv_exeext
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3701 FILE *f = fopen ("conftest.out", "w");
3702 return ferror (f) || fclose (f) != 0;
3708 ac_clean_files="$ac_clean_files conftest.out"
3709 # Check that the compiler produces executables we can run. If not, either
3710 # the compiler is broken, or we cross compile.
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3712 $as_echo_n "checking whether we are cross compiling... " >&6; }
3713 if test "$cross_compiling" != yes; then
3714 { { ac_try="$ac_link"
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 $as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_link") 2>&5
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }
3725 if { ac_try='./conftest$ac_cv_exeext'
3726 { { case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_try") 2>&5
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; }; then
3738 if test "$cross_compiling" = maybe; then
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error $? "cannot run C compiled programs.
3744 If you meant to cross compile, use \`--host'.
3745 See \`config.log' for more details" "$LINENO" 5; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3750 $as_echo "$cross_compiling" >&6; }
3752 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3753 ac_clean_files=$ac_clean_files_save
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3755 $as_echo_n "checking for suffix of object files... " >&6; }
3756 if ${ac_cv_objext+:} false; then :
3757 $as_echo_n "(cached) " >&6
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3770 rm -f conftest.o conftest.obj
3771 if { { ac_try="$ac_compile"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_compile") 2>&5
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }; then :
3782 for ac_file in conftest.o conftest.obj conftest.*; do
3783 test -f "$ac_file" || continue;
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3786 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3791 $as_echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error $? "cannot compute suffix of object files: cannot compile
3797 See \`config.log' for more details" "$LINENO" 5; }
3799 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3802 $as_echo "$ac_cv_objext" >&6; }
3803 OBJEXT=$ac_cv_objext
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3806 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3807 if ${ac_cv_c_compiler_gnu+:} false; then :
3808 $as_echo_n "(cached) " >&6
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3824 if ac_fn_c_try_compile "$LINENO"; then :
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3834 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3835 if test $ac_compiler_gnu = yes; then
3840 ac_test_CFLAGS=${CFLAGS+set}
3841 ac_save_CFLAGS=$CFLAGS
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3843 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3844 if ${ac_cv_prog_cc_g+:} false; then :
3845 $as_echo_n "(cached) " >&6
3847 ac_save_c_werror_flag=$ac_c_werror_flag
3848 ac_c_werror_flag=yes
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3862 if ac_fn_c_try_compile "$LINENO"; then :
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3877 if ac_fn_c_try_compile "$LINENO"; then :
3880 ac_c_werror_flag=$ac_save_c_werror_flag
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3893 if ac_fn_c_try_compile "$LINENO"; then :
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3904 $as_echo "$ac_cv_prog_cc_g" >&6; }
3905 if test "$ac_test_CFLAGS" = set; then
3906 CFLAGS=$ac_save_CFLAGS
3907 elif test $ac_cv_prog_cc_g = yes; then
3908 if test "$GCC" = yes; then
3914 if test "$GCC" = yes; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3921 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3922 if ${ac_cv_prog_cc_c89+:} false; then :
3923 $as_echo_n "(cached) " >&6
3925 ac_cv_prog_cc_c89=no
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3931 #include <sys/types.h>
3932 #include <sys/stat.h>
3933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3934 struct buf { int x; };
3935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3936 static char *e (p, i)
3942 static char *f (char * (*g) (char **, int), char **p, ...)
3947 s = g (p, va_arg (v,int));
3952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3953 function prototypes and stuff, but not '\xHH' hex character constants.
3954 These don't provoke an error unfortunately, instead are silently treated
3955 as 'x'. The following induces an error, until -std is added to get
3956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3957 array size at least. It's necessary to write '\x00'==0 to get something
3958 that's true only with -std. */
3959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3961 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3962 inside strings and character constants. */
3964 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3966 int test (int i, double x);
3967 struct s1 {int (*f) (int a);};
3968 struct s2 {int (*f) (double a);};
3969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3975 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3980 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3981 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3983 CC="$ac_save_CC $ac_arg"
3984 if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_cv_prog_cc_c89=$ac_arg
3987 rm -f core conftest.err conftest.$ac_objext
3988 test "x$ac_cv_prog_cc_c89" != "xno" && break
3990 rm -f conftest.$ac_ext
3995 case "x$ac_cv_prog_cc_c89" in
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3998 $as_echo "none needed" >&6; } ;;
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4001 $as_echo "unsupported" >&6; } ;;
4003 CC="$CC $ac_cv_prog_cc_c89"
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4005 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4007 if test "x$ac_cv_prog_cc_c89" != xno; then :
4012 ac_cpp='$CXXCPP $CPPFLAGS'
4013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4016 DEPDIR="${am__leading_dot}deps"
4018 ac_config_commands="$ac_config_commands depfiles"
4021 am_make=${MAKE-make}
4022 cat > confinc << 'END'
4024 @echo this is the am__doit target
4027 # If we don't find an include directive, just comment out the code.
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4029 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4033 # First try GNU make style include.
4034 echo "include confinc" > confmf
4035 # Ignore all kinds of additional output from `make'.
4036 case `$am_make -s -f confmf 2> /dev/null` in #(
4037 *the\ am__doit\ target*)
4043 # Now try BSD make style include.
4044 if test "$am__include" = "#"; then
4045 echo '.include "confinc"' > confmf
4046 case `$am_make -s -f confmf 2> /dev/null` in #(
4047 *the\ am__doit\ target*)
4048 am__include=.include
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4057 $as_echo "$_am_result" >&6; }
4058 rm -f confinc confmf
4060 # Check whether --enable-dependency-tracking was given.
4061 if test "${enable_dependency_tracking+set}" = set; then :
4062 enableval=$enable_dependency_tracking;
4065 if test "x$enable_dependency_tracking" != xno; then
4066 am_depcomp="$ac_aux_dir/depcomp"
4070 if test "x$enable_dependency_tracking" != xno; then
4080 depcc="$CC" am_compiler_list=
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4083 $as_echo_n "checking dependency style of $depcc... " >&6; }
4084 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4088 # We make a subdir and do the tests there. Otherwise we can end up
4089 # making bogus files that we don't know about and never remove. For
4090 # instance it was reported that on HP-UX the gcc test will end up
4091 # making a dummy file named `D' -- because `-MD' means `put the output
4095 # Copy depcomp to subdir because otherwise we won't find it if we're
4096 # using a relative directory.
4097 cp "$am_depcomp" conftest.dir
4099 # We will build objects and dependencies in a subdirectory because
4100 # it helps to detect inapplicable dependency modes. For instance
4101 # both Tru64's cc and ICC support -MD to output dependencies as a
4102 # side effect of compilation, but ICC will put the dependencies in
4103 # the current directory while Tru64 will put them in the object
4107 am_cv_CC_dependencies_compiler_type=none
4108 if test "$am_compiler_list" = ""; then
4109 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4112 case " $depcc " in #(
4113 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4116 for depmode in $am_compiler_list; do
4117 # Setup a source with many dependencies, because some compilers
4118 # like to wrap large dependency lists on column 80 (with \), and
4119 # we should not choose a depcomp mode which is confused by this.
4121 # We need to recreate these files for each test, as the compiler may
4122 # overwrite some of them when testing with obscure command lines.
4123 # This happens at least with the AIX C compiler.
4125 for i in 1 2 3 4 5 6; do
4126 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4127 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4128 # Solaris 8's {/usr,}/bin/sh.
4129 touch sub/conftst$i.h
4131 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4133 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4134 # mode. It turns out that the SunPro C++ compiler does not properly
4135 # handle `-M -o', and we need to detect this. Also, some Intel
4136 # versions had trouble with output in subdirs
4137 am__obj=sub/conftest.${OBJEXT-o}
4138 am__minus_obj="-o $am__obj"
4141 # This depmode causes a compiler race in universal mode.
4142 test "$am__universal" = false || continue
4145 # after this tag, mechanisms are not by side-effect, so they'll
4146 # only be used when explicitly requested
4147 if test "x$enable_dependency_tracking" = xyes; then
4153 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4154 # This compiler won't grok `-c -o', but also, the minuso test has
4155 # not run yet. These depmodes are late enough in the game, and
4156 # so weak that their functioning should not be impacted.
4157 am__obj=conftest.${OBJEXT-o}
4162 if depmode=$depmode \
4163 source=sub/conftest.c object=$am__obj \
4164 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4165 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4166 >/dev/null 2>conftest.err &&
4167 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4168 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4169 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4170 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4171 # icc doesn't choke on unknown options, it will just issue warnings
4172 # or remarks (even with -Werror). So we grep stderr for any message
4173 # that says an option was ignored or not supported.
4174 # When given -MP, icc 7.0 and 7.1 complain thusly:
4175 # icc: Command line warning: ignoring option '-M'; no argument required
4176 # The diagnosis changed in icc 8.0:
4177 # icc: Command line remark: option '-MP' not supported
4178 if (grep 'ignoring option' conftest.err ||
4179 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4180 am_cv_CC_dependencies_compiler_type=$depmode
4189 am_cv_CC_dependencies_compiler_type=none
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4194 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4198 test "x$enable_dependency_tracking" != xno \
4199 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4201 am__fastdepCC_FALSE='#'
4203 am__fastdepCC_TRUE='#'
4204 am__fastdepCC_FALSE=
4209 ac_cpp='$CPP $CPPFLAGS'
4210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4214 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4215 # On Suns, sometimes $CPP names a directory.
4216 if test -n "$CPP" && test -d "$CPP"; then
4219 if test -z "$CPP"; then
4220 if ${ac_cv_prog_CPP+:} false; then :
4221 $as_echo_n "(cached) " >&6
4223 # Double quotes because CPP needs to be expanded
4224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4227 for ac_c_preproc_warn_flag in '' yes
4229 # Use a header file that comes with gcc, so configuring glibc
4230 # with a fresh cross-compiler works.
4231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4232 # <limits.h> exists even on freestanding compilers.
4233 # On the NeXT, cc -E runs the code through the compiler's parser,
4234 # not just through cpp. "Syntax error" is here to catch this case.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4238 # include <limits.h>
4240 # include <assert.h>
4244 if ac_fn_c_try_cpp "$LINENO"; then :
4247 # Broken: fails on valid input.
4250 rm -f conftest.err conftest.i conftest.$ac_ext
4252 # OK, works on sane cases. Now check whether nonexistent headers
4253 # can be detected and how.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <ac_nonexistent.h>
4258 if ac_fn_c_try_cpp "$LINENO"; then :
4259 # Broken: success on invalid input.
4262 # Passes both tests.
4266 rm -f conftest.err conftest.i conftest.$ac_ext
4269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270 rm -f conftest.i conftest.err conftest.$ac_ext
4271 if $ac_preproc_ok; then :
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4284 $as_echo "$CPP" >&6; }
4286 for ac_c_preproc_warn_flag in '' yes
4288 # Use a header file that comes with gcc, so configuring glibc
4289 # with a fresh cross-compiler works.
4290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291 # <limits.h> exists even on freestanding compilers.
4292 # On the NeXT, cc -E runs the code through the compiler's parser,
4293 # not just through cpp. "Syntax error" is here to catch this case.
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4297 # include <limits.h>
4299 # include <assert.h>
4303 if ac_fn_c_try_cpp "$LINENO"; then :
4306 # Broken: fails on valid input.
4309 rm -f conftest.err conftest.i conftest.$ac_ext
4311 # OK, works on sane cases. Now check whether nonexistent headers
4312 # can be detected and how.
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315 #include <ac_nonexistent.h>
4317 if ac_fn_c_try_cpp "$LINENO"; then :
4318 # Broken: success on invalid input.
4321 # Passes both tests.
4325 rm -f conftest.err conftest.i conftest.$ac_ext
4328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4329 rm -f conftest.i conftest.err conftest.$ac_ext
4330 if $ac_preproc_ok; then :
4333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4336 See \`config.log' for more details" "$LINENO" 5; }
4340 ac_cpp='$CXXCPP $CPPFLAGS'
4341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4346 ac_cpp='$CXXCPP $CPPFLAGS'
4347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4350 if test -z "$CXX"; then
4351 if test -n "$CCC"; then
4354 if test -n "$ac_tool_prefix"; then
4355 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_prog_CXX+:} false; then :
4362 $as_echo_n "(cached) " >&6
4364 if test -n "$CXX"; then
4365 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 if test -n "$CXX"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4387 $as_echo "$CXX" >&6; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4394 test -n "$CXX" && break
4397 if test -z "$CXX"; then
4399 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4401 # Extract the first word of "$ac_prog", so it can be a program name with args.
4402 set dummy $ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4406 $as_echo_n "(cached) " >&6
4408 if test -n "$ac_ct_CXX"; then
4409 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_ac_ct_CXX="$ac_prog"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4429 if test -n "$ac_ct_CXX"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4431 $as_echo "$ac_ct_CXX" >&6; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4438 test -n "$ac_ct_CXX" && break
4441 if test "x$ac_ct_CXX" = x; then
4444 case $cross_compiling:$ac_tool_warned in
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448 ac_tool_warned=yes ;;
4456 # Provide some information about the compiler.
4457 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4460 for ac_option in --version -v -V -qversion; do
4461 { { ac_try="$ac_compiler $ac_option >&5"
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4470 if test -s conftest.err; then
4472 ... rest of stderr output deleted ...
4473 10q' conftest.err >conftest.er1
4474 cat conftest.er1 >&5
4476 rm -f conftest.er1 conftest.err
4477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478 test $ac_status = 0; }
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4482 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4483 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4484 $as_echo_n "(cached) " >&6
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4500 if ac_fn_cxx_try_compile "$LINENO"; then :
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4510 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4511 if test $ac_compiler_gnu = yes; then
4516 ac_test_CXXFLAGS=${CXXFLAGS+set}
4517 ac_save_CXXFLAGS=$CXXFLAGS
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4519 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4520 if ${ac_cv_prog_cxx_g+:} false; then :
4521 $as_echo_n "(cached) " >&6
4523 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4524 ac_cxx_werror_flag=yes
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4539 ac_cv_prog_cxx_g=yes
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4553 if ac_fn_cxx_try_compile "$LINENO"; then :
4556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4569 if ac_fn_cxx_try_compile "$LINENO"; then :
4570 ac_cv_prog_cxx_g=yes
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4580 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4581 if test "$ac_test_CXXFLAGS" = set; then
4582 CXXFLAGS=$ac_save_CXXFLAGS
4583 elif test $ac_cv_prog_cxx_g = yes; then
4584 if test "$GXX" = yes; then
4590 if test "$GXX" = yes; then
4597 ac_cpp='$CXXCPP $CPPFLAGS'
4598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4602 depcc="$CXX" am_compiler_list=
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4605 $as_echo_n "checking dependency style of $depcc... " >&6; }
4606 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4607 $as_echo_n "(cached) " >&6
4609 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4610 # We make a subdir and do the tests there. Otherwise we can end up
4611 # making bogus files that we don't know about and never remove. For
4612 # instance it was reported that on HP-UX the gcc test will end up
4613 # making a dummy file named `D' -- because `-MD' means `put the output
4617 # Copy depcomp to subdir because otherwise we won't find it if we're
4618 # using a relative directory.
4619 cp "$am_depcomp" conftest.dir
4621 # We will build objects and dependencies in a subdirectory because
4622 # it helps to detect inapplicable dependency modes. For instance
4623 # both Tru64's cc and ICC support -MD to output dependencies as a
4624 # side effect of compilation, but ICC will put the dependencies in
4625 # the current directory while Tru64 will put them in the object
4629 am_cv_CXX_dependencies_compiler_type=none
4630 if test "$am_compiler_list" = ""; then
4631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4634 case " $depcc " in #(
4635 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4638 for depmode in $am_compiler_list; do
4639 # Setup a source with many dependencies, because some compilers
4640 # like to wrap large dependency lists on column 80 (with \), and
4641 # we should not choose a depcomp mode which is confused by this.
4643 # We need to recreate these files for each test, as the compiler may
4644 # overwrite some of them when testing with obscure command lines.
4645 # This happens at least with the AIX C compiler.
4647 for i in 1 2 3 4 5 6; do
4648 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4649 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4650 # Solaris 8's {/usr,}/bin/sh.
4651 touch sub/conftst$i.h
4653 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4655 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4656 # mode. It turns out that the SunPro C++ compiler does not properly
4657 # handle `-M -o', and we need to detect this. Also, some Intel
4658 # versions had trouble with output in subdirs
4659 am__obj=sub/conftest.${OBJEXT-o}
4660 am__minus_obj="-o $am__obj"
4663 # This depmode causes a compiler race in universal mode.
4664 test "$am__universal" = false || continue
4667 # after this tag, mechanisms are not by side-effect, so they'll
4668 # only be used when explicitly requested
4669 if test "x$enable_dependency_tracking" = xyes; then
4675 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4676 # This compiler won't grok `-c -o', but also, the minuso test has
4677 # not run yet. These depmodes are late enough in the game, and
4678 # so weak that their functioning should not be impacted.
4679 am__obj=conftest.${OBJEXT-o}
4684 if depmode=$depmode \
4685 source=sub/conftest.c object=$am__obj \
4686 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4687 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4688 >/dev/null 2>conftest.err &&
4689 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4690 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4691 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4692 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4693 # icc doesn't choke on unknown options, it will just issue warnings
4694 # or remarks (even with -Werror). So we grep stderr for any message
4695 # that says an option was ignored or not supported.
4696 # When given -MP, icc 7.0 and 7.1 complain thusly:
4697 # icc: Command line warning: ignoring option '-M'; no argument required
4698 # The diagnosis changed in icc 8.0:
4699 # icc: Command line remark: option '-MP' not supported
4700 if (grep 'ignoring option' conftest.err ||
4701 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4702 am_cv_CXX_dependencies_compiler_type=$depmode
4711 am_cv_CXX_dependencies_compiler_type=none
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4716 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4717 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4720 test "x$enable_dependency_tracking" != xno \
4721 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4722 am__fastdepCXX_TRUE=
4723 am__fastdepCXX_FALSE='#'
4725 am__fastdepCXX_TRUE='#'
4726 am__fastdepCXX_FALSE=
4730 if test "$GCC" = yes; then
4737 # let the Makefile know if we're gcc
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4742 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4747 macro_version='2.4.2'
4748 macro_revision='1.3337'
4762 ltmain="$ac_aux_dir/ltmain.sh"
4764 # Make sure we can run config.sub.
4765 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4766 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4769 $as_echo_n "checking build system type... " >&6; }
4770 if ${ac_cv_build+:} false; then :
4771 $as_echo_n "(cached) " >&6
4773 ac_build_alias=$build_alias
4774 test "x$ac_build_alias" = x &&
4775 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4776 test "x$ac_build_alias" = x &&
4777 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4778 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4779 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4783 $as_echo "$ac_cv_build" >&6; }
4784 case $ac_cv_build in
4786 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4789 ac_save_IFS=$IFS; IFS='-'
4795 # Remember, the first character of IFS is used to create $*,
4796 # except with old shells:
4799 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4803 $as_echo_n "checking host system type... " >&6; }
4804 if ${ac_cv_host+:} false; then :
4805 $as_echo_n "(cached) " >&6
4807 if test "x$host_alias" = x; then
4808 ac_cv_host=$ac_cv_build
4810 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4811 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4816 $as_echo "$ac_cv_host" >&6; }
4819 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4822 ac_save_IFS=$IFS; IFS='-'
4828 # Remember, the first character of IFS is used to create $*,
4829 # except with old shells:
4832 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4835 # Backslashify metacharacters that are still active within
4836 # double-quoted strings.
4837 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4839 # Same as above, but do not quote variable references.
4840 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4842 # Sed substitution to delay expansion of an escaped shell variable in a
4843 # double_quote_subst'ed string.
4844 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4846 # Sed substitution to delay expansion of an escaped single quote.
4847 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4849 # Sed substitution to avoid accidental globbing in evaled expressions
4850 no_glob_subst='s/\*/\\\*/g'
4852 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4853 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4854 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4857 $as_echo_n "checking how to print strings... " >&6; }
4858 # Test print first, because it will be a builtin if present.
4859 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4860 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4862 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4865 # Use this function as a fallback that always works.
4866 func_fallback_echo ()
4868 eval 'cat <<_LTECHO_EOF
4872 ECHO='func_fallback_echo'
4875 # func_echo_all arg...
4876 # Invoke $ECHO with all args, space-separated.
4883 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4884 $as_echo "printf" >&6; } ;;
4885 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4886 $as_echo "print -r" >&6; } ;;
4887 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4888 $as_echo "cat" >&6; } ;;
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4905 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4906 if ${ac_cv_path_SED+:} false; then :
4907 $as_echo_n "(cached) " >&6
4909 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4910 for ac_i in 1 2 3 4 5 6 7; do
4911 ac_script="$ac_script$as_nl$ac_script"
4913 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4914 { ac_script=; unset ac_script;}
4915 if test -z "$SED"; then
4916 ac_path_SED_found=false
4917 # Loop through the user's path and test for each of PROGNAME-LIST
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_prog in sed gsed; do
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4926 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4927 # Check for GNU ac_path_SED and select it if it is found.
4928 # Check for GNU $ac_path_SED
4929 case `"$ac_path_SED" --version 2>&1` in
4931 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4934 $as_echo_n 0123456789 >"conftest.in"
4937 cat "conftest.in" "conftest.in" >"conftest.tmp"
4938 mv "conftest.tmp" "conftest.in"
4939 cp "conftest.in" "conftest.nl"
4940 $as_echo '' >> "conftest.nl"
4941 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4942 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4943 as_fn_arith $ac_count + 1 && ac_count=$as_val
4944 if test $ac_count -gt ${ac_path_SED_max-0}; then
4945 # Best one so far, save it but keep looking for a better one
4946 ac_cv_path_SED="$ac_path_SED"
4947 ac_path_SED_max=$ac_count
4949 # 10*(2^10) chars as input seems more than enough
4950 test $ac_count -gt 10 && break
4952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4955 $ac_path_SED_found && break 3
4960 if test -z "$ac_cv_path_SED"; then
4961 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4969 $as_echo "$ac_cv_path_SED" >&6; }
4970 SED="$ac_cv_path_SED"
4973 test -z "$SED" && SED=sed
4974 Xsed="$SED -e 1s/^X//"
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4987 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4988 if ${ac_cv_path_GREP+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 if test -z "$GREP"; then
4992 ac_path_GREP_found=false
4993 # Loop through the user's path and test for each of PROGNAME-LIST
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4998 test -z "$as_dir" && as_dir=.
4999 for ac_prog in grep ggrep; do
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5002 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5003 # Check for GNU ac_path_GREP and select it if it is found.
5004 # Check for GNU $ac_path_GREP
5005 case `"$ac_path_GREP" --version 2>&1` in
5007 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5010 $as_echo_n 0123456789 >"conftest.in"
5013 cat "conftest.in" "conftest.in" >"conftest.tmp"
5014 mv "conftest.tmp" "conftest.in"
5015 cp "conftest.in" "conftest.nl"
5016 $as_echo 'GREP' >> "conftest.nl"
5017 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5019 as_fn_arith $ac_count + 1 && ac_count=$as_val
5020 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5021 # Best one so far, save it but keep looking for a better one
5022 ac_cv_path_GREP="$ac_path_GREP"
5023 ac_path_GREP_max=$ac_count
5025 # 10*(2^10) chars as input seems more than enough
5026 test $ac_count -gt 10 && break
5028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5031 $ac_path_GREP_found && break 3
5036 if test -z "$ac_cv_path_GREP"; then
5037 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5040 ac_cv_path_GREP=$GREP
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5045 $as_echo "$ac_cv_path_GREP" >&6; }
5046 GREP="$ac_cv_path_GREP"
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5050 $as_echo_n "checking for egrep... " >&6; }
5051 if ${ac_cv_path_EGREP+:} false; then :
5052 $as_echo_n "(cached) " >&6
5054 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5055 then ac_cv_path_EGREP="$GREP -E"
5057 if test -z "$EGREP"; then
5058 ac_path_EGREP_found=false
5059 # Loop through the user's path and test for each of PROGNAME-LIST
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5064 test -z "$as_dir" && as_dir=.
5065 for ac_prog in egrep; do
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5068 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5069 # Check for GNU ac_path_EGREP and select it if it is found.
5070 # Check for GNU $ac_path_EGREP
5071 case `"$ac_path_EGREP" --version 2>&1` in
5073 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5076 $as_echo_n 0123456789 >"conftest.in"
5079 cat "conftest.in" "conftest.in" >"conftest.tmp"
5080 mv "conftest.tmp" "conftest.in"
5081 cp "conftest.in" "conftest.nl"
5082 $as_echo 'EGREP' >> "conftest.nl"
5083 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5085 as_fn_arith $ac_count + 1 && ac_count=$as_val
5086 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5087 # Best one so far, save it but keep looking for a better one
5088 ac_cv_path_EGREP="$ac_path_EGREP"
5089 ac_path_EGREP_max=$ac_count
5091 # 10*(2^10) chars as input seems more than enough
5092 test $ac_count -gt 10 && break
5094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5097 $ac_path_EGREP_found && break 3
5102 if test -z "$ac_cv_path_EGREP"; then
5103 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5106 ac_cv_path_EGREP=$EGREP
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5112 $as_echo "$ac_cv_path_EGREP" >&6; }
5113 EGREP="$ac_cv_path_EGREP"
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5117 $as_echo_n "checking for fgrep... " >&6; }
5118 if ${ac_cv_path_FGREP+:} false; then :
5119 $as_echo_n "(cached) " >&6
5121 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5122 then ac_cv_path_FGREP="$GREP -F"
5124 if test -z "$FGREP"; then
5125 ac_path_FGREP_found=false
5126 # Loop through the user's path and test for each of PROGNAME-LIST
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5131 test -z "$as_dir" && as_dir=.
5132 for ac_prog in fgrep; do
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5135 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5136 # Check for GNU ac_path_FGREP and select it if it is found.
5137 # Check for GNU $ac_path_FGREP
5138 case `"$ac_path_FGREP" --version 2>&1` in
5140 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5143 $as_echo_n 0123456789 >"conftest.in"
5146 cat "conftest.in" "conftest.in" >"conftest.tmp"
5147 mv "conftest.tmp" "conftest.in"
5148 cp "conftest.in" "conftest.nl"
5149 $as_echo 'FGREP' >> "conftest.nl"
5150 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5152 as_fn_arith $ac_count + 1 && ac_count=$as_val
5153 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5154 # Best one so far, save it but keep looking for a better one
5155 ac_cv_path_FGREP="$ac_path_FGREP"
5156 ac_path_FGREP_max=$ac_count
5158 # 10*(2^10) chars as input seems more than enough
5159 test $ac_count -gt 10 && break
5161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5164 $ac_path_FGREP_found && break 3
5169 if test -z "$ac_cv_path_FGREP"; then
5170 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5173 ac_cv_path_FGREP=$FGREP
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5179 $as_echo "$ac_cv_path_FGREP" >&6; }
5180 FGREP="$ac_cv_path_FGREP"
5183 test -z "$GREP" && GREP=grep
5203 # Check whether --with-gnu-ld was given.
5204 if test "${with_gnu_ld+set}" = set; then :
5205 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5211 if test "$GCC" = yes; then
5212 # Check if gcc -print-prog-name=ld gives a path.
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5214 $as_echo_n "checking for ld used by $CC... " >&6; }
5217 # gcc leaves a trailing carriage return which upsets mingw
5218 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5220 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5223 # Accept absolute paths.
5225 re_direlt='/[^/][^/]*/\.\./'
5226 # Canonicalize the pathname of ld
5227 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5228 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5229 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5231 test -z "$LD" && LD="$ac_prog"
5234 # If it fails, then pretend we aren't using GCC.
5238 # If it is relative, then search for the first ld in PATH.
5242 elif test "$with_gnu_ld" = yes; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5244 $as_echo_n "checking for GNU ld... " >&6; }
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5247 $as_echo_n "checking for non-GNU ld... " >&6; }
5249 if ${lt_cv_path_LD+:} false; then :
5250 $as_echo_n "(cached) " >&6
5252 if test -z "$LD"; then
5253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5254 for ac_dir in $PATH; do
5256 test -z "$ac_dir" && ac_dir=.
5257 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5258 lt_cv_path_LD="$ac_dir/$ac_prog"
5259 # Check to see if the program is GNU ld. I'd rather use --version,
5260 # but apparently some variants of GNU ld only accept -v.
5261 # Break only if it was the GNU/non-GNU ld that we prefer.
5262 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5263 *GNU* | *'with BFD'*)
5264 test "$with_gnu_ld" != no && break
5267 test "$with_gnu_ld" != yes && break
5274 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5279 if test -n "$LD"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5281 $as_echo "$LD" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5286 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5288 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5289 if ${lt_cv_prog_gnu_ld+:} false; then :
5290 $as_echo_n "(cached) " >&6
5292 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5293 case `$LD -v 2>&1 </dev/null` in
5294 *GNU* | *'with BFD'*)
5295 lt_cv_prog_gnu_ld=yes
5298 lt_cv_prog_gnu_ld=no
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5303 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5304 with_gnu_ld=$lt_cv_prog_gnu_ld
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5315 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5316 if ${lt_cv_path_NM+:} false; then :
5317 $as_echo_n "(cached) " >&6
5319 if test -n "$NM"; then
5320 # Let the user override the test.
5323 lt_nm_to_check="${ac_tool_prefix}nm"
5324 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5325 lt_nm_to_check="$lt_nm_to_check nm"
5327 for lt_tmp_nm in $lt_nm_to_check; do
5328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5329 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5331 test -z "$ac_dir" && ac_dir=.
5332 tmp_nm="$ac_dir/$lt_tmp_nm"
5333 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5334 # Check to see if the nm accepts a BSD-compat flag.
5335 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5336 # nm: unknown option "B" ignored
5337 # Tru64's nm complains that /dev/null is an invalid object file
5338 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5339 */dev/null* | *'Invalid file or object type'*)
5340 lt_cv_path_NM="$tmp_nm -B"
5344 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5346 lt_cv_path_NM="$tmp_nm -p"
5350 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5351 continue # so that we can try to find one that supports BSD flags
5360 : ${lt_cv_path_NM=no}
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5364 $as_echo "$lt_cv_path_NM" >&6; }
5365 if test "$lt_cv_path_NM" != "no"; then
5368 # Didn't find any BSD compatible name lister, look for dumpbin.
5369 if test -n "$DUMPBIN"; then :
5370 # Let the user override the test.
5372 if test -n "$ac_tool_prefix"; then
5373 for ac_prog in dumpbin "link -dump"
5375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_DUMPBIN+:} false; then :
5380 $as_echo_n "(cached) " >&6
5382 if test -n "$DUMPBIN"; then
5383 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 DUMPBIN=$ac_cv_prog_DUMPBIN
5403 if test -n "$DUMPBIN"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5405 $as_echo "$DUMPBIN" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5412 test -n "$DUMPBIN" && break
5415 if test -z "$DUMPBIN"; then
5416 ac_ct_DUMPBIN=$DUMPBIN
5417 for ac_prog in dumpbin "link -dump"
5419 # Extract the first word of "$ac_prog", so it can be a program name with args.
5420 set dummy $ac_prog; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5424 $as_echo_n "(cached) " >&6
5426 if test -n "$ac_ct_DUMPBIN"; then
5427 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5447 if test -n "$ac_ct_DUMPBIN"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5449 $as_echo "$ac_ct_DUMPBIN" >&6; }
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5456 test -n "$ac_ct_DUMPBIN" && break
5459 if test "x$ac_ct_DUMPBIN" = x; then
5462 case $cross_compiling:$ac_tool_warned in
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5468 DUMPBIN=$ac_ct_DUMPBIN
5472 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5474 DUMPBIN="$DUMPBIN -symbols"
5482 if test "$DUMPBIN" != ":"; then
5486 test -z "$NM" && NM=nm
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5494 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5495 if ${lt_cv_nm_interface+:} false; then :
5496 $as_echo_n "(cached) " >&6
5498 lt_cv_nm_interface="BSD nm"
5499 echo "int some_variable = 0;" > conftest.$ac_ext
5500 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5501 (eval "$ac_compile" 2>conftest.err)
5502 cat conftest.err >&5
5503 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5504 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5505 cat conftest.err >&5
5506 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5507 cat conftest.out >&5
5508 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5509 lt_cv_nm_interface="MS dumpbin"
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5514 $as_echo "$lt_cv_nm_interface" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5517 $as_echo_n "checking whether ln -s works... " >&6; }
5519 if test "$LN_S" = "ln -s"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5524 $as_echo "no, using $LN_S" >&6; }
5527 # find the maximum length of command line arguments
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5529 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5530 if ${lt_cv_sys_max_cmd_len+:} false; then :
5531 $as_echo_n "(cached) " >&6
5538 # On DJGPP, this test can blow up pretty badly due to problems in libc
5539 # (any single argument exceeding 2000 bytes causes a buffer overrun
5540 # during glob expansion). Even if it were fixed, the result of this
5541 # check would be larger than it should be.
5542 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5546 # Under GNU Hurd, this test is not required because there is
5547 # no limit to the length of command line arguments.
5548 # Libtool will interpret -1 as no limit whatsoever
5549 lt_cv_sys_max_cmd_len=-1;
5552 cygwin* | mingw* | cegcc*)
5553 # On Win9x/ME, this test blows up -- it succeeds, but takes
5554 # about 5 minutes as the teststring grows exponentially.
5555 # Worse, since 9x/ME are not pre-emptively multitasking,
5556 # you end up with a "frozen" computer, even though with patience
5557 # the test eventually succeeds (with a max line length of 256k).
5558 # Instead, let's just punt: use the minimum linelength reported by
5559 # all of the supported platforms: 8192 (on NT/2K/XP).
5560 lt_cv_sys_max_cmd_len=8192;
5564 # On MiNT this can take a long time and run out of memory.
5565 lt_cv_sys_max_cmd_len=8192;
5569 # On AmigaOS with pdksh, this test takes hours, literally.
5570 # So we just punt and use a minimum line length of 8192.
5571 lt_cv_sys_max_cmd_len=8192;
5574 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5575 # This has been around since 386BSD, at least. Likely further.
5576 if test -x /sbin/sysctl; then
5577 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5578 elif test -x /usr/sbin/sysctl; then
5579 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5581 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5583 # And add a safety zone
5584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5589 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5590 lt_cv_sys_max_cmd_len=196608
5594 # The test takes a long time on OS/2.
5595 lt_cv_sys_max_cmd_len=8192
5599 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5600 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5601 # nice to cause kernel panics so lets avoid the loop below.
5602 # First set a reasonable default.
5603 lt_cv_sys_max_cmd_len=16384
5605 if test -x /sbin/sysconfig; then
5606 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5607 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5612 lt_cv_sys_max_cmd_len=102400
5614 sysv5* | sco5v6* | sysv4.2uw2*)
5615 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5616 if test -n "$kargmax"; then
5617 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5619 lt_cv_sys_max_cmd_len=32768
5623 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5624 if test -n "$lt_cv_sys_max_cmd_len"; then
5625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5628 # Make teststring a little bigger before we do anything with it.
5629 # a 1K string should be a reasonable start.
5630 for i in 1 2 3 4 5 6 7 8 ; do
5631 teststring=$teststring$teststring
5633 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5634 # If test is not a shell built-in, we'll probably end up computing a
5635 # maximum length that is only half of the actual maximum length, but
5637 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5638 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5639 test $i != 17 # 1/2 MB should be enough
5642 teststring=$teststring$teststring
5644 # Only check the string length outside the loop.
5645 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5647 # Add a significant safety factor because C++ compilers can tack on
5648 # massive amounts of additional arguments before passing them to the
5649 # linker. It appears as though 1/2 is a usable value.
5650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5657 if test -n $lt_cv_sys_max_cmd_len ; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5659 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5662 $as_echo "none" >&6; }
5664 max_cmd_len=$lt_cv_sys_max_cmd_len
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5676 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5677 # Try some XSI features
5680 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5682 && eval 'test $(( 1 + 1 )) -eq 2 \
5683 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5686 $as_echo "$xsi_shell" >&6; }
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5690 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5692 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5694 && lt_shell_append=yes
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5696 $as_echo "$lt_shell_append" >&6; }
5699 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5709 # test EBCDIC or ASCII
5710 case `echo X|tr X '\101'` in
5711 A) # ASCII based system
5712 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5713 lt_SP2NL='tr \040 \012'
5714 lt_NL2SP='tr \015\012 \040\040'
5716 *) # EBCDIC based system
5717 lt_SP2NL='tr \100 \n'
5718 lt_NL2SP='tr \r\n \100\100'
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5731 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5732 if ${lt_cv_to_host_file_cmd+:} false; then :
5733 $as_echo_n "(cached) " >&6
5738 *-*-mingw* ) # actually msys
5739 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5742 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5744 * ) # otherwise, assume *nix
5745 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5751 *-*-mingw* ) # actually msys
5752 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5755 lt_cv_to_host_file_cmd=func_convert_file_noop
5757 * ) # otherwise, assume *nix
5758 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5762 * ) # unhandled hosts (and "normal" native builds)
5763 lt_cv_to_host_file_cmd=func_convert_file_noop
5769 to_host_file_cmd=$lt_cv_to_host_file_cmd
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5771 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5778 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5779 if ${lt_cv_to_tool_file_cmd+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 #assume ordinary cross tools, or native build.
5783 lt_cv_to_tool_file_cmd=func_convert_file_noop
5787 *-*-mingw* ) # actually msys
5788 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5796 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5798 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5805 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5806 if ${lt_cv_ld_reload_flag+:} false; then :
5807 $as_echo_n "(cached) " >&6
5809 lt_cv_ld_reload_flag='-r'
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5812 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5813 reload_flag=$lt_cv_ld_reload_flag
5814 case $reload_flag in
5816 *) reload_flag=" $reload_flag" ;;
5818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5820 cygwin* | mingw* | pw32* | cegcc*)
5821 if test "$GCC" != yes; then
5826 if test "$GCC" = yes; then
5827 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5842 if test -n "$ac_tool_prefix"; then
5843 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_OBJDUMP+:} false; then :
5848 $as_echo_n "(cached) " >&6
5850 if test -n "$OBJDUMP"; then
5851 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 OBJDUMP=$ac_cv_prog_OBJDUMP
5871 if test -n "$OBJDUMP"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5873 $as_echo "$OBJDUMP" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5881 if test -z "$ac_cv_prog_OBJDUMP"; then
5882 ac_ct_OBJDUMP=$OBJDUMP
5883 # Extract the first word of "objdump", so it can be a program name with args.
5884 set dummy objdump; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5888 $as_echo_n "(cached) " >&6
5890 if test -n "$ac_ct_OBJDUMP"; then
5891 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5911 if test -n "$ac_ct_OBJDUMP"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5913 $as_echo "$ac_ct_OBJDUMP" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5919 if test "x$ac_ct_OBJDUMP" = x; then
5922 case $cross_compiling:$ac_tool_warned in
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926 ac_tool_warned=yes ;;
5928 OBJDUMP=$ac_ct_OBJDUMP
5931 OBJDUMP="$ac_cv_prog_OBJDUMP"
5934 test -z "$OBJDUMP" && OBJDUMP=objdump
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5945 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5946 if ${lt_cv_deplibs_check_method+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 lt_cv_file_magic_cmd='$MAGIC_CMD'
5950 lt_cv_file_magic_test_file=
5951 lt_cv_deplibs_check_method='unknown'
5952 # Need to set the preceding variable on all platforms that support
5953 # interlibrary dependencies.
5954 # 'none' -- dependencies not supported.
5955 # `unknown' -- same as none, but documents that we really don't know.
5956 # 'pass_all' -- all dependencies passed with no checks.
5957 # 'test_compile' -- check by making test program.
5958 # 'file_magic [[regex]]' -- check by looking for files in library path
5959 # which responds to the $file_magic_cmd with a given extended regex.
5960 # If you have `file' or equivalent on your system and you're not sure
5961 # whether `pass_all' will *always* work, you probably want this one.
5965 lt_cv_deplibs_check_method=pass_all
5969 lt_cv_deplibs_check_method=pass_all
5973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5974 lt_cv_file_magic_cmd='/usr/bin/file -L'
5975 lt_cv_file_magic_test_file=/shlib/libc.so
5979 # func_win32_libid is a shell function defined in ltmain.sh
5980 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5981 lt_cv_file_magic_cmd='func_win32_libid'
5985 # Base MSYS/MinGW do not provide the 'file' command needed by
5986 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5987 # unless we find 'file', for example because we are cross-compiling.
5988 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5989 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5990 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5991 lt_cv_file_magic_cmd='func_win32_libid'
5993 # Keep this pattern in sync with the one in func_win32_libid.
5994 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5995 lt_cv_file_magic_cmd='$OBJDUMP -f'
6000 # use the weaker test based on 'objdump'. See mingw*.
6001 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6002 lt_cv_file_magic_cmd='$OBJDUMP -f'
6005 darwin* | rhapsody*)
6006 lt_cv_deplibs_check_method=pass_all
6009 freebsd* | dragonfly*)
6010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6013 # Not sure whether the presence of OpenBSD here was a mistake.
6014 # Let's accept both of them until this is cleared up.
6015 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6016 lt_cv_file_magic_cmd=/usr/bin/file
6017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6021 lt_cv_deplibs_check_method=pass_all
6026 lt_cv_deplibs_check_method=pass_all
6030 lt_cv_deplibs_check_method=pass_all
6033 hpux10.20* | hpux11*)
6034 lt_cv_file_magic_cmd=/usr/bin/file
6037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6038 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6041 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6042 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6046 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6056 irix5* | irix6* | nonstopux*)
6058 *-32|*"-32 ") libmagic=32-bit;;
6059 *-n32|*"-n32 ") libmagic=N32;;
6060 *-64|*"-64 ") libmagic=64-bit;;
6061 *) libmagic=never-match;;
6063 lt_cv_deplibs_check_method=pass_all
6066 # This must be glibc/ELF.
6067 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6068 lt_cv_deplibs_check_method=pass_all
6071 netbsd* | netbsdelf*-gnu)
6072 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6081 lt_cv_file_magic_cmd=/usr/bin/file
6082 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6086 lt_cv_deplibs_check_method=pass_all
6090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6097 osf3* | osf4* | osf5*)
6098 lt_cv_deplibs_check_method=pass_all
6102 lt_cv_deplibs_check_method=pass_all
6106 lt_cv_deplibs_check_method=pass_all
6109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6110 lt_cv_deplibs_check_method=pass_all
6114 case $host_vendor in
6116 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]'
6117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6120 lt_cv_deplibs_check_method=pass_all
6123 lt_cv_file_magic_cmd='/bin/file'
6124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6127 lt_cv_file_magic_cmd='/bin/file'
6128 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6129 lt_cv_file_magic_test_file=/lib/libc.so
6132 lt_cv_deplibs_check_method=pass_all
6135 lt_cv_deplibs_check_method=pass_all
6141 lt_cv_deplibs_check_method=pass_all
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6147 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6151 if test "$build" = "$host"; then
6154 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6157 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6163 file_magic_cmd=$lt_cv_file_magic_cmd
6164 deplibs_check_method=$lt_cv_deplibs_check_method
6165 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6188 if test -n "$ac_tool_prefix"; then
6189 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6190 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_prog_DLLTOOL+:} false; then :
6194 $as_echo_n "(cached) " >&6
6196 if test -n "$DLLTOOL"; then
6197 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 DLLTOOL=$ac_cv_prog_DLLTOOL
6217 if test -n "$DLLTOOL"; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6219 $as_echo "$DLLTOOL" >&6; }
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6227 if test -z "$ac_cv_prog_DLLTOOL"; then
6228 ac_ct_DLLTOOL=$DLLTOOL
6229 # Extract the first word of "dlltool", so it can be a program name with args.
6230 set dummy dlltool; ac_word=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6234 $as_echo_n "(cached) " >&6
6236 if test -n "$ac_ct_DLLTOOL"; then
6237 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6257 if test -n "$ac_ct_DLLTOOL"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6259 $as_echo "$ac_ct_DLLTOOL" >&6; }
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6265 if test "x$ac_ct_DLLTOOL" = x; then
6268 case $cross_compiling:$ac_tool_warned in
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272 ac_tool_warned=yes ;;
6274 DLLTOOL=$ac_ct_DLLTOOL
6277 DLLTOOL="$ac_cv_prog_DLLTOOL"
6280 test -z "$DLLTOOL" && DLLTOOL=dlltool
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6292 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6293 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6294 $as_echo_n "(cached) " >&6
6296 lt_cv_sharedlib_from_linklib_cmd='unknown'
6299 cygwin* | mingw* | pw32* | cegcc*)
6300 # two different shell functions defined in ltmain.sh
6301 # decide which to use based on capabilities of $DLLTOOL
6302 case `$DLLTOOL --help 2>&1` in
6303 *--identify-strict*)
6304 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6307 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6312 # fallback: assume linklib IS sharedlib
6313 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6319 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6320 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6321 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6330 if test -n "$ac_tool_prefix"; then
6333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_prog_AR+:} false; then :
6338 $as_echo_n "(cached) " >&6
6340 if test -n "$AR"; then
6341 ac_cv_prog_AR="$AR" # Let the user override the test.
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 if test -n "$AR"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6363 $as_echo "$AR" >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6370 test -n "$AR" && break
6373 if test -z "$AR"; then
6377 # Extract the first word of "$ac_prog", so it can be a program name with args.
6378 set dummy $ac_prog; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6382 $as_echo_n "(cached) " >&6
6384 if test -n "$ac_ct_AR"; then
6385 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_ac_ct_AR="$ac_prog"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6405 if test -n "$ac_ct_AR"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6407 $as_echo "$ac_ct_AR" >&6; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6414 test -n "$ac_ct_AR" && break
6417 if test "x$ac_ct_AR" = x; then
6420 case $cross_compiling:$ac_tool_warned in
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424 ac_tool_warned=yes ;;
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6444 $as_echo_n "checking for archiver @FILE support... " >&6; }
6445 if ${lt_cv_ar_at_file+:} false; then :
6446 $as_echo_n "(cached) " >&6
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6460 if ac_fn_cxx_try_compile "$LINENO"; then :
6461 echo conftest.$ac_objext > conftest.lst
6462 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6464 (eval $lt_ar_try) 2>&5
6466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467 test $ac_status = 0; }
6468 if test "$ac_status" -eq 0; then
6469 # Ensure the archiver fails upon bogus file names.
6470 rm -f conftest.$ac_objext libconftest.a
6471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6472 (eval $lt_ar_try) 2>&5
6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; }
6476 if test "$ac_status" -ne 0; then
6480 rm -f conftest.* libconftest.a
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6487 $as_echo "$lt_cv_ar_at_file" >&6; }
6489 if test "x$lt_cv_ar_at_file" = xno; then
6492 archiver_list_spec=$lt_cv_ar_at_file
6501 if test -n "$ac_tool_prefix"; then
6502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}strip; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_STRIP+:} false; then :
6507 $as_echo_n "(cached) " >&6
6509 if test -n "$STRIP"; then
6510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 STRIP=$ac_cv_prog_STRIP
6530 if test -n "$STRIP"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6532 $as_echo "$STRIP" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6540 if test -z "$ac_cv_prog_STRIP"; then
6542 # Extract the first word of "strip", so it can be a program name with args.
6543 set dummy strip; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6547 $as_echo_n "(cached) " >&6
6549 if test -n "$ac_ct_STRIP"; then
6550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_prog_ac_ct_STRIP="strip"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6570 if test -n "$ac_ct_STRIP"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6572 $as_echo "$ac_ct_STRIP" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6578 if test "x$ac_ct_STRIP" = x; then
6581 case $cross_compiling:$ac_tool_warned in
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6590 STRIP="$ac_cv_prog_STRIP"
6593 test -z "$STRIP" && STRIP=:
6600 if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_RANLIB+:} false; then :
6606 $as_echo_n "(cached) " >&6
6608 if test -n "$RANLIB"; then
6609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 RANLIB=$ac_cv_prog_RANLIB
6629 if test -n "$RANLIB"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6631 $as_echo "$RANLIB" >&6; }
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6639 if test -z "$ac_cv_prog_RANLIB"; then
6640 ac_ct_RANLIB=$RANLIB
6641 # Extract the first word of "ranlib", so it can be a program name with args.
6642 set dummy ranlib; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6646 $as_echo_n "(cached) " >&6
6648 if test -n "$ac_ct_RANLIB"; then
6649 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_prog_ac_ct_RANLIB="ranlib"
6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6669 if test -n "$ac_ct_RANLIB"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6671 $as_echo "$ac_ct_RANLIB" >&6; }
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6677 if test "x$ac_ct_RANLIB" = x; then
6680 case $cross_compiling:$ac_tool_warned in
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6686 RANLIB=$ac_ct_RANLIB
6689 RANLIB="$ac_cv_prog_RANLIB"
6692 test -z "$RANLIB" && RANLIB=:
6699 # Determine commands to create old-style static archives.
6700 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6701 old_postinstall_cmds='chmod 644 $oldlib'
6702 old_postuninstall_cmds=
6704 if test -n "$RANLIB"; then
6707 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6710 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6713 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6718 lock_old_archive_extraction=yes ;;
6720 lock_old_archive_extraction=no ;;
6761 # If no C compiler was specified, use CC.
6764 # If no C compiler flags were specified, use CFLAGS.
6765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6767 # Allow CC to be a program name with arguments.
6771 # Check for command to grab the raw symbol name followed by C symbol from nm.
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6773 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6774 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6775 $as_echo_n "(cached) " >&6
6778 # These are sane defaults that work on at least a few old systems.
6779 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6781 # Character class describing NM global symbol codes.
6782 symcode='[BCDEGRST]'
6784 # Regexp to match symbols that can be accessed directly from C.
6785 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6787 # Define system-specific variables.
6792 cygwin* | mingw* | pw32* | cegcc*)
6793 symcode='[ABCDGISTW]'
6796 if test "$host_cpu" = ia64; then
6797 symcode='[ABCDEGRST]'
6801 symcode='[BCDEGRST]'
6804 symcode='[BCDEGQRST]'
6815 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6823 # If we're using GNU nm, then use its standard symbol codes.
6824 case `$NM -V 2>&1` in
6825 *GNU* | *'with BFD'*)
6826 symcode='[ABCDGIRSTW]' ;;
6829 # Transform an extracted symbol line into a proper C declaration.
6830 # Some systems (esp. on ia64) link data and code symbols differently,
6831 # so use this general approach.
6832 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6834 # Transform an extracted symbol line into symbol name and symbol address
6835 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6836 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'"
6838 # Handle CRLF in mingw tool chain
6842 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6846 # Try without a prefix underscore, then with it.
6847 for ac_symprfx in "" "_"; do
6849 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6850 symxfrm="\\1 $ac_symprfx\\2 \\2"
6852 # Write the raw and C identifiers.
6853 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6854 # Fake it for dumpbin and say T for any non-static function
6855 # and D for any global variable.
6856 # Also find C++ and __fastcall symbols from MSVC++,
6857 # which start with @ or ?.
6858 lt_cv_sys_global_symbol_pipe="$AWK '"\
6859 " {last_section=section; section=\$ 3};"\
6860 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6861 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6862 " \$ 0!~/External *\|/{next};"\
6863 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6864 " {if(hide[section]) next};"\
6865 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6866 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6867 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6868 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6869 " ' prfx=^$ac_symprfx"
6871 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6873 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6875 # Check to see that the pipe works correctly.
6879 cat > conftest.$ac_ext <<_LT_EOF
6884 void nm_test_func(void);
6885 void nm_test_func(void){}
6889 int main(){nm_test_var='a';nm_test_func();return(0);}
6892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6893 (eval $ac_compile) 2>&5
6895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896 test $ac_status = 0; }; then
6897 # Now try to grab the symbols.
6899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6900 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903 test $ac_status = 0; } && test -s "$nlist"; then
6904 # Try sorting and uniquifying the output.
6905 if sort "$nlist" | uniq > "$nlist"T; then
6906 mv -f "$nlist"T "$nlist"
6911 # Make sure that we snagged all the symbols we need.
6912 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6913 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6914 cat <<_LT_EOF > conftest.$ac_ext
6915 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6916 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6917 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6918 relocations are performed -- see ld's documentation on pseudo-relocs. */
6919 # define LT_DLSYM_CONST
6920 #elif defined(__osf__)
6921 /* This system does not cope well with relocations in const data. */
6922 # define LT_DLSYM_CONST
6924 # define LT_DLSYM_CONST const
6932 # Now generate the symbol file.
6933 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6935 cat <<_LT_EOF >> conftest.$ac_ext
6937 /* The mapping between symbol names and symbols. */
6938 LT_DLSYM_CONST struct {
6942 lt__PROGRAM__LTX_preloaded_symbols[] =
6944 { "@PROGRAM@", (void *) 0 },
6946 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6947 cat <<\_LT_EOF >> conftest.$ac_ext
6951 /* This works around a problem in FreeBSD linker */
6952 #ifdef FREEBSD_WORKAROUND
6953 static const void *lt_preloaded_setup() {
6954 return lt__PROGRAM__LTX_preloaded_symbols;
6962 # Now try linking the two files.
6963 mv conftest.$ac_objext conftstm.$ac_objext
6964 lt_globsym_save_LIBS=$LIBS
6965 lt_globsym_save_CFLAGS=$CFLAGS
6966 LIBS="conftstm.$ac_objext"
6967 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6969 (eval $ac_link) 2>&5
6971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6975 LIBS=$lt_globsym_save_LIBS
6976 CFLAGS=$lt_globsym_save_CFLAGS
6978 echo "cannot find nm_test_func in $nlist" >&5
6981 echo "cannot find nm_test_var in $nlist" >&5
6984 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6987 echo "$progname: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6990 rm -rf conftest* conftst*
6992 # Do not use the global_symbol_pipe unless it works.
6993 if test "$pipe_works" = yes; then
6996 lt_cv_sys_global_symbol_pipe=
7002 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7003 lt_cv_sys_global_symbol_to_cdecl=
7005 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7007 $as_echo "failed" >&6; }
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7010 $as_echo "ok" >&6; }
7013 # Response file support.
7014 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7015 nm_file_list_spec='@'
7016 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7017 nm_file_list_spec='@'
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7047 $as_echo_n "checking for sysroot... " >&6; }
7049 # Check whether --with-sysroot was given.
7050 if test "${with_sysroot+set}" = set; then :
7051 withval=$with_sysroot;
7058 case ${with_sysroot} in #(
7060 if test "$GCC" = yes; then
7061 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7065 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7071 $as_echo "${with_sysroot}" >&6; }
7072 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7077 $as_echo "${lt_sysroot:-no}" >&6; }
7084 # Check whether --enable-libtool-lock was given.
7085 if test "${enable_libtool_lock+set}" = set; then :
7086 enableval=$enable_libtool_lock;
7089 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7091 # Some flags need to be propagated to the compiler or linker for good
7095 # Find out which ABI we are using.
7096 echo 'int i;' > conftest.$ac_ext
7097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7098 (eval $ac_compile) 2>&5
7100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7101 test $ac_status = 0; }; then
7102 case `/usr/bin/file conftest.$ac_objext` in
7114 # Find out which ABI we are using.
7115 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7117 (eval $ac_compile) 2>&5
7119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7120 test $ac_status = 0; }; then
7121 if test "$lt_cv_prog_gnu_ld" = yes; then
7122 case `/usr/bin/file conftest.$ac_objext` in
7124 LD="${LD-ld} -melf32bsmip"
7127 LD="${LD-ld} -melf32bmipn32"
7130 LD="${LD-ld} -melf64bmip"
7134 case `/usr/bin/file conftest.$ac_objext` in
7150 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7151 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7152 # Find out which ABI we are using.
7153 echo 'int i;' > conftest.$ac_ext
7154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7155 (eval $ac_compile) 2>&5
7157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158 test $ac_status = 0; }; then
7159 case `/usr/bin/file conftest.o` in
7162 x86_64-*kfreebsd*-gnu)
7163 LD="${LD-ld} -m elf_i386_fbsd"
7166 LD="${LD-ld} -m elf_i386"
7168 ppc64-*linux*|powerpc64-*linux*)
7169 LD="${LD-ld} -m elf32ppclinux"
7172 LD="${LD-ld} -m elf_s390"
7175 LD="${LD-ld} -m elf32_sparc"
7181 x86_64-*kfreebsd*-gnu)
7182 LD="${LD-ld} -m elf_x86_64_fbsd"
7185 LD="${LD-ld} -m elf_x86_64"
7187 ppc*-*linux*|powerpc*-*linux*)
7188 LD="${LD-ld} -m elf64ppc"
7190 s390*-*linux*|s390*-*tpf*)
7191 LD="${LD-ld} -m elf64_s390"
7194 LD="${LD-ld} -m elf64_sparc"
7204 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7205 SAVE_CFLAGS="$CFLAGS"
7206 CFLAGS="$CFLAGS -belf"
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7208 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7209 if ${lt_cv_cc_needs_belf+:} false; then :
7210 $as_echo_n "(cached) " >&6
7213 ac_cpp='$CPP $CPPFLAGS'
7214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7229 if ac_fn_c_try_link "$LINENO"; then :
7230 lt_cv_cc_needs_belf=yes
7232 lt_cv_cc_needs_belf=no
7234 rm -f core conftest.err conftest.$ac_objext \
7235 conftest$ac_exeext conftest.$ac_ext
7237 ac_cpp='$CPP $CPPFLAGS'
7238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7244 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7245 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7246 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7247 CFLAGS="$SAVE_CFLAGS"
7251 # Find out which ABI we are using.
7252 echo 'int i;' > conftest.$ac_ext
7253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7254 (eval $ac_compile) 2>&5
7256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7257 test $ac_status = 0; }; then
7258 case `/usr/bin/file conftest.o` in
7260 case $lt_cv_prog_gnu_ld in
7264 LD="${LD-ld} -m elf_x86_64"
7267 LD="${LD-ld} -m elf64_sparc"
7270 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7271 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7276 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7288 need_locks="$enable_libtool_lock"
7290 if test -n "$ac_tool_prefix"; then
7291 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}mt; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7296 $as_echo_n "(cached) " >&6
7298 if test -n "$MANIFEST_TOOL"; then
7299 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7319 if test -n "$MANIFEST_TOOL"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7321 $as_echo "$MANIFEST_TOOL" >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7329 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7330 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7331 # Extract the first word of "mt", so it can be a program name with args.
7332 set dummy mt; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7336 $as_echo_n "(cached) " >&6
7338 if test -n "$ac_ct_MANIFEST_TOOL"; then
7339 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7359 if test -n "$ac_ct_MANIFEST_TOOL"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7361 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7367 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7370 case $cross_compiling:$ac_tool_warned in
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374 ac_tool_warned=yes ;;
7376 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7379 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7382 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7384 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7385 if ${lt_cv_path_mainfest_tool+:} false; then :
7386 $as_echo_n "(cached) " >&6
7388 lt_cv_path_mainfest_tool=no
7389 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7390 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7391 cat conftest.err >&5
7392 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7393 lt_cv_path_mainfest_tool=yes
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7398 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7399 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7409 rhapsody* | darwin*)
7410 if test -n "$ac_tool_prefix"; then
7411 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7416 $as_echo_n "(cached) " >&6
7418 if test -n "$DSYMUTIL"; then
7419 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7439 if test -n "$DSYMUTIL"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7441 $as_echo "$DSYMUTIL" >&6; }
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7449 if test -z "$ac_cv_prog_DSYMUTIL"; then
7450 ac_ct_DSYMUTIL=$DSYMUTIL
7451 # Extract the first word of "dsymutil", so it can be a program name with args.
7452 set dummy dsymutil; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7456 $as_echo_n "(cached) " >&6
7458 if test -n "$ac_ct_DSYMUTIL"; then
7459 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7479 if test -n "$ac_ct_DSYMUTIL"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7481 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7487 if test "x$ac_ct_DSYMUTIL" = x; then
7490 case $cross_compiling:$ac_tool_warned in
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7496 DSYMUTIL=$ac_ct_DSYMUTIL
7499 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if ${ac_cv_prog_NMEDIT+:} false; then :
7508 $as_echo_n "(cached) " >&6
7510 if test -n "$NMEDIT"; then
7511 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 NMEDIT=$ac_cv_prog_NMEDIT
7531 if test -n "$NMEDIT"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7533 $as_echo "$NMEDIT" >&6; }
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7541 if test -z "$ac_cv_prog_NMEDIT"; then
7542 ac_ct_NMEDIT=$NMEDIT
7543 # Extract the first word of "nmedit", so it can be a program name with args.
7544 set dummy nmedit; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7548 $as_echo_n "(cached) " >&6
7550 if test -n "$ac_ct_NMEDIT"; then
7551 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7571 if test -n "$ac_ct_NMEDIT"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7573 $as_echo "$ac_ct_NMEDIT" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7579 if test "x$ac_ct_NMEDIT" = x; then
7582 case $cross_compiling:$ac_tool_warned in
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7588 NMEDIT=$ac_ct_NMEDIT
7591 NMEDIT="$ac_cv_prog_NMEDIT"
7594 if test -n "$ac_tool_prefix"; then
7595 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7596 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if ${ac_cv_prog_LIPO+:} false; then :
7600 $as_echo_n "(cached) " >&6
7602 if test -n "$LIPO"; then
7603 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 LIPO=$ac_cv_prog_LIPO
7623 if test -n "$LIPO"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7625 $as_echo "$LIPO" >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7633 if test -z "$ac_cv_prog_LIPO"; then
7635 # Extract the first word of "lipo", so it can be a program name with args.
7636 set dummy lipo; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7640 $as_echo_n "(cached) " >&6
7642 if test -n "$ac_ct_LIPO"; then
7643 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_prog_ac_ct_LIPO="lipo"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7663 if test -n "$ac_ct_LIPO"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7665 $as_echo "$ac_ct_LIPO" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7671 if test "x$ac_ct_LIPO" = x; then
7674 case $cross_compiling:$ac_tool_warned in
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678 ac_tool_warned=yes ;;
7683 LIPO="$ac_cv_prog_LIPO"
7686 if test -n "$ac_tool_prefix"; then
7687 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7688 set dummy ${ac_tool_prefix}otool; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if ${ac_cv_prog_OTOOL+:} false; then :
7692 $as_echo_n "(cached) " >&6
7694 if test -n "$OTOOL"; then
7695 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 OTOOL=$ac_cv_prog_OTOOL
7715 if test -n "$OTOOL"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7717 $as_echo "$OTOOL" >&6; }
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7725 if test -z "$ac_cv_prog_OTOOL"; then
7727 # Extract the first word of "otool", so it can be a program name with args.
7728 set dummy otool; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7732 $as_echo_n "(cached) " >&6
7734 if test -n "$ac_ct_OTOOL"; then
7735 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_ac_ct_OTOOL="otool"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7755 if test -n "$ac_ct_OTOOL"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7757 $as_echo "$ac_ct_OTOOL" >&6; }
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7763 if test "x$ac_ct_OTOOL" = x; then
7766 case $cross_compiling:$ac_tool_warned in
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770 ac_tool_warned=yes ;;
7775 OTOOL="$ac_cv_prog_OTOOL"
7778 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7780 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_prog_OTOOL64+:} false; then :
7784 $as_echo_n "(cached) " >&6
7786 if test -n "$OTOOL64"; then
7787 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 OTOOL64=$ac_cv_prog_OTOOL64
7807 if test -n "$OTOOL64"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7809 $as_echo "$OTOOL64" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7817 if test -z "$ac_cv_prog_OTOOL64"; then
7818 ac_ct_OTOOL64=$OTOOL64
7819 # Extract the first word of "otool64", so it can be a program name with args.
7820 set dummy otool64; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7824 $as_echo_n "(cached) " >&6
7826 if test -n "$ac_ct_OTOOL64"; then
7827 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_ac_ct_OTOOL64="otool64"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7847 if test -n "$ac_ct_OTOOL64"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7849 $as_echo "$ac_ct_OTOOL64" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7855 if test "x$ac_ct_OTOOL64" = x; then
7858 case $cross_compiling:$ac_tool_warned in
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862 ac_tool_warned=yes ;;
7864 OTOOL64=$ac_ct_OTOOL64
7867 OTOOL64="$ac_cv_prog_OTOOL64"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7897 $as_echo_n "checking for -single_module linker flag... " >&6; }
7898 if ${lt_cv_apple_cc_single_mod+:} false; then :
7899 $as_echo_n "(cached) " >&6
7901 lt_cv_apple_cc_single_mod=no
7902 if test -z "${LT_MULTI_MODULE}"; then
7903 # By default we will add the -single_module flag. You can override
7904 # by either setting the environment variable LT_MULTI_MODULE
7905 # non-empty at configure time, or by adding -multi_module to the
7907 rm -rf libconftest.dylib*
7908 echo "int foo(void){return 1;}" > conftest.c
7909 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7910 -dynamiclib -Wl,-single_module conftest.c" >&5
7911 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7912 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7914 # If there is a non-empty error log, and "single_module"
7915 # appears in it, assume the flag caused a linker warning
7916 if test -s conftest.err && $GREP single_module conftest.err; then
7917 cat conftest.err >&5
7918 # Otherwise, if the output was created with a 0 exit code from
7919 # the compiler, it worked.
7920 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7921 lt_cv_apple_cc_single_mod=yes
7923 cat conftest.err >&5
7925 rm -rf libconftest.dylib*
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7930 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7933 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7934 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7935 $as_echo_n "(cached) " >&6
7937 lt_cv_ld_exported_symbols_list=no
7938 save_LDFLAGS=$LDFLAGS
7939 echo "_main" > conftest.sym
7940 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7952 if ac_fn_c_try_link "$LINENO"; then :
7953 lt_cv_ld_exported_symbols_list=yes
7955 lt_cv_ld_exported_symbols_list=no
7957 rm -f core conftest.err conftest.$ac_objext \
7958 conftest$ac_exeext conftest.$ac_ext
7959 LDFLAGS="$save_LDFLAGS"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7963 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7966 $as_echo_n "checking for -force_load linker flag... " >&6; }
7967 if ${lt_cv_ld_force_load+:} false; then :
7968 $as_echo_n "(cached) " >&6
7970 lt_cv_ld_force_load=no
7971 cat > conftest.c << _LT_EOF
7972 int forced_loaded() { return 2;}
7974 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7975 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7976 echo "$AR cru libconftest.a conftest.o" >&5
7977 $AR cru libconftest.a conftest.o 2>&5
7978 echo "$RANLIB libconftest.a" >&5
7979 $RANLIB libconftest.a 2>&5
7980 cat > conftest.c << _LT_EOF
7981 int main() { return 0;}
7983 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7984 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7986 if test -s conftest.err && $GREP force_load conftest.err; then
7987 cat conftest.err >&5
7988 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7989 lt_cv_ld_force_load=yes
7991 cat conftest.err >&5
7993 rm -f conftest.err libconftest.a conftest conftest.c
7994 rm -rf conftest.dSYM
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7998 $as_echo "$lt_cv_ld_force_load" >&6; }
8000 rhapsody* | darwin1.[012])
8001 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8003 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8004 darwin*) # darwin 5.x on
8005 # if running on 10.5 or later, the deployment target defaults
8006 # to the OS version, if on x86, and 10.4, the deployment
8007 # target defaults to 10.4. Don't you love it?
8008 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8009 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8010 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8012 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8014 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8018 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8019 _lt_dar_single_mod='$single_module'
8021 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8022 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8024 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8026 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8027 _lt_dsymutil='~$DSYMUTIL $lib || :'
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8036 $as_echo_n "checking for ANSI C header files... " >&6; }
8037 if ${ac_cv_header_stdc+:} false; then :
8038 $as_echo_n "(cached) " >&6
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8055 if ac_fn_c_try_compile "$LINENO"; then :
8056 ac_cv_header_stdc=yes
8058 ac_cv_header_stdc=no
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 if test $ac_cv_header_stdc = yes; then
8063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8070 $EGREP "memchr" >/dev/null 2>&1; then :
8073 ac_cv_header_stdc=no
8079 if test $ac_cv_header_stdc = yes; then
8080 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8087 $EGREP "free" >/dev/null 2>&1; then :
8090 ac_cv_header_stdc=no
8096 if test $ac_cv_header_stdc = yes; then
8097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8098 if test "$cross_compiling" = yes; then :
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8105 #if ((' ' & 0x0FF) == 0x020)
8106 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8107 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8109 # define ISLOWER(c) \
8110 (('a' <= (c) && (c) <= 'i') \
8111 || ('j' <= (c) && (c) <= 'r') \
8112 || ('s' <= (c) && (c) <= 'z'))
8113 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8116 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8121 for (i = 0; i < 256; i++)
8122 if (XOR (islower (i), ISLOWER (i))
8123 || toupper (i) != TOUPPER (i))
8128 if ac_fn_c_try_run "$LINENO"; then :
8131 ac_cv_header_stdc=no
8133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8134 conftest.$ac_objext conftest.beam conftest.$ac_ext
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8140 $as_echo "$ac_cv_header_stdc" >&6; }
8141 if test $ac_cv_header_stdc = yes; then
8143 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8147 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8148 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8149 inttypes.h stdint.h unistd.h
8151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8152 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8154 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8155 cat >>confdefs.h <<_ACEOF
8156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8164 for ac_header in dlfcn.h
8166 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8168 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8169 cat >>confdefs.h <<_ACEOF
8170 #define HAVE_DLFCN_H 1
8179 func_stripname_cnf ()
8182 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8183 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8185 } # func_stripname_cnf
8201 # Check whether --enable-shared was given.
8202 if test "${enable_shared+set}" = set; then :
8203 enableval=$enable_shared; p=${PACKAGE-default}
8205 yes) enable_shared=yes ;;
8206 no) enable_shared=no ;;
8209 # Look at the argument we got. We use all the common list separators.
8210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8211 for pkg in $enableval; do
8213 if test "X$pkg" = "X$p"; then
8232 # Check whether --enable-static was given.
8233 if test "${enable_static+set}" = set; then :
8234 enableval=$enable_static; p=${PACKAGE-default}
8236 yes) enable_static=yes ;;
8237 no) enable_static=no ;;
8240 # Look at the argument we got. We use all the common list separators.
8241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8242 for pkg in $enableval; do
8244 if test "X$pkg" = "X$p"; then
8264 # Check whether --with-pic was given.
8265 if test "${with_pic+set}" = set; then :
8266 withval=$with_pic; lt_p=${PACKAGE-default}
8268 yes|no) pic_mode=$withval ;;
8271 # Look at the argument we got. We use all the common list separators.
8272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8273 for lt_pkg in $withval; do
8275 if test "X$lt_pkg" = "X$lt_p"; then
8287 test -z "$pic_mode" && pic_mode=default
8295 # Check whether --enable-fast-install was given.
8296 if test "${enable_fast_install+set}" = set; then :
8297 enableval=$enable_fast_install; p=${PACKAGE-default}
8299 yes) enable_fast_install=yes ;;
8300 no) enable_fast_install=no ;;
8302 enable_fast_install=no
8303 # Look at the argument we got. We use all the common list separators.
8304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8305 for pkg in $enableval; do
8307 if test "X$pkg" = "X$p"; then
8308 enable_fast_install=yes
8315 enable_fast_install=yes
8328 # This can be used to rebuild libtool when needed
8329 LIBTOOL_DEPS="$ltmain"
8331 # Always use our own libtool.
8332 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8363 test -z "$LN_S" && LN_S="ln -s"
8378 if test -n "${ZSH_VERSION+set}" ; then
8379 setopt NO_GLOB_SUBST
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8383 $as_echo_n "checking for objdir... " >&6; }
8384 if ${lt_cv_objdir+:} false; then :
8385 $as_echo_n "(cached) " >&6
8387 rm -f .libs 2>/dev/null
8388 mkdir .libs 2>/dev/null
8389 if test -d .libs; then
8392 # MS-DOS does not allow filenames that begin with a dot.
8395 rmdir .libs 2>/dev/null
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8398 $as_echo "$lt_cv_objdir" >&6; }
8399 objdir=$lt_cv_objdir
8405 cat >>confdefs.h <<_ACEOF
8406 #define LT_OBJDIR "$lt_cv_objdir/"
8414 # AIX sometimes has problems with the GCC collect2 program. For some
8415 # reason, if we set the COLLECT_NAMES environment variable, the problems
8416 # vanish in a puff of smoke.
8417 if test "X${COLLECT_NAMES+set}" != Xset; then
8419 export COLLECT_NAMES
8426 can_build_shared=yes
8428 # All known linkers require a `.a' archive for static linking (except MSVC,
8429 # which needs '.lib').
8432 with_gnu_ld="$lt_cv_prog_gnu_ld"
8435 old_CFLAGS="$CFLAGS"
8437 # Set sane defaults for various variables
8438 test -z "$CC" && CC=cc
8439 test -z "$LTCC" && LTCC=$CC
8440 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8441 test -z "$LD" && LD=ld
8442 test -z "$ac_objext" && ac_objext=o
8444 for cc_temp in $compiler""; do
8446 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8447 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8452 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8455 # Only perform the check for file, if the check method requires it
8456 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8457 case $deplibs_check_method in
8459 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8461 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8462 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8463 $as_echo_n "(cached) " >&6
8467 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8470 lt_save_MAGIC_CMD="$MAGIC_CMD"
8471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8472 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8473 for ac_dir in $ac_dummy; do
8475 test -z "$ac_dir" && ac_dir=.
8476 if test -f $ac_dir/${ac_tool_prefix}file; then
8477 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8478 if test -n "$file_magic_test_file"; then
8479 case $deplibs_check_method in
8481 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8483 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8484 $EGREP "$file_magic_regex" > /dev/null; then
8489 *** Warning: the command libtool uses to detect shared libraries,
8490 *** $file_magic_cmd, produces output that libtool cannot recognize.
8491 *** The result is that libtool may fail to recognize shared libraries
8492 *** as such. This will affect the creation of libtool libraries that
8493 *** depend on shared libraries, but programs linked with such libtool
8494 *** libraries will work regardless of this problem. Nevertheless, you
8495 *** may want to report the problem to your system manager and/or to
8496 *** bug-libtool@gnu.org
8506 MAGIC_CMD="$lt_save_MAGIC_CMD"
8511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8512 if test -n "$MAGIC_CMD"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8514 $as_echo "$MAGIC_CMD" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8524 if test -z "$lt_cv_path_MAGIC_CMD"; then
8525 if test -n "$ac_tool_prefix"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8527 $as_echo_n "checking for file... " >&6; }
8528 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8529 $as_echo_n "(cached) " >&6
8533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8536 lt_save_MAGIC_CMD="$MAGIC_CMD"
8537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8539 for ac_dir in $ac_dummy; do
8541 test -z "$ac_dir" && ac_dir=.
8542 if test -f $ac_dir/file; then
8543 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8544 if test -n "$file_magic_test_file"; then
8545 case $deplibs_check_method in
8547 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8550 $EGREP "$file_magic_regex" > /dev/null; then
8555 *** Warning: the command libtool uses to detect shared libraries,
8556 *** $file_magic_cmd, produces output that libtool cannot recognize.
8557 *** The result is that libtool may fail to recognize shared libraries
8558 *** as such. This will affect the creation of libtool libraries that
8559 *** depend on shared libraries, but programs linked with such libtool
8560 *** libraries will work regardless of this problem. Nevertheless, you
8561 *** may want to report the problem to your system manager and/or to
8562 *** bug-libtool@gnu.org
8572 MAGIC_CMD="$lt_save_MAGIC_CMD"
8577 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8578 if test -n "$MAGIC_CMD"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8580 $as_echo "$MAGIC_CMD" >&6; }
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8596 # Use C for the default configuration in the libtool script
8600 ac_cpp='$CPP $CPPFLAGS'
8601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8606 # Source file extension for C test sources.
8609 # Object file extension for compiled C test sources.
8613 # Code to be used in simple compile tests
8614 lt_simple_compile_test_code="int some_variable = 0;"
8616 # Code to be used in simple link tests
8617 lt_simple_link_test_code='int main(){return(0);}'
8625 # If no C compiler was specified, use CC.
8628 # If no C compiler flags were specified, use CFLAGS.
8629 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8631 # Allow CC to be a program name with arguments.
8634 # Save the default compiler, since it gets overwritten when the other
8635 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8636 compiler_DEFAULT=$CC
8638 # save warnings/boilerplate of simple test code
8639 ac_outfile=conftest.$ac_objext
8640 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8642 _lt_compiler_boilerplate=`cat conftest.err`
8645 ac_outfile=conftest.$ac_objext
8646 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8648 _lt_linker_boilerplate=`cat conftest.err`
8653 ## There is no encapsulation within the following macros, do not change
8654 ## the running order or otherwise move them around unless you know exactly
8655 ## what you are doing...
8656 if test -n "$compiler"; then
8658 lt_prog_compiler_no_builtin_flag=
8660 if test "$GCC" = yes; then
8661 case $cc_basename in
8663 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8665 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8669 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8670 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8671 $as_echo_n "(cached) " >&6
8673 lt_cv_prog_compiler_rtti_exceptions=no
8674 ac_outfile=conftest.$ac_objext
8675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8676 lt_compiler_flag="-fno-rtti -fno-exceptions"
8677 # Insert the option either (1) after the last *FLAGS variable, or
8678 # (2) before a word containing "conftest.", or (3) at the end.
8679 # Note that $ac_compile itself does not contain backslashes and begins
8680 # with a dollar sign (not a hyphen), so the echo should work correctly.
8681 # The option is referenced via a variable to avoid confusing sed.
8682 lt_compile=`echo "$ac_compile" | $SED \
8683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8685 -e 's:$: $lt_compiler_flag:'`
8686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8687 (eval "$lt_compile" 2>conftest.err)
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 if (exit $ac_status) && test -s "$ac_outfile"; then
8692 # The compiler can only warn and ignore the option if not recognized
8693 # So say no if there are warnings other than the usual output.
8694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8697 lt_cv_prog_compiler_rtti_exceptions=yes
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8704 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8706 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8707 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8719 lt_prog_compiler_wl=
8720 lt_prog_compiler_pic=
8721 lt_prog_compiler_static=
8724 if test "$GCC" = yes; then
8725 lt_prog_compiler_wl='-Wl,'
8726 lt_prog_compiler_static='-static'
8730 # All AIX code is PIC.
8731 if test "$host_cpu" = ia64; then
8732 # AIX 5 now supports IA64 processor
8733 lt_prog_compiler_static='-Bstatic'
8740 # see comment about AmigaOS4 .so support
8741 lt_prog_compiler_pic='-fPIC'
8744 # FIXME: we need at least 68020 code to build shared libraries, but
8745 # adding the `-m68020' flag to GCC prevents building anything better,
8747 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8752 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8753 # PIC is the default for these OSes.
8756 mingw* | cygwin* | pw32* | os2* | cegcc*)
8757 # This hack is so that the source file can tell whether it is being
8758 # built for inclusion in a dll (and should export symbols for example).
8759 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8760 # (--disable-auto-import) libraries
8761 lt_prog_compiler_pic='-DDLL_EXPORT'
8764 darwin* | rhapsody*)
8765 # PIC is the default on this platform
8766 # Common symbols not allowed in MH_DYLIB files
8767 lt_prog_compiler_pic='-fno-common'
8771 # PIC is the default for Haiku.
8772 # The "-static" flag exists, but is broken.
8773 lt_prog_compiler_static=
8777 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8778 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8779 # sets the default TLS model and affects inlining.
8785 lt_prog_compiler_pic='-fPIC'
8791 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8792 # Instead, we relocate shared libraries at runtime.
8796 # Just because we use GCC doesn't mean we suddenly get shared libraries
8797 # on systems that don't support them.
8798 lt_prog_compiler_can_build_shared=no
8803 # QNX uses GNU C++, but need to define -shared option too, otherwise
8805 lt_prog_compiler_pic='-fPIC -shared'
8809 if test -d /usr/nec; then
8810 lt_prog_compiler_pic=-Kconform_pic
8815 lt_prog_compiler_pic='-fPIC'
8819 case $cc_basename in
8820 nvcc*) # Cuda Compiler Driver 2.2
8821 lt_prog_compiler_wl='-Xlinker '
8822 if test -n "$lt_prog_compiler_pic"; then
8823 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8828 # PORTME Check for flag to pass linker flags through the system compiler.
8831 lt_prog_compiler_wl='-Wl,'
8832 if test "$host_cpu" = ia64; then
8833 # AIX 5 now supports IA64 processor
8834 lt_prog_compiler_static='-Bstatic'
8836 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8840 mingw* | cygwin* | pw32* | os2* | cegcc*)
8841 # This hack is so that the source file can tell whether it is being
8842 # built for inclusion in a dll (and should export symbols for example).
8843 lt_prog_compiler_pic='-DDLL_EXPORT'
8846 hpux9* | hpux10* | hpux11*)
8847 lt_prog_compiler_wl='-Wl,'
8848 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8855 lt_prog_compiler_pic='+Z'
8858 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8859 lt_prog_compiler_static='${wl}-a ${wl}archive'
8862 irix5* | irix6* | nonstopux*)
8863 lt_prog_compiler_wl='-Wl,'
8864 # PIC (with -KPIC) is the default.
8865 lt_prog_compiler_static='-non_shared'
8868 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8869 case $cc_basename in
8870 # old Intel for x86_64 which still supported -KPIC.
8872 lt_prog_compiler_wl='-Wl,'
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-static'
8876 # icc used to be incompatible with GCC.
8877 # ICC 10 doesn't accept -KPIC any more.
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-fPIC'
8881 lt_prog_compiler_static='-static'
8883 # Lahey Fortran 8.1.
8885 lt_prog_compiler_wl='-Wl,'
8886 lt_prog_compiler_pic='--shared'
8887 lt_prog_compiler_static='--static'
8890 # NAG Fortran compiler
8891 lt_prog_compiler_wl='-Wl,-Wl,,'
8892 lt_prog_compiler_pic='-PIC'
8893 lt_prog_compiler_static='-Bstatic'
8895 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8896 # Portland Group compilers (*not* the Pentium gcc compiler,
8897 # which looks to be a dead project)
8898 lt_prog_compiler_wl='-Wl,'
8899 lt_prog_compiler_pic='-fpic'
8900 lt_prog_compiler_static='-Bstatic'
8903 lt_prog_compiler_wl='-Wl,'
8904 # All Alpha code is PIC.
8905 lt_prog_compiler_static='-non_shared'
8907 xl* | bgxl* | bgf* | mpixl*)
8908 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8909 lt_prog_compiler_wl='-Wl,'
8910 lt_prog_compiler_pic='-qpic'
8911 lt_prog_compiler_static='-qstaticlink'
8914 case `$CC -V 2>&1 | sed 5q` in
8915 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8916 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8917 lt_prog_compiler_pic='-KPIC'
8918 lt_prog_compiler_static='-Bstatic'
8919 lt_prog_compiler_wl=''
8921 *Sun\ F* | *Sun*Fortran*)
8922 lt_prog_compiler_pic='-KPIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 lt_prog_compiler_wl='-Qoption ld '
8928 lt_prog_compiler_pic='-KPIC'
8929 lt_prog_compiler_static='-Bstatic'
8930 lt_prog_compiler_wl='-Wl,'
8932 *Intel*\ [CF]*Compiler*)
8933 lt_prog_compiler_wl='-Wl,'
8934 lt_prog_compiler_pic='-fPIC'
8935 lt_prog_compiler_static='-static'
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='-fpic'
8940 lt_prog_compiler_static='-Bstatic'
8948 lt_prog_compiler_pic='-KPIC'
8949 lt_prog_compiler_static='-Bstatic'
8953 # QNX uses GNU C++, but need to define -shared option too, otherwise
8955 lt_prog_compiler_pic='-fPIC -shared'
8958 osf3* | osf4* | osf5*)
8959 lt_prog_compiler_wl='-Wl,'
8960 # All OSF/1 code is PIC.
8961 lt_prog_compiler_static='-non_shared'
8965 lt_prog_compiler_static='-non_shared'
8969 lt_prog_compiler_pic='-KPIC'
8970 lt_prog_compiler_static='-Bstatic'
8971 case $cc_basename in
8972 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8973 lt_prog_compiler_wl='-Qoption ld ';;
8975 lt_prog_compiler_wl='-Wl,';;
8980 lt_prog_compiler_wl='-Qoption ld '
8981 lt_prog_compiler_pic='-PIC'
8982 lt_prog_compiler_static='-Bstatic'
8985 sysv4 | sysv4.2uw2* | sysv4.3*)
8986 lt_prog_compiler_wl='-Wl,'
8987 lt_prog_compiler_pic='-KPIC'
8988 lt_prog_compiler_static='-Bstatic'
8992 if test -d /usr/nec ;then
8993 lt_prog_compiler_pic='-Kconform_pic'
8994 lt_prog_compiler_static='-Bstatic'
8998 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8999 lt_prog_compiler_wl='-Wl,'
9000 lt_prog_compiler_pic='-KPIC'
9001 lt_prog_compiler_static='-Bstatic'
9005 lt_prog_compiler_wl='-Wl,'
9006 lt_prog_compiler_can_build_shared=no
9010 lt_prog_compiler_pic='-pic'
9011 lt_prog_compiler_static='-Bstatic'
9015 lt_prog_compiler_can_build_shared=no
9021 # For platforms which do not support PIC, -DPIC is meaningless:
9023 lt_prog_compiler_pic=
9026 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9031 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9032 if ${lt_cv_prog_compiler_pic+:} false; then :
9033 $as_echo_n "(cached) " >&6
9035 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9038 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9039 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9042 # Check to make sure the PIC flag actually works.
9044 if test -n "$lt_prog_compiler_pic"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9046 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9047 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9048 $as_echo_n "(cached) " >&6
9050 lt_cv_prog_compiler_pic_works=no
9051 ac_outfile=conftest.$ac_objext
9052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9053 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9054 # Insert the option either (1) after the last *FLAGS variable, or
9055 # (2) before a word containing "conftest.", or (3) at the end.
9056 # Note that $ac_compile itself does not contain backslashes and begins
9057 # with a dollar sign (not a hyphen), so the echo should work correctly.
9058 # The option is referenced via a variable to avoid confusing sed.
9059 lt_compile=`echo "$ac_compile" | $SED \
9060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9062 -e 's:$: $lt_compiler_flag:'`
9063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9064 (eval "$lt_compile" 2>conftest.err)
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 if (exit $ac_status) && test -s "$ac_outfile"; then
9069 # The compiler can only warn and ignore the option if not recognized
9070 # So say no if there are warnings other than the usual output.
9071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9074 lt_cv_prog_compiler_pic_works=yes
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9081 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9083 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9084 case $lt_prog_compiler_pic in
9086 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9089 lt_prog_compiler_pic=
9090 lt_prog_compiler_can_build_shared=no
9106 # Check to make sure the static flag actually works.
9108 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9110 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9111 if ${lt_cv_prog_compiler_static_works+:} false; then :
9112 $as_echo_n "(cached) " >&6
9114 lt_cv_prog_compiler_static_works=no
9115 save_LDFLAGS="$LDFLAGS"
9116 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9117 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9119 # The linker can only warn and ignore the option if not recognized
9120 # So say no if there are warnings
9121 if test -s conftest.err; then
9122 # Append any errors to the config.log.
9123 cat conftest.err 1>&5
9124 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9126 if diff conftest.exp conftest.er2 >/dev/null; then
9127 lt_cv_prog_compiler_static_works=yes
9130 lt_cv_prog_compiler_static_works=yes
9134 LDFLAGS="$save_LDFLAGS"
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9138 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9140 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9143 lt_prog_compiler_static=
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9154 if ${lt_cv_prog_compiler_c_o+:} false; then :
9155 $as_echo_n "(cached) " >&6
9157 lt_cv_prog_compiler_c_o=no
9158 $RM -r conftest 2>/dev/null
9162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9164 lt_compiler_flag="-o out/conftest2.$ac_objext"
9165 # Insert the option either (1) after the last *FLAGS variable, or
9166 # (2) before a word containing "conftest.", or (3) at the end.
9167 # Note that $ac_compile itself does not contain backslashes and begins
9168 # with a dollar sign (not a hyphen), so the echo should work correctly.
9169 lt_compile=`echo "$ac_compile" | $SED \
9170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9172 -e 's:$: $lt_compiler_flag:'`
9173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9174 (eval "$lt_compile" 2>out/conftest.err)
9176 cat out/conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9180 # The compiler can only warn and ignore the option if not recognized
9181 # So say no if there are warnings
9182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9185 lt_cv_prog_compiler_c_o=yes
9190 # SGI C++ compiler will create directory out/ii_files/ for
9191 # template instantiation
9192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9193 $RM out/* && rmdir out
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9208 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9209 if ${lt_cv_prog_compiler_c_o+:} false; then :
9210 $as_echo_n "(cached) " >&6
9212 lt_cv_prog_compiler_c_o=no
9213 $RM -r conftest 2>/dev/null
9217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9219 lt_compiler_flag="-o out/conftest2.$ac_objext"
9220 # Insert the option either (1) after the last *FLAGS variable, or
9221 # (2) before a word containing "conftest.", or (3) at the end.
9222 # Note that $ac_compile itself does not contain backslashes and begins
9223 # with a dollar sign (not a hyphen), so the echo should work correctly.
9224 lt_compile=`echo "$ac_compile" | $SED \
9225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9227 -e 's:$: $lt_compiler_flag:'`
9228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9229 (eval "$lt_compile" 2>out/conftest.err)
9231 cat out/conftest.err >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9235 # The compiler can only warn and ignore the option if not recognized
9236 # So say no if there are warnings
9237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9240 lt_cv_prog_compiler_c_o=yes
9245 # SGI C++ compiler will create directory out/ii_files/ for
9246 # template instantiation
9247 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9248 $RM out/* && rmdir out
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9255 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9260 hard_links="nottested"
9261 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9262 # do not overwrite the value of need_locks provided by the user
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9264 $as_echo_n "checking if we can lock with hard links... " >&6; }
9267 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9269 ln conftest.a conftest.b 2>&5 || hard_links=no
9270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9272 $as_echo "$hard_links" >&6; }
9273 if test "$hard_links" = no; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9275 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9288 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9291 allow_undefined_flag=
9292 always_export_symbols=no
9294 archive_expsym_cmds=
9295 compiler_needs_object=no
9296 enable_shared_with_static_runtimes=no
9297 export_dynamic_flag_spec=
9298 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9299 hardcode_automatic=no
9301 hardcode_direct_absolute=no
9302 hardcode_libdir_flag_spec=
9303 hardcode_libdir_separator=
9305 hardcode_shlibpath_var=unsupported
9307 link_all_deplibs=unknown
9310 old_archive_from_new_cmds=
9311 old_archive_from_expsyms_cmds=
9312 thread_safe_flag_spec=
9313 whole_archive_flag_spec=
9314 # include_expsyms should be a list of space-separated symbols to be *always*
9315 # included in the symbol list
9317 # exclude_expsyms can be an extended regexp of symbols to exclude
9318 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9319 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9320 # as well as any symbol that contains `d'.
9321 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9323 # platforms (ab)use it in PIC code, but their linkers get confused if
9324 # the symbol is explicitly referenced. Since portable code cannot
9325 # rely on this symbol name, it's probably fine to never include it in
9326 # preloaded symbol tables.
9327 # Exclude shared library initialization/finalization symbols.
9328 extract_expsyms_cmds=
9331 cygwin* | mingw* | pw32* | cegcc*)
9332 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9333 # When not using gcc, we currently assume that we are using
9334 # Microsoft Visual C++.
9335 if test "$GCC" != yes; then
9340 # we just hope/assume this is gcc and not c89 (= MSVC++)
9346 linux* | k*bsd*-gnu | gnu*)
9353 # On some targets, GNU ld is compatible enough with the native linker
9354 # that we're better off using the native interface for both.
9355 lt_use_gnu_ld_interface=no
9356 if test "$with_gnu_ld" = yes; then
9359 # The AIX port of GNU ld has always aspired to compatibility
9360 # with the native linker. However, as the warning in the GNU ld
9361 # block says, versions before 2.19.5* couldn't really create working
9362 # shared libraries, regardless of the interface used.
9363 case `$LD -v 2>&1` in
9364 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9365 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9366 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9368 lt_use_gnu_ld_interface=yes
9373 lt_use_gnu_ld_interface=yes
9378 if test "$lt_use_gnu_ld_interface" = yes; then
9379 # If archive_cmds runs LD, not CC, wlarc should be empty
9382 # Set some defaults for GNU ld with shared library support. These
9383 # are reset later if shared libraries are not supported. Putting them
9384 # here allows them to be overridden if necessary.
9385 runpath_var=LD_RUN_PATH
9386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387 export_dynamic_flag_spec='${wl}--export-dynamic'
9388 # ancient GNU ld didn't support --whole-archive et. al.
9389 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9390 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9392 whole_archive_flag_spec=
9394 supports_anon_versioning=no
9395 case `$LD -v 2>&1` in
9396 *GNU\ gold*) supports_anon_versioning=yes ;;
9397 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9398 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9399 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9400 *\ 2.11.*) ;; # other 2.11 versions
9401 *) supports_anon_versioning=yes ;;
9404 # See if GNU ld supports shared libraries.
9407 # On AIX/PPC, the GNU linker is very broken
9408 if test "$host_cpu" != ia64; then
9412 *** Warning: the GNU linker, at least up to release 2.19, is reported
9413 *** to be unable to reliably create shared libraries on AIX.
9414 *** Therefore, libtool is disabling shared libraries support. If you
9415 *** really care for shared libraries, you may want to install binutils
9416 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9417 *** You will then need to restart the configuration process.
9426 # see comment about AmigaOS4 .so support
9427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428 archive_expsym_cmds=''
9431 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)'
9432 hardcode_libdir_flag_spec='-L$libdir'
9433 hardcode_minus_L=yes
9439 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9440 allow_undefined_flag=unsupported
9441 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9442 # support --undefined. This deserves some investigation. FIXME
9443 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 cygwin* | mingw* | pw32* | cegcc*)
9450 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9451 # as there is no search path for DLLs.
9452 hardcode_libdir_flag_spec='-L$libdir'
9453 export_dynamic_flag_spec='${wl}--export-all-symbols'
9454 allow_undefined_flag=unsupported
9455 always_export_symbols=no
9456 enable_shared_with_static_runtimes=yes
9457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9458 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9460 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9462 # If the export-symbols file already is a .def file (1st line
9463 # is EXPORTS), use it as is; otherwise, prepend...
9464 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9465 cp $export_symbols $output_objdir/$soname.def;
9467 echo EXPORTS > $output_objdir/$soname.def;
9468 cat $export_symbols >> $output_objdir/$soname.def;
9470 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478 link_all_deplibs=yes
9483 hardcode_shlibpath_var=no
9484 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9485 export_dynamic_flag_spec='${wl}-E'
9486 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9487 # Instead, shared libraries are loaded at an image base (0x10000000 by
9488 # default) and relocated if they conflict, which is a slow very memory
9489 # consuming and fragmenting process. To avoid this, we pick a random,
9490 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9491 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9492 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9493 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'
9496 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9498 if test "$host_os" = linux-dietlibc; then
9499 case $cc_basename in
9500 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9503 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9504 && test "$tmp_diet" = no
9506 tmp_addflag=' $pic_flag'
9507 tmp_sharedflag='-shared'
9508 case $cc_basename,$host_cpu in
9509 pgcc*) # Portland Group C compiler
9510 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9511 tmp_addflag=' $pic_flag'
9513 pgf77* | pgf90* | pgf95* | pgfortran*)
9514 # Portland Group f77 and f90 compilers
9515 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9516 tmp_addflag=' $pic_flag -Mnomain' ;;
9517 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9518 tmp_addflag=' -i_dynamic' ;;
9519 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9520 tmp_addflag=' -i_dynamic -nofor_main' ;;
9521 ifc* | ifort*) # Intel Fortran compiler
9522 tmp_addflag=' -nofor_main' ;;
9523 lf95*) # Lahey Fortran 8.1
9524 whole_archive_flag_spec=
9525 tmp_sharedflag='--shared' ;;
9526 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9527 tmp_sharedflag='-qmkshrobj'
9529 nvcc*) # Cuda Compiler Driver 2.2
9530 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9531 compiler_needs_object=yes
9534 case `$CC -V 2>&1 | sed 5q` in
9535 *Sun\ C*) # Sun C 5.9
9536 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9537 compiler_needs_object=yes
9538 tmp_sharedflag='-G' ;;
9539 *Sun\ F*) # Sun Fortran 8.3
9540 tmp_sharedflag='-G' ;;
9542 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544 if test "x$supports_anon_versioning" = xyes; then
9545 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9546 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9547 echo "local: *; };" >> $output_objdir/$libname.ver~
9548 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9551 case $cc_basename in
9552 xlf* | bgf* | bgxlf* | mpixlf*)
9553 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9554 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9557 if test "x$supports_anon_versioning" = xyes; then
9558 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9560 echo "local: *; };" >> $output_objdir/$libname.ver~
9561 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9570 netbsd* | netbsdelf*-gnu)
9571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9572 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9575 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9581 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9585 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9586 *** create shared libraries on Solaris systems. Therefore, libtool
9587 *** is disabling shared libraries support. We urge you to upgrade GNU
9588 *** binutils to release 2.9.1 or newer. Another option is to modify
9589 *** your PATH or compiler configuration so that the native linker is
9590 *** used, and then restart.
9593 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9594 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9595 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9601 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9602 case `$LD -v 2>&1` in
9603 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9607 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9608 *** reliably create shared libraries on SCO systems. Therefore, libtool
9609 *** is disabling shared libraries support. We urge you to upgrade GNU
9610 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9611 *** your PATH or compiler configuration so that the native linker is
9612 *** used, and then restart.
9617 # For security reasons, it is highly recommended that you always
9618 # use absolute paths for naming shared libraries, and exclude the
9619 # DT_RUNPATH tag from executables and libraries. But doing so
9620 # requires that you compile everything twice, which is a pain.
9621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9633 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636 hardcode_shlibpath_var=no
9640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9641 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9649 if test "$ld_shlibs" = no; then
9651 hardcode_libdir_flag_spec=
9652 export_dynamic_flag_spec=
9653 whole_archive_flag_spec=
9656 # PORTME fill in a description of your system's linker (not GNU ld)
9659 allow_undefined_flag=unsupported
9660 always_export_symbols=yes
9661 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'
9662 # Note: this linker hardcodes the directories in LIBPATH if there
9663 # are no directories specified by -L.
9664 hardcode_minus_L=yes
9665 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9666 # Neither direct hardcoding nor static linking is supported with a
9668 hardcode_direct=unsupported
9673 if test "$host_cpu" = ia64; then
9674 # On IA64, the linker does run time linking by default, so we don't
9675 # have to do anything special.
9676 aix_use_runtimelinking=no
9677 exp_sym_flag='-Bexport'
9680 # If we're using GNU nm, then we don't want the "-C" option.
9681 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9682 # Also, AIX nm treats weak defined symbols like other global
9683 # defined symbols, whereas GNU nm marks them as "W".
9684 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9685 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9687 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'
9689 aix_use_runtimelinking=no
9691 # Test if we are trying to use run time linking or normal
9692 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9693 # need to do runtime linking.
9694 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9695 for ld_flag in $LDFLAGS; do
9696 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9697 aix_use_runtimelinking=yes
9704 exp_sym_flag='-bexport'
9705 no_entry_flag='-bnoentry'
9708 # When large executables or shared objects are built, AIX ld can
9709 # have problems creating the table of contents. If linking a library
9710 # or program results in "error TOC overflow" add -mminimal-toc to
9711 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9712 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9716 hardcode_direct_absolute=yes
9717 hardcode_libdir_separator=':'
9718 link_all_deplibs=yes
9719 file_list_spec='${wl}-f,'
9721 if test "$GCC" = yes; then
9722 case $host_os in aix4.[012]|aix4.[012].*)
9723 # We only want to do this on AIX 4.2 and lower, the check
9724 # below for broken collect2 doesn't work under 4.3+
9725 collect2name=`${CC} -print-prog-name=collect2`
9726 if test -f "$collect2name" &&
9727 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9729 # We have reworked collect2
9732 # We have old collect2
9733 hardcode_direct=unsupported
9734 # It fails to find uninstalled libraries when the uninstalled
9735 # path is not listed in the libpath. Setting hardcode_minus_L
9736 # to unsupported forces relinking
9737 hardcode_minus_L=yes
9738 hardcode_libdir_flag_spec='-L$libdir'
9739 hardcode_libdir_separator=
9743 shared_flag='-shared'
9744 if test "$aix_use_runtimelinking" = yes; then
9745 shared_flag="$shared_flag "'${wl}-G'
9750 if test "$host_cpu" = ia64; then
9751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9752 # chokes on -Wl,-G. The following line is correct:
9755 if test "$aix_use_runtimelinking" = yes; then
9756 shared_flag='${wl}-G'
9758 shared_flag='${wl}-bM:SRE'
9763 export_dynamic_flag_spec='${wl}-bexpall'
9764 # It seems that -bexpall does not export symbols beginning with
9765 # underscore (_), so it is better to generate a list of symbols to export.
9766 always_export_symbols=yes
9767 if test "$aix_use_runtimelinking" = yes; then
9768 # Warning - without using the other runtime loading flags (-brtl),
9769 # -berok will link without error, but may produce a broken library.
9770 allow_undefined_flag='-berok'
9771 # Determine the default libpath from the value encoded in an
9773 if test "${lt_cv_aix_libpath+set}" = set; then
9774 aix_libpath=$lt_cv_aix_libpath
9776 if ${lt_cv_aix_libpath_+:} false; then :
9777 $as_echo_n "(cached) " >&6
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9790 if ac_fn_c_try_link "$LINENO"; then :
9792 lt_aix_libpath_sed='
9793 /Import File Strings/,/^$/ {
9795 s/^0 *\([^ ]*\) *$/\1/
9799 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800 # Check for a 64-bit object if we didn't find anything.
9801 if test -z "$lt_cv_aix_libpath_"; then
9802 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9805 rm -f core conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 if test -z "$lt_cv_aix_libpath_"; then
9808 lt_cv_aix_libpath_="/usr/lib:/lib"
9813 aix_libpath=$lt_cv_aix_libpath_
9816 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9817 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9819 if test "$host_cpu" = ia64; then
9820 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9821 allow_undefined_flag="-z nodefs"
9822 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"
9824 # Determine the default libpath from the value encoded in an
9826 if test "${lt_cv_aix_libpath+set}" = set; then
9827 aix_libpath=$lt_cv_aix_libpath
9829 if ${lt_cv_aix_libpath_+:} false; then :
9830 $as_echo_n "(cached) " >&6
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9843 if ac_fn_c_try_link "$LINENO"; then :
9845 lt_aix_libpath_sed='
9846 /Import File Strings/,/^$/ {
9848 s/^0 *\([^ ]*\) *$/\1/
9852 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9853 # Check for a 64-bit object if we didn't find anything.
9854 if test -z "$lt_cv_aix_libpath_"; then
9855 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858 rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 if test -z "$lt_cv_aix_libpath_"; then
9861 lt_cv_aix_libpath_="/usr/lib:/lib"
9866 aix_libpath=$lt_cv_aix_libpath_
9869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9870 # Warning - without using the other run time loading flags,
9871 # -berok will link without error, but may produce a broken library.
9872 no_undefined_flag=' ${wl}-bernotok'
9873 allow_undefined_flag=' ${wl}-berok'
9874 if test "$with_gnu_ld" = yes; then
9875 # We only use this code for GNU lds that support --whole-archive.
9876 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9878 # Exported symbols can be pulled into shared objects from archives
9879 whole_archive_flag_spec='$convenience'
9881 archive_cmds_need_lc=yes
9882 # This is similar to how AIX traditionally builds its shared libraries.
9883 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'
9891 # see comment about AmigaOS4 .so support
9892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9893 archive_expsym_cmds=''
9896 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)'
9897 hardcode_libdir_flag_spec='-L$libdir'
9898 hardcode_minus_L=yes
9904 export_dynamic_flag_spec=-rdynamic
9907 cygwin* | mingw* | pw32* | cegcc*)
9908 # When not using gcc, we currently assume that we are using
9909 # Microsoft Visual C++.
9910 # hardcode_libdir_flag_spec is actually meaningless, as there is
9911 # no search path for DLLs.
9912 case $cc_basename in
9915 hardcode_libdir_flag_spec=' '
9916 allow_undefined_flag=unsupported
9917 always_export_symbols=yes
9919 # Tell ltmain to make .lib files, not .a files.
9921 # Tell ltmain to make .dll files, not .so files.
9923 # FIXME: Setting linknames here is a bad hack.
9924 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9925 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9926 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9928 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9930 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9932 # The linker will not automatically build a static lib if we build a DLL.
9933 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9934 enable_shared_with_static_runtimes=yes
9935 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9936 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9938 old_postinstall_cmds='chmod 644 $oldlib'
9939 postlink_cmds='lt_outputfile="@OUTPUT@"~
9940 lt_tool_outputfile="@TOOL_OUTPUT@"~
9941 case $lt_outputfile in
9944 lt_outputfile="$lt_outputfile.exe"
9945 lt_tool_outputfile="$lt_tool_outputfile.exe"
9948 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9949 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9950 $RM "$lt_outputfile.manifest";
9954 # Assume MSVC wrapper
9955 hardcode_libdir_flag_spec=' '
9956 allow_undefined_flag=unsupported
9957 # Tell ltmain to make .lib files, not .a files.
9959 # Tell ltmain to make .dll files, not .so files.
9961 # FIXME: Setting linknames here is a bad hack.
9962 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9963 # The linker will automatically build a .lib file if we build a DLL.
9964 old_archive_from_new_cmds='true'
9965 # FIXME: Should let the user specify the lib program.
9966 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9967 enable_shared_with_static_runtimes=yes
9972 darwin* | rhapsody*)
9975 archive_cmds_need_lc=no
9977 hardcode_automatic=yes
9978 hardcode_shlibpath_var=unsupported
9979 if test "$lt_cv_ld_force_load" = "yes"; then
9980 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9983 whole_archive_flag_spec=''
9985 link_all_deplibs=yes
9986 allow_undefined_flag="$_lt_dar_allow_undefined"
9987 case $cc_basename in
9988 ifort*) _lt_dar_can_shared=yes ;;
9989 *) _lt_dar_can_shared=$GCC ;;
9991 if test "$_lt_dar_can_shared" = "yes"; then
9992 output_verbose_link_cmd=func_echo_all
9993 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9994 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9995 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}"
9996 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}"
10005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_libdir_flag_spec='-L$libdir'
10007 hardcode_shlibpath_var=no
10010 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10011 # support. Future versions do this automatically, but an explicit c++rt0.o
10012 # does not break anything, and helps significantly (at the cost of a little
10015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10016 hardcode_libdir_flag_spec='-R$libdir'
10017 hardcode_direct=yes
10018 hardcode_shlibpath_var=no
10021 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10024 hardcode_direct=yes
10025 hardcode_minus_L=yes
10026 hardcode_shlibpath_var=no
10029 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10030 freebsd* | dragonfly*)
10031 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10032 hardcode_libdir_flag_spec='-R$libdir'
10033 hardcode_direct=yes
10034 hardcode_shlibpath_var=no
10038 if test "$GCC" = yes; then
10039 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10041 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'
10043 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10044 hardcode_libdir_separator=:
10045 hardcode_direct=yes
10047 # hardcode_minus_L: Not really in the search PATH,
10048 # but as the default location of the library.
10049 hardcode_minus_L=yes
10050 export_dynamic_flag_spec='${wl}-E'
10054 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10055 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10059 if test "$with_gnu_ld" = no; then
10060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10061 hardcode_libdir_separator=:
10062 hardcode_direct=yes
10063 hardcode_direct_absolute=yes
10064 export_dynamic_flag_spec='${wl}-E'
10065 # hardcode_minus_L: Not really in the search PATH,
10066 # but as the default location of the library.
10067 hardcode_minus_L=yes
10072 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10075 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10078 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10087 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10094 # Older versions of the 11.00 compiler do not understand -b yet
10095 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10097 $as_echo_n "checking if $CC understands -b... " >&6; }
10098 if ${lt_cv_prog_compiler__b+:} false; then :
10099 $as_echo_n "(cached) " >&6
10101 lt_cv_prog_compiler__b=no
10102 save_LDFLAGS="$LDFLAGS"
10103 LDFLAGS="$LDFLAGS -b"
10104 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10105 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10106 # The linker can only warn and ignore the option if not recognized
10107 # So say no if there are warnings
10108 if test -s conftest.err; then
10109 # Append any errors to the config.log.
10110 cat conftest.err 1>&5
10111 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10113 if diff conftest.exp conftest.er2 >/dev/null; then
10114 lt_cv_prog_compiler__b=yes
10117 lt_cv_prog_compiler__b=yes
10121 LDFLAGS="$save_LDFLAGS"
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10125 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10127 if test x"$lt_cv_prog_compiler__b" = xyes; then
10128 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10136 if test "$with_gnu_ld" = no; then
10137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10138 hardcode_libdir_separator=:
10143 hardcode_shlibpath_var=no
10146 hardcode_direct=yes
10147 hardcode_direct_absolute=yes
10148 export_dynamic_flag_spec='${wl}-E'
10150 # hardcode_minus_L: Not really in the search PATH,
10151 # but as the default location of the library.
10152 hardcode_minus_L=yes
10158 irix5* | irix6* | nonstopux*)
10159 if test "$GCC" = yes; then
10160 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10161 # Try to use the -exported_symbol ld option, if it does not
10162 # work, assume that -exports_file does not work either and
10163 # implicitly export all symbols.
10164 # This should be the same for all languages, so no per-tag cache variable.
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10166 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10167 if ${lt_cv_irix_exported_symbol+:} false; then :
10168 $as_echo_n "(cached) " >&6
10170 save_LDFLAGS="$LDFLAGS"
10171 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10174 int foo (void) { return 0; }
10176 if ac_fn_c_try_link "$LINENO"; then :
10177 lt_cv_irix_exported_symbol=yes
10179 lt_cv_irix_exported_symbol=no
10181 rm -f core conftest.err conftest.$ac_objext \
10182 conftest$ac_exeext conftest.$ac_ext
10183 LDFLAGS="$save_LDFLAGS"
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10186 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10187 if test "$lt_cv_irix_exported_symbol" = yes; then
10188 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10194 archive_cmds_need_lc='no'
10195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10196 hardcode_libdir_separator=:
10198 link_all_deplibs=yes
10201 netbsd* | netbsdelf*-gnu)
10202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10205 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10207 hardcode_libdir_flag_spec='-R$libdir'
10208 hardcode_direct=yes
10209 hardcode_shlibpath_var=no
10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214 hardcode_direct=yes
10215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10216 hardcode_libdir_separator=:
10217 hardcode_shlibpath_var=no
10224 if test -f /usr/libexec/ld.so; then
10225 hardcode_direct=yes
10226 hardcode_shlibpath_var=no
10227 hardcode_direct_absolute=yes
10228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10230 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10232 export_dynamic_flag_spec='${wl}-E'
10235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10237 hardcode_libdir_flag_spec='-R$libdir'
10240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10251 hardcode_libdir_flag_spec='-L$libdir'
10252 hardcode_minus_L=yes
10253 allow_undefined_flag=unsupported
10254 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'
10255 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10259 if test "$GCC" = yes; then
10260 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10261 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10263 allow_undefined_flag=' -expect_unresolved \*'
10264 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10266 archive_cmds_need_lc='no'
10267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10268 hardcode_libdir_separator=:
10271 osf4* | osf5*) # as osf3* with the addition of -msym flag
10272 if test "$GCC" = yes; then
10273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10274 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10277 allow_undefined_flag=' -expect_unresolved \*'
10278 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10279 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~
10280 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10282 # Both c and cxx compiler support -rpath directly
10283 hardcode_libdir_flag_spec='-rpath $libdir'
10285 archive_cmds_need_lc='no'
10286 hardcode_libdir_separator=:
10290 no_undefined_flag=' -z defs'
10291 if test "$GCC" = yes; then
10293 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10295 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10297 case `$CC -V 2>&1` in
10300 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10302 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10306 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10308 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10312 hardcode_libdir_flag_spec='-R$libdir'
10313 hardcode_shlibpath_var=no
10315 solaris2.[0-5] | solaris2.[0-5].*) ;;
10317 # The compiler driver will combine and reorder linker options,
10318 # but understands `-z linker_flag'. GCC discards it without `$wl',
10319 # but is careful enough not to reorder.
10320 # Supported since Solaris 2.6 (maybe 2.5.1?)
10321 if test "$GCC" = yes; then
10322 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10324 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10328 link_all_deplibs=yes
10332 if test "x$host_vendor" = xsequent; then
10333 # Use $CC to link under sequent, because it throws in some extra .o
10334 # files that make .init and .fini sections work.
10335 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_libdir_flag_spec='-L$libdir'
10340 hardcode_direct=yes
10341 hardcode_minus_L=yes
10342 hardcode_shlibpath_var=no
10346 case $host_vendor in
10348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349 hardcode_direct=yes # is this really true???
10352 ## LD is ld it makes a PLAMLIB
10353 ## CC just makes a GrossModule.
10354 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10355 reload_cmds='$CC -r -o $output$reload_objs'
10359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10363 runpath_var='LD_RUN_PATH'
10364 hardcode_shlibpath_var=no
10368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_shlibpath_var=no
10370 export_dynamic_flag_spec='-Bexport'
10374 if test -d /usr/nec; then
10375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10376 hardcode_shlibpath_var=no
10377 runpath_var=LD_RUN_PATH
10378 hardcode_runpath_var=yes
10383 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10384 no_undefined_flag='${wl}-z,text'
10385 archive_cmds_need_lc=no
10386 hardcode_shlibpath_var=no
10387 runpath_var='LD_RUN_PATH'
10389 if test "$GCC" = yes; then
10390 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398 sysv5* | sco3.2v5* | sco5v6*)
10399 # Note: We can NOT use -z defs as we might desire, because we do not
10400 # link with -lc, and that would cause any symbols used from libc to
10401 # always be unresolved, which means just about no library would
10402 # ever link correctly. If we're not using GNU ld we use -z text
10403 # though, which does catch some bad symbols but isn't as heavy-handed
10405 no_undefined_flag='${wl}-z,text'
10406 allow_undefined_flag='${wl}-z,nodefs'
10407 archive_cmds_need_lc=no
10408 hardcode_shlibpath_var=no
10409 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10410 hardcode_libdir_separator=':'
10411 link_all_deplibs=yes
10412 export_dynamic_flag_spec='${wl}-Bexport'
10413 runpath_var='LD_RUN_PATH'
10415 if test "$GCC" = yes; then
10416 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10417 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10426 hardcode_libdir_flag_spec='-L$libdir'
10427 hardcode_shlibpath_var=no
10435 if test x$host_vendor = xsni; then
10437 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10438 export_dynamic_flag_spec='${wl}-Blargedynsym'
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10445 $as_echo "$ld_shlibs" >&6; }
10446 test "$ld_shlibs" = no && can_build_shared=no
10448 with_gnu_ld=$with_gnu_ld
10465 # Do we need to explicitly link libc?
10467 case "x$archive_cmds_need_lc" in
10469 # Assume -lc should be added
10470 archive_cmds_need_lc=yes
10472 if test "$enable_shared" = yes && test "$GCC" = yes; then
10473 case $archive_cmds in
10475 # FIXME: we may have to deal with multi-command sequences.
10478 # Test whether the compiler implicitly links with -lc since on some
10479 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10480 # to ld, don't add -lc before -lgcc.
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10482 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10483 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10484 $as_echo_n "(cached) " >&6
10487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10490 (eval $ac_compile) 2>&5
10492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10493 test $ac_status = 0; } 2>conftest.err; then
10496 libobjs=conftest.$ac_objext
10498 wl=$lt_prog_compiler_wl
10499 pic_flag=$lt_prog_compiler_pic
10505 lt_save_allow_undefined_flag=$allow_undefined_flag
10506 allow_undefined_flag=
10507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10508 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10511 test $ac_status = 0; }
10513 lt_cv_archive_cmds_need_lc=no
10515 lt_cv_archive_cmds_need_lc=yes
10517 allow_undefined_flag=$lt_save_allow_undefined_flag
10519 cat conftest.err 1>&5
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10525 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10526 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10685 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10687 if test "$GCC" = yes; then
10689 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10690 *) lt_awk_arg="/^libraries:/" ;;
10693 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10694 *) lt_sed_strip_eq="s,=/,/,g" ;;
10696 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10697 case $lt_search_path_spec in
10699 # if the path contains ";" then we assume it to be the separator
10700 # otherwise default to the standard path separator (i.e. ":") - it is
10701 # assumed that no part of a normal pathname contains ";" but that should
10702 # okay in the real world where ";" in dirpaths is itself problematic.
10703 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10706 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10709 # Ok, now we have the path, separated by spaces, we can step through it
10710 # and add multilib dir if necessary.
10711 lt_tmp_lt_search_path_spec=
10712 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10713 for lt_sys_path in $lt_search_path_spec; do
10714 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10715 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10717 test -d "$lt_sys_path" && \
10718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10721 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10722 BEGIN {RS=" "; FS="/|\n";} {
10725 for (lt_i = NF; lt_i > 0; lt_i--) {
10726 if ($lt_i != "" && $lt_i != ".") {
10727 if ($lt_i == "..") {
10730 if (lt_count == 0) {
10731 lt_foo="/" $lt_i lt_foo;
10738 if (lt_foo != "") { lt_freq[lt_foo]++; }
10739 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10741 # AWK program above erroneously prepends '/' to C:/dos/paths
10744 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10745 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10747 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10751 library_names_spec=
10752 libname_spec='lib$name'
10756 postuninstall_cmds=
10760 shlibpath_overrides_runpath=unknown
10762 dynamic_linker="$host_os ld.so"
10763 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10764 need_lib_prefix=unknown
10765 hardcode_into_libs=no
10767 # when you set need_version to no, make sure it does not cause -set_version
10768 # flags to be left without arguments
10769 need_version=unknown
10773 version_type=linux # correct to gnu/linux during the next big refactor
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10775 shlibpath_var=LIBPATH
10777 # AIX 3 has no versioning support, so we append a major version to the name.
10778 soname_spec='${libname}${release}${shared_ext}$major'
10782 version_type=linux # correct to gnu/linux during the next big refactor
10785 hardcode_into_libs=yes
10786 if test "$host_cpu" = ia64; then
10787 # AIX 5 supports IA64
10788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10789 shlibpath_var=LD_LIBRARY_PATH
10791 # With GCC up to 2.95.x, collect2 would create an import file
10792 # for dependence libraries. The import file would start with
10793 # the line `#! .'. This would cause the generated library to
10794 # depend on `.', always an invalid library. This was fixed in
10795 # development snapshots of GCC prior to 3.0.
10797 aix4 | aix4.[01] | aix4.[01].*)
10798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10800 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10803 can_build_shared=no
10807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10808 # soname into executable. Probably we can add versioning support to
10809 # collect2, so additional links can be useful in future.
10810 if test "$aix_use_runtimelinking" = yes; then
10811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10812 # instead of lib<name>.a to let people know that these are not
10813 # typical AIX shared libraries.
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816 # We preserve .a as extension for shared libraries through AIX4.2
10817 # and later when we are not doing run time linking.
10818 library_names_spec='${libname}${release}.a $libname.a'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10821 shlibpath_var=LIBPATH
10828 # Since July 2007 AmigaOS4 officially supports .so libraries.
10829 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 library_names_spec='$libname.ixlibrary $libname.a'
10834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10835 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10841 library_names_spec='${libname}${shared_ext}'
10842 dynamic_linker="$host_os ld.so"
10843 shlibpath_var=LIBRARY_PATH
10847 version_type=linux # correct to gnu/linux during the next big refactor
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850 soname_spec='${libname}${release}${shared_ext}$major'
10851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10855 # the default ld.so.conf also contains /usr/contrib/lib and
10856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10857 # libtool to hard-code these into programs
10860 cygwin* | mingw* | pw32* | cegcc*)
10861 version_type=windows
10866 case $GCC,$cc_basename in
10869 library_names_spec='$libname.dll.a'
10870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10871 postinstall_cmds='base_file=`basename \${file}`~
10872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10873 dldir=$destdir/`dirname \$dlpath`~
10874 test -d \$dldir || mkdir -p \$dldir~
10875 $install_prog $dir/$dlname \$dldir/$dlname~
10876 chmod a+x \$dldir/$dlname~
10877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10881 dlpath=$dir/\$dldll~
10883 shlibpath_overrides_runpath=yes
10887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10890 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10893 # MinGW DLLs use traditional 'lib' prefix
10894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10897 # pw32 DLLs use 'pw' prefix rather than 'lib'
10898 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10901 dynamic_linker='Win32 ld.exe'
10906 libname_spec='$name'
10907 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10908 library_names_spec='${libname}.dll.lib'
10912 sys_lib_search_path_spec=
10915 for lt_path in $LIB
10918 # Let DOS variable expansion print the short 8.3 style file name.
10919 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10920 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10923 # Convert to MSYS style.
10924 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10927 # Convert to unix form, then to dos form, then back to unix form
10928 # but this time dos style (no spaces!) so that the unix form looks
10929 # like /cygdrive/c/PROGRA~1:/cygdr...
10930 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10931 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10932 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10935 sys_lib_search_path_spec="$LIB"
10936 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10937 # It is most probably a Windows format PATH.
10938 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10940 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10942 # FIXME: find the short name or the path components, as spaces are
10943 # common. (e.g. "Program Files" -> "PROGRA~1")
10947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10948 postinstall_cmds='base_file=`basename \${file}`~
10949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10950 dldir=$destdir/`dirname \$dlpath`~
10951 test -d \$dldir || mkdir -p \$dldir~
10952 $install_prog $dir/$dlname \$dldir/$dlname'
10953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10954 dlpath=$dir/\$dldll~
10956 shlibpath_overrides_runpath=yes
10957 dynamic_linker='Win32 link.exe'
10961 # Assume MSVC wrapper
10962 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10963 dynamic_linker='Win32 ld.exe'
10966 # FIXME: first we should search . and the directory the executable is in
10970 darwin* | rhapsody*)
10971 dynamic_linker="$host_os dyld"
10972 version_type=darwin
10975 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10976 soname_spec='${libname}${release}${major}$shared_ext'
10977 shlibpath_overrides_runpath=yes
10978 shlibpath_var=DYLD_LIBRARY_PATH
10979 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10981 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10986 version_type=linux # correct to gnu/linux during the next big refactor
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10994 freebsd* | dragonfly*)
10995 # DragonFly does not have aout. When/if they implement a new
10996 # versioning mechanism, adjust this.
10997 if test -x /usr/bin/objformat; then
10998 objformat=`/usr/bin/objformat`
11001 freebsd[23].*) objformat=aout ;;
11002 *) objformat=elf ;;
11005 version_type=freebsd-$objformat
11006 case $version_type in
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11017 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=yes
11022 freebsd3.[01]* | freebsdelf3.[01]*)
11023 shlibpath_overrides_runpath=yes
11024 hardcode_into_libs=yes
11026 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11027 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11028 shlibpath_overrides_runpath=no
11029 hardcode_into_libs=yes
11031 *) # from 4.6 on, and DragonFly
11032 shlibpath_overrides_runpath=yes
11033 hardcode_into_libs=yes
11039 version_type=linux # correct to gnu/linux during the next big refactor
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=no
11046 hardcode_into_libs=yes
11050 version_type=linux # correct to gnu/linux during the next big refactor
11053 dynamic_linker="$host_os runtime_loader"
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 shlibpath_var=LIBRARY_PATH
11057 shlibpath_overrides_runpath=yes
11058 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11059 hardcode_into_libs=yes
11062 hpux9* | hpux10* | hpux11*)
11063 # Give a soname corresponding to the major version so that dld.sl refuses to
11064 # link against other versions.
11071 hardcode_into_libs=yes
11072 dynamic_linker="$host_os dld.so"
11073 shlibpath_var=LD_LIBRARY_PATH
11074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 if test "X$HPUX_IA64_MODE" = X32; then
11078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11086 hardcode_into_libs=yes
11087 dynamic_linker="$host_os dld.sl"
11088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11097 dynamic_linker="$host_os dld.sl"
11098 shlibpath_var=SHLIB_PATH
11099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11104 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11105 postinstall_cmds='chmod 555 $lib'
11106 # or fails outright, so override atomically:
11107 install_override_mode=555
11111 version_type=linux # correct to gnu/linux during the next big refactor
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11115 soname_spec='${libname}${release}${shared_ext}$major'
11116 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=no
11119 hardcode_into_libs=yes
11122 irix5* | irix6* | nonstopux*)
11124 nonstopux*) version_type=nonstopux ;;
11126 if test "$lt_cv_prog_gnu_ld" = yes; then
11127 version_type=linux # correct to gnu/linux during the next big refactor
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11137 irix5* | nonstopux*)
11138 libsuff= shlibsuff=
11141 case $LD in # libtool.m4 will add one of these switches to LD
11142 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11143 libsuff= shlibsuff= libmagic=32-bit;;
11144 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11145 libsuff=32 shlibsuff=N32 libmagic=N32;;
11146 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11147 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11148 *) libsuff= shlibsuff= libmagic=never-match;;
11152 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11153 shlibpath_overrides_runpath=no
11154 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11155 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11156 hardcode_into_libs=yes
11159 # No shared lib support for Linux oldld, aout, or coff.
11160 linux*oldld* | linux*aout* | linux*coff*)
11164 # This must be glibc/ELF.
11165 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11166 version_type=linux # correct to gnu/linux during the next big refactor
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 shlibpath_overrides_runpath=no
11175 # Some binutils ld are patched to set DT_RUNPATH
11176 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11177 $as_echo_n "(cached) " >&6
11179 lt_cv_shlibpath_overrides_runpath=no
11180 save_LDFLAGS=$LDFLAGS
11181 save_libdir=$libdir
11182 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11183 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11195 if ac_fn_c_try_link "$LINENO"; then :
11196 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11197 lt_cv_shlibpath_overrides_runpath=yes
11200 rm -f core conftest.err conftest.$ac_objext \
11201 conftest$ac_exeext conftest.$ac_ext
11202 LDFLAGS=$save_LDFLAGS
11203 libdir=$save_libdir
11207 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11209 # This implies no fast_install, which is unacceptable.
11210 # Some rework will be needed to allow for fast_install
11211 # before this can be enabled.
11212 hardcode_into_libs=yes
11214 # Append ld.so.conf contents to the search path
11215 if test -f /etc/ld.so.conf; then
11216 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11217 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11220 # We used to test for /lib/ld.so.1 and disable shared libraries on
11221 # powerpc, because MkLinux only supported shared libraries with the
11222 # GNU dynamic linker. Since this was broken with cross compilers,
11223 # most powerpc-linux boxes support dynamic linking these days and
11224 # people can always --disable-shared, the test was removed, and we
11225 # assume the GNU/Linux dynamic linker is in use.
11226 dynamic_linker='GNU/Linux ld.so'
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 shlibpath_overrides_runpath=no
11237 hardcode_into_libs=yes
11238 dynamic_linker='NetBSD ld.elf_so'
11245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11248 dynamic_linker='NetBSD (a.out) ld.so'
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 dynamic_linker='NetBSD ld.elf_so'
11254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=yes
11256 hardcode_into_libs=yes
11260 version_type=linux # correct to gnu/linux during the next big refactor
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 shlibpath_overrides_runpath=yes
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath=no
11274 hardcode_into_libs=yes
11275 dynamic_linker='ldqnx.so'
11280 sys_lib_dlsearch_path_spec="/usr/lib"
11282 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11284 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11285 *) need_version=no ;;
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11289 shlibpath_var=LD_LIBRARY_PATH
11290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11292 openbsd2.[89] | openbsd2.[89].*)
11293 shlibpath_overrides_runpath=no
11296 shlibpath_overrides_runpath=yes
11300 shlibpath_overrides_runpath=yes
11305 libname_spec='$name'
11308 library_names_spec='$libname${shared_ext} $libname.a'
11309 dynamic_linker='OS/2 ld.exe'
11310 shlibpath_var=LIBPATH
11313 osf3* | osf4* | osf5*)
11317 soname_spec='${libname}${release}${shared_ext}$major'
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11321 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11329 version_type=linux # correct to gnu/linux during the next big refactor
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333 soname_spec='${libname}${release}${shared_ext}$major'
11334 shlibpath_var=LD_LIBRARY_PATH
11335 shlibpath_overrides_runpath=yes
11336 hardcode_into_libs=yes
11337 # ldd complains unless libraries are executable
11338 postinstall_cmds='chmod +x $lib'
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11344 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11345 shlibpath_var=LD_LIBRARY_PATH
11346 shlibpath_overrides_runpath=yes
11347 if test "$with_gnu_ld" = yes; then
11354 version_type=linux # correct to gnu/linux during the next big refactor
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 soname_spec='${libname}${release}${shared_ext}$major'
11357 shlibpath_var=LD_LIBRARY_PATH
11358 case $host_vendor in
11360 shlibpath_overrides_runpath=no
11362 runpath_var=LD_RUN_PATH
11370 shlibpath_overrides_runpath=no
11371 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11377 if test -d /usr/nec ;then
11378 version_type=linux # correct to gnu/linux during the next big refactor
11379 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11380 soname_spec='$libname${shared_ext}.$major'
11381 shlibpath_var=LD_LIBRARY_PATH
11385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11386 version_type=freebsd-elf
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 shlibpath_var=LD_LIBRARY_PATH
11392 shlibpath_overrides_runpath=yes
11393 hardcode_into_libs=yes
11394 if test "$with_gnu_ld" = yes; then
11395 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11397 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11404 sys_lib_dlsearch_path_spec='/usr/lib'
11408 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11409 version_type=linux # correct to gnu/linux during the next big refactor
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413 shlibpath_var=LD_LIBRARY_PATH
11414 shlibpath_overrides_runpath=no
11415 hardcode_into_libs=yes
11419 version_type=linux # correct to gnu/linux during the next big refactor
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 shlibpath_var=LD_LIBRARY_PATH
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11430 $as_echo "$dynamic_linker" >&6; }
11431 test "$dynamic_linker" = no && can_build_shared=no
11433 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11434 if test "$GCC" = yes; then
11435 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11438 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11439 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11441 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11442 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11537 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11539 if test -n "$hardcode_libdir_flag_spec" ||
11540 test -n "$runpath_var" ||
11541 test "X$hardcode_automatic" = "Xyes" ; then
11543 # We can hardcode non-existent directories.
11544 if test "$hardcode_direct" != no &&
11545 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11546 # have to relink, otherwise we might link with an installed library
11547 # when we should be linking with a yet-to-be-installed one
11548 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11549 test "$hardcode_minus_L" != no; then
11550 # Linking always hardcodes the temporary library directory.
11551 hardcode_action=relink
11553 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11554 hardcode_action=immediate
11557 # We cannot hardcode anything, or else we can only hardcode existing
11559 hardcode_action=unsupported
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11562 $as_echo "$hardcode_action" >&6; }
11564 if test "$hardcode_action" = relink ||
11565 test "$inherit_rpath" = yes; then
11566 # Fast installation is not supported
11567 enable_fast_install=no
11568 elif test "$shlibpath_overrides_runpath" = yes ||
11569 test "$enable_shared" = no; then
11570 # Fast installation is not necessary
11571 enable_fast_install=needless
11579 if test "x$enable_dlopen" != xyes; then
11580 enable_dlopen=unknown
11581 enable_dlopen_self=unknown
11582 enable_dlopen_self_static=unknown
11589 lt_cv_dlopen="load_add_on"
11591 lt_cv_dlopen_self=yes
11594 mingw* | pw32* | cegcc*)
11595 lt_cv_dlopen="LoadLibrary"
11600 lt_cv_dlopen="dlopen"
11605 # if libdl is installed we need to link against it
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11607 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11608 if ${ac_cv_lib_dl_dlopen+:} false; then :
11609 $as_echo_n "(cached) " >&6
11611 ac_check_lib_save_LIBS=$LIBS
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11616 /* Override any GCC internal prototype to avoid an error.
11617 Use char because int might match the return type of a GCC
11618 builtin and then its argument prototype would still apply. */
11631 if ac_fn_c_try_link "$LINENO"; then :
11632 ac_cv_lib_dl_dlopen=yes
11634 ac_cv_lib_dl_dlopen=no
11636 rm -f core conftest.err conftest.$ac_objext \
11637 conftest$ac_exeext conftest.$ac_ext
11638 LIBS=$ac_check_lib_save_LIBS
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11641 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11642 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11646 lt_cv_dlopen="dyld"
11648 lt_cv_dlopen_self=yes
11655 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11656 if test "x$ac_cv_func_shl_load" = xyes; then :
11657 lt_cv_dlopen="shl_load"
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11660 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11661 if ${ac_cv_lib_dld_shl_load+:} false; then :
11662 $as_echo_n "(cached) " >&6
11664 ac_check_lib_save_LIBS=$LIBS
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11669 /* Override any GCC internal prototype to avoid an error.
11670 Use char because int might match the return type of a GCC
11671 builtin and then its argument prototype would still apply. */
11679 return shl_load ();
11684 if ac_fn_c_try_link "$LINENO"; then :
11685 ac_cv_lib_dld_shl_load=yes
11687 ac_cv_lib_dld_shl_load=no
11689 rm -f core conftest.err conftest.$ac_objext \
11690 conftest$ac_exeext conftest.$ac_ext
11691 LIBS=$ac_check_lib_save_LIBS
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11694 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11695 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11696 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11698 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11699 if test "x$ac_cv_func_dlopen" = xyes; then :
11700 lt_cv_dlopen="dlopen"
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11703 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11704 if ${ac_cv_lib_dl_dlopen+:} false; then :
11705 $as_echo_n "(cached) " >&6
11707 ac_check_lib_save_LIBS=$LIBS
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11712 /* Override any GCC internal prototype to avoid an error.
11713 Use char because int might match the return type of a GCC
11714 builtin and then its argument prototype would still apply. */
11727 if ac_fn_c_try_link "$LINENO"; then :
11728 ac_cv_lib_dl_dlopen=yes
11730 ac_cv_lib_dl_dlopen=no
11732 rm -f core conftest.err conftest.$ac_objext \
11733 conftest$ac_exeext conftest.$ac_ext
11734 LIBS=$ac_check_lib_save_LIBS
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11737 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11738 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11742 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11743 if ${ac_cv_lib_svld_dlopen+:} false; then :
11744 $as_echo_n "(cached) " >&6
11746 ac_check_lib_save_LIBS=$LIBS
11747 LIBS="-lsvld $LIBS"
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11751 /* Override any GCC internal prototype to avoid an error.
11752 Use char because int might match the return type of a GCC
11753 builtin and then its argument prototype would still apply. */
11766 if ac_fn_c_try_link "$LINENO"; then :
11767 ac_cv_lib_svld_dlopen=yes
11769 ac_cv_lib_svld_dlopen=no
11771 rm -f core conftest.err conftest.$ac_objext \
11772 conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11776 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11777 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11781 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11782 if ${ac_cv_lib_dld_dld_link+:} false; then :
11783 $as_echo_n "(cached) " >&6
11785 ac_check_lib_save_LIBS=$LIBS
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11790 /* Override any GCC internal prototype to avoid an error.
11791 Use char because int might match the return type of a GCC
11792 builtin and then its argument prototype would still apply. */
11800 return dld_link ();
11805 if ac_fn_c_try_link "$LINENO"; then :
11806 ac_cv_lib_dld_dld_link=yes
11808 ac_cv_lib_dld_dld_link=no
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11812 LIBS=$ac_check_lib_save_LIBS
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11815 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11816 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11817 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11838 if test "x$lt_cv_dlopen" != xno; then
11844 case $lt_cv_dlopen in
11846 save_CPPFLAGS="$CPPFLAGS"
11847 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11849 save_LDFLAGS="$LDFLAGS"
11850 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11853 LIBS="$lt_cv_dlopen_libs $LIBS"
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11856 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11857 if ${lt_cv_dlopen_self+:} false; then :
11858 $as_echo_n "(cached) " >&6
11860 if test "$cross_compiling" = yes; then :
11861 lt_cv_dlopen_self=cross
11863 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11864 lt_status=$lt_dlunknown
11865 cat > conftest.$ac_ext <<_LT_EOF
11866 #line $LINENO "configure"
11867 #include "confdefs.h"
11876 # define LT_DLGLOBAL RTLD_GLOBAL
11879 # define LT_DLGLOBAL DL_GLOBAL
11881 # define LT_DLGLOBAL 0
11885 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11886 find out it does not work in some platform. */
11887 #ifndef LT_DLLAZY_OR_NOW
11889 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11892 # define LT_DLLAZY_OR_NOW DL_LAZY
11895 # define LT_DLLAZY_OR_NOW RTLD_NOW
11898 # define LT_DLLAZY_OR_NOW DL_NOW
11900 # define LT_DLLAZY_OR_NOW 0
11907 /* When -fvisbility=hidden is used, assume the code has been annotated
11908 correspondingly for the symbols needed. */
11909 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11910 int fnord () __attribute__((visibility("default")));
11913 int fnord () { return 42; }
11916 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11917 int status = $lt_dlunknown;
11921 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11924 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11925 else puts (dlerror ());
11927 /* dlclose (self); */
11935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11936 (eval $ac_link) 2>&5
11938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11939 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11940 (./conftest; exit; ) >&5 2>/dev/null
11942 case x$lt_status in
11943 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11944 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11945 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11948 # compilation failed
11949 lt_cv_dlopen_self=no
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11957 $as_echo "$lt_cv_dlopen_self" >&6; }
11959 if test "x$lt_cv_dlopen_self" = xyes; then
11960 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11962 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11963 if ${lt_cv_dlopen_self_static+:} false; then :
11964 $as_echo_n "(cached) " >&6
11966 if test "$cross_compiling" = yes; then :
11967 lt_cv_dlopen_self_static=cross
11969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11970 lt_status=$lt_dlunknown
11971 cat > conftest.$ac_ext <<_LT_EOF
11972 #line $LINENO "configure"
11973 #include "confdefs.h"
11982 # define LT_DLGLOBAL RTLD_GLOBAL
11985 # define LT_DLGLOBAL DL_GLOBAL
11987 # define LT_DLGLOBAL 0
11991 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11992 find out it does not work in some platform. */
11993 #ifndef LT_DLLAZY_OR_NOW
11995 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11998 # define LT_DLLAZY_OR_NOW DL_LAZY
12001 # define LT_DLLAZY_OR_NOW RTLD_NOW
12004 # define LT_DLLAZY_OR_NOW DL_NOW
12006 # define LT_DLLAZY_OR_NOW 0
12013 /* When -fvisbility=hidden is used, assume the code has been annotated
12014 correspondingly for the symbols needed. */
12015 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12016 int fnord () __attribute__((visibility("default")));
12019 int fnord () { return 42; }
12022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12023 int status = $lt_dlunknown;
12027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12030 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12031 else puts (dlerror ());
12033 /* dlclose (self); */
12041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12042 (eval $ac_link) 2>&5
12044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12045 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12046 (./conftest; exit; ) >&5 2>/dev/null
12048 case x$lt_status in
12049 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12050 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12051 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12054 # compilation failed
12055 lt_cv_dlopen_self_static=no
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12063 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12066 CPPFLAGS="$save_CPPFLAGS"
12067 LDFLAGS="$save_LDFLAGS"
12072 case $lt_cv_dlopen_self in
12073 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12074 *) enable_dlopen_self=unknown ;;
12077 case $lt_cv_dlopen_self_static in
12078 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12079 *) enable_dlopen_self_static=unknown ;;
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12102 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12103 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12104 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12105 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12107 $as_echo "yes" >&6; }
12109 # FIXME - insert some real tests, host_os isn't really good enough
12112 if test -n "$STRIP" ; then
12113 striplib="$STRIP -x"
12114 old_striplib="$STRIP -S"
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12116 $as_echo "yes" >&6; }
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12140 # Report which library types will actually be built
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12142 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12144 $as_echo "$can_build_shared" >&6; }
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12147 $as_echo_n "checking whether to build shared libraries... " >&6; }
12148 test "$can_build_shared" = "no" && enable_shared=no
12150 # On AIX, shared libraries and static libraries use the same namespace, and
12151 # are all built from PIC.
12154 test "$enable_shared" = yes && enable_static=no
12155 if test -n "$RANLIB"; then
12156 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12157 postinstall_cmds='$RANLIB $lib'
12162 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12163 test "$enable_shared" = yes && enable_static=no
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12168 $as_echo "$enable_shared" >&6; }
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12171 $as_echo_n "checking whether to build static libraries... " >&6; }
12172 # Make sure either enable_shared or enable_static is yes.
12173 test "$enable_shared" = yes || enable_static=yes
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12175 $as_echo "$enable_static" >&6; }
12182 ac_cpp='$CXXCPP $CPPFLAGS'
12183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12189 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12190 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12191 (test "X$CXX" != "Xg++"))) ; then
12193 ac_cpp='$CXXCPP $CPPFLAGS'
12194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12198 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12199 if test -z "$CXXCPP"; then
12200 if ${ac_cv_prog_CXXCPP+:} false; then :
12201 $as_echo_n "(cached) " >&6
12203 # Double quotes because CXXCPP needs to be expanded
12204 for CXXCPP in "$CXX -E" "/lib/cpp"
12206 ac_preproc_ok=false
12207 for ac_cxx_preproc_warn_flag in '' yes
12209 # Use a header file that comes with gcc, so configuring glibc
12210 # with a fresh cross-compiler works.
12211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12212 # <limits.h> exists even on freestanding compilers.
12213 # On the NeXT, cc -E runs the code through the compiler's parser,
12214 # not just through cpp. "Syntax error" is here to catch this case.
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12218 # include <limits.h>
12220 # include <assert.h>
12224 if ac_fn_cxx_try_cpp "$LINENO"; then :
12227 # Broken: fails on valid input.
12230 rm -f conftest.err conftest.i conftest.$ac_ext
12232 # OK, works on sane cases. Now check whether nonexistent headers
12233 # can be detected and how.
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236 #include <ac_nonexistent.h>
12238 if ac_fn_cxx_try_cpp "$LINENO"; then :
12239 # Broken: success on invalid input.
12242 # Passes both tests.
12246 rm -f conftest.err conftest.i conftest.$ac_ext
12249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12250 rm -f conftest.i conftest.err conftest.$ac_ext
12251 if $ac_preproc_ok; then :
12256 ac_cv_prog_CXXCPP=$CXXCPP
12259 CXXCPP=$ac_cv_prog_CXXCPP
12261 ac_cv_prog_CXXCPP=$CXXCPP
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12264 $as_echo "$CXXCPP" >&6; }
12265 ac_preproc_ok=false
12266 for ac_cxx_preproc_warn_flag in '' yes
12268 # Use a header file that comes with gcc, so configuring glibc
12269 # with a fresh cross-compiler works.
12270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12271 # <limits.h> exists even on freestanding compilers.
12272 # On the NeXT, cc -E runs the code through the compiler's parser,
12273 # not just through cpp. "Syntax error" is here to catch this case.
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12277 # include <limits.h>
12279 # include <assert.h>
12283 if ac_fn_cxx_try_cpp "$LINENO"; then :
12286 # Broken: fails on valid input.
12289 rm -f conftest.err conftest.i conftest.$ac_ext
12291 # OK, works on sane cases. Now check whether nonexistent headers
12292 # can be detected and how.
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295 #include <ac_nonexistent.h>
12297 if ac_fn_cxx_try_cpp "$LINENO"; then :
12298 # Broken: success on invalid input.
12301 # Passes both tests.
12305 rm -f conftest.err conftest.i conftest.$ac_ext
12308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12309 rm -f conftest.i conftest.err conftest.$ac_ext
12310 if $ac_preproc_ok; then :
12313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12315 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12316 See \`config.log' for more details" "$LINENO" 5; }
12320 ac_cpp='$CXXCPP $CPPFLAGS'
12321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12326 _lt_caught_CXX_error=yes
12330 ac_cpp='$CXXCPP $CPPFLAGS'
12331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12335 archive_cmds_need_lc_CXX=no
12336 allow_undefined_flag_CXX=
12337 always_export_symbols_CXX=no
12338 archive_expsym_cmds_CXX=
12339 compiler_needs_object_CXX=no
12340 export_dynamic_flag_spec_CXX=
12341 hardcode_direct_CXX=no
12342 hardcode_direct_absolute_CXX=no
12343 hardcode_libdir_flag_spec_CXX=
12344 hardcode_libdir_separator_CXX=
12345 hardcode_minus_L_CXX=no
12346 hardcode_shlibpath_var_CXX=unsupported
12347 hardcode_automatic_CXX=no
12348 inherit_rpath_CXX=no
12350 module_expsym_cmds_CXX=
12351 link_all_deplibs_CXX=unknown
12352 old_archive_cmds_CXX=$old_archive_cmds
12353 reload_flag_CXX=$reload_flag
12354 reload_cmds_CXX=$reload_cmds
12355 no_undefined_flag_CXX=
12356 whole_archive_flag_spec_CXX=
12357 enable_shared_with_static_runtimes_CXX=no
12359 # Source file extension for C++ test sources.
12362 # Object file extension for compiled C++ test sources.
12366 # No sense in running all these tests if we already determined that
12367 # the CXX compiler isn't working. Some variables (like enable_shared)
12368 # are currently assumed to apply to all compilers on this platform,
12369 # and will be corrupted by setting them based on a non-working compiler.
12370 if test "$_lt_caught_CXX_error" != yes; then
12371 # Code to be used in simple compile tests
12372 lt_simple_compile_test_code="int some_variable = 0;"
12374 # Code to be used in simple link tests
12375 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12377 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12384 # If no C compiler was specified, use CC.
12387 # If no C compiler flags were specified, use CFLAGS.
12388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12390 # Allow CC to be a program name with arguments.
12394 # save warnings/boilerplate of simple test code
12395 ac_outfile=conftest.$ac_objext
12396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12398 _lt_compiler_boilerplate=`cat conftest.err`
12401 ac_outfile=conftest.$ac_objext
12402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12404 _lt_linker_boilerplate=`cat conftest.err`
12408 # Allow CC to be a program name with arguments.
12410 lt_save_CFLAGS=$CFLAGS
12414 lt_save_with_gnu_ld=$with_gnu_ld
12415 lt_save_path_LD=$lt_cv_path_LD
12416 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12417 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12419 $as_unset lt_cv_prog_gnu_ld
12421 if test -n "${lt_cv_path_LDCXX+set}"; then
12422 lt_cv_path_LD=$lt_cv_path_LDCXX
12424 $as_unset lt_cv_path_LD
12426 test -z "${LDCXX+set}" || LD=$LDCXX
12431 for cc_temp in $compiler""; do
12433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12439 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12442 if test -n "$compiler"; then
12443 # We don't want -fno-exception when compiling C++ code, so set the
12444 # no_builtin_flag separately
12445 if test "$GXX" = yes; then
12446 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12448 lt_prog_compiler_no_builtin_flag_CXX=
12451 if test "$GXX" = yes; then
12452 # Set up default GNU C++ configuration
12456 # Check whether --with-gnu-ld was given.
12457 if test "${with_gnu_ld+set}" = set; then :
12458 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12464 if test "$GCC" = yes; then
12465 # Check if gcc -print-prog-name=ld gives a path.
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12467 $as_echo_n "checking for ld used by $CC... " >&6; }
12470 # gcc leaves a trailing carriage return which upsets mingw
12471 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12473 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12476 # Accept absolute paths.
12478 re_direlt='/[^/][^/]*/\.\./'
12479 # Canonicalize the pathname of ld
12480 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12481 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12482 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12484 test -z "$LD" && LD="$ac_prog"
12487 # If it fails, then pretend we aren't using GCC.
12491 # If it is relative, then search for the first ld in PATH.
12492 with_gnu_ld=unknown
12495 elif test "$with_gnu_ld" = yes; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12497 $as_echo_n "checking for GNU ld... " >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12500 $as_echo_n "checking for non-GNU ld... " >&6; }
12502 if ${lt_cv_path_LD+:} false; then :
12503 $as_echo_n "(cached) " >&6
12505 if test -z "$LD"; then
12506 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12507 for ac_dir in $PATH; do
12509 test -z "$ac_dir" && ac_dir=.
12510 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12511 lt_cv_path_LD="$ac_dir/$ac_prog"
12512 # Check to see if the program is GNU ld. I'd rather use --version,
12513 # but apparently some variants of GNU ld only accept -v.
12514 # Break only if it was the GNU/non-GNU ld that we prefer.
12515 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12516 *GNU* | *'with BFD'*)
12517 test "$with_gnu_ld" != no && break
12520 test "$with_gnu_ld" != yes && break
12527 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12531 LD="$lt_cv_path_LD"
12532 if test -n "$LD"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12534 $as_echo "$LD" >&6; }
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 $as_echo "no" >&6; }
12539 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12541 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12542 if ${lt_cv_prog_gnu_ld+:} false; then :
12543 $as_echo_n "(cached) " >&6
12545 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12546 case `$LD -v 2>&1 </dev/null` in
12547 *GNU* | *'with BFD'*)
12548 lt_cv_prog_gnu_ld=yes
12551 lt_cv_prog_gnu_ld=no
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12556 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12557 with_gnu_ld=$lt_cv_prog_gnu_ld
12565 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12566 # archiving commands below assume that GNU ld is being used.
12567 if test "$with_gnu_ld" = yes; then
12568 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12569 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12571 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12572 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12574 # If archive_cmds runs LD, not CC, wlarc should be empty
12575 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12576 # investigate it a little bit more. (MM)
12579 # ancient GNU ld didn't support --whole-archive et. al.
12580 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12581 $GREP 'no-whole-archive' > /dev/null; then
12582 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12584 whole_archive_flag_spec_CXX=
12590 # A generic and very simple default shared library creation
12591 # command for GNU C++ for the case where it uses the native
12592 # linker, instead of GNU ld. If possible, this setting should
12593 # overridden to take advantage of the native linker features on
12594 # the platform it is being used on.
12595 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12598 # Commands to make compiler produce verbose output that lists
12599 # what "hidden" libraries, object files and flags are used when
12600 # linking a shared library.
12601 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12609 # PORTME: fill in a description of your system's C++ link characteristics
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12611 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12615 # FIXME: insert proper C++ library support
12619 if test "$host_cpu" = ia64; then
12620 # On IA64, the linker does run time linking by default, so we don't
12621 # have to do anything special.
12622 aix_use_runtimelinking=no
12623 exp_sym_flag='-Bexport'
12626 aix_use_runtimelinking=no
12628 # Test if we are trying to use run time linking or normal
12629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12630 # need to do runtime linking.
12631 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12632 for ld_flag in $LDFLAGS; do
12635 aix_use_runtimelinking=yes
12643 exp_sym_flag='-bexport'
12644 no_entry_flag='-bnoentry'
12647 # When large executables or shared objects are built, AIX ld can
12648 # have problems creating the table of contents. If linking a library
12649 # or program results in "error TOC overflow" add -mminimal-toc to
12650 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12651 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12653 archive_cmds_CXX=''
12654 hardcode_direct_CXX=yes
12655 hardcode_direct_absolute_CXX=yes
12656 hardcode_libdir_separator_CXX=':'
12657 link_all_deplibs_CXX=yes
12658 file_list_spec_CXX='${wl}-f,'
12660 if test "$GXX" = yes; then
12661 case $host_os in aix4.[012]|aix4.[012].*)
12662 # We only want to do this on AIX 4.2 and lower, the check
12663 # below for broken collect2 doesn't work under 4.3+
12664 collect2name=`${CC} -print-prog-name=collect2`
12665 if test -f "$collect2name" &&
12666 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12668 # We have reworked collect2
12671 # We have old collect2
12672 hardcode_direct_CXX=unsupported
12673 # It fails to find uninstalled libraries when the uninstalled
12674 # path is not listed in the libpath. Setting hardcode_minus_L
12675 # to unsupported forces relinking
12676 hardcode_minus_L_CXX=yes
12677 hardcode_libdir_flag_spec_CXX='-L$libdir'
12678 hardcode_libdir_separator_CXX=
12681 shared_flag='-shared'
12682 if test "$aix_use_runtimelinking" = yes; then
12683 shared_flag="$shared_flag "'${wl}-G'
12687 if test "$host_cpu" = ia64; then
12688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12689 # chokes on -Wl,-G. The following line is correct:
12692 if test "$aix_use_runtimelinking" = yes; then
12693 shared_flag='${wl}-G'
12695 shared_flag='${wl}-bM:SRE'
12700 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12701 # It seems that -bexpall does not export symbols beginning with
12702 # underscore (_), so it is better to generate a list of symbols to
12704 always_export_symbols_CXX=yes
12705 if test "$aix_use_runtimelinking" = yes; then
12706 # Warning - without using the other runtime loading flags (-brtl),
12707 # -berok will link without error, but may produce a broken library.
12708 allow_undefined_flag_CXX='-berok'
12709 # Determine the default libpath from the value encoded in an empty
12711 if test "${lt_cv_aix_libpath+set}" = set; then
12712 aix_libpath=$lt_cv_aix_libpath
12714 if ${lt_cv_aix_libpath__CXX+:} false; then :
12715 $as_echo_n "(cached) " >&6
12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h. */
12728 if ac_fn_cxx_try_link "$LINENO"; then :
12730 lt_aix_libpath_sed='
12731 /Import File Strings/,/^$/ {
12733 s/^0 *\([^ ]*\) *$/\1/
12737 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12738 # Check for a 64-bit object if we didn't find anything.
12739 if test -z "$lt_cv_aix_libpath__CXX"; then
12740 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12743 rm -f core conftest.err conftest.$ac_objext \
12744 conftest$ac_exeext conftest.$ac_ext
12745 if test -z "$lt_cv_aix_libpath__CXX"; then
12746 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12751 aix_libpath=$lt_cv_aix_libpath__CXX
12754 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12756 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12758 if test "$host_cpu" = ia64; then
12759 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12760 allow_undefined_flag_CXX="-z nodefs"
12761 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"
12763 # Determine the default libpath from the value encoded in an
12764 # empty executable.
12765 if test "${lt_cv_aix_libpath+set}" = set; then
12766 aix_libpath=$lt_cv_aix_libpath
12768 if ${lt_cv_aix_libpath__CXX+:} false; then :
12769 $as_echo_n "(cached) " >&6
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12782 if ac_fn_cxx_try_link "$LINENO"; then :
12784 lt_aix_libpath_sed='
12785 /Import File Strings/,/^$/ {
12787 s/^0 *\([^ ]*\) *$/\1/
12791 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12792 # Check for a 64-bit object if we didn't find anything.
12793 if test -z "$lt_cv_aix_libpath__CXX"; then
12794 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12797 rm -f core conftest.err conftest.$ac_objext \
12798 conftest$ac_exeext conftest.$ac_ext
12799 if test -z "$lt_cv_aix_libpath__CXX"; then
12800 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12805 aix_libpath=$lt_cv_aix_libpath__CXX
12808 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12809 # Warning - without using the other run time loading flags,
12810 # -berok will link without error, but may produce a broken library.
12811 no_undefined_flag_CXX=' ${wl}-bernotok'
12812 allow_undefined_flag_CXX=' ${wl}-berok'
12813 if test "$with_gnu_ld" = yes; then
12814 # We only use this code for GNU lds that support --whole-archive.
12815 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12817 # Exported symbols can be pulled into shared objects from archives
12818 whole_archive_flag_spec_CXX='$convenience'
12820 archive_cmds_need_lc_CXX=yes
12821 # This is similar to how AIX traditionally builds its shared
12823 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'
12829 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12830 allow_undefined_flag_CXX=unsupported
12831 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12832 # support --undefined. This deserves some investigation. FIXME
12833 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12840 case $cc_basename in
12842 # FIXME: insert proper C++ library support
12848 cygwin* | mingw* | pw32* | cegcc*)
12849 case $GXX,$cc_basename in
12852 # hardcode_libdir_flag_spec is actually meaningless, as there is
12853 # no search path for DLLs.
12854 hardcode_libdir_flag_spec_CXX=' '
12855 allow_undefined_flag_CXX=unsupported
12856 always_export_symbols_CXX=yes
12857 file_list_spec_CXX='@'
12858 # Tell ltmain to make .lib files, not .a files.
12860 # Tell ltmain to make .dll files, not .so files.
12862 # FIXME: Setting linknames here is a bad hack.
12863 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12864 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12865 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12867 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12869 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12871 # The linker will not automatically build a static lib if we build a DLL.
12872 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12873 enable_shared_with_static_runtimes_CXX=yes
12875 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12876 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12877 lt_tool_outputfile="@TOOL_OUTPUT@"~
12878 case $lt_outputfile in
12881 lt_outputfile="$lt_outputfile.exe"
12882 lt_tool_outputfile="$lt_tool_outputfile.exe"
12885 func_to_tool_file "$lt_outputfile"~
12886 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12887 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12888 $RM "$lt_outputfile.manifest";
12893 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12894 # as there is no search path for DLLs.
12895 hardcode_libdir_flag_spec_CXX='-L$libdir'
12896 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12897 allow_undefined_flag_CXX=unsupported
12898 always_export_symbols_CXX=no
12899 enable_shared_with_static_runtimes_CXX=yes
12901 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12902 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'
12903 # If the export-symbols file already is a .def file (1st line
12904 # is EXPORTS), use it as is; otherwise, prepend...
12905 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12906 cp $export_symbols $output_objdir/$soname.def;
12908 echo EXPORTS > $output_objdir/$soname.def;
12909 cat $export_symbols >> $output_objdir/$soname.def;
12911 $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'
12918 darwin* | rhapsody*)
12921 archive_cmds_need_lc_CXX=no
12922 hardcode_direct_CXX=no
12923 hardcode_automatic_CXX=yes
12924 hardcode_shlibpath_var_CXX=unsupported
12925 if test "$lt_cv_ld_force_load" = "yes"; then
12926 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12929 whole_archive_flag_spec_CXX=''
12931 link_all_deplibs_CXX=yes
12932 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12933 case $cc_basename in
12934 ifort*) _lt_dar_can_shared=yes ;;
12935 *) _lt_dar_can_shared=$GCC ;;
12937 if test "$_lt_dar_can_shared" = "yes"; then
12938 output_verbose_link_cmd=func_echo_all
12939 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}"
12940 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12941 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}"
12942 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}"
12943 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12944 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}"
12945 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}"
12955 case $cc_basename in
12957 # FIXME: insert proper C++ library support
12961 # Green Hills C++ Compiler
12962 # FIXME: insert proper C++ library support
12966 # FIXME: insert proper C++ library support
12973 # C++ shared libraries reported to be fairly broken before
12979 archive_cmds_need_lc_CXX=no
12982 freebsd* | dragonfly*)
12983 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12992 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12993 link_all_deplibs_CXX=yes
12997 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12998 hardcode_libdir_separator_CXX=:
12999 export_dynamic_flag_spec_CXX='${wl}-E'
13000 hardcode_direct_CXX=yes
13001 hardcode_minus_L_CXX=yes # Not in the search PATH,
13002 # but as the default
13003 # location of the library.
13005 case $cc_basename in
13007 # FIXME: insert proper C++ library support
13011 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'
13012 # Commands to make compiler produce verbose output that lists
13013 # what "hidden" libraries, object files and flags are used when
13014 # linking a shared library.
13016 # There doesn't appear to be a way to prevent this compiler from
13017 # explicitly linking system object files so we need to strip them
13018 # from the output so that they don't get included in the library
13020 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13023 if test "$GXX" = yes; then
13024 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13026 # FIXME: insert proper C++ library support
13034 if test $with_gnu_ld = no; then
13035 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13036 hardcode_libdir_separator_CXX=:
13042 export_dynamic_flag_spec_CXX='${wl}-E'
13048 hardcode_direct_CXX=no
13049 hardcode_shlibpath_var_CXX=no
13052 hardcode_direct_CXX=yes
13053 hardcode_direct_absolute_CXX=yes
13054 hardcode_minus_L_CXX=yes # Not in the search PATH,
13055 # but as the default
13056 # location of the library.
13060 case $cc_basename in
13062 # FIXME: insert proper C++ library support
13068 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13071 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13074 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13077 # Commands to make compiler produce verbose output that lists
13078 # what "hidden" libraries, object files and flags are used when
13079 # linking a shared library.
13081 # There doesn't appear to be a way to prevent this compiler from
13082 # explicitly linking system object files so we need to strip them
13083 # from the output so that they don't get included in the library
13085 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13088 if test "$GXX" = yes; then
13089 if test $with_gnu_ld = no; then
13092 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13095 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13098 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13103 # FIXME: insert proper C++ library support
13111 hardcode_direct_CXX=no
13112 hardcode_shlibpath_var_CXX=no
13113 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13114 export_dynamic_flag_spec_CXX='${wl}-E'
13115 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13116 # Instead, shared libraries are loaded at an image base (0x10000000 by
13117 # default) and relocated if they conflict, which is a slow very memory
13118 # consuming and fragmenting process. To avoid this, we pick a random,
13119 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13120 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13121 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'
13122 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'
13125 case $cc_basename in
13128 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13130 # Archives containing C++ object files must be created using
13131 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13132 # necessary to make sure instantiated templates are included
13134 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13137 if test "$GXX" = yes; then
13138 if test "$with_gnu_ld" = no; then
13139 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13141 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13144 link_all_deplibs_CXX=yes
13147 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13148 hardcode_libdir_separator_CXX=:
13149 inherit_rpath_CXX=yes
13152 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13153 case $cc_basename in
13155 # Kuck and Associates, Inc. (KAI) C++ Compiler
13157 # KCC will only create a shared library if the output file
13158 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13159 # to its proper name (with version) after linking.
13160 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'
13161 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'
13162 # Commands to make compiler produce verbose output that lists
13163 # what "hidden" libraries, object files and flags are used when
13164 # linking a shared library.
13166 # There doesn't appear to be a way to prevent this compiler from
13167 # explicitly linking system object files so we need to strip them
13168 # from the output so that they don't get included in the library
13170 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13173 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13175 # Archives containing C++ object files must be created using
13176 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13177 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13182 # version 8.0 and above of icpc choke on multiply defined symbols
13183 # if we add $predep_objects and $postdep_objects, however 7.1 and
13184 # earlier do not add the objects themselves.
13185 case `$CC -V 2>&1` in
13187 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13188 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'
13190 *) # Version 8.0 or newer
13193 ia64*) tmp_idyn=' -i_dynamic';;
13195 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13196 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'
13199 archive_cmds_need_lc_CXX=no
13200 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13201 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13202 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13205 # Portland Group C++ compiler
13207 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13208 prelink_cmds_CXX='tpldir=Template.dir~
13210 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13211 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13212 old_archive_cmds_CXX='tpldir=Template.dir~
13214 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13215 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13217 archive_cmds_CXX='tpldir=Template.dir~
13219 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13220 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13221 archive_expsym_cmds_CXX='tpldir=Template.dir~
13223 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13224 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13226 *) # Version 6 and above use weak symbols
13227 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13228 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'
13232 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13233 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13234 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13239 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'
13241 runpath_var=LD_RUN_PATH
13242 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13243 hardcode_libdir_separator_CXX=:
13245 # Commands to make compiler produce verbose output that lists
13246 # what "hidden" libraries, object files and flags are used when
13247 # linking a shared library.
13249 # There doesn't appear to be a way to prevent this compiler from
13250 # explicitly linking system object files so we need to strip them
13251 # from the output so that they don't get included in the library
13253 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13255 xl* | mpixl* | bgxl*)
13256 # IBM XL 8.0 on PPC, with GNU ld
13257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13259 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13260 if test "x$supports_anon_versioning" = xyes; then
13261 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13263 echo "local: *; };" >> $output_objdir/$libname.ver~
13264 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13268 case `$CC -V 2>&1 | sed 5q` in
13271 no_undefined_flag_CXX=' -zdefs'
13272 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13273 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'
13274 hardcode_libdir_flag_spec_CXX='-R$libdir'
13275 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13276 compiler_needs_object_CXX=yes
13278 # Not sure whether something based on
13279 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13281 output_verbose_link_cmd='func_echo_all'
13283 # Archives containing C++ object files must be created using
13284 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13285 # necessary to make sure instantiated templates are included
13287 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13295 # FIXME: insert proper C++ library support
13300 # FIXME: insert proper C++ library support
13305 case $cc_basename in
13307 # FIXME: insert proper C++ library support
13311 # FIXME: insert proper C++ library support
13318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13319 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13321 hardcode_libdir_flag_spec_CXX='-R$libdir'
13322 hardcode_direct_CXX=yes
13323 hardcode_shlibpath_var_CXX=no
13325 # Workaround some broken pre-1.5 toolchains
13326 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13334 # C++ shared libraries are fairly broken
13339 if test -f /usr/libexec/ld.so; then
13340 hardcode_direct_CXX=yes
13341 hardcode_shlibpath_var_CXX=no
13342 hardcode_direct_absolute_CXX=yes
13343 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13346 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13347 export_dynamic_flag_spec_CXX='${wl}-E'
13348 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13350 output_verbose_link_cmd=func_echo_all
13356 osf3* | osf4* | osf5*)
13357 case $cc_basename in
13359 # Kuck and Associates, Inc. (KAI) C++ Compiler
13361 # KCC will only create a shared library if the output file
13362 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13363 # to its proper name (with version) after linking.
13364 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'
13366 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13367 hardcode_libdir_separator_CXX=:
13369 # Archives containing C++ object files must be created using
13370 # the KAI C++ compiler.
13372 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13373 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13377 # Rational C++ 2.4.1
13378 # FIXME: insert proper C++ library support
13384 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13385 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13389 allow_undefined_flag_CXX=' -expect_unresolved \*'
13390 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13391 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13392 echo "-hidden">> $lib.exp~
13393 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13395 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13399 hardcode_libdir_separator_CXX=:
13401 # Commands to make compiler produce verbose output that lists
13402 # what "hidden" libraries, object files and flags are used when
13403 # linking a shared library.
13405 # There doesn't appear to be a way to prevent this compiler from
13406 # explicitly linking system object files so we need to strip them
13407 # from the output so that they don't get included in the library
13409 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13412 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13413 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13416 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13419 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13424 hardcode_libdir_separator_CXX=:
13426 # Commands to make compiler produce verbose output that lists
13427 # what "hidden" libraries, object files and flags are used when
13428 # linking a shared library.
13429 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13432 # FIXME: insert proper C++ library support
13440 # FIXME: insert proper C++ library support
13445 case $cc_basename in
13448 # FIXME: insert proper C++ library support
13453 # FIXME: insert proper C++ library support
13457 # FIXME: insert proper C++ library support
13464 case $cc_basename in
13466 # Sun C++ 4.2, 5.x and Centerline C++
13467 archive_cmds_need_lc_CXX=yes
13468 no_undefined_flag_CXX=' -zdefs'
13469 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13470 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13471 $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'
13473 hardcode_libdir_flag_spec_CXX='-R$libdir'
13474 hardcode_shlibpath_var_CXX=no
13476 solaris2.[0-5] | solaris2.[0-5].*) ;;
13478 # The compiler driver will combine and reorder linker options,
13479 # but understands `-z linker_flag'.
13480 # Supported since Solaris 2.6 (maybe 2.5.1?)
13481 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13484 link_all_deplibs_CXX=yes
13486 output_verbose_link_cmd='func_echo_all'
13488 # Archives containing C++ object files must be created using
13489 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13490 # necessary to make sure instantiated templates are included
13492 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13495 # Green Hills C++ Compiler
13496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13498 # The C++ compiler must be used to create the archive.
13499 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13502 # GNU C++ compiler with Solaris linker
13503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13504 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13505 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13506 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13507 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13508 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13510 # Commands to make compiler produce verbose output that lists
13511 # what "hidden" libraries, object files and flags are used when
13512 # linking a shared library.
13513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13515 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13517 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13518 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13519 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13521 # Commands to make compiler produce verbose output that lists
13522 # what "hidden" libraries, object files and flags are used when
13523 # linking a shared library.
13524 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13527 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13529 solaris2.[0-5] | solaris2.[0-5].*) ;;
13531 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13540 no_undefined_flag_CXX='${wl}-z,text'
13541 archive_cmds_need_lc_CXX=no
13542 hardcode_shlibpath_var_CXX=no
13543 runpath_var='LD_RUN_PATH'
13545 case $cc_basename in
13547 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13548 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13551 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13552 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13557 sysv5* | sco3.2v5* | sco5v6*)
13558 # Note: We can NOT use -z defs as we might desire, because we do not
13559 # link with -lc, and that would cause any symbols used from libc to
13560 # always be unresolved, which means just about no library would
13561 # ever link correctly. If we're not using GNU ld we use -z text
13562 # though, which does catch some bad symbols but isn't as heavy-handed
13564 no_undefined_flag_CXX='${wl}-z,text'
13565 allow_undefined_flag_CXX='${wl}-z,nodefs'
13566 archive_cmds_need_lc_CXX=no
13567 hardcode_shlibpath_var_CXX=no
13568 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13569 hardcode_libdir_separator_CXX=':'
13570 link_all_deplibs_CXX=yes
13571 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13572 runpath_var='LD_RUN_PATH'
13574 case $cc_basename in
13576 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13577 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13578 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13579 '"$old_archive_cmds_CXX"
13580 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13581 '"$reload_cmds_CXX"
13584 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13585 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13591 case $cc_basename in
13593 # NonStop-UX NCC 3.20
13594 # FIXME: insert proper C++ library support
13598 # FIXME: insert proper C++ library support
13605 # FIXME: insert proper C++ library support
13610 # FIXME: insert proper C++ library support
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13616 $as_echo "$ld_shlibs_CXX" >&6; }
13617 test "$ld_shlibs_CXX" = no && can_build_shared=no
13623 ## There is no encapsulation within the following macros, do not change
13624 ## the running order or otherwise move them around unless you know exactly
13625 ## what you are doing...
13626 # Dependencies to place before and after the object being linked:
13627 predep_objects_CXX=
13628 postdep_objects_CXX=
13631 compiler_lib_search_path_CXX=
13633 cat > conftest.$ac_ext <<_LT_EOF
13637 Foo (void) { a = 0; }
13644 _lt_libdeps_save_CFLAGS=$CFLAGS
13645 case "$CC $CFLAGS " in #(
13646 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13647 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13648 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13652 (eval $ac_compile) 2>&5
13654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655 test $ac_status = 0; }; then
13656 # Parse the compiler output and extract the necessary
13657 # objects, libraries and library flags.
13659 # Sentinel used to keep track of whether or not we are before
13660 # the conftest object file.
13661 pre_test_object_deps_done=no
13663 for p in `eval "$output_verbose_link_cmd"`; do
13664 case ${prev}${p} in
13667 # Some compilers place space between "-{L,R}" and the path.
13668 # Remove the space.
13669 if test $p = "-L" ||
13670 test $p = "-R"; then
13675 # Expand the sysroot to ease extracting the directories later.
13676 if test -z "$prev"; then
13678 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13679 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13680 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13684 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13686 if test "$pre_test_object_deps_done" = no; then
13689 # Internal compiler library paths should come after those
13690 # provided the user. The postdeps already come after the
13691 # user supplied libs so there is no need to process them.
13692 if test -z "$compiler_lib_search_path_CXX"; then
13693 compiler_lib_search_path_CXX="${prev}${p}"
13695 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13698 # The "-l" case would never come before the object being
13699 # linked, so don't bother handling this case.
13702 if test -z "$postdeps_CXX"; then
13703 postdeps_CXX="${prev}${p}"
13705 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13711 *.lto.$objext) ;; # Ignore GCC LTO objects
13713 # This assumes that the test object file only shows up
13714 # once in the compiler output.
13715 if test "$p" = "conftest.$objext"; then
13716 pre_test_object_deps_done=yes
13720 if test "$pre_test_object_deps_done" = no; then
13721 if test -z "$predep_objects_CXX"; then
13722 predep_objects_CXX="$p"
13724 predep_objects_CXX="$predep_objects_CXX $p"
13727 if test -z "$postdep_objects_CXX"; then
13728 postdep_objects_CXX="$p"
13730 postdep_objects_CXX="$postdep_objects_CXX $p"
13735 *) ;; # Ignore the rest.
13743 echo "libtool.m4: error: problem compiling CXX test program"
13746 $RM -f confest.$objext
13747 CFLAGS=$_lt_libdeps_save_CFLAGS
13749 # PORTME: override above test on systems where it is broken
13752 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13753 # hack all around it, let's just trust "g++" to DTRT.
13754 predep_objects_CXX=
13755 postdep_objects_CXX=
13760 case `$CC -V 2>&1 | sed 5q` in
13764 # The more standards-conforming stlport4 library is
13765 # incompatible with the Cstd library. Avoid specifying
13766 # it if it's in CXXFLAGS. Ignore libCrun as
13767 # -library=stlport4 depends on it.
13768 case " $CXX $CXXFLAGS " in
13769 *" -library=stlport4 "*)
13770 solaris_use_stlport4=yes
13774 if test "$solaris_use_stlport4" != yes; then
13775 postdeps_CXX='-library=Cstd -library=Crun'
13782 case $cc_basename in
13784 # The more standards-conforming stlport4 library is
13785 # incompatible with the Cstd library. Avoid specifying
13786 # it if it's in CXXFLAGS. Ignore libCrun as
13787 # -library=stlport4 depends on it.
13788 case " $CXX $CXXFLAGS " in
13789 *" -library=stlport4 "*)
13790 solaris_use_stlport4=yes
13794 # Adding this requires a known-good setup of shared libraries for
13795 # Sun compiler versions before 5.6, else PIC objects from an old
13796 # archive will be linked into the output, leading to subtle bugs.
13797 if test "$solaris_use_stlport4" != yes; then
13798 postdeps_CXX='-library=Cstd -library=Crun'
13806 case " $postdeps_CXX " in
13807 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13809 compiler_lib_search_dirs_CXX=
13810 if test -n "${compiler_lib_search_path_CXX}"; then
13811 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13844 lt_prog_compiler_wl_CXX=
13845 lt_prog_compiler_pic_CXX=
13846 lt_prog_compiler_static_CXX=
13849 # C++ specific cases for pic, static, wl, etc.
13850 if test "$GXX" = yes; then
13851 lt_prog_compiler_wl_CXX='-Wl,'
13852 lt_prog_compiler_static_CXX='-static'
13856 # All AIX code is PIC.
13857 if test "$host_cpu" = ia64; then
13858 # AIX 5 now supports IA64 processor
13859 lt_prog_compiler_static_CXX='-Bstatic'
13866 # see comment about AmigaOS4 .so support
13867 lt_prog_compiler_pic_CXX='-fPIC'
13870 # FIXME: we need at least 68020 code to build shared libraries, but
13871 # adding the `-m68020' flag to GCC prevents building anything better,
13873 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13878 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13879 # PIC is the default for these OSes.
13881 mingw* | cygwin* | os2* | pw32* | cegcc*)
13882 # This hack is so that the source file can tell whether it is being
13883 # built for inclusion in a dll (and should export symbols for example).
13884 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13885 # (--disable-auto-import) libraries
13886 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13888 darwin* | rhapsody*)
13889 # PIC is the default on this platform
13890 # Common symbols not allowed in MH_DYLIB files
13891 lt_prog_compiler_pic_CXX='-fno-common'
13894 # DJGPP does not support shared libraries at all
13895 lt_prog_compiler_pic_CXX=
13898 # PIC is the default for Haiku.
13899 # The "-static" flag exists, but is broken.
13900 lt_prog_compiler_static_CXX=
13903 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13904 # Instead, we relocate shared libraries at runtime.
13907 if test -d /usr/nec; then
13908 lt_prog_compiler_pic_CXX=-Kconform_pic
13912 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13913 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13914 # sets the default TLS model and affects inlining.
13919 lt_prog_compiler_pic_CXX='-fPIC'
13924 # QNX uses GNU C++, but need to define -shared option too, otherwise
13925 # it will coredump.
13926 lt_prog_compiler_pic_CXX='-fPIC -shared'
13929 lt_prog_compiler_pic_CXX='-fPIC'
13935 # All AIX code is PIC.
13936 if test "$host_cpu" = ia64; then
13937 # AIX 5 now supports IA64 processor
13938 lt_prog_compiler_static_CXX='-Bstatic'
13940 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13944 case $cc_basename in
13946 # Green Hills C++ Compiler
13947 # _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"
13951 mingw* | cygwin* | os2* | pw32* | cegcc*)
13952 # This hack is so that the source file can tell whether it is being
13953 # built for inclusion in a dll (and should export symbols for example).
13954 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13957 case $cc_basename in
13959 lt_prog_compiler_pic_CXX='-KPIC'
13962 # Green Hills C++ Compiler
13963 lt_prog_compiler_pic_CXX='-pic'
13969 freebsd* | dragonfly*)
13970 # FreeBSD uses GNU C++
13972 hpux9* | hpux10* | hpux11*)
13973 case $cc_basename in
13975 lt_prog_compiler_wl_CXX='-Wl,'
13976 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13977 if test "$host_cpu" != ia64; then
13978 lt_prog_compiler_pic_CXX='+Z'
13982 lt_prog_compiler_wl_CXX='-Wl,'
13983 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13989 lt_prog_compiler_pic_CXX='+Z'
13998 # This is c89, which is MS Visual C++ (no shared libs)
13999 # Anyone wants to do a port?
14001 irix5* | irix6* | nonstopux*)
14002 case $cc_basename in
14004 lt_prog_compiler_wl_CXX='-Wl,'
14005 lt_prog_compiler_static_CXX='-non_shared'
14006 # CC pic flag -KPIC is the default.
14012 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14013 case $cc_basename in
14016 lt_prog_compiler_wl_CXX='--backend -Wl,'
14017 lt_prog_compiler_pic_CXX='-fPIC'
14020 # old Intel C++ for x86_64 which still supported -KPIC.
14021 lt_prog_compiler_wl_CXX='-Wl,'
14022 lt_prog_compiler_pic_CXX='-KPIC'
14023 lt_prog_compiler_static_CXX='-static'
14026 # Intel C++, used to be incompatible with GCC.
14027 # ICC 10 doesn't accept -KPIC any more.
14028 lt_prog_compiler_wl_CXX='-Wl,'
14029 lt_prog_compiler_pic_CXX='-fPIC'
14030 lt_prog_compiler_static_CXX='-static'
14033 # Portland Group C++ compiler
14034 lt_prog_compiler_wl_CXX='-Wl,'
14035 lt_prog_compiler_pic_CXX='-fpic'
14036 lt_prog_compiler_static_CXX='-Bstatic'
14040 # Make sure the PIC flag is empty. It appears that all Alpha
14041 # Linux and Compaq Tru64 Unix objects are PIC.
14042 lt_prog_compiler_pic_CXX=
14043 lt_prog_compiler_static_CXX='-non_shared'
14045 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14046 # IBM XL 8.0, 9.0 on PPC and BlueGene
14047 lt_prog_compiler_wl_CXX='-Wl,'
14048 lt_prog_compiler_pic_CXX='-qpic'
14049 lt_prog_compiler_static_CXX='-qstaticlink'
14052 case `$CC -V 2>&1 | sed 5q` in
14055 lt_prog_compiler_pic_CXX='-KPIC'
14056 lt_prog_compiler_static_CXX='-Bstatic'
14057 lt_prog_compiler_wl_CXX='-Qoption ld '
14068 case $cc_basename in
14070 lt_prog_compiler_pic_CXX='-W c,exportall'
14076 netbsd* | netbsdelf*-gnu)
14079 # QNX uses GNU C++, but need to define -shared option too, otherwise
14080 # it will coredump.
14081 lt_prog_compiler_pic_CXX='-fPIC -shared'
14083 osf3* | osf4* | osf5*)
14084 case $cc_basename in
14086 lt_prog_compiler_wl_CXX='--backend -Wl,'
14089 # Rational C++ 2.4.1
14090 lt_prog_compiler_pic_CXX='-pic'
14093 # Digital/Compaq C++
14094 lt_prog_compiler_wl_CXX='-Wl,'
14095 # Make sure the PIC flag is empty. It appears that all Alpha
14096 # Linux and Compaq Tru64 Unix objects are PIC.
14097 lt_prog_compiler_pic_CXX=
14098 lt_prog_compiler_static_CXX='-non_shared'
14107 case $cc_basename in
14109 # Sun C++ 4.2, 5.x and Centerline C++
14110 lt_prog_compiler_pic_CXX='-KPIC'
14111 lt_prog_compiler_static_CXX='-Bstatic'
14112 lt_prog_compiler_wl_CXX='-Qoption ld '
14115 # Green Hills C++ Compiler
14116 lt_prog_compiler_pic_CXX='-PIC'
14123 case $cc_basename in
14126 lt_prog_compiler_pic_CXX='-pic'
14127 lt_prog_compiler_static_CXX='-Bstatic'
14131 lt_prog_compiler_pic_CXX='-pic'
14137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14138 case $cc_basename in
14140 lt_prog_compiler_wl_CXX='-Wl,'
14141 lt_prog_compiler_pic_CXX='-KPIC'
14142 lt_prog_compiler_static_CXX='-Bstatic'
14147 case $cc_basename in
14149 # NonStop-UX NCC 3.20
14150 lt_prog_compiler_pic_CXX='-KPIC'
14159 lt_prog_compiler_can_build_shared_CXX=no
14165 # For platforms which do not support PIC, -DPIC is meaningless:
14167 lt_prog_compiler_pic_CXX=
14170 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14175 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14176 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14177 $as_echo_n "(cached) " >&6
14179 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14182 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14183 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14186 # Check to make sure the PIC flag actually works.
14188 if test -n "$lt_prog_compiler_pic_CXX"; then
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14190 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14191 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14192 $as_echo_n "(cached) " >&6
14194 lt_cv_prog_compiler_pic_works_CXX=no
14195 ac_outfile=conftest.$ac_objext
14196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14197 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14198 # Insert the option either (1) after the last *FLAGS variable, or
14199 # (2) before a word containing "conftest.", or (3) at the end.
14200 # Note that $ac_compile itself does not contain backslashes and begins
14201 # with a dollar sign (not a hyphen), so the echo should work correctly.
14202 # The option is referenced via a variable to avoid confusing sed.
14203 lt_compile=`echo "$ac_compile" | $SED \
14204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14206 -e 's:$: $lt_compiler_flag:'`
14207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14208 (eval "$lt_compile" 2>conftest.err)
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 if (exit $ac_status) && test -s "$ac_outfile"; then
14213 # The compiler can only warn and ignore the option if not recognized
14214 # So say no if there are warnings other than the usual output.
14215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14217 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14218 lt_cv_prog_compiler_pic_works_CXX=yes
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14225 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14227 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14228 case $lt_prog_compiler_pic_CXX in
14230 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14233 lt_prog_compiler_pic_CXX=
14234 lt_prog_compiler_can_build_shared_CXX=no
14244 # Check to make sure the static flag actually works.
14246 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14248 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14249 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14250 $as_echo_n "(cached) " >&6
14252 lt_cv_prog_compiler_static_works_CXX=no
14253 save_LDFLAGS="$LDFLAGS"
14254 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14255 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14257 # The linker can only warn and ignore the option if not recognized
14258 # So say no if there are warnings
14259 if test -s conftest.err; then
14260 # Append any errors to the config.log.
14261 cat conftest.err 1>&5
14262 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14264 if diff conftest.exp conftest.er2 >/dev/null; then
14265 lt_cv_prog_compiler_static_works_CXX=yes
14268 lt_cv_prog_compiler_static_works_CXX=yes
14272 LDFLAGS="$save_LDFLAGS"
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14276 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14278 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14281 lt_prog_compiler_static_CXX=
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14289 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14290 $as_echo_n "(cached) " >&6
14292 lt_cv_prog_compiler_c_o_CXX=no
14293 $RM -r conftest 2>/dev/null
14297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14299 lt_compiler_flag="-o out/conftest2.$ac_objext"
14300 # Insert the option either (1) after the last *FLAGS variable, or
14301 # (2) before a word containing "conftest.", or (3) at the end.
14302 # Note that $ac_compile itself does not contain backslashes and begins
14303 # with a dollar sign (not a hyphen), so the echo should work correctly.
14304 lt_compile=`echo "$ac_compile" | $SED \
14305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14307 -e 's:$: $lt_compiler_flag:'`
14308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14309 (eval "$lt_compile" 2>out/conftest.err)
14311 cat out/conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14315 # The compiler can only warn and ignore the option if not recognized
14316 # So say no if there are warnings
14317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14320 lt_cv_prog_compiler_c_o_CXX=yes
14325 # SGI C++ compiler will create directory out/ii_files/ for
14326 # template instantiation
14327 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14328 $RM out/* && rmdir out
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14335 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14340 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14341 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14342 $as_echo_n "(cached) " >&6
14344 lt_cv_prog_compiler_c_o_CXX=no
14345 $RM -r conftest 2>/dev/null
14349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14351 lt_compiler_flag="-o out/conftest2.$ac_objext"
14352 # Insert the option either (1) after the last *FLAGS variable, or
14353 # (2) before a word containing "conftest.", or (3) at the end.
14354 # Note that $ac_compile itself does not contain backslashes and begins
14355 # with a dollar sign (not a hyphen), so the echo should work correctly.
14356 lt_compile=`echo "$ac_compile" | $SED \
14357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14359 -e 's:$: $lt_compiler_flag:'`
14360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14361 (eval "$lt_compile" 2>out/conftest.err)
14363 cat out/conftest.err >&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14367 # The compiler can only warn and ignore the option if not recognized
14368 # So say no if there are warnings
14369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14372 lt_cv_prog_compiler_c_o_CXX=yes
14377 # SGI C++ compiler will create directory out/ii_files/ for
14378 # template instantiation
14379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14380 $RM out/* && rmdir out
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14387 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14392 hard_links="nottested"
14393 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14394 # do not overwrite the value of need_locks provided by the user
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14396 $as_echo_n "checking if we can lock with hard links... " >&6; }
14399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14401 ln conftest.a conftest.b 2>&5 || hard_links=no
14402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14404 $as_echo "$hard_links" >&6; }
14405 if test "$hard_links" = no; then
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14407 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14419 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14420 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14423 # If we're using GNU nm, then we don't want the "-C" option.
14424 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14425 # Also, AIX nm treats weak defined symbols like other global defined
14426 # symbols, whereas GNU nm marks them as "W".
14427 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14428 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14430 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'
14434 export_symbols_cmds_CXX="$ltdll_cmds"
14436 cygwin* | mingw* | cegcc*)
14437 case $cc_basename in
14439 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14442 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14443 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14447 linux* | k*bsd*-gnu | gnu*)
14448 link_all_deplibs_CXX=no
14451 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14456 $as_echo "$ld_shlibs_CXX" >&6; }
14457 test "$ld_shlibs_CXX" = no && can_build_shared=no
14459 with_gnu_ld_CXX=$with_gnu_ld
14467 # Do we need to explicitly link libc?
14469 case "x$archive_cmds_need_lc_CXX" in
14471 # Assume -lc should be added
14472 archive_cmds_need_lc_CXX=yes
14474 if test "$enable_shared" = yes && test "$GCC" = yes; then
14475 case $archive_cmds_CXX in
14477 # FIXME: we may have to deal with multi-command sequences.
14480 # Test whether the compiler implicitly links with -lc since on some
14481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14482 # to ld, don't add -lc before -lgcc.
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14485 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14486 $as_echo_n "(cached) " >&6
14489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14492 (eval $ac_compile) 2>&5
14494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14495 test $ac_status = 0; } 2>conftest.err; then
14498 libobjs=conftest.$ac_objext
14500 wl=$lt_prog_compiler_wl_CXX
14501 pic_flag=$lt_prog_compiler_pic_CXX
14507 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14508 allow_undefined_flag_CXX=
14509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14510 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14513 test $ac_status = 0; }
14515 lt_cv_archive_cmds_need_lc_CXX=no
14517 lt_cv_archive_cmds_need_lc_CXX=yes
14519 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14521 cat conftest.err 1>&5
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14527 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14528 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14597 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14599 library_names_spec=
14600 libname_spec='lib$name'
14604 postuninstall_cmds=
14608 shlibpath_overrides_runpath=unknown
14610 dynamic_linker="$host_os ld.so"
14611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14612 need_lib_prefix=unknown
14613 hardcode_into_libs=no
14615 # when you set need_version to no, make sure it does not cause -set_version
14616 # flags to be left without arguments
14617 need_version=unknown
14621 version_type=linux # correct to gnu/linux during the next big refactor
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14623 shlibpath_var=LIBPATH
14625 # AIX 3 has no versioning support, so we append a major version to the name.
14626 soname_spec='${libname}${release}${shared_ext}$major'
14630 version_type=linux # correct to gnu/linux during the next big refactor
14633 hardcode_into_libs=yes
14634 if test "$host_cpu" = ia64; then
14635 # AIX 5 supports IA64
14636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14637 shlibpath_var=LD_LIBRARY_PATH
14639 # With GCC up to 2.95.x, collect2 would create an import file
14640 # for dependence libraries. The import file would start with
14641 # the line `#! .'. This would cause the generated library to
14642 # depend on `.', always an invalid library. This was fixed in
14643 # development snapshots of GCC prior to 3.0.
14645 aix4 | aix4.[01] | aix4.[01].*)
14646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14648 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14651 can_build_shared=no
14655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14656 # soname into executable. Probably we can add versioning support to
14657 # collect2, so additional links can be useful in future.
14658 if test "$aix_use_runtimelinking" = yes; then
14659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14660 # instead of lib<name>.a to let people know that these are not
14661 # typical AIX shared libraries.
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14664 # We preserve .a as extension for shared libraries through AIX4.2
14665 # and later when we are not doing run time linking.
14666 library_names_spec='${libname}${release}.a $libname.a'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14669 shlibpath_var=LIBPATH
14676 # Since July 2007 AmigaOS4 officially supports .so libraries.
14677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14681 library_names_spec='$libname.ixlibrary $libname.a'
14682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14683 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14689 library_names_spec='${libname}${shared_ext}'
14690 dynamic_linker="$host_os ld.so"
14691 shlibpath_var=LIBRARY_PATH
14695 version_type=linux # correct to gnu/linux during the next big refactor
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698 soname_spec='${libname}${release}${shared_ext}$major'
14699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14700 shlibpath_var=LD_LIBRARY_PATH
14701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14703 # the default ld.so.conf also contains /usr/contrib/lib and
14704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14705 # libtool to hard-code these into programs
14708 cygwin* | mingw* | pw32* | cegcc*)
14709 version_type=windows
14714 case $GCC,$cc_basename in
14717 library_names_spec='$libname.dll.a'
14718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14719 postinstall_cmds='base_file=`basename \${file}`~
14720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14721 dldir=$destdir/`dirname \$dlpath`~
14722 test -d \$dldir || mkdir -p \$dldir~
14723 $install_prog $dir/$dlname \$dldir/$dlname~
14724 chmod a+x \$dldir/$dlname~
14725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14729 dlpath=$dir/\$dldll~
14731 shlibpath_overrides_runpath=yes
14735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14740 # MinGW DLLs use traditional 'lib' prefix
14741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14744 # pw32 DLLs use 'pw' prefix rather than 'lib'
14745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14748 dynamic_linker='Win32 ld.exe'
14753 libname_spec='$name'
14754 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14755 library_names_spec='${libname}.dll.lib'
14759 sys_lib_search_path_spec=
14762 for lt_path in $LIB
14765 # Let DOS variable expansion print the short 8.3 style file name.
14766 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14767 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14770 # Convert to MSYS style.
14771 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14774 # Convert to unix form, then to dos form, then back to unix form
14775 # but this time dos style (no spaces!) so that the unix form looks
14776 # like /cygdrive/c/PROGRA~1:/cygdr...
14777 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14778 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14779 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14782 sys_lib_search_path_spec="$LIB"
14783 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14784 # It is most probably a Windows format PATH.
14785 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14787 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14789 # FIXME: find the short name or the path components, as spaces are
14790 # common. (e.g. "Program Files" -> "PROGRA~1")
14794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14795 postinstall_cmds='base_file=`basename \${file}`~
14796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14797 dldir=$destdir/`dirname \$dlpath`~
14798 test -d \$dldir || mkdir -p \$dldir~
14799 $install_prog $dir/$dlname \$dldir/$dlname'
14800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14801 dlpath=$dir/\$dldll~
14803 shlibpath_overrides_runpath=yes
14804 dynamic_linker='Win32 link.exe'
14808 # Assume MSVC wrapper
14809 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14810 dynamic_linker='Win32 ld.exe'
14813 # FIXME: first we should search . and the directory the executable is in
14817 darwin* | rhapsody*)
14818 dynamic_linker="$host_os dyld"
14819 version_type=darwin
14822 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14823 soname_spec='${libname}${release}${major}$shared_ext'
14824 shlibpath_overrides_runpath=yes
14825 shlibpath_var=DYLD_LIBRARY_PATH
14826 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14832 version_type=linux # correct to gnu/linux during the next big refactor
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14836 soname_spec='${libname}${release}${shared_ext}$major'
14837 shlibpath_var=LD_LIBRARY_PATH
14840 freebsd* | dragonfly*)
14841 # DragonFly does not have aout. When/if they implement a new
14842 # versioning mechanism, adjust this.
14843 if test -x /usr/bin/objformat; then
14844 objformat=`/usr/bin/objformat`
14847 freebsd[23].*) objformat=aout ;;
14848 *) objformat=elf ;;
14851 version_type=freebsd-$objformat
14852 case $version_type in
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14863 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14868 freebsd3.[01]* | freebsdelf3.[01]*)
14869 shlibpath_overrides_runpath=yes
14870 hardcode_into_libs=yes
14872 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14873 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14874 shlibpath_overrides_runpath=no
14875 hardcode_into_libs=yes
14877 *) # from 4.6 on, and DragonFly
14878 shlibpath_overrides_runpath=yes
14879 hardcode_into_libs=yes
14885 version_type=linux # correct to gnu/linux during the next big refactor
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14889 soname_spec='${libname}${release}${shared_ext}$major'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 shlibpath_overrides_runpath=no
14892 hardcode_into_libs=yes
14896 version_type=linux # correct to gnu/linux during the next big refactor
14899 dynamic_linker="$host_os runtime_loader"
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14901 soname_spec='${libname}${release}${shared_ext}$major'
14902 shlibpath_var=LIBRARY_PATH
14903 shlibpath_overrides_runpath=yes
14904 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14905 hardcode_into_libs=yes
14908 hpux9* | hpux10* | hpux11*)
14909 # Give a soname corresponding to the major version so that dld.sl refuses to
14910 # link against other versions.
14917 hardcode_into_libs=yes
14918 dynamic_linker="$host_os dld.so"
14919 shlibpath_var=LD_LIBRARY_PATH
14920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922 soname_spec='${libname}${release}${shared_ext}$major'
14923 if test "X$HPUX_IA64_MODE" = X32; then
14924 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14926 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14932 hardcode_into_libs=yes
14933 dynamic_linker="$host_os dld.sl"
14934 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14943 dynamic_linker="$host_os dld.sl"
14944 shlibpath_var=SHLIB_PATH
14945 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947 soname_spec='${libname}${release}${shared_ext}$major'
14950 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14951 postinstall_cmds='chmod 555 $lib'
14952 # or fails outright, so override atomically:
14953 install_override_mode=555
14957 version_type=linux # correct to gnu/linux during the next big refactor
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14963 shlibpath_var=LD_LIBRARY_PATH
14964 shlibpath_overrides_runpath=no
14965 hardcode_into_libs=yes
14968 irix5* | irix6* | nonstopux*)
14970 nonstopux*) version_type=nonstopux ;;
14972 if test "$lt_cv_prog_gnu_ld" = yes; then
14973 version_type=linux # correct to gnu/linux during the next big refactor
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14983 irix5* | nonstopux*)
14984 libsuff= shlibsuff=
14987 case $LD in # libtool.m4 will add one of these switches to LD
14988 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14989 libsuff= shlibsuff= libmagic=32-bit;;
14990 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14991 libsuff=32 shlibsuff=N32 libmagic=N32;;
14992 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14993 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14994 *) libsuff= shlibsuff= libmagic=never-match;;
14998 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14999 shlibpath_overrides_runpath=no
15000 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15001 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15002 hardcode_into_libs=yes
15005 # No shared lib support for Linux oldld, aout, or coff.
15006 linux*oldld* | linux*aout* | linux*coff*)
15010 # This must be glibc/ELF.
15011 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15012 version_type=linux # correct to gnu/linux during the next big refactor
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 soname_spec='${libname}${release}${shared_ext}$major'
15017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15018 shlibpath_var=LD_LIBRARY_PATH
15019 shlibpath_overrides_runpath=no
15021 # Some binutils ld are patched to set DT_RUNPATH
15022 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15023 $as_echo_n "(cached) " >&6
15025 lt_cv_shlibpath_overrides_runpath=no
15026 save_LDFLAGS=$LDFLAGS
15027 save_libdir=$libdir
15028 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15029 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15041 if ac_fn_cxx_try_link "$LINENO"; then :
15042 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15043 lt_cv_shlibpath_overrides_runpath=yes
15046 rm -f core conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15048 LDFLAGS=$save_LDFLAGS
15049 libdir=$save_libdir
15053 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15055 # This implies no fast_install, which is unacceptable.
15056 # Some rework will be needed to allow for fast_install
15057 # before this can be enabled.
15058 hardcode_into_libs=yes
15060 # Append ld.so.conf contents to the search path
15061 if test -f /etc/ld.so.conf; then
15062 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15063 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15066 # We used to test for /lib/ld.so.1 and disable shared libraries on
15067 # powerpc, because MkLinux only supported shared libraries with the
15068 # GNU dynamic linker. Since this was broken with cross compilers,
15069 # most powerpc-linux boxes support dynamic linking these days and
15070 # people can always --disable-shared, the test was removed, and we
15071 # assume the GNU/Linux dynamic linker is in use.
15072 dynamic_linker='GNU/Linux ld.so'
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15080 soname_spec='${libname}${release}${shared_ext}$major'
15081 shlibpath_var=LD_LIBRARY_PATH
15082 shlibpath_overrides_runpath=no
15083 hardcode_into_libs=yes
15084 dynamic_linker='NetBSD ld.elf_so'
15091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15094 dynamic_linker='NetBSD (a.out) ld.so'
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 dynamic_linker='NetBSD ld.elf_so'
15100 shlibpath_var=LD_LIBRARY_PATH
15101 shlibpath_overrides_runpath=yes
15102 hardcode_into_libs=yes
15106 version_type=linux # correct to gnu/linux during the next big refactor
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 shlibpath_overrides_runpath=yes
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15117 soname_spec='${libname}${release}${shared_ext}$major'
15118 shlibpath_var=LD_LIBRARY_PATH
15119 shlibpath_overrides_runpath=no
15120 hardcode_into_libs=yes
15121 dynamic_linker='ldqnx.so'
15126 sys_lib_dlsearch_path_spec="/usr/lib"
15128 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15130 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15131 *) need_version=no ;;
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15135 shlibpath_var=LD_LIBRARY_PATH
15136 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15138 openbsd2.[89] | openbsd2.[89].*)
15139 shlibpath_overrides_runpath=no
15142 shlibpath_overrides_runpath=yes
15146 shlibpath_overrides_runpath=yes
15151 libname_spec='$name'
15154 library_names_spec='$libname${shared_ext} $libname.a'
15155 dynamic_linker='OS/2 ld.exe'
15156 shlibpath_var=LIBPATH
15159 osf3* | osf4* | osf5*)
15163 soname_spec='${libname}${release}${shared_ext}$major'
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15167 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15175 version_type=linux # correct to gnu/linux during the next big refactor
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 shlibpath_var=LD_LIBRARY_PATH
15181 shlibpath_overrides_runpath=yes
15182 hardcode_into_libs=yes
15183 # ldd complains unless libraries are executable
15184 postinstall_cmds='chmod +x $lib'
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15190 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15191 shlibpath_var=LD_LIBRARY_PATH
15192 shlibpath_overrides_runpath=yes
15193 if test "$with_gnu_ld" = yes; then
15200 version_type=linux # correct to gnu/linux during the next big refactor
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202 soname_spec='${libname}${release}${shared_ext}$major'
15203 shlibpath_var=LD_LIBRARY_PATH
15204 case $host_vendor in
15206 shlibpath_overrides_runpath=no
15208 runpath_var=LD_RUN_PATH
15216 shlibpath_overrides_runpath=no
15217 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15223 if test -d /usr/nec ;then
15224 version_type=linux # correct to gnu/linux during the next big refactor
15225 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15226 soname_spec='$libname${shared_ext}.$major'
15227 shlibpath_var=LD_LIBRARY_PATH
15231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15232 version_type=freebsd-elf
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 shlibpath_overrides_runpath=yes
15239 hardcode_into_libs=yes
15240 if test "$with_gnu_ld" = yes; then
15241 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15243 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15246 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15250 sys_lib_dlsearch_path_spec='/usr/lib'
15254 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15255 version_type=linux # correct to gnu/linux during the next big refactor
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 shlibpath_var=LD_LIBRARY_PATH
15260 shlibpath_overrides_runpath=no
15261 hardcode_into_libs=yes
15265 version_type=linux # correct to gnu/linux during the next big refactor
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15276 $as_echo "$dynamic_linker" >&6; }
15277 test "$dynamic_linker" = no && can_build_shared=no
15279 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15280 if test "$GCC" = yes; then
15281 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15284 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15285 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15287 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15288 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15330 hardcode_action_CXX=
15331 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15332 test -n "$runpath_var_CXX" ||
15333 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15335 # We can hardcode non-existent directories.
15336 if test "$hardcode_direct_CXX" != no &&
15337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15338 # have to relink, otherwise we might link with an installed library
15339 # when we should be linking with a yet-to-be-installed one
15340 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15341 test "$hardcode_minus_L_CXX" != no; then
15342 # Linking always hardcodes the temporary library directory.
15343 hardcode_action_CXX=relink
15345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15346 hardcode_action_CXX=immediate
15349 # We cannot hardcode anything, or else we can only hardcode existing
15351 hardcode_action_CXX=unsupported
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15354 $as_echo "$hardcode_action_CXX" >&6; }
15356 if test "$hardcode_action_CXX" = relink ||
15357 test "$inherit_rpath_CXX" = yes; then
15358 # Fast installation is not supported
15359 enable_fast_install=no
15360 elif test "$shlibpath_overrides_runpath" = yes ||
15361 test "$enable_shared" = no; then
15362 # Fast installation is not necessary
15363 enable_fast_install=needless
15372 fi # test -n "$compiler"
15375 CFLAGS=$lt_save_CFLAGS
15379 with_gnu_ld=$lt_save_with_gnu_ld
15380 lt_cv_path_LDCXX=$lt_cv_path_LD
15381 lt_cv_path_LD=$lt_save_path_LD
15382 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15383 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15384 fi # test "$_lt_caught_CXX_error" != yes
15387 ac_cpp='$CXXCPP $CPPFLAGS'
15388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15406 ac_config_commands="$ac_config_commands libtool"
15411 # Only expand once:
15416 # Check whether some low-level functions/files are available
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15419 $as_echo_n "checking for ANSI C header files... " >&6; }
15420 if ${ac_cv_header_stdc+:} false; then :
15421 $as_echo_n "(cached) " >&6
15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h. */
15425 #include <stdlib.h>
15426 #include <stdarg.h>
15427 #include <string.h>
15438 if ac_fn_cxx_try_compile "$LINENO"; then :
15439 ac_cv_header_stdc=yes
15441 ac_cv_header_stdc=no
15443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445 if test $ac_cv_header_stdc = yes; then
15446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449 #include <string.h>
15452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15453 $EGREP "memchr" >/dev/null 2>&1; then :
15456 ac_cv_header_stdc=no
15462 if test $ac_cv_header_stdc = yes; then
15463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15466 #include <stdlib.h>
15469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15470 $EGREP "free" >/dev/null 2>&1; then :
15473 ac_cv_header_stdc=no
15479 if test $ac_cv_header_stdc = yes; then
15480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15481 if test "$cross_compiling" = yes; then :
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15487 #include <stdlib.h>
15488 #if ((' ' & 0x0FF) == 0x020)
15489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15492 # define ISLOWER(c) \
15493 (('a' <= (c) && (c) <= 'i') \
15494 || ('j' <= (c) && (c) <= 'r') \
15495 || ('s' <= (c) && (c) <= 'z'))
15496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15504 for (i = 0; i < 256; i++)
15505 if (XOR (islower (i), ISLOWER (i))
15506 || toupper (i) != TOUPPER (i))
15511 if ac_fn_cxx_try_run "$LINENO"; then :
15514 ac_cv_header_stdc=no
15516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15517 conftest.$ac_objext conftest.beam conftest.$ac_ext
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15523 $as_echo "$ac_cv_header_stdc" >&6; }
15524 if test $ac_cv_header_stdc = yes; then
15526 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15531 # These are tested for by AC_HEADER_STDC, but I check again to set the var
15532 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15533 if test "x$ac_cv_header_stdint_h" = xyes; then :
15534 ac_cv_have_stdint_h=1
15536 ac_cv_have_stdint_h=0
15540 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15541 if test "x$ac_cv_header_sys_types_h" = xyes; then :
15542 ac_cv_have_systypes_h=1
15544 ac_cv_have_systypes_h=0
15548 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15549 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15550 ac_cv_have_inttypes_h=1
15552 ac_cv_have_inttypes_h=0
15556 for ac_header in unistd.h
15558 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15559 if test "x$ac_cv_header_unistd_h" = xyes; then :
15560 cat >>confdefs.h <<_ACEOF
15561 #define HAVE_UNISTD_H 1
15563 ac_cv_have_unistd_h=1
15565 ac_cv_have_unistd_h=0
15570 for ac_header in syscall.h
15572 ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
15573 if test "x$ac_cv_header_syscall_h" = xyes; then :
15574 cat >>confdefs.h <<_ACEOF
15575 #define HAVE_SYSCALL_H 1
15582 for ac_header in sys/syscall.h
15584 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
15585 if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
15586 cat >>confdefs.h <<_ACEOF
15587 #define HAVE_SYS_SYSCALL_H 1
15594 # For backtrace with glibc.
15595 for ac_header in execinfo.h
15597 ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
15598 if test "x$ac_cv_header_execinfo_h" = xyes; then :
15599 cat >>confdefs.h <<_ACEOF
15600 #define HAVE_EXECINFO_H 1
15607 # For backtrace with libunwind.
15608 for ac_header in libunwind.h
15610 ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
15611 if test "x$ac_cv_header_libunwind_h" = xyes; then :
15612 cat >>confdefs.h <<_ACEOF
15613 #define HAVE_LIBUNWIND_H 1
15615 ac_cv_have_libunwind_h=1
15617 ac_cv_have_libunwind_h=0
15622 for ac_header in ucontext.h
15624 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
15625 if test "x$ac_cv_header_ucontext_h" = xyes; then :
15626 cat >>confdefs.h <<_ACEOF
15627 #define HAVE_UCONTEXT_H 1
15634 for ac_header in sys/utsname.h
15636 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
15637 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
15638 cat >>confdefs.h <<_ACEOF
15639 #define HAVE_SYS_UTSNAME_H 1
15646 for ac_header in pwd.h
15648 ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15649 if test "x$ac_cv_header_pwd_h" = xyes; then :
15650 cat >>confdefs.h <<_ACEOF
15651 #define HAVE_PWD_H 1
15658 for ac_header in syslog.h
15660 ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15661 if test "x$ac_cv_header_syslog_h" = xyes; then :
15662 cat >>confdefs.h <<_ACEOF
15663 #define HAVE_SYSLOG_H 1
15670 for ac_header in sys/time.h
15672 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15673 if test "x$ac_cv_header_sys_time_h" = xyes; then :
15674 cat >>confdefs.h <<_ACEOF
15675 #define HAVE_SYS_TIME_H 1
15682 for ac_header in glob.h
15684 ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
15685 if test "x$ac_cv_header_glob_h" = xyes; then :
15686 cat >>confdefs.h <<_ACEOF
15687 #define HAVE_GLOB_H 1
15694 # For backtrace with gcc.
15695 for ac_header in unwind.h
15697 ac_fn_cxx_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
15698 if test "x$ac_cv_header_unwind_h" = xyes; then :
15699 cat >>confdefs.h <<_ACEOF
15700 #define HAVE_UNWIND_H 1
15708 # The cast to long int works around a bug in the HP C Compiler
15709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15711 # This bug is HP SR number 8606223364.
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15713 $as_echo_n "checking size of void *... " >&6; }
15714 if ${ac_cv_sizeof_void_p+:} false; then :
15715 $as_echo_n "(cached) " >&6
15717 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15720 if test "$ac_cv_type_void_p" = yes; then
15721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15723 as_fn_error 77 "cannot compute sizeof (void *)
15724 See \`config.log' for more details" "$LINENO" 5; }
15726 ac_cv_sizeof_void_p=0
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15732 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15736 cat >>confdefs.h <<_ACEOF
15737 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15742 # These are the types I need. We look for them in either stdint.h,
15743 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15744 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15745 if test "x$ac_cv_type_uint16_t" = xyes; then :
15746 ac_cv_have_uint16_t=1
15748 ac_cv_have_uint16_t=0
15751 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15752 if test "x$ac_cv_type_u_int16_t" = xyes; then :
15753 ac_cv_have_u_int16_t=1
15755 ac_cv_have_u_int16_t=0
15758 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15759 if test "x$ac_cv_type___uint16" = xyes; then :
15760 ac_cv_have___uint16=1
15762 ac_cv_have___uint16=0
15766 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15767 if test "x$ac_cv_func_sigaltstack" = xyes; then :
15769 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15773 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15774 if test "x$ac_cv_func_dladdr" = xyes; then :
15776 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15780 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15781 if test "x$ac_cv_func_fcntl" = xyes; then :
15783 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15790 $as_echo_n "checking for __attribute__... " >&6; }
15791 if ${ac_cv___attribute__+:} false; then :
15792 $as_echo_n "(cached) " >&6
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 #include <stdlib.h>
15798 static void foo(void) __attribute__ ((unused));
15799 void foo(void) { exit(1); }
15808 if ac_fn_cxx_try_compile "$LINENO"; then :
15809 ac_cv___attribute__=yes
15811 ac_cv___attribute__=no
15814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817 if test "$ac_cv___attribute__" = "yes"; then
15819 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15823 $as_echo "$ac_cv___attribute__" >&6; }
15825 # We only care about these two attributes.
15826 if test x"$ac_cv___attribute__" = x"yes"; then
15827 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15828 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15830 ac_cv___attribute___noreturn=
15831 ac_cv___attribute___printf_4_5=
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15836 $as_echo_n "checking for __builtin_expect... " >&6; }
15837 if ${ac_cv___builtin_expect+:} false; then :
15838 $as_echo_n "(cached) " >&6
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15852 if ac_fn_cxx_try_compile "$LINENO"; then :
15853 ac_cv___builtin_expect=yes
15855 ac_cv___builtin_expect=no
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 if test "$ac_cv___builtin_expect" = "yes"; then
15863 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15867 $as_echo "$ac_cv___builtin_expect" >&6; }
15869 if test x"$ac_cv___builtin_expect" = x"yes"; then
15870 ac_cv_have___builtin_expect=1
15872 ac_cv_have___builtin_expect=0
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15877 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15878 if ${ac_cv___sync_val_compare_and_swap+:} false; then :
15879 $as_echo_n "(cached) " >&6
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15888 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15893 if ac_fn_cxx_try_link "$LINENO"; then :
15894 ac_cv___sync_val_compare_and_swap=yes
15896 ac_cv___sync_val_compare_and_swap=no
15899 rm -f core conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
15903 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15905 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15909 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15912 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15913 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15914 # Check whether --enable-frame_pointers was given.
15915 if test "${enable_frame_pointers+set}" = set; then :
15916 enableval=$enable_frame_pointers;
15918 enable_frame_pointers=no
15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h. */
15927 return __x86_64__ == 1 ? 0 : 1
15932 if ac_fn_cxx_try_compile "$LINENO"; then :
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938 if test "$enable_frame_pointers" = yes; then
15939 ENABLE_FRAME_POINTERS_TRUE=
15940 ENABLE_FRAME_POINTERS_FALSE='#'
15942 ENABLE_FRAME_POINTERS_TRUE='#'
15943 ENABLE_FRAME_POINTERS_FALSE=
15946 if test "$is_x86_64" = yes; then
15955 # Check whether --enable-rtti was given.
15956 if test "${enable_rtti+set}" = set; then :
15957 enableval=$enable_rtti;
15960 if test x"$enable_rtti" = x"no"; then
15962 DISABLE_RTTI_FALSE='#'
15964 DISABLE_RTTI_TRUE='#'
15965 DISABLE_RTTI_FALSE=
15968 if test x"$enable_rtti" = x"no"; then
15970 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
15974 # Some of the code in this directory depends on pthreads
15979 ac_cpp='$CPP $CPPFLAGS'
15980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15986 # We used to check for pthread.h first, but this fails if pthread.h
15987 # requires special compiler flags (e.g. on True64 or Sequent).
15988 # It gets checked for in the link test anyway.
15990 # First of all, check if the user has set any of the PTHREAD_LIBS,
15991 # etcetera environment variables, and if threads linking works using
15993 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15994 save_CFLAGS="$CFLAGS"
15995 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15997 LIBS="$PTHREAD_LIBS $LIBS"
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15999 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16003 /* Override any GCC internal prototype to avoid an error.
16004 Use char because int might match the return type of a GCC
16005 builtin and then its argument prototype would still apply. */
16009 char pthread_join ();
16013 return pthread_join ();
16018 if ac_fn_c_try_link "$LINENO"; then :
16021 rm -f core conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16024 $as_echo "$acx_pthread_ok" >&6; }
16025 if test x"$acx_pthread_ok" = xno; then
16030 CFLAGS="$save_CFLAGS"
16033 # We must check for the threads library under a number of different
16034 # names; the ordering is very important because some systems
16035 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16036 # libraries is broken (non-POSIX).
16038 # Create a list of thread flags to try. Items starting with a "-" are
16039 # C compiler flags, and other items are library names, except for "none"
16040 # which indicates that we try without any flags at all, and "pthread-config"
16041 # which is a program returning the flags for the Pth emulation library.
16043 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16045 # The ordering *is* (sometimes) important. Some notes on the
16046 # individual items follow:
16048 # pthreads: AIX (must check this before -lpthread)
16049 # none: in case threads are in libc; should be tried before -Kthread and
16050 # other compiler flags to prevent continual compiler warnings
16051 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16052 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16053 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16054 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16055 # -pthreads: Solaris/gcc
16056 # -mthreads: Mingw32/gcc, Lynx/gcc
16057 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16058 # doesn't hurt to check since this sometimes defines pthreads too;
16059 # also defines -D_REENTRANT)
16060 # ... -mt is also the pthreads flag for HP/aCC
16061 # pthread: Linux, etcetera
16062 # --thread-safe: KAI C++
16063 # pthread-config: use pthread-config program (for GNU Pth library)
16065 case "${host_cpu}-${host_os}" in
16068 # On Solaris (at least, for some versions), libc contains stubbed
16069 # (non-functional) versions of the pthreads routines, so link-based
16070 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16071 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16072 # a function called by this macro, so we could check for that, but
16073 # who knows whether they'll stub that too in a future libc.) So,
16074 # we'll just look for -pthreads and -lpthread first:
16076 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16080 if test x"$acx_pthread_ok" = xno; then
16081 for flag in $acx_pthread_flags; do
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16086 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16091 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16092 PTHREAD_CFLAGS="$flag"
16096 # Extract the first word of "pthread-config", so it can be a program name with args.
16097 set dummy pthread-config; ac_word=$2
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16099 $as_echo_n "checking for $ac_word... " >&6; }
16100 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16101 $as_echo_n "(cached) " >&6
16103 if test -n "$acx_pthread_config"; then
16104 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16107 for as_dir in $PATH
16110 test -z "$as_dir" && as_dir=.
16111 for ac_exec_ext in '' $ac_executable_extensions; do
16112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16113 ac_cv_prog_acx_pthread_config="yes"
16114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16121 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16124 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16125 if test -n "$acx_pthread_config"; then
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16127 $as_echo "$acx_pthread_config" >&6; }
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16130 $as_echo "no" >&6; }
16134 if test x"$acx_pthread_config" = xno; then continue; fi
16135 PTHREAD_CFLAGS="`pthread-config --cflags`"
16136 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16141 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16142 PTHREAD_LIBS="-l$flag"
16147 save_CFLAGS="$CFLAGS"
16148 LIBS="$PTHREAD_LIBS $LIBS"
16149 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16151 # Check for various functions. We must include pthread.h,
16152 # since some functions may be macros. (On the Sequent, we
16153 # need a special flag -Kthread to make this header compile.)
16154 # We check for pthread_join because it is in -lpthread on IRIX
16155 # while pthread_create is in libc. We check for pthread_attr_init
16156 # due to DEC craziness with -lpthreads. We check for
16157 # pthread_cleanup_push because it is one of the few pthread
16158 # functions on Solaris that doesn't have a non-functional libc stub.
16159 # We try pthread_create on general principles.
16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161 /* end confdefs.h. */
16162 #include <pthread.h>
16166 pthread_t th; pthread_join(th, 0);
16167 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16168 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16173 if ac_fn_c_try_link "$LINENO"; then :
16176 rm -f core conftest.err conftest.$ac_objext \
16177 conftest$ac_exeext conftest.$ac_ext
16180 CFLAGS="$save_CFLAGS"
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16183 $as_echo "$acx_pthread_ok" >&6; }
16184 if test "x$acx_pthread_ok" = xyes; then
16193 # Various other checks:
16194 if test "x$acx_pthread_ok" = xyes; then
16196 LIBS="$PTHREAD_LIBS $LIBS"
16197 save_CFLAGS="$CFLAGS"
16198 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16200 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16202 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16204 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16207 #include <pthread.h>
16211 int attr=$attr; return attr;
16216 if ac_fn_c_try_link "$LINENO"; then :
16217 attr_name=$attr; break
16219 rm -f core conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16223 $as_echo "$attr_name" >&6; }
16224 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16226 cat >>confdefs.h <<_ACEOF
16227 #define PTHREAD_CREATE_JOINABLE $attr_name
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16233 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16235 case "${host_cpu}-${host_os}" in
16236 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16237 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16240 $as_echo "${flag}" >&6; }
16241 if test "x$flag" != xno; then
16242 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16246 CFLAGS="$save_CFLAGS"
16247 # More AIX lossage: must compile with xlc_r or cc_r
16248 if test x"$GCC" != xyes; then
16249 for ac_prog in xlc_r cc_r
16251 # Extract the first word of "$ac_prog", so it can be a program name with args.
16252 set dummy $ac_prog; ac_word=$2
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16254 $as_echo_n "checking for $ac_word... " >&6; }
16255 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16256 $as_echo_n "(cached) " >&6
16258 if test -n "$PTHREAD_CC"; then
16259 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16262 for as_dir in $PATH
16265 test -z "$as_dir" && as_dir=.
16266 for ac_exec_ext in '' $ac_executable_extensions; do
16267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16268 ac_cv_prog_PTHREAD_CC="$ac_prog"
16269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16278 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16279 if test -n "$PTHREAD_CC"; then
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16281 $as_echo "$PTHREAD_CC" >&6; }
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 $as_echo "no" >&6; }
16288 test -n "$PTHREAD_CC" && break
16290 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16296 # The next part tries to detect GCC inconsistency with -shared on some
16297 # architectures and systems. The problem is that in certain
16298 # configurations, when -shared is specified, GCC "forgets" to
16299 # internally use various flags which are still necessary.
16302 # Prepare the flags
16304 save_CFLAGS="$CFLAGS"
16308 # Try with the flags determined by the earlier checks.
16310 # -Wl,-z,defs forces link-time symbol resolution, so that the
16311 # linking checks with -shared actually have any value
16313 # FIXME: -fPIC is required for -shared on many architectures,
16314 # so we specify it here, but the right way would probably be to
16315 # properly detect whether it is actually required.
16316 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16317 LIBS="$PTHREAD_LIBS $LIBS"
16320 # In order not to create several levels of indentation, we test
16321 # the value of "$done" until we find the cure or run out of ideas.
16324 # First, make sure the CFLAGS we added are actually accepted by our
16325 # compiler. If not (and OS X's ld, for instance, does not accept -z),
16326 # then we can't do this test.
16327 if test x"$done" = xno; then
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16329 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16331 /* end confdefs.h. */
16341 if ac_fn_c_try_link "$LINENO"; then :
16346 rm -f core conftest.err conftest.$ac_objext \
16347 conftest$ac_exeext conftest.$ac_ext
16349 if test "x$done" = xyes ; then
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16351 $as_echo "no" >&6; }
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16354 $as_echo "yes" >&6; }
16358 if test x"$done" = xno; then
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16360 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h. */
16363 #include <pthread.h>
16367 pthread_t th; pthread_join(th, 0);
16368 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16369 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16374 if ac_fn_c_try_link "$LINENO"; then :
16377 rm -f core conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext conftest.$ac_ext
16380 if test "x$done" = xyes; then
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16382 $as_echo "yes" >&6; }
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16385 $as_echo "no" >&6; }
16390 # Linux gcc on some architectures such as mips/mipsel forgets
16393 if test x"$done" = xno; then
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16395 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
16396 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16399 #include <pthread.h>
16403 pthread_t th; pthread_join(th, 0);
16404 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16405 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16410 if ac_fn_c_try_link "$LINENO"; then :
16413 rm -f core conftest.err conftest.$ac_objext \
16414 conftest$ac_exeext conftest.$ac_ext
16416 if test "x$done" = xyes; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16418 $as_echo "yes" >&6; }
16419 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16422 $as_echo "no" >&6; }
16426 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16428 if test x"$done" = xno; then
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16430 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
16431 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16434 #include <pthread.h>
16438 pthread_t th; pthread_join(th, 0);
16439 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16440 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16445 if ac_fn_c_try_link "$LINENO"; then :
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16451 if test "x$done" = xyes; then
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16453 $as_echo "yes" >&6; }
16454 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16457 $as_echo "no" >&6; }
16460 if test x"$done" = xno; then
16461 # OK, we have run out of ideas
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16463 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16465 # so it's not safe to assume that we may use pthreads
16469 CFLAGS="$save_CFLAGS"
16480 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16481 if test x"$acx_pthread_ok" = xyes; then
16483 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16491 ac_cpp='$CXXCPP $CPPFLAGS'
16492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16497 if test x"$acx_pthread_ok" = x"yes"; then
16498 # To make libglog depend on libpthread on Linux, we need to add
16499 # -lpthread in addition to -pthread.
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
16501 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
16502 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
16503 $as_echo_n "(cached) " >&6
16505 ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lpthread $LIBS"
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16510 /* Override any GCC internal prototype to avoid an error.
16511 Use char because int might match the return type of a GCC
16512 builtin and then its argument prototype would still apply. */
16516 char pthread_self ();
16520 return pthread_self ();
16525 if ac_fn_cxx_try_link "$LINENO"; then :
16526 ac_cv_lib_pthread_pthread_self=yes
16528 ac_cv_lib_pthread_pthread_self=no
16530 rm -f core conftest.err conftest.$ac_objext \
16531 conftest$ac_exeext conftest.$ac_ext
16532 LIBS=$ac_check_lib_save_LIBS
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
16535 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
16536 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
16537 cat >>confdefs.h <<_ACEOF
16538 #define HAVE_LIBPTHREAD 1
16541 LIBS="-lpthread $LIBS"
16547 # Check if there is google-gflags library installed.
16548 SAVE_CFLAGS="$CFLAGS"
16551 # Check whether --with-gflags was given.
16552 if test "${with_gflags+set}" = set; then :
16553 withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
16554 GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
16555 CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
16556 LIBS="$LIBS $GFLAGS_LIBS"
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
16561 $as_echo_n "checking for main in -lgflags... " >&6; }
16562 if ${ac_cv_lib_gflags_main+:} false; then :
16563 $as_echo_n "(cached) " >&6
16565 ac_check_lib_save_LIBS=$LIBS
16566 LIBS="-lgflags $LIBS"
16567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h. */
16579 if ac_fn_cxx_try_link "$LINENO"; then :
16580 ac_cv_lib_gflags_main=yes
16582 ac_cv_lib_gflags_main=no
16584 rm -f core conftest.err conftest.$ac_objext \
16585 conftest$ac_exeext conftest.$ac_ext
16586 LIBS=$ac_check_lib_save_LIBS
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
16589 $as_echo "$ac_cv_lib_gflags_main" >&6; }
16590 if test "x$ac_cv_lib_gflags_main" = xyes; then :
16591 ac_cv_have_libgflags=1
16593 ac_cv_have_libgflags=0
16596 if test x"$ac_cv_have_libgflags" = x"1"; then
16598 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
16600 if test x"$GFLAGS_LIBS" = x""; then
16601 GFLAGS_LIBS="-lgflags"
16607 CFLAGS="$SAVE_CFLAGS"
16610 # TODO(hamaji): Use official m4 macros provided by testing libraries
16611 # once the m4 macro of Google Mocking becomes ready.
16612 # Check if there is Google Test library installed.
16613 # Extract the first word of "gtest-config", so it can be a program name with args.
16614 set dummy gtest-config; ac_word=$2
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16616 $as_echo_n "checking for $ac_word... " >&6; }
16617 if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
16618 $as_echo_n "(cached) " >&6
16620 if test -n "$GTEST_CONFIG"; then
16621 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
16623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16624 for as_dir in $PATH
16627 test -z "$as_dir" && as_dir=.
16628 for ac_exec_ext in '' $ac_executable_extensions; do
16629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16630 ac_cv_prog_GTEST_CONFIG=""yes""
16631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16640 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
16641 if test -n "$GTEST_CONFIG"; then
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
16643 $as_echo "$GTEST_CONFIG" >&6; }
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16646 $as_echo "no" >&6; }
16650 if test x"$GTEST_CONFIG" = "xyes"; then
16651 GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
16652 GTEST_LIBS=`gtest-config --ldflags --libs`
16654 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
16657 # Check if there is Google Mocking library installed.
16658 # Extract the first word of "gmock-config", so it can be a program name with args.
16659 set dummy gmock-config; ac_word=$2
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16661 $as_echo_n "checking for $ac_word... " >&6; }
16662 if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
16663 $as_echo_n "(cached) " >&6
16665 if test -n "$GMOCK_CONFIG"; then
16666 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
16668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16669 for as_dir in $PATH
16672 test -z "$as_dir" && as_dir=.
16673 for ac_exec_ext in '' $ac_executable_extensions; do
16674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16675 ac_cv_prog_GMOCK_CONFIG=""yes""
16676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16685 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
16686 if test -n "$GMOCK_CONFIG"; then
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
16688 $as_echo "$GMOCK_CONFIG" >&6; }
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16695 if test x"$GMOCK_CONFIG" = "xyes"; then
16696 GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
16697 GMOCK_LIBS=`gmock-config --ldflags --libs`
16699 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
16702 # We don't run test cases which use Google Mocking framework.
16707 # We'll use src/googletest.h for our unittests.
16711 if test x"$GMOCK_CONFIG" = "xyes"; then
16713 HAVE_GMOCK_FALSE='#'
16715 HAVE_GMOCK_TRUE='#'
16720 # We want to link in libunwind if it exists
16722 # Unfortunately, we need to check the header file in addition to the
16723 # lib file to check if libunwind is available since libunwind-0.98
16724 # doesn't install all necessary header files.
16725 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16727 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16728 if ${ac_cv_lib_unwind_backtrace+:} false; then :
16729 $as_echo_n "(cached) " >&6
16731 ac_check_lib_save_LIBS=$LIBS
16732 LIBS="-lunwind $LIBS"
16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16736 /* Override any GCC internal prototype to avoid an error.
16737 Use char because int might match the return type of a GCC
16738 builtin and then its argument prototype would still apply. */
16746 return backtrace ();
16751 if ac_fn_cxx_try_link "$LINENO"; then :
16752 ac_cv_lib_unwind_backtrace=yes
16754 ac_cv_lib_unwind_backtrace=no
16756 rm -f core conftest.err conftest.$ac_objext \
16757 conftest$ac_exeext conftest.$ac_ext
16758 LIBS=$ac_check_lib_save_LIBS
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16761 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16762 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
16763 UNWIND_LIBS=-lunwind
16768 if test x"$UNWIND_LIBS" != x""; then
16770 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16774 # We'd like to use read/write locks in several places in the code.
16775 # See if our pthreads support extends to that. Note: for linux, it
16776 # does as long as you define _XOPEN_SOURCE appropriately.
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16778 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16779 if ${ac_cv_rwlock+:} false; then :
16780 $as_echo_n "(cached) " >&6
16784 ac_cpp='$CPP $CPPFLAGS'
16785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16791 #define _XOPEN_SOURCE 500
16792 #include <pthread.h>
16796 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16797 pthread_rwlock_rdlock(&l);
16803 if ac_fn_c_try_compile "$LINENO"; then :
16808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16810 ac_cpp='$CXXCPP $CPPFLAGS'
16811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16818 $as_echo "$ac_cv_rwlock" >&6; }
16819 if test "$ac_cv_rwlock" = yes; then
16821 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16826 # Find out what namespace 'normal' STL code lives in, and also what namespace
16827 # the user wants our classes to be defined in
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16829 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16830 if ${ac_cv_cxx_namespaces+:} false; then :
16831 $as_echo_n "(cached) " >&6
16835 ac_cpp='$CXXCPP $CPPFLAGS'
16836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16843 namespace Inner { int i = 0; }}
16847 using namespace Outer::Inner; return i;
16852 if ac_fn_cxx_try_compile "$LINENO"; then :
16853 ac_cv_cxx_namespaces=yes
16855 ac_cv_cxx_namespaces=no
16857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16859 ac_cpp='$CXXCPP $CPPFLAGS'
16860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16866 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16867 if test "$ac_cv_cxx_namespaces" = yes; then
16869 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16873 $as_echo_n "checking what namespace STL code is in... " >&6; }
16874 if ${ac_cv_cxx_stl_namespace+:} false; then :
16875 $as_echo_n "(cached) " >&6
16880 ac_cpp='$CXXCPP $CPPFLAGS'
16881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16891 vector<int> t; return 0;
16896 if ac_fn_cxx_try_compile "$LINENO"; then :
16897 ac_cv_cxx_stl_namespace=none
16899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h. */
16906 std::vector<int> t; return 0;
16911 if ac_fn_cxx_try_compile "$LINENO"; then :
16912 ac_cv_cxx_stl_namespace=std
16914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16916 ac_cpp='$CXXCPP $CPPFLAGS'
16917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16923 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16924 if test "$ac_cv_cxx_stl_namespace" = none; then
16926 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16929 if test "$ac_cv_cxx_stl_namespace" = std; then
16931 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
16935 google_namespace_default=google
16936 # Check whether --enable-namespace was given.
16937 if test "${enable_namespace+set}" = set; then :
16938 enableval=$enable_namespace; case "$enableval" in
16939 yes) google_namespace="$google_namespace_default" ;;
16940 no) google_namespace="" ;;
16941 *) google_namespace="$enableval" ;;
16944 google_namespace="$google_namespace_default"
16947 if test -n "$google_namespace"; then
16948 ac_google_namespace="$google_namespace"
16949 ac_google_start_namespace="namespace $google_namespace {"
16950 ac_google_end_namespace="}"
16952 ac_google_namespace=""
16953 ac_google_start_namespace=""
16954 ac_google_end_namespace=""
16957 cat >>confdefs.h <<_ACEOF
16958 #define GOOGLE_NAMESPACE $ac_google_namespace
16962 cat >>confdefs.h <<_ACEOF
16963 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
16967 cat >>confdefs.h <<_ACEOF
16968 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
16974 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
16975 if ${ac_cv_cxx_using_operator+:} false; then :
16976 $as_echo_n "(cached) " >&6
16980 ac_cpp='$CXXCPP $CPPFLAGS'
16981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16987 #include <iostream>
16988 std::ostream& operator<<(std::ostream&, struct s);
16992 using ::operator<<; return 0;
16997 if ac_fn_cxx_try_compile "$LINENO"; then :
16998 ac_cv_cxx_using_operator=1
17000 ac_cv_cxx_using_operator=0
17002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004 ac_cpp='$CXXCPP $CPPFLAGS'
17005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
17011 $as_echo "$ac_cv_cxx_using_operator" >&6; }
17012 if test "$ac_cv_cxx_using_operator" = 1; then
17014 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
17018 for ac_header in ucontext.h
17020 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
17021 if test "x$ac_cv_header_ucontext_h" = xyes; then :
17022 cat >>confdefs.h <<_ACEOF
17023 #define HAVE_UCONTEXT_H 1
17030 for ac_header in sys/ucontext.h
17032 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
17033 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
17034 cat >>confdefs.h <<_ACEOF
17035 #define HAVE_SYS_UCONTEXT_H 1
17041 # ucontext on OS X 10.6 (at least)
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
17043 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
17044 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
17045 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
17046 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
17047 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
17048 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
17049 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
17050 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
17051 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
17052 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
17053 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
17054 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
17055 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
17056 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
17057 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
17058 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
17059 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
17060 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
17061 pc_field_found=false
17062 for pc_field in $pc_fields; do
17063 if ! $pc_field_found; then
17064 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h. */
17067 #define _GNU_SOURCE 1
17068 #include <sys/ucontext.h>
17072 ucontext_t u; return u.$pc_field == 0;
17077 if ac_fn_cxx_try_compile "$LINENO"; then :
17079 cat >>confdefs.h <<_ACEOF
17080 #define PC_FROM_UCONTEXT $pc_field
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17084 $as_echo "$pc_field" >&6; }
17085 pc_field_found=true
17087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h. */
17091 #define _GNU_SOURCE 1
17092 #include <ucontext.h>
17096 ucontext_t u; return u.$pc_field == 0;
17101 if ac_fn_cxx_try_compile "$LINENO"; then :
17103 cat >>confdefs.h <<_ACEOF
17104 #define PC_FROM_UCONTEXT $pc_field
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17108 $as_echo "$pc_field" >&6; }
17109 pc_field_found=true
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17115 if ! $pc_field_found; then
17116 pc_fields=" sc_eip" # OpenBSD (i386)
17117 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
17118 for pc_field in $pc_fields; do
17119 if ! $pc_field_found; then
17120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121 /* end confdefs.h. */
17122 #include <signal.h>
17126 ucontext_t u; return u.$pc_field == 0;
17131 if ac_fn_cxx_try_compile "$LINENO"; then :
17133 cat >>confdefs.h <<_ACEOF
17134 #define PC_FROM_UCONTEXT $pc_field
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17138 $as_echo "$pc_field" >&6; }
17139 pc_field_found=true
17141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145 if ! $pc_field_found; then
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not output failed addresses..." >&5
17147 $as_echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
17151 cat >>confdefs.h <<_ACEOF
17152 #define TEST_SRC_DIR "$srcdir"
17156 # These are what's needed by logging.h.in and raw_logging.h.in
17179 # Write generated configuration file
17180 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"
17182 ac_config_files="$ac_config_files libglog.pc"
17184 cat >confcache <<\_ACEOF
17185 # This file is a shell script that caches the results of configure
17186 # tests run on this system so they can be shared between configure
17187 # scripts and configure runs, see configure's option --config-cache.
17188 # It is not useful on other systems. If it contains results you don't
17189 # want to keep, you may remove or edit it.
17191 # config.status only pays attention to the cache file if you give it
17192 # the --recheck option to rerun configure.
17194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17196 # following values.
17200 # The following way of writing the cache mishandles newlines in values,
17201 # but we know of no workaround that is simple, portable, and efficient.
17202 # So, we kill variables containing newlines.
17203 # Ultrix sh set writes to stderr and can't be redirected directly,
17204 # and sets the high bit in the cache file unless we assign to the vars.
17206 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17207 eval ac_val=\$$ac_var
17211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17215 _ | IFS | as_nl) ;; #(
17216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17217 *) { eval $ac_var=; unset $ac_var;} ;;
17223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17224 *${as_nl}ac_space=\ *)
17225 # `set' does not quote correctly, so add quotes: double-quote
17226 # substitution turns \\\\ into \\, and sed turns \\ into \.
17229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17232 # `set' quotes correctly as required by POSIX, so do not add quotes.
17233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17246 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17247 if test -w "$cache_file"; then
17248 if test "x$cache_file" != "x/dev/null"; then
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17250 $as_echo "$as_me: updating cache $cache_file" >&6;}
17251 if test ! -f "$cache_file" || test -h "$cache_file"; then
17252 cat confcache >"$cache_file"
17254 case $cache_file in #(
17256 mv -f confcache "$cache_file"$$ &&
17257 mv -f "$cache_file"$$ "$cache_file" ;; #(
17259 mv -f confcache "$cache_file" ;;
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17265 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17271 # Let make expand exec_prefix.
17272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17274 DEFS=-DHAVE_CONFIG_H
17279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17280 # 1. Remove the extension, and $U if already installed.
17281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17282 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17284 # will be set to the directory where LIBOBJS objects are built.
17285 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17286 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17288 LIBOBJS=$ac_libobjs
17290 LTLIBOBJS=$ac_ltlibobjs
17293 if test -n "$EXEEXT"; then
17295 am__EXEEXT_FALSE='#'
17297 am__EXEEXT_TRUE='#'
17301 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17302 as_fn_error $? "conditional \"AMDEP\" was never defined.
17303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17305 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17306 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17309 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17310 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17313 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17314 as_fn_error $? "conditional \"GCC\" was never defined.
17315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17317 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
17318 as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
17319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17321 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
17322 as_fn_error $? "conditional \"X86_64\" was never defined.
17323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17325 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
17326 as_fn_error $? "conditional \"DISABLE_RTTI\" was never defined.
17327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17329 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
17330 as_fn_error $? "conditional \"HAVE_GMOCK\" was never defined.
17331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17334 : "${CONFIG_STATUS=./config.status}"
17336 ac_clean_files_save=$ac_clean_files
17337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17339 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17343 # Generated by $as_me.
17344 # Run this file to recreate the current configuration.
17345 # Compiler output produced by configure, useful for debugging
17346 # configure, is in config.log if it exists.
17349 ac_cs_recheck=false
17352 SHELL=\${CONFIG_SHELL-$SHELL}
17355 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17356 ## -------------------- ##
17357 ## M4sh Initialization. ##
17358 ## -------------------- ##
17360 # Be more Bourne compatible
17361 DUALCASE=1; export DUALCASE # for MKS sh
17362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17366 # is contrary to our usage. Disable this feature.
17367 alias -g '${1+"$@"}'='"$@"'
17368 setopt NO_GLOB_SUBST
17370 case `(set -o) 2>/dev/null` in #(
17382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17383 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17386 # Prefer a ksh shell builtin over an external printf program on Solaris,
17387 # but without wasting forks for bash or zsh.
17388 if test -z "$BASH_VERSION$ZSH_VERSION" \
17389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17390 as_echo='print -r --'
17391 as_echo_n='print -rn --'
17392 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17393 as_echo='printf %s\n'
17394 as_echo_n='printf %s'
17396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17397 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17398 as_echo_n='/usr/ucb/echo -n'
17400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17401 as_echo_n_body='eval
17405 expr "X$arg" : "X\\(.*\\)$as_nl";
17406 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17410 export as_echo_n_body
17411 as_echo_n='sh -c $as_echo_n_body as_echo'
17413 export as_echo_body
17414 as_echo='sh -c $as_echo_body as_echo'
17417 # The user is always right.
17418 if test "${PATH_SEPARATOR+set}" != set; then
17420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17428 # We need space, tab and new line, in precisely that order. Quoting is
17429 # there to prevent editors from complaining about space-tab.
17430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17431 # splitting by setting IFS to empty value.)
17434 # Find who we are. Look in the path if we contain no directory separator.
17437 *[\\/]* ) as_myself=$0 ;;
17438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17439 for as_dir in $PATH
17442 test -z "$as_dir" && as_dir=.
17443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17449 # We did not find ourselves, most probably we were run as `sh COMMAND'
17450 # in which case we are not to be found in the path.
17451 if test "x$as_myself" = x; then
17454 if test ! -f "$as_myself"; then
17455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17459 # Unset variables that we do not need and which cause bugs (e.g. in
17460 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17461 # suppresses any "Segmentation fault" message there. '((' could
17462 # trigger a bug in pdksh 5.2.14.
17463 for as_var in BASH_ENV ENV MAIL MAILPATH
17464 do eval test x\${$as_var+set} = xset \
17465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17482 # ----------------------------------------
17483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17485 # script with STATUS, using 1 if that was 0.
17488 as_status=$1; test $as_status -eq 0 && as_status=1
17490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17493 $as_echo "$as_me: error: $2" >&2
17494 as_fn_exit $as_status
17498 # as_fn_set_status STATUS
17499 # -----------------------
17500 # Set $? to STATUS, without forking.
17501 as_fn_set_status ()
17504 } # as_fn_set_status
17506 # as_fn_exit STATUS
17507 # -----------------
17508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17512 as_fn_set_status $1
17518 # Portably unset VAR.
17521 { eval $1=; unset $1;}
17523 as_unset=as_fn_unset
17524 # as_fn_append VAR VALUE
17525 # ----------------------
17526 # Append the text in VALUE to the end of the definition contained in VAR. Take
17527 # advantage of any shell optimizations that allow amortized linear growth over
17528 # repeated appends, instead of the typical quadratic growth present in naive
17530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17531 eval 'as_fn_append ()
17542 # as_fn_arith ARG...
17543 # ------------------
17544 # Perform arithmetic evaluation on the ARGs, and store the result in the
17545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17546 # must be portable across $(()) and expr.
17547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17548 eval 'as_fn_arith ()
17555 as_val=`expr "$@" || test $? -eq 1`
17560 if expr a : '\(a\)' >/dev/null 2>&1 &&
17561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17568 as_basename=basename
17573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17579 as_me=`$as_basename -- "$0" ||
17580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17581 X"$0" : 'X\(//\)$' \| \
17582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17584 sed '/^.*\/\([^/][^/]*\)\/*$/{
17598 # Avoid depending upon Character Ranges.
17599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17602 as_cr_digits='0123456789'
17603 as_cr_alnum=$as_cr_Letters$as_cr_digits
17605 ECHO_C= ECHO_N= ECHO_T=
17606 case `echo -n x` in #(((((
17608 case `echo 'xy\c'` in
17609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17618 rm -f conf$$ conf$$.exe conf$$.file
17619 if test -d conf$$.dir; then
17620 rm -f conf$$.dir/conf$$.file
17623 mkdir conf$$.dir 2>/dev/null
17625 if (echo >conf$$.file) 2>/dev/null; then
17626 if ln -s conf$$.file conf$$ 2>/dev/null; then
17628 # ... but there are two gotchas:
17629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17631 # In both cases, we have to default to `cp -p'.
17632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17634 elif ln conf$$.file conf$$ 2>/dev/null; then
17642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17643 rmdir conf$$.dir 2>/dev/null
17648 # Create "$as_dir" as a directory, including parents if necessary.
17653 -*) as_dir=./$as_dir;;
17655 test -d "$as_dir" || eval $as_mkdir_p || {
17659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17660 *) as_qdir=$as_dir;;
17662 as_dirs="'$as_qdir' $as_dirs"
17663 as_dir=`$as_dirname -- "$as_dir" ||
17664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17665 X"$as_dir" : 'X\(//\)[^/]' \| \
17666 X"$as_dir" : 'X\(//\)$' \| \
17667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17668 $as_echo X"$as_dir" |
17669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17673 /^X\(\/\/\)[^/].*/{
17686 test -d "$as_dir" && break
17688 test -z "$as_dirs" || eval "mkdir $as_dirs"
17689 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17693 if mkdir -p . 2>/dev/null; then
17694 as_mkdir_p='mkdir -p "$as_dir"'
17696 test -d ./-p && rmdir ./-p
17700 if test -x / >/dev/null 2>&1; then
17701 as_test_x='test -x'
17703 if ls -dL / >/dev/null 2>&1; then
17710 if test -d "$1"; then
17716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17717 ???[sx]*):;;*)false;;esac;fi
17721 as_executable_p=$as_test_x
17723 # Sed expression to map a string onto a valid CPP name.
17724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17726 # Sed expression to map a string onto a valid variable name.
17727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17731 ## ----------------------------------- ##
17732 ## Main body of $CONFIG_STATUS script. ##
17733 ## ----------------------------------- ##
17735 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17738 # Save the log message, to keep $0 and so on meaningful, and to
17739 # report actual input values of CONFIG_FILES etc. instead of their
17740 # values after options handling.
17742 This file was extended by glog $as_me 0.3.2, which was
17743 generated by GNU Autoconf 2.68. Invocation command line was
17745 CONFIG_FILES = $CONFIG_FILES
17746 CONFIG_HEADERS = $CONFIG_HEADERS
17747 CONFIG_LINKS = $CONFIG_LINKS
17748 CONFIG_COMMANDS = $CONFIG_COMMANDS
17751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17756 case $ac_config_files in *"
17757 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17760 case $ac_config_headers in *"
17761 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17766 # Files that config.status was made for.
17767 config_files="$ac_config_files"
17768 config_headers="$ac_config_headers"
17769 config_commands="$ac_config_commands"
17773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17775 \`$as_me' instantiates files and other configuration actions
17776 from templates according to the current configuration. Unless the files
17777 and actions are specified as TAGs, all are instantiated by default.
17779 Usage: $0 [OPTION]... [TAG]...
17781 -h, --help print this help, then exit
17782 -V, --version print version number and configuration settings, then exit
17783 --config print configuration, then exit
17784 -q, --quiet, --silent
17785 do not print progress messages
17786 -d, --debug don't remove temporary files
17787 --recheck update $as_me by reconfiguring in the same conditions
17788 --file=FILE[:TEMPLATE]
17789 instantiate the configuration file FILE
17790 --header=FILE[:TEMPLATE]
17791 instantiate the configuration header FILE
17793 Configuration files:
17796 Configuration headers:
17799 Configuration commands:
17802 Report bugs to <opensource@google.com>."
17805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17806 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17808 glog config.status 0.3.2
17809 configured by $0, generated by GNU Autoconf 2.68,
17810 with options \\"\$ac_cs_config\\"
17812 Copyright (C) 2010 Free Software Foundation, Inc.
17813 This config.status script is free software; the Free Software Foundation
17814 gives unlimited permission to copy, distribute and modify it."
17821 test -n "\$AWK" || AWK=awk
17824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17825 # The default lists apply if the user does not specify any file.
17831 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17832 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17836 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17848 # Handling of the options.
17849 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17851 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17852 $as_echo "$ac_cs_version"; exit ;;
17853 --config | --confi | --conf | --con | --co | --c )
17854 $as_echo "$ac_cs_config"; exit ;;
17855 --debug | --debu | --deb | --de | --d | -d )
17857 --file | --fil | --fi | --f )
17860 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17861 '') as_fn_error $? "missing file argument" ;;
17863 as_fn_append CONFIG_FILES " '$ac_optarg'"
17864 ac_need_defaults=false;;
17865 --header | --heade | --head | --hea )
17868 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17870 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17871 ac_need_defaults=false;;
17873 # Conflict between --help and --header
17874 as_fn_error $? "ambiguous option: \`$1'
17875 Try \`$0 --help' for more information.";;
17876 --help | --hel | -h )
17877 $as_echo "$ac_cs_usage"; exit ;;
17878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17879 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17882 # This is an error.
17883 -*) as_fn_error $? "unrecognized option: \`$1'
17884 Try \`$0 --help' for more information." ;;
17886 *) as_fn_append ac_config_targets " $1"
17887 ac_need_defaults=false ;;
17893 ac_configure_extra_args=
17895 if $ac_cs_silent; then
17897 ac_configure_extra_args="$ac_configure_extra_args --silent"
17901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17902 if \$ac_cs_recheck; then
17903 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17905 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17906 CONFIG_SHELL='$SHELL'
17907 export CONFIG_SHELL
17912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17917 ## Running $as_me. ##
17923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17927 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17930 # The HP-UX ksh and POSIX shell print the target directory to stdout
17931 # if CDPATH is set.
17932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17934 sed_quote_subst='$sed_quote_subst'
17935 double_quote_subst='$double_quote_subst'
17936 delay_variable_subst='$delay_variable_subst'
17937 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17938 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17939 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17940 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17941 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17942 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17943 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17944 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17945 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17946 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17947 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17948 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17949 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17950 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17951 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17952 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17953 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17954 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17955 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17956 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17957 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17958 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17959 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17960 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17961 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17962 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17963 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17964 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17965 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17966 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17967 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17968 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17969 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17970 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17971 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17972 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17973 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17974 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17975 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17976 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17977 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17978 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17979 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17980 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17981 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17982 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17983 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17984 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17985 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17986 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17987 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17988 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17989 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17990 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17991 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17992 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17993 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17994 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17995 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17996 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17997 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17998 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17999 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18000 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18001 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18002 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18003 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18004 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18005 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18006 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18007 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18008 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18009 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18010 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18011 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18012 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18013 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18014 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18015 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18016 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18017 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18018 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18019 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18020 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18021 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18022 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18023 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18024 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18025 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18026 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18027 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18028 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18029 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18030 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18031 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18032 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18033 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18034 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18035 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18036 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18037 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18038 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18039 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18040 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18041 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18042 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18043 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18044 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18045 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18046 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18047 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18048 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18049 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18050 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18051 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18052 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18053 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18054 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18055 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18056 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18057 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18058 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18059 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18060 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18061 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18062 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18063 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18064 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18065 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18066 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18067 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18068 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18069 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18070 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18071 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18072 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18073 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18074 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18075 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18076 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18077 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18078 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18079 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18080 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18081 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18082 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18083 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18084 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18085 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18086 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18087 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18088 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18089 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18090 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18091 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18092 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18093 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18094 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18095 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18096 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18097 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18098 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18099 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18100 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18101 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18102 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18103 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18104 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18105 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18106 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18107 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18108 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18109 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18110 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18111 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18112 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18113 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18114 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18115 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18116 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18117 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18118 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18119 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18120 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18123 LTCFLAGS='$LTCFLAGS'
18124 compiler='$compiler_DEFAULT'
18126 # A function that is used when there is no print builtin or printf.
18127 func_fallback_echo ()
18129 eval 'cat <<_LTECHO_EOF
18134 # Quote evaled strings.
18149 deplibs_check_method \
18154 sharedlib_from_linklib_cmd \
18157 archiver_list_spec \
18163 lt_cv_sys_global_symbol_pipe \
18164 lt_cv_sys_global_symbol_to_cdecl \
18165 lt_cv_sys_global_symbol_to_c_name_address \
18166 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18167 nm_file_list_spec \
18168 lt_prog_compiler_no_builtin_flag \
18169 lt_prog_compiler_pic \
18170 lt_prog_compiler_wl \
18171 lt_prog_compiler_static \
18172 lt_cv_prog_compiler_c_o \
18181 export_dynamic_flag_spec \
18182 whole_archive_flag_spec \
18183 compiler_needs_object \
18185 allow_undefined_flag \
18186 no_undefined_flag \
18187 hardcode_libdir_flag_spec \
18188 hardcode_libdir_separator \
18192 variables_saved_for_relink \
18194 library_names_spec \
18196 install_override_mode \
18200 compiler_lib_search_dirs \
18205 compiler_lib_search_path \
18209 lt_prog_compiler_no_builtin_flag_CXX \
18210 lt_prog_compiler_pic_CXX \
18211 lt_prog_compiler_wl_CXX \
18212 lt_prog_compiler_static_CXX \
18213 lt_cv_prog_compiler_c_o_CXX \
18214 export_dynamic_flag_spec_CXX \
18215 whole_archive_flag_spec_CXX \
18216 compiler_needs_object_CXX \
18218 allow_undefined_flag_CXX \
18219 no_undefined_flag_CXX \
18220 hardcode_libdir_flag_spec_CXX \
18221 hardcode_libdir_separator_CXX \
18222 exclude_expsyms_CXX \
18223 include_expsyms_CXX \
18224 file_list_spec_CXX \
18225 compiler_lib_search_dirs_CXX \
18226 predep_objects_CXX \
18227 postdep_objects_CXX \
18230 compiler_lib_search_path_CXX; do
18231 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18232 *[\\\\\\\`\\"\\\$]*)
18233 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18236 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18241 # Double-quote double-evaled strings.
18242 for var in reload_cmds \
18243 old_postinstall_cmds \
18244 old_postuninstall_cmds \
18246 extract_expsyms_cmds \
18247 old_archive_from_new_cmds \
18248 old_archive_from_expsyms_cmds \
18250 archive_expsym_cmds \
18252 module_expsym_cmds \
18253 export_symbols_cmds \
18257 postuninstall_cmds \
18259 sys_lib_search_path_spec \
18260 sys_lib_dlsearch_path_spec \
18262 old_archive_cmds_CXX \
18263 old_archive_from_new_cmds_CXX \
18264 old_archive_from_expsyms_cmds_CXX \
18266 archive_expsym_cmds_CXX \
18268 module_expsym_cmds_CXX \
18269 export_symbols_cmds_CXX \
18271 postlink_cmds_CXX; do
18272 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18273 *[\\\\\\\`\\"\\\$]*)
18274 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18277 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18282 ac_aux_dir='$ac_aux_dir'
18283 xsi_shell='$xsi_shell'
18284 lt_shell_append='$lt_shell_append'
18286 # See if we are running on zsh, and set the options which allow our
18287 # commands through without removal of \ escapes INIT.
18288 if test -n "\${ZSH_VERSION+set}" ; then
18289 setopt NO_GLOB_SUBST
18295 TIMESTAMP='$TIMESTAMP'
18306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18308 # Handling of arguments.
18309 for ac_config_target in $ac_config_targets
18311 case $ac_config_target in
18312 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18313 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18314 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18316 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
18317 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
18318 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
18319 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
18320 "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
18322 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18327 # If the user did not use the arguments to specify the items to instantiate,
18328 # then the envvar interface is used. Set only those that are not.
18329 # We use the long form for the default assignment because of an extremely
18330 # bizarre bug on SunOS 4.1.3.
18331 if $ac_need_defaults; then
18332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18334 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18337 # Have a temporary directory for convenience. Make it in the build tree
18338 # simply because there is no reason against having it here, and in addition,
18339 # creating and moving files from /tmp can sometimes cause problems.
18340 # Hook for its removal unless debugging.
18341 # Note that there is a small window in which the directory will not be cleaned:
18342 # after its creation but before its name has been assigned to `$tmp'.
18346 trap 'exit_status=$?
18347 : "${ac_tmp:=$tmp}"
18348 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18350 trap 'as_fn_exit 1' 1 2 13 15
18352 # Create a (secure) tmp directory for tmp files.
18355 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18359 tmp=./conf$$-$RANDOM
18360 (umask 077 && mkdir "$tmp")
18361 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18364 # Set up the scripts for CONFIG_FILES section.
18365 # No need to generate them if there are no CONFIG_FILES.
18366 # This happens for instance with `./config.status config.h'.
18367 if test -n "$CONFIG_FILES"; then
18370 ac_cr=`echo X | tr X '\015'`
18371 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18372 # But we know of no other shell where ac_cr would be empty at this
18373 # point, so we can use a bashism as a fallback.
18374 if test "x$ac_cr" = x; then
18375 eval ac_cr=\$\'\\r\'
18377 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18378 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18381 ac_cs_awk_cr=$ac_cr
18384 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18389 echo "cat >conf$$subs.awk <<_ACEOF" &&
18390 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18392 } >conf$$subs.sh ||
18393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18394 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18396 for ac_last_try in false false false false false :; do
18397 . ./conf$$subs.sh ||
18398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18400 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18401 if test $ac_delim_n = $ac_delim_num; then
18403 elif $ac_last_try; then
18404 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18409 rm -f conf$$subs.sh
18411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18412 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18416 s/^/S["/; s/!.*/"]=/
18426 s/\(.\{148\}\)..*/\1/
18428 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18440 s/\(.\{148\}\)..*/\1/
18442 s/["\\]/\\&/g; s/^/"/; s/$/"/
18446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18451 ' <conf$$subs.awk | sed '
18456 ' >>$CONFIG_STATUS || ac_write_fail=1
18457 rm -f conf$$subs.awk
18458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18460 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18461 for (key in S) S_is_set[key] = 1
18467 nfields = split(line, field, "@")
18469 len = length(field[1])
18470 for (i = 2; i < nfields; i++) {
18472 keylen = length(key)
18473 if (S_is_set[key]) {
18475 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18476 len += length(value) + length(field[++i])
18487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18488 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18489 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18492 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18493 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18496 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18497 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18498 # trailing colons and then remove the whole line if VPATH becomes empty
18499 # (actually we leave an empty line to preserve line numbers).
18500 if test "x$srcdir" = x.; then
18501 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18520 fi # test -n "$CONFIG_FILES"
18522 # Set up the scripts for CONFIG_HEADERS section.
18523 # No need to generate them if there are no CONFIG_HEADERS.
18524 # This happens for instance with `./config.status Makefile'.
18525 if test -n "$CONFIG_HEADERS"; then
18526 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18530 # Transform confdefs.h into an awk script `defines.awk', embedded as
18531 # here-document in config.status, that substitutes the proper values into
18532 # config.h.in to produce config.h.
18534 # Create a delimiter string that does not exist in confdefs.h, to ease
18535 # handling of long lines.
18537 for ac_last_try in false false :; do
18538 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18539 if test -z "$ac_tt"; then
18541 elif $ac_last_try; then
18542 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18548 # For the awk script, D is an array of macro values keyed by name,
18549 # likewise P contains macro parameters if any. Preserve backslash
18550 # newline sequences.
18552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18554 s/.\{148\}/&'"$ac_delim"'/g
18557 s/^[ ]*#[ ]*define[ ][ ]*/ /
18564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18566 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18571 D["\1"]=" \3\\\\\\n"\\/p
18573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18578 s/.\{148\}/&'"$ac_delim"'/g
18583 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18586 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18588 ' <confdefs.h | sed '
18589 s/'"$ac_delim"'/"\\\
18590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18593 for (key in D) D_is_set[key] = 1
18596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18598 split(line, arg, " ")
18599 if (arg[1] == "#") {
18603 defundef = substr(arg[1], 2)
18606 split(mac1, mac2, "(") #)
18608 prefix = substr(line, 1, index(line, defundef) - 1)
18609 if (D_is_set[macro]) {
18610 # Preserve the white space surrounding the "#".
18611 print prefix "define", macro P[macro] D[macro]
18614 # Replace #undef with comments. This is necessary, for example,
18615 # in the case of _POSIX_SOURCE, which is predefined and required
18616 # on some systems where configure will not decide to define it.
18617 if (defundef == "undef") {
18618 print "/*", prefix defundef, macro, "*/"
18626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18627 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18628 fi # test -n "$CONFIG_HEADERS"
18631 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18636 :[FHLC]) ac_mode=$ac_tag; continue;;
18638 case $ac_mode$ac_tag in
18640 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18641 :[FH]-) ac_tag=-:-;;
18642 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18659 -) ac_f="$ac_tmp/stdin";;
18660 *) # Look for the file first in the build tree, then in the source tree
18661 # (if the path is not absolute). The absolute path cannot be DOS-style,
18662 # because $ac_f cannot contain `:'.
18666 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18668 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18670 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18671 as_fn_append ac_file_inputs " '$ac_f'"
18674 # Let's still pretend it is `configure' which instantiates (i.e., don't
18675 # use $as_me), people would be surprised to read:
18676 # /* config.h. Generated by config.status. */
18677 configure_input='Generated from '`
18678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18680 if test x"$ac_file" != x-; then
18681 configure_input="$ac_file. $configure_input"
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18683 $as_echo "$as_me: creating $ac_file" >&6;}
18685 # Neutralize special characters interpreted by sed in replacement strings.
18686 case $configure_input in #(
18687 *\&* | *\|* | *\\* )
18688 ac_sed_conf_input=`$as_echo "$configure_input" |
18689 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18690 *) ac_sed_conf_input=$configure_input;;
18694 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18700 ac_dir=`$as_dirname -- "$ac_file" ||
18701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18702 X"$ac_file" : 'X\(//\)[^/]' \| \
18703 X"$ac_file" : 'X\(//\)$' \| \
18704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18705 $as_echo X"$ac_file" |
18706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18710 /^X\(\/\/\)[^/].*/{
18723 as_dir="$ac_dir"; as_fn_mkdir_p
18727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18730 # A ".." for each directory in $ac_dir_suffix.
18731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18732 case $ac_top_builddir_sub in
18733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18737 ac_abs_top_builddir=$ac_pwd
18738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18739 # for backward compatibility:
18740 ac_top_builddir=$ac_top_build_prefix
18743 .) # We are building in place.
18745 ac_top_srcdir=$ac_top_builddir_sub
18746 ac_abs_top_srcdir=$ac_pwd ;;
18747 [\\/]* | ?:[\\/]* ) # Absolute name.
18748 ac_srcdir=$srcdir$ac_dir_suffix;
18749 ac_top_srcdir=$srcdir
18750 ac_abs_top_srcdir=$srcdir ;;
18751 *) # Relative name.
18752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18753 ac_top_srcdir=$ac_top_build_prefix$srcdir
18754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18766 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18767 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18769 ac_MKDIR_P=$MKDIR_P
18771 [\\/$]* | ?:[\\/]* ) ;;
18772 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18777 # If the template does not know about datarootdir, expand it.
18778 # FIXME: This hack should be removed a few years after 2.60.
18779 ac_datarootdir_hack=; ac_datarootdir_seen=
18790 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18791 *datarootdir*) ac_datarootdir_seen=yes;;
18792 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18794 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18797 ac_datarootdir_hack='
18798 s&@datadir@&$datadir&g
18799 s&@docdir@&$docdir&g
18800 s&@infodir@&$infodir&g
18801 s&@localedir@&$localedir&g
18802 s&@mandir@&$mandir&g
18803 s&\\\${datarootdir}&$datarootdir&g' ;;
18807 # Neutralize VPATH when `$srcdir' = `.'.
18808 # Shell code in configure.ac might set extrasub.
18809 # FIXME: do we really want to maintain this feature?
18810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18811 ac_sed_extra="$ac_vpsub
18814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18817 s|@configure_input@|$ac_sed_conf_input|;t t
18818 s&@top_builddir@&$ac_top_builddir_sub&;t t
18819 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18820 s&@srcdir@&$ac_srcdir&;t t
18821 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18822 s&@top_srcdir@&$ac_top_srcdir&;t t
18823 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18824 s&@builddir@&$ac_builddir&;t t
18825 s&@abs_builddir@&$ac_abs_builddir&;t t
18826 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18827 s&@INSTALL@&$ac_INSTALL&;t t
18828 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18829 $ac_datarootdir_hack
18831 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18832 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18834 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18835 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18836 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18837 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18839 which seems to be undefined. Please make sure it is defined" >&5
18840 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18841 which seems to be undefined. Please make sure it is defined" >&2;}
18843 rm -f "$ac_tmp/stdin"
18845 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18846 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18854 if test x"$ac_file" != x-; then
18856 $as_echo "/* $configure_input */" \
18857 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18858 } >"$ac_tmp/config.h" \
18859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18860 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18862 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18865 mv "$ac_tmp/config.h" "$ac_file" \
18866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18869 $as_echo "/* $configure_input */" \
18870 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18871 || as_fn_error $? "could not create -" "$LINENO" 5
18873 # Compute "$ac_file"'s index in $config_headers.
18876 for _am_header in $config_headers :; do
18877 case $_am_header in
18878 $_am_arg | $_am_arg:* )
18881 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18884 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18885 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18886 X"$_am_arg" : 'X\(//\)[^/]' \| \
18887 X"$_am_arg" : 'X\(//\)$' \| \
18888 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18889 $as_echo X"$_am_arg" |
18890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18894 /^X\(\/\/\)[^/].*/{
18906 s/.*/./; q'`/stamp-h$_am_stamp_count
18909 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18910 $as_echo "$as_me: executing $ac_file commands" >&6;}
18915 case $ac_file$ac_mode in
18916 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18917 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18918 # are listed without --file. Let's play safe and only enable the eval
18919 # if we detect the quoting.
18920 case $CONFIG_FILES in
18921 *\'*) eval set x "$CONFIG_FILES" ;;
18922 *) set x $CONFIG_FILES ;;
18927 # Strip MF so we end up with the name of the file.
18928 mf=`echo "$mf" | sed -e 's/:.*$//'`
18929 # Check whether this is an Automake generated Makefile or not.
18930 # We used to match only the files named `Makefile.in', but
18931 # some people rename them; so instead we look at the file content.
18932 # Grep'ing the first line is not enough: some people post-process
18933 # each Makefile.in and add a new line on top of each file to say so.
18934 # Grep'ing the whole file is not good either: AIX grep has a line
18935 # limit of 2048, but all sed's we know have understand at least 4000.
18936 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18937 dirpart=`$as_dirname -- "$mf" ||
18938 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18939 X"$mf" : 'X\(//\)[^/]' \| \
18940 X"$mf" : 'X\(//\)$' \| \
18941 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18947 /^X\(\/\/\)[^/].*/{
18963 # Extract the definition of DEPDIR, am__include, and am__quote
18964 # from the Makefile without running `make'.
18965 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18966 test -z "$DEPDIR" && continue
18967 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18968 test -z "am__include" && continue
18969 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18970 # When using ansi2knr, U may be empty or an underscore; expand it
18971 U=`sed -n 's/^U = //p' < "$mf"`
18972 # Find all dependency output files, they are included files with
18973 # $(DEPDIR) in their names. We invoke sed twice because it is the
18974 # simplest approach to changing $(DEPDIR) to its actual value in the
18976 for file in `sed -n "
18977 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18978 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18979 # Make sure the directory exists.
18980 test -f "$dirpart/$file" && continue
18981 fdir=`$as_dirname -- "$file" ||
18982 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18983 X"$file" : 'X\(//\)[^/]' \| \
18984 X"$file" : 'X\(//\)$' \| \
18985 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18986 $as_echo X"$file" |
18987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18991 /^X\(\/\/\)[^/].*/{
19004 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19005 # echo "creating $dirpart/$file"
19006 echo '# dummy' > "$dirpart/$file"
19013 # See if we are running on zsh, and set the options which allow our
19014 # commands through without removal of \ escapes.
19015 if test -n "${ZSH_VERSION+set}" ; then
19016 setopt NO_GLOB_SUBST
19019 cfgfile="${ofile}T"
19020 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19023 cat <<_LT_EOF >> "$cfgfile"
19026 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19027 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19029 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19031 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19032 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19034 # Written by Gordon Matzigkeit, 1996
19036 # This file is part of GNU Libtool.
19038 # GNU Libtool is free software; you can redistribute it and/or
19039 # modify it under the terms of the GNU General Public License as
19040 # published by the Free Software Foundation; either version 2 of
19041 # the License, or (at your option) any later version.
19043 # As a special exception to the GNU General Public License,
19044 # if you distribute this file as part of a program or library that
19045 # is built using GNU Libtool, you may include this file under the
19046 # same distribution terms that you use for the rest of that program.
19048 # GNU Libtool is distributed in the hope that it will be useful,
19049 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19050 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19051 # GNU General Public License for more details.
19053 # You should have received a copy of the GNU General Public License
19054 # along with GNU Libtool; see the file COPYING. If not, a copy
19055 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19056 # obtained by writing to the Free Software Foundation, Inc.,
19057 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19060 # The names of the tagged configurations supported by this script.
19061 available_tags="CXX "
19063 # ### BEGIN LIBTOOL CONFIG
19065 # Which release of libtool.m4 was used?
19066 macro_version=$macro_version
19067 macro_revision=$macro_revision
19069 # Whether or not to build shared libraries.
19070 build_libtool_libs=$enable_shared
19072 # Whether or not to build static libraries.
19073 build_old_libs=$enable_static
19075 # What type of objects to build.
19078 # Whether or not to optimize for fast installation.
19079 fast_install=$enable_fast_install
19081 # Shell to use when invoking shell scripts.
19084 # An echo program that protects backslashes.
19087 # The PATH separator for the build system.
19088 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19091 host_alias=$host_alias
19095 # The build system.
19096 build_alias=$build_alias
19100 # A sed program that does not truncate output.
19103 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19104 Xsed="\$SED -e 1s/^X//"
19106 # A grep program that handles long lines.
19112 # A literal string matcher.
19115 # A BSD- or MS-compatible name lister.
19118 # Whether we need soft or hard links.
19121 # What is the maximum length of a command?
19122 max_cmd_len=$max_cmd_len
19124 # Object file suffix (normally "o").
19127 # Executable file suffix (normally "").
19130 # whether the shell understands "unset".
19133 # turn spaces into newlines.
19136 # turn newlines into spaces.
19139 # convert \$build file names to \$host format.
19140 to_host_file_cmd=$lt_cv_to_host_file_cmd
19142 # convert \$build files to toolchain format.
19143 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19145 # An object symbol dumper.
19146 OBJDUMP=$lt_OBJDUMP
19148 # Method to check whether dependent libraries are shared objects.
19149 deplibs_check_method=$lt_deplibs_check_method
19151 # Command to use when deplibs_check_method = "file_magic".
19152 file_magic_cmd=$lt_file_magic_cmd
19154 # How to find potential files when deplibs_check_method = "file_magic".
19155 file_magic_glob=$lt_file_magic_glob
19157 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19158 want_nocaseglob=$lt_want_nocaseglob
19160 # DLL creation program.
19161 DLLTOOL=$lt_DLLTOOL
19163 # Command to associate shared and link libraries.
19164 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19169 # Flags to create an archive.
19170 AR_FLAGS=$lt_AR_FLAGS
19172 # How to feed a file listing to the archiver.
19173 archiver_list_spec=$lt_archiver_list_spec
19175 # A symbol stripping program.
19178 # Commands used to install an old-style archive.
19180 old_postinstall_cmds=$lt_old_postinstall_cmds
19181 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19183 # Whether to use a lock for old archive extraction.
19184 lock_old_archive_extraction=$lock_old_archive_extraction
19189 # LTCC compiler flags.
19190 LTCFLAGS=$lt_CFLAGS
19192 # Take the output of nm and produce a listing of raw symbols and C names.
19193 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19195 # Transform the output of nm in a proper C declaration.
19196 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19198 # Transform the output of nm in a C name address pair.
19199 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19201 # Transform the output of nm in a C name address pair when lib prefix is needed.
19202 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19204 # Specify filename containing input files for \$NM.
19205 nm_file_list_spec=$lt_nm_file_list_spec
19207 # The root where to search for dependent libraries,and in which our libraries should be installed.
19208 lt_sysroot=$lt_sysroot
19210 # The name of the directory that contains temporary libtool files.
19213 # Used to examine libraries when file_magic_cmd begins with "file".
19214 MAGIC_CMD=$MAGIC_CMD
19216 # Must we lock files when doing compilation?
19217 need_locks=$lt_need_locks
19220 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19222 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19223 DSYMUTIL=$lt_DSYMUTIL
19225 # Tool to change global to local symbols on Mac OS X.
19228 # Tool to manipulate fat objects and archives on Mac OS X.
19231 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19234 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19235 OTOOL64=$lt_OTOOL64
19237 # Old archive suffix (normally "a").
19240 # Shared library suffix (normally ".so").
19241 shrext_cmds=$lt_shrext_cmds
19243 # The commands to extract the exported symbol list from a shared archive.
19244 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19246 # Variables whose values should be saved in libtool wrapper scripts and
19247 # restored at link time.
19248 variables_saved_for_relink=$lt_variables_saved_for_relink
19250 # Do we need the "lib" prefix for modules?
19251 need_lib_prefix=$need_lib_prefix
19253 # Do we need a version for libraries?
19254 need_version=$need_version
19256 # Library versioning type.
19257 version_type=$version_type
19259 # Shared library runtime path variable.
19260 runpath_var=$runpath_var
19262 # Shared library path variable.
19263 shlibpath_var=$shlibpath_var
19265 # Is shlibpath searched before the hard-coded library search path?
19266 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19268 # Format of library name prefix.
19269 libname_spec=$lt_libname_spec
19271 # List of archive names. First name is the real one, the rest are links.
19272 # The last name is the one that the linker finds with -lNAME
19273 library_names_spec=$lt_library_names_spec
19275 # The coded name of the library, if different from the real name.
19276 soname_spec=$lt_soname_spec
19278 # Permission mode override for installation of shared libraries.
19279 install_override_mode=$lt_install_override_mode
19281 # Command to use after installation of a shared archive.
19282 postinstall_cmds=$lt_postinstall_cmds
19284 # Command to use after uninstallation of a shared archive.
19285 postuninstall_cmds=$lt_postuninstall_cmds
19287 # Commands used to finish a libtool library installation in a directory.
19288 finish_cmds=$lt_finish_cmds
19290 # As "finish_cmds", except a single script fragment to be evaled but
19292 finish_eval=$lt_finish_eval
19294 # Whether we should hardcode library paths into libraries.
19295 hardcode_into_libs=$hardcode_into_libs
19297 # Compile-time system search path for libraries.
19298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19300 # Run-time system search path for libraries.
19301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19303 # Whether dlopen is supported.
19304 dlopen_support=$enable_dlopen
19306 # Whether dlopen of programs is supported.
19307 dlopen_self=$enable_dlopen_self
19309 # Whether dlopen of statically linked programs is supported.
19310 dlopen_self_static=$enable_dlopen_self_static
19312 # Commands to strip libraries.
19313 old_striplib=$lt_old_striplib
19314 striplib=$lt_striplib
19317 # The linker used to build libraries.
19320 # How to create reloadable object files.
19321 reload_flag=$lt_reload_flag
19322 reload_cmds=$lt_reload_cmds
19324 # Commands used to build an old-style archive.
19325 old_archive_cmds=$lt_old_archive_cmds
19327 # A language specific compiler.
19330 # Is the compiler the GNU compiler?
19333 # Compiler flag to turn off builtin functions.
19334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19336 # Additional compiler flags for building library objects.
19337 pic_flag=$lt_lt_prog_compiler_pic
19339 # How to pass a linker flag through the compiler.
19340 wl=$lt_lt_prog_compiler_wl
19342 # Compiler flag to prevent dynamic linking.
19343 link_static_flag=$lt_lt_prog_compiler_static
19345 # Does compiler simultaneously support -c and -o options?
19346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19348 # Whether or not to add -lc for building shared libraries.
19349 build_libtool_need_lc=$archive_cmds_need_lc
19351 # Whether or not to disallow shared libs when runtime libs are static.
19352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19354 # Compiler flag to allow reflexive dlopens.
19355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19357 # Compiler flag to generate shared objects directly from archives.
19358 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19360 # Whether the compiler copes with passing no objects directly.
19361 compiler_needs_object=$lt_compiler_needs_object
19363 # Create an old-style archive from a shared archive.
19364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19366 # Create a temporary old-style archive to link instead of a shared archive.
19367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19369 # Commands used to build a shared archive.
19370 archive_cmds=$lt_archive_cmds
19371 archive_expsym_cmds=$lt_archive_expsym_cmds
19373 # Commands used to build a loadable module if different from building
19374 # a shared archive.
19375 module_cmds=$lt_module_cmds
19376 module_expsym_cmds=$lt_module_expsym_cmds
19378 # Whether we are building with GNU ld or not.
19379 with_gnu_ld=$lt_with_gnu_ld
19381 # Flag that allows shared libraries with undefined symbols to be built.
19382 allow_undefined_flag=$lt_allow_undefined_flag
19384 # Flag that enforces no undefined symbols.
19385 no_undefined_flag=$lt_no_undefined_flag
19387 # Flag to hardcode \$libdir into a binary during linking.
19388 # This must work even if \$libdir does not exist
19389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19391 # Whether we need a single "-rpath" flag with a separated argument.
19392 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19394 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19395 # DIR into the resulting binary.
19396 hardcode_direct=$hardcode_direct
19398 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19399 # DIR into the resulting binary and the resulting library dependency is
19400 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19401 # library is relocated.
19402 hardcode_direct_absolute=$hardcode_direct_absolute
19404 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19405 # into the resulting binary.
19406 hardcode_minus_L=$hardcode_minus_L
19408 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19409 # into the resulting binary.
19410 hardcode_shlibpath_var=$hardcode_shlibpath_var
19412 # Set to "yes" if building a shared library automatically hardcodes DIR
19413 # into the library and all subsequent libraries and executables linked
19415 hardcode_automatic=$hardcode_automatic
19417 # Set to yes if linker adds runtime paths of dependent libraries
19418 # to runtime path list.
19419 inherit_rpath=$inherit_rpath
19421 # Whether libtool must link a program against all its dependency libraries.
19422 link_all_deplibs=$link_all_deplibs
19424 # Set to "yes" if exported symbols are required.
19425 always_export_symbols=$always_export_symbols
19427 # The commands to list exported symbols.
19428 export_symbols_cmds=$lt_export_symbols_cmds
19430 # Symbols that should not be listed in the preloaded symbols.
19431 exclude_expsyms=$lt_exclude_expsyms
19433 # Symbols that must always be exported.
19434 include_expsyms=$lt_include_expsyms
19436 # Commands necessary for linking programs (against libraries) with templates.
19437 prelink_cmds=$lt_prelink_cmds
19439 # Commands necessary for finishing linking programs.
19440 postlink_cmds=$lt_postlink_cmds
19442 # Specify filename containing input files.
19443 file_list_spec=$lt_file_list_spec
19445 # How to hardcode a shared library path into an executable.
19446 hardcode_action=$hardcode_action
19448 # The directories searched by this compiler when creating a shared library.
19449 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19451 # Dependencies to place before and after the objects being linked to
19452 # create a shared library.
19453 predep_objects=$lt_predep_objects
19454 postdep_objects=$lt_postdep_objects
19455 predeps=$lt_predeps
19456 postdeps=$lt_postdeps
19458 # The library search path used internally by the compiler when linking
19459 # a shared library.
19460 compiler_lib_search_path=$lt_compiler_lib_search_path
19462 # ### END LIBTOOL CONFIG
19468 cat <<\_LT_EOF >> "$cfgfile"
19469 # AIX sometimes has problems with the GCC collect2 program. For some
19470 # reason, if we set the COLLECT_NAMES environment variable, the problems
19471 # vanish in a puff of smoke.
19472 if test "X${COLLECT_NAMES+set}" != Xset; then
19474 export COLLECT_NAMES
19481 ltmain="$ac_aux_dir/ltmain.sh"
19484 # We use sed instead of cat because bash on DJGPP gets confused if
19485 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19486 # text mode, it properly converts lines to CR/LF. This bash problem
19487 # is reportedly fixed, but why not run on old versions too?
19488 sed '$q' "$ltmain" >> "$cfgfile" \
19489 || (rm -f "$cfgfile"; exit 1)
19491 if test x"$xsi_shell" = xyes; then
19492 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19496 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19497 \ * ) func_dirname_result="${3}" ;;\
19499 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19500 && mv -f "$cfgfile.tmp" "$cfgfile" \
19501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19502 test 0 -eq $? || _lt_function_replace_fail=:
19505 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19508 \ func_basename_result="${1##*/}"\
19509 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19510 && mv -f "$cfgfile.tmp" "$cfgfile" \
19511 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19512 test 0 -eq $? || _lt_function_replace_fail=:
19515 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19516 func_dirname_and_basename ()\
19519 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19520 \ * ) func_dirname_result="${3}" ;;\
19522 \ func_basename_result="${1##*/}"\
19523 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19524 && mv -f "$cfgfile.tmp" "$cfgfile" \
19525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19526 test 0 -eq $? || _lt_function_replace_fail=:
19529 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19532 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19533 \ # positional parameters, so assign one to ordinary parameter first.\
19534 \ func_stripname_result=${3}\
19535 \ func_stripname_result=${func_stripname_result#"${1}"}\
19536 \ func_stripname_result=${func_stripname_result%"${2}"}\
19537 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19538 && mv -f "$cfgfile.tmp" "$cfgfile" \
19539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19540 test 0 -eq $? || _lt_function_replace_fail=:
19543 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19544 func_split_long_opt ()\
19546 \ func_split_long_opt_name=${1%%=*}\
19547 \ func_split_long_opt_arg=${1#*=}\
19548 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19549 && mv -f "$cfgfile.tmp" "$cfgfile" \
19550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19551 test 0 -eq $? || _lt_function_replace_fail=:
19554 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19555 func_split_short_opt ()\
19557 \ func_split_short_opt_arg=${1#??}\
19558 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19559 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19560 && mv -f "$cfgfile.tmp" "$cfgfile" \
19561 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19562 test 0 -eq $? || _lt_function_replace_fail=:
19565 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19569 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19570 \ *) func_lo2o_result=${1} ;;\
19572 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19573 && mv -f "$cfgfile.tmp" "$cfgfile" \
19574 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19575 test 0 -eq $? || _lt_function_replace_fail=:
19578 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19581 func_xform_result=${1%.*}.lo\
19582 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19583 && mv -f "$cfgfile.tmp" "$cfgfile" \
19584 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19585 test 0 -eq $? || _lt_function_replace_fail=:
19588 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19591 func_arith_result=$(( $* ))\
19592 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19593 && mv -f "$cfgfile.tmp" "$cfgfile" \
19594 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19595 test 0 -eq $? || _lt_function_replace_fail=:
19598 sed -e '/^func_len ()$/,/^} # func_len /c\
19601 func_len_result=${#1}\
19602 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19603 && mv -f "$cfgfile.tmp" "$cfgfile" \
19604 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19605 test 0 -eq $? || _lt_function_replace_fail=:
19609 if test x"$lt_shell_append" = xyes; then
19610 sed -e '/^func_append ()$/,/^} # func_append /c\
19613 eval "${1}+=\\${2}"\
19614 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19615 && mv -f "$cfgfile.tmp" "$cfgfile" \
19616 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19617 test 0 -eq $? || _lt_function_replace_fail=:
19620 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19621 func_append_quoted ()\
19623 \ func_quote_for_eval "${2}"\
19624 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19625 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19626 && mv -f "$cfgfile.tmp" "$cfgfile" \
19627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19628 test 0 -eq $? || _lt_function_replace_fail=:
19631 # Save a `func_append' function call where possible by direct use of '+='
19632 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19633 && mv -f "$cfgfile.tmp" "$cfgfile" \
19634 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19635 test 0 -eq $? || _lt_function_replace_fail=:
19637 # Save a `func_append' function call even when '+=' is not available
19638 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19639 && mv -f "$cfgfile.tmp" "$cfgfile" \
19640 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19641 test 0 -eq $? || _lt_function_replace_fail=:
19644 if test x"$_lt_function_replace_fail" = x":"; then
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19646 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19650 mv -f "$cfgfile" "$ofile" ||
19651 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19655 cat <<_LT_EOF >> "$ofile"
19657 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19659 # The linker used to build libraries.
19662 # How to create reloadable object files.
19663 reload_flag=$lt_reload_flag_CXX
19664 reload_cmds=$lt_reload_cmds_CXX
19666 # Commands used to build an old-style archive.
19667 old_archive_cmds=$lt_old_archive_cmds_CXX
19669 # A language specific compiler.
19670 CC=$lt_compiler_CXX
19672 # Is the compiler the GNU compiler?
19675 # Compiler flag to turn off builtin functions.
19676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19678 # Additional compiler flags for building library objects.
19679 pic_flag=$lt_lt_prog_compiler_pic_CXX
19681 # How to pass a linker flag through the compiler.
19682 wl=$lt_lt_prog_compiler_wl_CXX
19684 # Compiler flag to prevent dynamic linking.
19685 link_static_flag=$lt_lt_prog_compiler_static_CXX
19687 # Does compiler simultaneously support -c and -o options?
19688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19690 # Whether or not to add -lc for building shared libraries.
19691 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19693 # Whether or not to disallow shared libs when runtime libs are static.
19694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19696 # Compiler flag to allow reflexive dlopens.
19697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19699 # Compiler flag to generate shared objects directly from archives.
19700 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19702 # Whether the compiler copes with passing no objects directly.
19703 compiler_needs_object=$lt_compiler_needs_object_CXX
19705 # Create an old-style archive from a shared archive.
19706 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19708 # Create a temporary old-style archive to link instead of a shared archive.
19709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19711 # Commands used to build a shared archive.
19712 archive_cmds=$lt_archive_cmds_CXX
19713 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19715 # Commands used to build a loadable module if different from building
19716 # a shared archive.
19717 module_cmds=$lt_module_cmds_CXX
19718 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19720 # Whether we are building with GNU ld or not.
19721 with_gnu_ld=$lt_with_gnu_ld_CXX
19723 # Flag that allows shared libraries with undefined symbols to be built.
19724 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19726 # Flag that enforces no undefined symbols.
19727 no_undefined_flag=$lt_no_undefined_flag_CXX
19729 # Flag to hardcode \$libdir into a binary during linking.
19730 # This must work even if \$libdir does not exist
19731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19733 # Whether we need a single "-rpath" flag with a separated argument.
19734 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19736 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19737 # DIR into the resulting binary.
19738 hardcode_direct=$hardcode_direct_CXX
19740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19741 # DIR into the resulting binary and the resulting library dependency is
19742 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19743 # library is relocated.
19744 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19746 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19747 # into the resulting binary.
19748 hardcode_minus_L=$hardcode_minus_L_CXX
19750 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19751 # into the resulting binary.
19752 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19754 # Set to "yes" if building a shared library automatically hardcodes DIR
19755 # into the library and all subsequent libraries and executables linked
19757 hardcode_automatic=$hardcode_automatic_CXX
19759 # Set to yes if linker adds runtime paths of dependent libraries
19760 # to runtime path list.
19761 inherit_rpath=$inherit_rpath_CXX
19763 # Whether libtool must link a program against all its dependency libraries.
19764 link_all_deplibs=$link_all_deplibs_CXX
19766 # Set to "yes" if exported symbols are required.
19767 always_export_symbols=$always_export_symbols_CXX
19769 # The commands to list exported symbols.
19770 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19772 # Symbols that should not be listed in the preloaded symbols.
19773 exclude_expsyms=$lt_exclude_expsyms_CXX
19775 # Symbols that must always be exported.
19776 include_expsyms=$lt_include_expsyms_CXX
19778 # Commands necessary for linking programs (against libraries) with templates.
19779 prelink_cmds=$lt_prelink_cmds_CXX
19781 # Commands necessary for finishing linking programs.
19782 postlink_cmds=$lt_postlink_cmds_CXX
19784 # Specify filename containing input files.
19785 file_list_spec=$lt_file_list_spec_CXX
19787 # How to hardcode a shared library path into an executable.
19788 hardcode_action=$hardcode_action_CXX
19790 # The directories searched by this compiler when creating a shared library.
19791 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19793 # Dependencies to place before and after the objects being linked to
19794 # create a shared library.
19795 predep_objects=$lt_predep_objects_CXX
19796 postdep_objects=$lt_postdep_objects_CXX
19797 predeps=$lt_predeps_CXX
19798 postdeps=$lt_postdeps_CXX
19800 # The library search path used internally by the compiler when linking
19801 # a shared library.
19802 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19804 # ### END LIBTOOL TAG CONFIG: CXX
19815 ac_clean_files=$ac_clean_files_save
19817 test $ac_write_fail = 0 ||
19818 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19821 # configure is writing to config.log, and then calls config.status.
19822 # config.status does its own redirection, appending to config.log.
19823 # Unfortunately, on DOS this fails, as config.log is still kept open
19824 # by configure, so config.status won't be able to write to it; its
19825 # output is simply discarded. So we exec the FD to /dev/null,
19826 # effectively closing config.log, so it can be properly (re)opened and
19827 # appended to by config.status. When coming back to configure, we
19828 # need to make the FD available again.
19829 if test "$no_create" != yes; then
19831 ac_config_status_args=
19832 test "$silent" = yes &&
19833 ac_config_status_args="$ac_config_status_args --quiet"
19835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19838 # would make configure fail if this is the last instruction.
19839 $ac_cs_success || as_fn_exit 1
19841 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19843 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}