2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glog 0.3.3.
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.3'
574 PACKAGE_STRING='glog 0.3.3'
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
631 ac_cv_have_inttypes_h
632 ac_cv_have_systypes_h
634 ac_cv_have___builtin_expect
635 ac_cv___attribute___printf_4_5
636 ac_cv___attribute___noinline
637 ac_cv___attribute___noreturn
638 ac_cv_cxx_using_operator
640 ac_google_end_namespace
641 ac_google_start_namespace
655 ENABLE_FRAME_POINTERS_FALSE
656 ENABLE_FRAME_POINTERS_TRUE
722 INSTALL_STRIP_PROGRAM
764 program_transform_name
777 enable_option_checking
778 enable_dependency_tracking
786 enable_frame_pointers
791 ac_precious_vars='build_alias
806 # Initialize some variables set by options.
808 ac_init_version=false
809 ac_unrecognized_opts=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
820 program_transform_name=s,x,x,
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 # Accept the important Cygnus configure options, so we can diagnose typos.
873 case $ac_dashdash$ac_option in
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
895 cache_file=config.cache ;;
897 -datadir | --datadir | --datadi | --datad)
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
923 eval enable_$ac_useropt=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
949 eval enable_$ac_useropt=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
964 -help | --help | --hel | --he | -h)
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1113 -site=* | --site=* | --sit=*)
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval with_$ac_useropt=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval with_$ac_useropt=no ;;
1172 # Obsolete; use --with-x.
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1240 # Be sure to have absolute directory names.
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1253 target=$target_alias
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1260 If a cross compiler is detected then cross compile mode will be used" >&2
1261 elif test "x$build_alias" != "x$host_alias"; then
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269 test "$silent" = yes && exec 6>/dev/null
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error $? "pwd does not report name of working directory"
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1312 ac_srcdir_defaulted=no
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 # Report the --help message.
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1346 \`configure' configures glog 0.3.3 to adapt to many kinds of systems.
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1353 Defaults for the options are specified in brackets.
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking ...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1377 For better control, use the options below.
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of glog 0.3.3:";;
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --disable-dependency-tracking speeds up one-time build
1425 --enable-dependency-tracking do not reject slow dependency extractors
1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
1430 --disable-libtool-lock avoid locking (might break parallel builds)
1431 --enable-frame-pointers On x86_64 systems, compile with
1432 -fno-omit-frame-pointer (see INSTALL)
1433 --disable-rtti Disable RTTI in glog
1434 --enable-namespace=FOO to define these Google
1435 classes in the FOO namespace. --disable-namespace
1436 to define them in the global namespace. Default
1437 is to define them in namespace google.
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445 --with-sysroot=DIR Search for dependent libraries within DIR
1446 (or the compiler's sysroot if not specified).
1447 --with-gflags=GFLAGS_DIR
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1458 CXX C++ compiler command
1459 CXXFLAGS C++ compiler flags
1460 CXXCPP C++ preprocessor
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1465 Report bugs to <opensource@google.com>.
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1495 .) # We are building in place.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1528 glog configure 0.3.3
1529 generated by GNU Autoconf 2.68
1531 Copyright (C) 2010 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1578 } # ac_fn_c_try_compile
1580 # ac_fn_c_try_cpp LINENO
1581 # ----------------------
1582 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } > conftest.i && {
1602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1617 # ac_fn_cxx_try_compile LINENO
1618 # ----------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_cxx_try_compile ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_cxx_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1653 } # ac_fn_cxx_try_compile
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
1682 $as_test_x conftest$ac_exeext
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693 # interfere with the next link command; also delete a directory that is
1694 # left behind by Apple's compiler. We do this before executing the actions.
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1699 } # ac_fn_c_try_link
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711 $as_echo_n "(cached) " >&6
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1718 if ac_fn_c_try_compile "$LINENO"; then :
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 } # ac_fn_c_check_header_compile
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735 # that executables *can* be run.
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=$ac_status
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1774 # ac_fn_c_check_func LINENO FUNC VAR
1775 # ----------------------------------
1776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1777 ac_fn_c_check_func ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1789 #define $2 innocuous_$2
1791 /* System header to define __stub macros and hopefully few prototypes,
1792 which can conflict with char $2 (); below.
1793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794 <limits.h> exists even on freestanding compilers. */
1797 # include <limits.h>
1799 # include <assert.h>
1804 /* Override any GCC internal prototype to avoid an error.
1805 Use char because int might match the return type of a GCC
1806 builtin and then its argument prototype would still apply. */
1811 /* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814 #if defined __stub_$2 || defined __stub___$2
1826 if ac_fn_c_try_link "$LINENO"; then :
1831 rm -f core conftest.err conftest.$ac_objext \
1832 conftest$ac_exeext conftest.$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 } # ac_fn_c_check_func
1841 # ac_fn_cxx_try_cpp LINENO
1842 # ------------------------
1843 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_cpp ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } > conftest.i && {
1863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1864 test ! -s conftest.err
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1876 } # ac_fn_cxx_try_cpp
1878 # ac_fn_cxx_try_link LINENO
1879 # -------------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_link ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext conftest$ac_exeext
1885 if { { ac_try="$ac_link"
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>conftest.err
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_cxx_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest$ac_exeext && {
1904 test "$cross_compiling" = yes ||
1905 $as_test_x conftest$ac_exeext
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1914 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1915 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1916 # interfere with the next link command; also delete a directory that is
1917 # left behind by Apple's compiler. We do this before executing the actions.
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1922 } # ac_fn_cxx_try_link
1924 # ac_fn_cxx_try_run LINENO
1925 # ------------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1927 # that executables *can* be run.
1928 ac_fn_cxx_try_run ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 if { { ac_try="$ac_link"
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>&5
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1942 { { case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_try") 2>&5
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; }; }; then :
1954 $as_echo "$as_me: program exited with status $ac_status" >&5
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1958 ac_retval=$ac_status
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1964 } # ac_fn_cxx_try_run
1966 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # ---------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1971 ac_fn_cxx_check_header_mongrel ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if eval \${$3+:} false; then :
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1984 # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1992 if ac_fn_cxx_try_compile "$LINENO"; then :
1993 ac_header_compiler=yes
1995 ac_header_compiler=no
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 if ac_fn_cxx_try_cpp "$LINENO"; then :
2009 ac_header_preproc=yes
2011 ac_header_preproc=no
2013 rm -f conftest.err conftest.i conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2017 # So? What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 ( $as_echo "## ------------------------------------ ##
2037 ## Report this to opensource@google.com ##
2038 ## ------------------------------------ ##"
2039 ) | sed "s/^/$as_me: WARNING: /" >&2
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2047 eval "$3=\$ac_header_compiler"
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_cxx_check_header_mongrel
2057 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2058 # ----------------------------------------------
2059 # Tries to find the compile-time value of EXPR in a program that includes
2060 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2062 ac_fn_cxx_compute_int ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if test "$cross_compiling" = yes; then
2066 # Depending upon the size, compute the lo and hi bounds.
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2073 static int test_array [1 - 2 * !(($2) >= 0)];
2080 if ac_fn_cxx_try_compile "$LINENO"; then :
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2089 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096 if ac_fn_cxx_try_compile "$LINENO"; then :
2097 ac_hi=$ac_mid; break
2099 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2100 if test $ac_lo -le $ac_mid; then
2104 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2115 static int test_array [1 - 2 * !(($2) < 0)];
2122 if ac_fn_cxx_try_compile "$LINENO"; then :
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2138 if ac_fn_cxx_try_compile "$LINENO"; then :
2139 ac_lo=$ac_mid; break
2141 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2142 if test $ac_mid -le $ac_hi; then
2146 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 # Binary search between lo and hi bounds.
2157 while test "x$ac_lo" != "x$ac_hi"; do
2158 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2165 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172 if ac_fn_cxx_try_compile "$LINENO"; then :
2175 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2187 static long int longval () { return $2; }
2188 static unsigned long int ulongval () { return $2; }
2195 FILE *f = fopen ("conftest.val", "w");
2200 long int i = longval ();
2203 fprintf (f, "%ld", i);
2207 unsigned long int i = ulongval ();
2210 fprintf (f, "%lu", i);
2212 /* Do not output a trailing newline, as this causes \r\n confusion
2213 on some platforms. */
2214 return ferror (f) || fclose (f) != 0;
2220 if ac_fn_cxx_try_run "$LINENO"; then :
2221 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2226 conftest.$ac_objext conftest.beam conftest.$ac_ext
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 as_fn_set_status $ac_retval
2233 } # ac_fn_cxx_compute_int
2235 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2236 # ---------------------------------------------
2237 # Tests whether TYPE exists after having included INCLUDES, setting cache
2238 # variable VAR accordingly.
2239 ac_fn_cxx_check_type ()
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243 $as_echo_n "checking for $2... " >&6; }
2244 if eval \${$3+:} false; then :
2245 $as_echo_n "(cached) " >&6
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2260 if ac_fn_cxx_try_compile "$LINENO"; then :
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2273 if ac_fn_cxx_try_compile "$LINENO"; then :
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 } # ac_fn_cxx_check_type
2289 # ac_fn_cxx_check_func LINENO FUNC VAR
2290 # ------------------------------------
2291 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2292 ac_fn_cxx_check_func ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if eval \${$3+:} false; then :
2298 $as_echo_n "(cached) " >&6
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2304 #define $2 innocuous_$2
2306 /* System header to define __stub macros and hopefully few prototypes,
2307 which can conflict with char $2 (); below.
2308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2309 <limits.h> exists even on freestanding compilers. */
2312 # include <limits.h>
2314 # include <assert.h>
2319 /* Override any GCC internal prototype to avoid an error.
2320 Use char because int might match the return type of a GCC
2321 builtin and then its argument prototype would still apply. */
2326 /* The GNU C library defines this for functions which it implements
2327 to always fail with ENOSYS. Some functions are actually named
2328 something starting with __ and the normal name is an alias. */
2329 #if defined __stub_$2 || defined __stub___$2
2341 if ac_fn_cxx_try_link "$LINENO"; then :
2346 rm -f core conftest.err conftest.$ac_objext \
2347 conftest$ac_exeext conftest.$ac_ext
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 } # ac_fn_cxx_check_func
2355 cat >config.log <<_ACEOF
2356 This file contains any messages produced by compilers while
2357 running configure, to aid debugging if configure makes a mistake.
2359 It was created by glog $as_me 0.3.3, which was
2360 generated by GNU Autoconf 2.68. Invocation command line was
2372 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2373 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2374 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2375 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2376 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2378 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2379 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2381 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2382 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2383 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2384 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2385 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2386 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2387 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 $as_echo "PATH: $as_dir"
2412 # Keep a trace of the command line.
2413 # Strip out --no-create and --no-recursion so they do not pile up.
2414 # Strip out --silent because we don't want to record it for future runs.
2415 # Also quote any args containing shell meta-characters.
2416 # Make two passes to allow for proper duplicate-argument suppression.
2420 ac_must_keep_next=false
2426 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2428 | -silent | --silent | --silen | --sile | --sil)
2431 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2434 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2436 as_fn_append ac_configure_args1 " '$ac_arg'"
2437 if test $ac_must_keep_next = true; then
2438 ac_must_keep_next=false # Got value, back to normal.
2441 *=* | --config-cache | -C | -disable-* | --disable-* \
2442 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2443 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2444 | -with-* | --with-* | -without-* | --without-* | --x)
2445 case "$ac_configure_args0 " in
2446 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2449 -* ) ac_must_keep_next=true ;;
2452 as_fn_append ac_configure_args " '$ac_arg'"
2457 { ac_configure_args0=; unset ac_configure_args0;}
2458 { ac_configure_args1=; unset ac_configure_args1;}
2460 # When interrupted or exit'd, cleanup temporary files, and complete
2461 # config.log. We remove comments because anyway the quotes in there
2462 # would cause problems or look ugly.
2463 # WARNING: Use '\'' to represent an apostrophe within the trap.
2464 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2465 trap 'exit_status=$?
2466 # Save into config.log some information that might help in debugging.
2470 $as_echo "## ---------------- ##
2471 ## Cache variables. ##
2472 ## ---------------- ##"
2474 # The following way of writing the cache mishandles newlines in values,
2476 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477 eval ac_val=\$$ac_var
2481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2485 _ | IFS | as_nl) ;; #(
2486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487 *) { eval $ac_var=; unset $ac_var;} ;;
2492 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493 *${as_nl}ac_space=\ *)
2495 "s/'\''/'\''\\\\'\'''\''/g;
2496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2506 $as_echo "## ----------------- ##
2507 ## Output variables. ##
2508 ## ----------------- ##"
2510 for ac_var in $ac_subst_vars
2512 eval ac_val=\$$ac_var
2514 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516 $as_echo "$ac_var='\''$ac_val'\''"
2520 if test -n "$ac_subst_files"; then
2521 $as_echo "## ------------------- ##
2522 ## File substitutions. ##
2523 ## ------------------- ##"
2525 for ac_var in $ac_subst_files
2527 eval ac_val=\$$ac_var
2529 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2531 $as_echo "$ac_var='\''$ac_val'\''"
2536 if test -s confdefs.h; then
2537 $as_echo "## ----------- ##
2544 test "$ac_signal" != 0 &&
2545 $as_echo "$as_me: caught signal $ac_signal"
2546 $as_echo "$as_me: exit $exit_status"
2548 rm -f core *.core core.conftest.* &&
2549 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2552 for ac_signal in 1 2 13 15; do
2553 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2557 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2558 rm -f -r conftest* confdefs.h
2560 $as_echo "/* confdefs.h */" > confdefs.h
2562 # Predefined preprocessor variables.
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_NAME "$PACKAGE_NAME"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_STRING "$PACKAGE_STRING"
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_URL "$PACKAGE_URL"
2589 # Let the site file select an alternate cache file if it wants to.
2590 # Prefer an explicitly selected file to automatically selected ones.
2593 if test -n "$CONFIG_SITE"; then
2594 # We do not want a PATH search for config.site.
2595 case $CONFIG_SITE in #((
2596 -*) ac_site_file1=./$CONFIG_SITE;;
2597 */*) ac_site_file1=$CONFIG_SITE;;
2598 *) ac_site_file1=./$CONFIG_SITE;;
2600 elif test "x$prefix" != xNONE; then
2601 ac_site_file1=$prefix/share/config.site
2602 ac_site_file2=$prefix/etc/config.site
2604 ac_site_file1=$ac_default_prefix/share/config.site
2605 ac_site_file2=$ac_default_prefix/etc/config.site
2607 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2609 test "x$ac_site_file" = xNONE && continue
2610 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2612 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2613 sed 's/^/| /' "$ac_site_file" >&5
2615 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617 as_fn_error $? "failed to load site script $ac_site_file
2618 See \`config.log' for more details" "$LINENO" 5; }
2622 if test -r "$cache_file"; then
2623 # Some versions of bash will fail to source /dev/null (special files
2624 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2625 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2627 $as_echo "$as_me: loading cache $cache_file" >&6;}
2629 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2630 *) . "./$cache_file";;
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2635 $as_echo "$as_me: creating cache $cache_file" >&6;}
2639 # Check that the precious variables saved in the cache have kept the same
2641 ac_cache_corrupted=false
2642 for ac_var in $ac_precious_vars; do
2643 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2644 eval ac_new_set=\$ac_env_${ac_var}_set
2645 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2646 eval ac_new_val=\$ac_env_${ac_var}_value
2647 case $ac_old_set,$ac_new_set in
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2650 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2651 ac_cache_corrupted=: ;;
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2654 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2655 ac_cache_corrupted=: ;;
2658 if test "x$ac_old_val" != "x$ac_new_val"; then
2659 # differences in whitespace do not lead to failure.
2660 ac_old_val_w=`echo x $ac_old_val`
2661 ac_new_val_w=`echo x $ac_new_val`
2662 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2664 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2665 ac_cache_corrupted=:
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2668 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2669 eval $ac_var=\$ac_old_val
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2672 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2674 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2677 # Pass precious variables to config.status.
2678 if test "$ac_new_set" = set; then
2680 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2681 *) ac_arg=$ac_var=$ac_new_val ;;
2683 case " $ac_configure_args " in
2684 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2685 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2689 if $ac_cache_corrupted; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2693 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2694 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2696 ## -------------------- ##
2697 ## Main body of script. ##
2698 ## -------------------- ##
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 # The argument here is just something that should be in the current directory
2708 # (for sanity checking)
2711 am__api_version='1.11'
2714 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2715 if test -f "$ac_dir/install-sh"; then
2717 ac_install_sh="$ac_aux_dir/install-sh -c"
2719 elif test -f "$ac_dir/install.sh"; then
2721 ac_install_sh="$ac_aux_dir/install.sh -c"
2723 elif test -f "$ac_dir/shtool"; then
2725 ac_install_sh="$ac_aux_dir/shtool install -c"
2729 if test -z "$ac_aux_dir"; then
2730 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2733 # These three variables are undocumented and unsupported,
2734 # and are intended to be withdrawn in a future Autoconf release.
2735 # They can cause serious problems if a builder's source tree is in a directory
2736 # whose full name contains unusual characters.
2737 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2738 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2739 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2742 # Find a good install program. We prefer a C program (faster),
2743 # so one script is as good as another. But avoid the broken or
2744 # incompatible versions:
2745 # SysV /etc/install, /usr/sbin/install
2746 # SunOS /usr/etc/install
2747 # IRIX /sbin/install
2749 # AmigaOS /C/install, which installs bootblocks on floppy discs
2750 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2753 # OS/2's system install, which has a completely different semantic
2754 # ./install, which can be erroneously created by make from ./install.sh.
2755 # Reject install programs that cannot install multiple files.
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2757 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2758 if test -z "$INSTALL"; then
2759 if ${ac_cv_path_install+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 # Account for people who put trailing slashes in PATH elements.
2768 case $as_dir/ in #((
2769 ./ | .// | /[cC]/* | \
2770 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2771 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2774 # OSF1 and SCO ODT 3.0 have their own names for install.
2775 # Don't use installbsd from OSF since it installs stuff as root
2777 for ac_prog in ginstall scoinst install; do
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2780 if test $ac_prog = install &&
2781 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782 # AIX install. It has an incompatible calling convention.
2784 elif test $ac_prog = install &&
2785 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2786 # program-specific install script used by HP pwplus--don't use.
2789 rm -rf conftest.one conftest.two conftest.dir
2790 echo one > conftest.one
2791 echo two > conftest.two
2793 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2794 test -s conftest.one && test -s conftest.two &&
2795 test -s conftest.dir/conftest.one &&
2796 test -s conftest.dir/conftest.two
2798 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2811 rm -rf conftest.one conftest.two conftest.dir
2814 if test "${ac_cv_path_install+set}" = set; then
2815 INSTALL=$ac_cv_path_install
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for INSTALL within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
2821 INSTALL=$ac_install_sh
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2825 $as_echo "$INSTALL" >&6; }
2827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2828 # It thinks the first close brace ends the variable substitution.
2829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2836 $as_echo_n "checking whether build environment is sane... " >&6; }
2839 echo timestamp > conftest.file
2840 # Reject unsafe characters in $srcdir or the absolute working directory
2841 # name. Accept space and tab only in the latter.
2845 *[\\\"\#\$\&\'\`$am_lf]*)
2846 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2849 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2850 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2853 # Do `set' in a subshell so we don't clobber the current shell's
2854 # arguments. Must try -L first in case configure is actually a
2855 # symlink; some systems play weird games with the mod time of symlinks
2856 # (eg FreeBSD returns the mod time of the symlink's containing
2859 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2860 if test "$*" = "X"; then
2862 set X `ls -t "$srcdir/configure" conftest.file`
2865 if test "$*" != "X $srcdir/configure conftest.file" \
2866 && test "$*" != "X conftest.file $srcdir/configure"; then
2868 # If neither matched, then we have a broken ls. This can happen
2869 # if, for instance, CONFIG_SHELL is bash and it inherits a
2870 # broken ls alias from the environment. This has actually
2871 # happened. Such a system could not be considered "sane".
2872 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2873 alias in your environment" "$LINENO" 5
2876 test "$2" = conftest.file
2882 as_fn_error $? "newly created file is older than distributed files!
2883 Check your system clock" "$LINENO" 5
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2886 $as_echo "yes" >&6; }
2887 test "$program_prefix" != NONE &&
2888 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2889 # Use a double $ so make ignores it.
2890 test "$program_suffix" != NONE &&
2891 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2892 # Double any \ or $.
2893 # By default was `s,x,x', remove it if useless.
2894 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2895 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2897 # expand $ac_aux_dir to an absolute path
2898 am_aux_dir=`cd $ac_aux_dir && pwd`
2900 if test x"${MISSING+set}" != xset; then
2903 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2905 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2908 # Use eval to expand $SHELL
2909 if eval "$MISSING --run true"; then
2910 am_missing_run="$MISSING --run "
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2914 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2917 if test x"${install_sh}" != xset; then
2920 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2922 install_sh="\${SHELL} $am_aux_dir/install-sh"
2926 # Installed binaries are usually stripped using `strip' when the user
2927 # run `make install-strip'. However `strip' might not be the right
2928 # tool to use in cross-compilation environments, therefore Automake
2929 # will honor the `STRIP' environment variable to overrule this program.
2930 if test "$cross_compiling" != no; then
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}strip; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_STRIP+:} false; then :
2937 $as_echo_n "(cached) " >&6
2939 if test -n "$STRIP"; then
2940 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 STRIP=$ac_cv_prog_STRIP
2960 if test -n "$STRIP"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2962 $as_echo "$STRIP" >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2970 if test -z "$ac_cv_prog_STRIP"; then
2972 # Extract the first word of "strip", so it can be a program name with args.
2973 set dummy strip; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$ac_ct_STRIP"; then
2980 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 ac_cv_prog_ac_ct_STRIP="strip"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3000 if test -n "$ac_ct_STRIP"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3002 $as_echo "$ac_ct_STRIP" >&6; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3008 if test "x$ac_ct_STRIP" = x; then
3011 case $cross_compiling:$ac_tool_warned in
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3020 STRIP="$ac_cv_prog_STRIP"
3024 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3027 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3028 if test -z "$MKDIR_P"; then
3029 if ${ac_cv_path_mkdir+:} false; then :
3030 $as_echo_n "(cached) " >&6
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3036 test -z "$as_dir" && as_dir=.
3037 for ac_prog in mkdir gmkdir; do
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3040 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3041 'mkdir (GNU coreutils) '* | \
3042 'mkdir (coreutils) '* | \
3043 'mkdir (fileutils) '4.1*)
3044 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3054 test -d ./--version && rmdir ./--version
3055 if test "${ac_cv_path_mkdir+set}" = set; then
3056 MKDIR_P="$ac_cv_path_mkdir -p"
3058 # As a last resort, use the slow shell script. Don't cache a
3059 # value for MKDIR_P within a source directory, because that will
3060 # break other packages using the cache if that directory is
3061 # removed, or if the value is a relative name.
3062 MKDIR_P="$ac_install_sh -d"
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3066 $as_echo "$MKDIR_P" >&6; }
3070 [\\/$]* | ?:[\\/]*) ;;
3071 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3074 for ac_prog in gawk mawk nawk awk
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_AWK+:} false; then :
3081 $as_echo_n "(cached) " >&6
3083 if test -n "$AWK"; then
3084 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_AWK="$ac_prog"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test -n "$AWK"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3106 $as_echo "$AWK" >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3113 test -n "$AWK" && break
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3117 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3119 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3120 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3121 $as_echo_n "(cached) " >&6
3123 cat >conftest.make <<\_ACEOF
3126 @echo '@@@%%%=$(MAKE)=@@@%%%'
3128 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3129 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3131 eval ac_cv_prog_make_${ac_make}_set=yes;;
3133 eval ac_cv_prog_make_${ac_make}_set=no;;
3137 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139 $as_echo "yes" >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 SET_MAKE="MAKE=${MAKE-make}"
3147 rm -rf .tst 2>/dev/null
3148 mkdir .tst 2>/dev/null
3149 if test -d .tst; then
3154 rmdir .tst 2>/dev/null
3156 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3157 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3158 # is not polluted with repeated "-I."
3159 am__isrc=' -I$(srcdir)'
3160 # test to see if srcdir already configured
3161 if test -f $srcdir/config.status; then
3162 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3166 # test whether we have cygpath
3167 if test -z "$CYGPATH_W"; then
3168 if (cygpath --version) >/dev/null 2>/dev/null; then
3169 CYGPATH_W='cygpath -w'
3176 # Define the identity of the package.
3181 cat >>confdefs.h <<_ACEOF
3182 #define PACKAGE "$PACKAGE"
3186 cat >>confdefs.h <<_ACEOF
3187 #define VERSION "$VERSION"
3190 # Some tools Automake needs.
3192 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3195 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3198 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3201 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3204 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3206 # We need awk for the "check" target. The system "awk" is bad on
3208 # Always define AMTAR for backward compatibility. Yes, it's still used
3209 # in the wild :-( We should find a proper way to deprecate it ...
3212 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3218 ac_config_headers="$ac_config_headers src/config.h"
3222 ac_cpp='$CXXCPP $CPPFLAGS'
3223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3228 # Checks for programs.
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_prog_CC+:} false; then :
3240 $as_echo_n "(cached) " >&6
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 if test -n "$CC"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3273 if test -z "$ac_cv_prog_CC"; then
3275 # Extract the first word of "gcc", so it can be a program name with args.
3276 set dummy gcc; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3280 $as_echo_n "(cached) " >&6
3282 if test -n "$ac_ct_CC"; then
3283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292 ac_cv_prog_ac_ct_CC="gcc"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3303 if test -n "$ac_ct_CC"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3305 $as_echo "$ac_ct_CC" >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3311 if test "x$ac_ct_CC" = x; then
3314 case $cross_compiling:$ac_tool_warned in
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3318 ac_tool_warned=yes ;;
3326 if test -z "$CC"; then
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}cc; ac_word=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if ${ac_cv_prog_CC+:} false; then :
3333 $as_echo_n "(cached) " >&6
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC="$CC" # Let the user override the test.
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_CC="${ac_tool_prefix}cc"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 if test -n "$CC"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358 $as_echo "$CC" >&6; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3367 if test -z "$CC"; then
3368 # Extract the first word of "cc", so it can be a program name with args.
3369 set dummy cc; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_CC+:} false; then :
3373 $as_echo_n "(cached) " >&6
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3387 ac_prog_rejected=yes
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 if test $ac_prog_rejected = yes; then
3399 # We found a bogon in the path, so make sure we never use it.
3400 set dummy $ac_cv_prog_CC
3402 if test $# != 0; then
3403 # We chose a different compiler from the bogus one.
3404 # However, it has the same basename, so the bogon will be chosen
3405 # first if we set CC to just the basename; use the full file name.
3407 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3413 if test -n "$CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3423 if test -z "$CC"; then
3424 if test -n "$ac_tool_prefix"; then
3425 for ac_prog in cl.exe
3427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_CC+:} false; then :
3432 $as_echo_n "(cached) " >&6
3434 if test -n "$CC"; then
3435 ac_cv_prog_CC="$CC" # Let the user override the test.
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3464 test -n "$CC" && break
3467 if test -z "$CC"; then
3469 for ac_prog in cl.exe
3471 # Extract the first word of "$ac_prog", so it can be a program name with args.
3472 set dummy $ac_prog; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3476 $as_echo_n "(cached) " >&6
3478 if test -n "$ac_ct_CC"; then
3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_ac_ct_CC="$ac_prog"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499 if test -n "$ac_ct_CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501 $as_echo "$ac_ct_CC" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3508 test -n "$ac_ct_CC" && break
3511 if test "x$ac_ct_CC" = x; then
3514 case $cross_compiling:$ac_tool_warned in
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518 ac_tool_warned=yes ;;
3527 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error $? "no acceptable C compiler found in \$PATH
3530 See \`config.log' for more details" "$LINENO" 5; }
3532 # Provide some information about the compiler.
3533 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3536 for ac_option in --version -v -V -qversion; do
3537 { { ac_try="$ac_compiler $ac_option >&5"
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3546 if test -s conftest.err; then
3548 ... rest of stderr output deleted ...
3549 10q' conftest.err >conftest.er1
3550 cat conftest.er1 >&5
3552 rm -f conftest.er1 conftest.err
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3568 ac_clean_files_save=$ac_clean_files
3569 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3570 # Try to create an executable without -o first, disregard a.out.
3571 # It will help us diagnose broken compilers, and finding out an intuition
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3574 $as_echo_n "checking whether the C compiler works... " >&6; }
3575 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3577 # The possible output files:
3578 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3581 for ac_file in $ac_files
3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3585 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3590 if { { ac_try="$ac_link_default"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596 $as_echo "$ac_try_echo"; } >&5
3597 (eval "$ac_link_default") 2>&5
3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 test $ac_status = 0; }; then :
3601 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3602 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3603 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3604 # so that the user can short-circuit this test for compilers unknown to
3606 for ac_file in $ac_files ''
3608 test -f "$ac_file" || continue
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3613 # We found the default executable, but exeext='' is most
3617 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3619 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621 # We set ac_cv_exeext here because the later test for it is not
3622 # safe: cross compilers may not add the suffix if given an `-o'
3623 # argument, so we may need to know it at that point already.
3624 # Even if this section looks crufty: it has the advantage of
3631 test "$ac_cv_exeext" = no && ac_cv_exeext=
3636 if test -z "$ac_file"; then :
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error 77 "C compiler cannot create executables
3645 See \`config.log' for more details" "$LINENO" 5; }
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3648 $as_echo "yes" >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3651 $as_echo_n "checking for C compiler default output file name... " >&6; }
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3653 $as_echo "$ac_file" >&6; }
3654 ac_exeext=$ac_cv_exeext
3656 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3657 ac_clean_files=$ac_clean_files_save
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3659 $as_echo_n "checking for suffix of executables... " >&6; }
3660 if { { ac_try="$ac_link"
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_link") 2>&5
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; then :
3671 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3672 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3673 # work properly (i.e., refer to `conftest.exe'), while it won't with
3675 for ac_file in conftest.exe conftest conftest.*; do
3676 test -f "$ac_file" || continue
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3679 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3688 See \`config.log' for more details" "$LINENO" 5; }
3690 rm -f conftest conftest$ac_cv_exeext
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3692 $as_echo "$ac_cv_exeext" >&6; }
3694 rm -f conftest.$ac_ext
3695 EXEEXT=$ac_cv_exeext
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3703 FILE *f = fopen ("conftest.out", "w");
3704 return ferror (f) || fclose (f) != 0;
3710 ac_clean_files="$ac_clean_files conftest.out"
3711 # Check that the compiler produces executables we can run. If not, either
3712 # the compiler is broken, or we cross compile.
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3714 $as_echo_n "checking whether we are cross compiling... " >&6; }
3715 if test "$cross_compiling" != yes; then
3716 { { ac_try="$ac_link"
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_link") 2>&5
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }
3727 if { ac_try='./conftest$ac_cv_exeext'
3728 { { case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733 $as_echo "$ac_try_echo"; } >&5
3734 (eval "$ac_try") 2>&5
3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737 test $ac_status = 0; }; }; then
3740 if test "$cross_compiling" = maybe; then
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error $? "cannot run C compiled programs.
3746 If you meant to cross compile, use \`--host'.
3747 See \`config.log' for more details" "$LINENO" 5; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3752 $as_echo "$cross_compiling" >&6; }
3754 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3755 ac_clean_files=$ac_clean_files_save
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3757 $as_echo_n "checking for suffix of object files... " >&6; }
3758 if ${ac_cv_objext+:} false; then :
3759 $as_echo_n "(cached) " >&6
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3772 rm -f conftest.o conftest.obj
3773 if { { ac_try="$ac_compile"
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779 $as_echo "$ac_try_echo"; } >&5
3780 (eval "$ac_compile") 2>&5
3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }; then :
3784 for ac_file in conftest.o conftest.obj conftest.*; do
3785 test -f "$ac_file" || continue;
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3788 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3793 $as_echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error $? "cannot compute suffix of object files: cannot compile
3799 See \`config.log' for more details" "$LINENO" 5; }
3801 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3804 $as_echo "$ac_cv_objext" >&6; }
3805 OBJEXT=$ac_cv_objext
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3808 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3809 if ${ac_cv_c_compiler_gnu+:} false; then :
3810 $as_echo_n "(cached) " >&6
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3826 if ac_fn_c_try_compile "$LINENO"; then :
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3836 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3837 if test $ac_compiler_gnu = yes; then
3842 ac_test_CFLAGS=${CFLAGS+set}
3843 ac_save_CFLAGS=$CFLAGS
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3845 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3846 if ${ac_cv_prog_cc_g+:} false; then :
3847 $as_echo_n "(cached) " >&6
3849 ac_save_c_werror_flag=$ac_c_werror_flag
3850 ac_c_werror_flag=yes
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3864 if ac_fn_c_try_compile "$LINENO"; then :
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3879 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_c_werror_flag=$ac_save_c_werror_flag
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3895 if ac_fn_c_try_compile "$LINENO"; then :
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_c_werror_flag=$ac_save_c_werror_flag
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3906 $as_echo "$ac_cv_prog_cc_g" >&6; }
3907 if test "$ac_test_CFLAGS" = set; then
3908 CFLAGS=$ac_save_CFLAGS
3909 elif test $ac_cv_prog_cc_g = yes; then
3910 if test "$GCC" = yes; then
3916 if test "$GCC" = yes; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3923 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3924 if ${ac_cv_prog_cc_c89+:} false; then :
3925 $as_echo_n "(cached) " >&6
3927 ac_cv_prog_cc_c89=no
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3933 #include <sys/types.h>
3934 #include <sys/stat.h>
3935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3936 struct buf { int x; };
3937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3938 static char *e (p, i)
3944 static char *f (char * (*g) (char **, int), char **p, ...)
3949 s = g (p, va_arg (v,int));
3954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3955 function prototypes and stuff, but not '\xHH' hex character constants.
3956 These don't provoke an error unfortunately, instead are silently treated
3957 as 'x'. The following induces an error, until -std is added to get
3958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3959 array size at least. It's necessary to write '\x00'==0 to get something
3960 that's true only with -std. */
3961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3964 inside strings and character constants. */
3966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3985 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_cv_prog_cc_c89=$ac_arg
3989 rm -f core conftest.err conftest.$ac_objext
3990 test "x$ac_cv_prog_cc_c89" != "xno" && break
3992 rm -f conftest.$ac_ext
3997 case "x$ac_cv_prog_cc_c89" in
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4005 CC="$CC $ac_cv_prog_cc_c89"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4009 if test "x$ac_cv_prog_cc_c89" != xno; then :
4014 ac_cpp='$CXXCPP $CPPFLAGS'
4015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4018 DEPDIR="${am__leading_dot}deps"
4020 ac_config_commands="$ac_config_commands depfiles"
4023 am_make=${MAKE-make}
4024 cat > confinc << 'END'
4026 @echo this is the am__doit target
4029 # If we don't find an include directive, just comment out the code.
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4031 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4035 # First try GNU make style include.
4036 echo "include confinc" > confmf
4037 # Ignore all kinds of additional output from `make'.
4038 case `$am_make -s -f confmf 2> /dev/null` in #(
4039 *the\ am__doit\ target*)
4045 # Now try BSD make style include.
4046 if test "$am__include" = "#"; then
4047 echo '.include "confinc"' > confmf
4048 case `$am_make -s -f confmf 2> /dev/null` in #(
4049 *the\ am__doit\ target*)
4050 am__include=.include
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4059 $as_echo "$_am_result" >&6; }
4060 rm -f confinc confmf
4062 # Check whether --enable-dependency-tracking was given.
4063 if test "${enable_dependency_tracking+set}" = set; then :
4064 enableval=$enable_dependency_tracking;
4067 if test "x$enable_dependency_tracking" != xno; then
4068 am_depcomp="$ac_aux_dir/depcomp"
4072 if test "x$enable_dependency_tracking" != xno; then
4082 depcc="$CC" am_compiler_list=
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4085 $as_echo_n "checking dependency style of $depcc... " >&6; }
4086 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4087 $as_echo_n "(cached) " >&6
4089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4090 # We make a subdir and do the tests there. Otherwise we can end up
4091 # making bogus files that we don't know about and never remove. For
4092 # instance it was reported that on HP-UX the gcc test will end up
4093 # making a dummy file named `D' -- because `-MD' means `put the output
4097 # Copy depcomp to subdir because otherwise we won't find it if we're
4098 # using a relative directory.
4099 cp "$am_depcomp" conftest.dir
4101 # We will build objects and dependencies in a subdirectory because
4102 # it helps to detect inapplicable dependency modes. For instance
4103 # both Tru64's cc and ICC support -MD to output dependencies as a
4104 # side effect of compilation, but ICC will put the dependencies in
4105 # the current directory while Tru64 will put them in the object
4109 am_cv_CC_dependencies_compiler_type=none
4110 if test "$am_compiler_list" = ""; then
4111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4114 case " $depcc " in #(
4115 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4118 for depmode in $am_compiler_list; do
4119 # Setup a source with many dependencies, because some compilers
4120 # like to wrap large dependency lists on column 80 (with \), and
4121 # we should not choose a depcomp mode which is confused by this.
4123 # We need to recreate these files for each test, as the compiler may
4124 # overwrite some of them when testing with obscure command lines.
4125 # This happens at least with the AIX C compiler.
4127 for i in 1 2 3 4 5 6; do
4128 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4129 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4130 # Solaris 8's {/usr,}/bin/sh.
4131 touch sub/conftst$i.h
4133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4135 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4136 # mode. It turns out that the SunPro C++ compiler does not properly
4137 # handle `-M -o', and we need to detect this. Also, some Intel
4138 # versions had trouble with output in subdirs
4139 am__obj=sub/conftest.${OBJEXT-o}
4140 am__minus_obj="-o $am__obj"
4143 # This depmode causes a compiler race in universal mode.
4144 test "$am__universal" = false || continue
4147 # after this tag, mechanisms are not by side-effect, so they'll
4148 # only be used when explicitly requested
4149 if test "x$enable_dependency_tracking" = xyes; then
4155 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4156 # This compiler won't grok `-c -o', but also, the minuso test has
4157 # not run yet. These depmodes are late enough in the game, and
4158 # so weak that their functioning should not be impacted.
4159 am__obj=conftest.${OBJEXT-o}
4164 if depmode=$depmode \
4165 source=sub/conftest.c object=$am__obj \
4166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4167 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4168 >/dev/null 2>conftest.err &&
4169 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4171 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4173 # icc doesn't choke on unknown options, it will just issue warnings
4174 # or remarks (even with -Werror). So we grep stderr for any message
4175 # that says an option was ignored or not supported.
4176 # When given -MP, icc 7.0 and 7.1 complain thusly:
4177 # icc: Command line warning: ignoring option '-M'; no argument required
4178 # The diagnosis changed in icc 8.0:
4179 # icc: Command line remark: option '-MP' not supported
4180 if (grep 'ignoring option' conftest.err ||
4181 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4182 am_cv_CC_dependencies_compiler_type=$depmode
4191 am_cv_CC_dependencies_compiler_type=none
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4196 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4197 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4200 test "x$enable_dependency_tracking" != xno \
4201 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4203 am__fastdepCC_FALSE='#'
4205 am__fastdepCC_TRUE='#'
4206 am__fastdepCC_FALSE=
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4216 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4217 # On Suns, sometimes $CPP names a directory.
4218 if test -n "$CPP" && test -d "$CPP"; then
4221 if test -z "$CPP"; then
4222 if ${ac_cv_prog_CPP+:} false; then :
4223 $as_echo_n "(cached) " >&6
4225 # Double quotes because CPP needs to be expanded
4226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4229 for ac_c_preproc_warn_flag in '' yes
4231 # Use a header file that comes with gcc, so configuring glibc
4232 # with a fresh cross-compiler works.
4233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234 # <limits.h> exists even on freestanding compilers.
4235 # On the NeXT, cc -E runs the code through the compiler's parser,
4236 # not just through cpp. "Syntax error" is here to catch this case.
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4240 # include <limits.h>
4242 # include <assert.h>
4246 if ac_fn_c_try_cpp "$LINENO"; then :
4249 # Broken: fails on valid input.
4252 rm -f conftest.err conftest.i conftest.$ac_ext
4254 # OK, works on sane cases. Now check whether nonexistent headers
4255 # can be detected and how.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <ac_nonexistent.h>
4260 if ac_fn_c_try_cpp "$LINENO"; then :
4261 # Broken: success on invalid input.
4264 # Passes both tests.
4268 rm -f conftest.err conftest.i conftest.$ac_ext
4271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272 rm -f conftest.i conftest.err conftest.$ac_ext
4273 if $ac_preproc_ok; then :
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4286 $as_echo "$CPP" >&6; }
4288 for ac_c_preproc_warn_flag in '' yes
4290 # Use a header file that comes with gcc, so configuring glibc
4291 # with a fresh cross-compiler works.
4292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4293 # <limits.h> exists even on freestanding compilers.
4294 # On the NeXT, cc -E runs the code through the compiler's parser,
4295 # not just through cpp. "Syntax error" is here to catch this case.
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4299 # include <limits.h>
4301 # include <assert.h>
4305 if ac_fn_c_try_cpp "$LINENO"; then :
4308 # Broken: fails on valid input.
4311 rm -f conftest.err conftest.i conftest.$ac_ext
4313 # OK, works on sane cases. Now check whether nonexistent headers
4314 # can be detected and how.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 #include <ac_nonexistent.h>
4319 if ac_fn_c_try_cpp "$LINENO"; then :
4320 # Broken: success on invalid input.
4323 # Passes both tests.
4327 rm -f conftest.err conftest.i conftest.$ac_ext
4330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4331 rm -f conftest.i conftest.err conftest.$ac_ext
4332 if $ac_preproc_ok; then :
4335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4338 See \`config.log' for more details" "$LINENO" 5; }
4342 ac_cpp='$CXXCPP $CPPFLAGS'
4343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4348 ac_cpp='$CXXCPP $CPPFLAGS'
4349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4352 if test -z "$CXX"; then
4353 if test -n "$CCC"; then
4356 if test -n "$ac_tool_prefix"; then
4357 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_CXX+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 if test -n "$CXX"; then
4367 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 if test -n "$CXX"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4389 $as_echo "$CXX" >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4396 test -n "$CXX" && break
4399 if test -z "$CXX"; then
4401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404 set dummy $ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4408 $as_echo_n "(cached) " >&6
4410 if test -n "$ac_ct_CXX"; then
4411 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_ac_ct_CXX="$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4431 if test -n "$ac_ct_CXX"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4433 $as_echo "$ac_ct_CXX" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$ac_ct_CXX" && break
4443 if test "x$ac_ct_CXX" = x; then
4446 case $cross_compiling:$ac_tool_warned in
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450 ac_tool_warned=yes ;;
4458 # Provide some information about the compiler.
4459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4462 for ac_option in --version -v -V -qversion; do
4463 { { ac_try="$ac_compiler $ac_option >&5"
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469 $as_echo "$ac_try_echo"; } >&5
4470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4472 if test -s conftest.err; then
4474 ... rest of stderr output deleted ...
4475 10q' conftest.err >conftest.er1
4476 cat conftest.er1 >&5
4478 rm -f conftest.er1 conftest.err
4479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480 test $ac_status = 0; }
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4484 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4485 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4486 $as_echo_n "(cached) " >&6
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4502 if ac_fn_cxx_try_compile "$LINENO"; then :
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4512 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4513 if test $ac_compiler_gnu = yes; then
4518 ac_test_CXXFLAGS=${CXXFLAGS+set}
4519 ac_save_CXXFLAGS=$CXXFLAGS
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4521 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4522 if ${ac_cv_prog_cxx_g+:} false; then :
4523 $as_echo_n "(cached) " >&6
4525 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4526 ac_cxx_werror_flag=yes
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4540 if ac_fn_cxx_try_compile "$LINENO"; then :
4541 ac_cv_prog_cxx_g=yes
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4555 if ac_fn_cxx_try_compile "$LINENO"; then :
4558 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4571 if ac_fn_cxx_try_compile "$LINENO"; then :
4572 ac_cv_prog_cxx_g=yes
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4582 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4583 if test "$ac_test_CXXFLAGS" = set; then
4584 CXXFLAGS=$ac_save_CXXFLAGS
4585 elif test $ac_cv_prog_cxx_g = yes; then
4586 if test "$GXX" = yes; then
4592 if test "$GXX" = yes; then
4599 ac_cpp='$CXXCPP $CPPFLAGS'
4600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4604 depcc="$CXX" am_compiler_list=
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4607 $as_echo_n "checking dependency style of $depcc... " >&6; }
4608 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4609 $as_echo_n "(cached) " >&6
4611 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4612 # We make a subdir and do the tests there. Otherwise we can end up
4613 # making bogus files that we don't know about and never remove. For
4614 # instance it was reported that on HP-UX the gcc test will end up
4615 # making a dummy file named `D' -- because `-MD' means `put the output
4619 # Copy depcomp to subdir because otherwise we won't find it if we're
4620 # using a relative directory.
4621 cp "$am_depcomp" conftest.dir
4623 # We will build objects and dependencies in a subdirectory because
4624 # it helps to detect inapplicable dependency modes. For instance
4625 # both Tru64's cc and ICC support -MD to output dependencies as a
4626 # side effect of compilation, but ICC will put the dependencies in
4627 # the current directory while Tru64 will put them in the object
4631 am_cv_CXX_dependencies_compiler_type=none
4632 if test "$am_compiler_list" = ""; then
4633 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4636 case " $depcc " in #(
4637 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4640 for depmode in $am_compiler_list; do
4641 # Setup a source with many dependencies, because some compilers
4642 # like to wrap large dependency lists on column 80 (with \), and
4643 # we should not choose a depcomp mode which is confused by this.
4645 # We need to recreate these files for each test, as the compiler may
4646 # overwrite some of them when testing with obscure command lines.
4647 # This happens at least with the AIX C compiler.
4649 for i in 1 2 3 4 5 6; do
4650 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4651 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4652 # Solaris 8's {/usr,}/bin/sh.
4653 touch sub/conftst$i.h
4655 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4657 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4658 # mode. It turns out that the SunPro C++ compiler does not properly
4659 # handle `-M -o', and we need to detect this. Also, some Intel
4660 # versions had trouble with output in subdirs
4661 am__obj=sub/conftest.${OBJEXT-o}
4662 am__minus_obj="-o $am__obj"
4665 # This depmode causes a compiler race in universal mode.
4666 test "$am__universal" = false || continue
4669 # after this tag, mechanisms are not by side-effect, so they'll
4670 # only be used when explicitly requested
4671 if test "x$enable_dependency_tracking" = xyes; then
4677 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4678 # This compiler won't grok `-c -o', but also, the minuso test has
4679 # not run yet. These depmodes are late enough in the game, and
4680 # so weak that their functioning should not be impacted.
4681 am__obj=conftest.${OBJEXT-o}
4686 if depmode=$depmode \
4687 source=sub/conftest.c object=$am__obj \
4688 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4689 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4690 >/dev/null 2>conftest.err &&
4691 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4692 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4693 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4694 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4695 # icc doesn't choke on unknown options, it will just issue warnings
4696 # or remarks (even with -Werror). So we grep stderr for any message
4697 # that says an option was ignored or not supported.
4698 # When given -MP, icc 7.0 and 7.1 complain thusly:
4699 # icc: Command line warning: ignoring option '-M'; no argument required
4700 # The diagnosis changed in icc 8.0:
4701 # icc: Command line remark: option '-MP' not supported
4702 if (grep 'ignoring option' conftest.err ||
4703 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4704 am_cv_CXX_dependencies_compiler_type=$depmode
4713 am_cv_CXX_dependencies_compiler_type=none
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4718 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4719 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4722 test "x$enable_dependency_tracking" != xno \
4723 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4724 am__fastdepCXX_TRUE=
4725 am__fastdepCXX_FALSE='#'
4727 am__fastdepCXX_TRUE='#'
4728 am__fastdepCXX_FALSE=
4732 if test "$GCC" = yes; then
4739 # let the Makefile know if we're gcc
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4744 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4749 macro_version='2.4.2'
4750 macro_revision='1.3337'
4764 ltmain="$ac_aux_dir/ltmain.sh"
4766 # Make sure we can run config.sub.
4767 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4768 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4771 $as_echo_n "checking build system type... " >&6; }
4772 if ${ac_cv_build+:} false; then :
4773 $as_echo_n "(cached) " >&6
4775 ac_build_alias=$build_alias
4776 test "x$ac_build_alias" = x &&
4777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4778 test "x$ac_build_alias" = x &&
4779 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4780 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4781 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4785 $as_echo "$ac_cv_build" >&6; }
4786 case $ac_cv_build in
4788 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4791 ac_save_IFS=$IFS; IFS='-'
4797 # Remember, the first character of IFS is used to create $*,
4798 # except with old shells:
4801 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4805 $as_echo_n "checking host system type... " >&6; }
4806 if ${ac_cv_host+:} false; then :
4807 $as_echo_n "(cached) " >&6
4809 if test "x$host_alias" = x; then
4810 ac_cv_host=$ac_cv_build
4812 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4813 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4818 $as_echo "$ac_cv_host" >&6; }
4821 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4824 ac_save_IFS=$IFS; IFS='-'
4830 # Remember, the first character of IFS is used to create $*,
4831 # except with old shells:
4834 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4837 # Backslashify metacharacters that are still active within
4838 # double-quoted strings.
4839 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4841 # Same as above, but do not quote variable references.
4842 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4844 # Sed substitution to delay expansion of an escaped shell variable in a
4845 # double_quote_subst'ed string.
4846 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4848 # Sed substitution to delay expansion of an escaped single quote.
4849 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4851 # Sed substitution to avoid accidental globbing in evaled expressions
4852 no_glob_subst='s/\*/\\\*/g'
4854 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4855 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4856 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4859 $as_echo_n "checking how to print strings... " >&6; }
4860 # Test print first, because it will be a builtin if present.
4861 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4862 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4864 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4867 # Use this function as a fallback that always works.
4868 func_fallback_echo ()
4870 eval 'cat <<_LTECHO_EOF
4874 ECHO='func_fallback_echo'
4877 # func_echo_all arg...
4878 # Invoke $ECHO with all args, space-separated.
4885 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4886 $as_echo "printf" >&6; } ;;
4887 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4888 $as_echo "print -r" >&6; } ;;
4889 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4890 $as_echo "cat" >&6; } ;;
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4907 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4908 if ${ac_cv_path_SED+:} false; then :
4909 $as_echo_n "(cached) " >&6
4911 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4912 for ac_i in 1 2 3 4 5 6 7; do
4913 ac_script="$ac_script$as_nl$ac_script"
4915 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4916 { ac_script=; unset ac_script;}
4917 if test -z "$SED"; then
4918 ac_path_SED_found=false
4919 # Loop through the user's path and test for each of PROGNAME-LIST
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_prog in sed gsed; do
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4928 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4929 # Check for GNU ac_path_SED and select it if it is found.
4930 # Check for GNU $ac_path_SED
4931 case `"$ac_path_SED" --version 2>&1` in
4933 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4936 $as_echo_n 0123456789 >"conftest.in"
4939 cat "conftest.in" "conftest.in" >"conftest.tmp"
4940 mv "conftest.tmp" "conftest.in"
4941 cp "conftest.in" "conftest.nl"
4942 $as_echo '' >> "conftest.nl"
4943 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4945 as_fn_arith $ac_count + 1 && ac_count=$as_val
4946 if test $ac_count -gt ${ac_path_SED_max-0}; then
4947 # Best one so far, save it but keep looking for a better one
4948 ac_cv_path_SED="$ac_path_SED"
4949 ac_path_SED_max=$ac_count
4951 # 10*(2^10) chars as input seems more than enough
4952 test $ac_count -gt 10 && break
4954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4957 $ac_path_SED_found && break 3
4962 if test -z "$ac_cv_path_SED"; then
4963 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4971 $as_echo "$ac_cv_path_SED" >&6; }
4972 SED="$ac_cv_path_SED"
4975 test -z "$SED" && SED=sed
4976 Xsed="$SED -e 1s/^X//"
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4989 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4990 if ${ac_cv_path_GREP+:} false; then :
4991 $as_echo_n "(cached) " >&6
4993 if test -z "$GREP"; then
4994 ac_path_GREP_found=false
4995 # Loop through the user's path and test for each of PROGNAME-LIST
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5000 test -z "$as_dir" && as_dir=.
5001 for ac_prog in grep ggrep; do
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5004 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5005 # Check for GNU ac_path_GREP and select it if it is found.
5006 # Check for GNU $ac_path_GREP
5007 case `"$ac_path_GREP" --version 2>&1` in
5009 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5012 $as_echo_n 0123456789 >"conftest.in"
5015 cat "conftest.in" "conftest.in" >"conftest.tmp"
5016 mv "conftest.tmp" "conftest.in"
5017 cp "conftest.in" "conftest.nl"
5018 $as_echo 'GREP' >> "conftest.nl"
5019 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5021 as_fn_arith $ac_count + 1 && ac_count=$as_val
5022 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5023 # Best one so far, save it but keep looking for a better one
5024 ac_cv_path_GREP="$ac_path_GREP"
5025 ac_path_GREP_max=$ac_count
5027 # 10*(2^10) chars as input seems more than enough
5028 test $ac_count -gt 10 && break
5030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5033 $ac_path_GREP_found && break 3
5038 if test -z "$ac_cv_path_GREP"; then
5039 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5042 ac_cv_path_GREP=$GREP
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5047 $as_echo "$ac_cv_path_GREP" >&6; }
5048 GREP="$ac_cv_path_GREP"
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5052 $as_echo_n "checking for egrep... " >&6; }
5053 if ${ac_cv_path_EGREP+:} false; then :
5054 $as_echo_n "(cached) " >&6
5056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5057 then ac_cv_path_EGREP="$GREP -E"
5059 if test -z "$EGREP"; then
5060 ac_path_EGREP_found=false
5061 # Loop through the user's path and test for each of PROGNAME-LIST
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5066 test -z "$as_dir" && as_dir=.
5067 for ac_prog in egrep; do
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5070 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5071 # Check for GNU ac_path_EGREP and select it if it is found.
5072 # Check for GNU $ac_path_EGREP
5073 case `"$ac_path_EGREP" --version 2>&1` in
5075 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5078 $as_echo_n 0123456789 >"conftest.in"
5081 cat "conftest.in" "conftest.in" >"conftest.tmp"
5082 mv "conftest.tmp" "conftest.in"
5083 cp "conftest.in" "conftest.nl"
5084 $as_echo 'EGREP' >> "conftest.nl"
5085 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5087 as_fn_arith $ac_count + 1 && ac_count=$as_val
5088 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5089 # Best one so far, save it but keep looking for a better one
5090 ac_cv_path_EGREP="$ac_path_EGREP"
5091 ac_path_EGREP_max=$ac_count
5093 # 10*(2^10) chars as input seems more than enough
5094 test $ac_count -gt 10 && break
5096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5099 $ac_path_EGREP_found && break 3
5104 if test -z "$ac_cv_path_EGREP"; then
5105 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5108 ac_cv_path_EGREP=$EGREP
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5114 $as_echo "$ac_cv_path_EGREP" >&6; }
5115 EGREP="$ac_cv_path_EGREP"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5119 $as_echo_n "checking for fgrep... " >&6; }
5120 if ${ac_cv_path_FGREP+:} false; then :
5121 $as_echo_n "(cached) " >&6
5123 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5124 then ac_cv_path_FGREP="$GREP -F"
5126 if test -z "$FGREP"; then
5127 ac_path_FGREP_found=false
5128 # Loop through the user's path and test for each of PROGNAME-LIST
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5133 test -z "$as_dir" && as_dir=.
5134 for ac_prog in fgrep; do
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5137 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5138 # Check for GNU ac_path_FGREP and select it if it is found.
5139 # Check for GNU $ac_path_FGREP
5140 case `"$ac_path_FGREP" --version 2>&1` in
5142 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5145 $as_echo_n 0123456789 >"conftest.in"
5148 cat "conftest.in" "conftest.in" >"conftest.tmp"
5149 mv "conftest.tmp" "conftest.in"
5150 cp "conftest.in" "conftest.nl"
5151 $as_echo 'FGREP' >> "conftest.nl"
5152 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5154 as_fn_arith $ac_count + 1 && ac_count=$as_val
5155 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5156 # Best one so far, save it but keep looking for a better one
5157 ac_cv_path_FGREP="$ac_path_FGREP"
5158 ac_path_FGREP_max=$ac_count
5160 # 10*(2^10) chars as input seems more than enough
5161 test $ac_count -gt 10 && break
5163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5166 $ac_path_FGREP_found && break 3
5171 if test -z "$ac_cv_path_FGREP"; then
5172 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5175 ac_cv_path_FGREP=$FGREP
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5181 $as_echo "$ac_cv_path_FGREP" >&6; }
5182 FGREP="$ac_cv_path_FGREP"
5185 test -z "$GREP" && GREP=grep
5205 # Check whether --with-gnu-ld was given.
5206 if test "${with_gnu_ld+set}" = set; then :
5207 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5213 if test "$GCC" = yes; then
5214 # Check if gcc -print-prog-name=ld gives a path.
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5216 $as_echo_n "checking for ld used by $CC... " >&6; }
5219 # gcc leaves a trailing carriage return which upsets mingw
5220 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5222 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5225 # Accept absolute paths.
5227 re_direlt='/[^/][^/]*/\.\./'
5228 # Canonicalize the pathname of ld
5229 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5230 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5231 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5233 test -z "$LD" && LD="$ac_prog"
5236 # If it fails, then pretend we aren't using GCC.
5240 # If it is relative, then search for the first ld in PATH.
5244 elif test "$with_gnu_ld" = yes; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5246 $as_echo_n "checking for GNU ld... " >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5249 $as_echo_n "checking for non-GNU ld... " >&6; }
5251 if ${lt_cv_path_LD+:} false; then :
5252 $as_echo_n "(cached) " >&6
5254 if test -z "$LD"; then
5255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5256 for ac_dir in $PATH; do
5258 test -z "$ac_dir" && ac_dir=.
5259 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5260 lt_cv_path_LD="$ac_dir/$ac_prog"
5261 # Check to see if the program is GNU ld. I'd rather use --version,
5262 # but apparently some variants of GNU ld only accept -v.
5263 # Break only if it was the GNU/non-GNU ld that we prefer.
5264 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5265 *GNU* | *'with BFD'*)
5266 test "$with_gnu_ld" != no && break
5269 test "$with_gnu_ld" != yes && break
5276 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5281 if test -n "$LD"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5283 $as_echo "$LD" >&6; }
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5288 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5290 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5291 if ${lt_cv_prog_gnu_ld+:} false; then :
5292 $as_echo_n "(cached) " >&6
5294 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5295 case `$LD -v 2>&1 </dev/null` in
5296 *GNU* | *'with BFD'*)
5297 lt_cv_prog_gnu_ld=yes
5300 lt_cv_prog_gnu_ld=no
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5305 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5306 with_gnu_ld=$lt_cv_prog_gnu_ld
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5317 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5318 if ${lt_cv_path_NM+:} false; then :
5319 $as_echo_n "(cached) " >&6
5321 if test -n "$NM"; then
5322 # Let the user override the test.
5325 lt_nm_to_check="${ac_tool_prefix}nm"
5326 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5327 lt_nm_to_check="$lt_nm_to_check nm"
5329 for lt_tmp_nm in $lt_nm_to_check; do
5330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5331 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5333 test -z "$ac_dir" && ac_dir=.
5334 tmp_nm="$ac_dir/$lt_tmp_nm"
5335 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5336 # Check to see if the nm accepts a BSD-compat flag.
5337 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5338 # nm: unknown option "B" ignored
5339 # Tru64's nm complains that /dev/null is an invalid object file
5340 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5341 */dev/null* | *'Invalid file or object type'*)
5342 lt_cv_path_NM="$tmp_nm -B"
5346 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5348 lt_cv_path_NM="$tmp_nm -p"
5352 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5353 continue # so that we can try to find one that supports BSD flags
5362 : ${lt_cv_path_NM=no}
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5366 $as_echo "$lt_cv_path_NM" >&6; }
5367 if test "$lt_cv_path_NM" != "no"; then
5370 # Didn't find any BSD compatible name lister, look for dumpbin.
5371 if test -n "$DUMPBIN"; then :
5372 # Let the user override the test.
5374 if test -n "$ac_tool_prefix"; then
5375 for ac_prog in dumpbin "link -dump"
5377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_DUMPBIN+:} false; then :
5382 $as_echo_n "(cached) " >&6
5384 if test -n "$DUMPBIN"; then
5385 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 DUMPBIN=$ac_cv_prog_DUMPBIN
5405 if test -n "$DUMPBIN"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5407 $as_echo "$DUMPBIN" >&6; }
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5414 test -n "$DUMPBIN" && break
5417 if test -z "$DUMPBIN"; then
5418 ac_ct_DUMPBIN=$DUMPBIN
5419 for ac_prog in dumpbin "link -dump"
5421 # Extract the first word of "$ac_prog", so it can be a program name with args.
5422 set dummy $ac_prog; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5426 $as_echo_n "(cached) " >&6
5428 if test -n "$ac_ct_DUMPBIN"; then
5429 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5438 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5449 if test -n "$ac_ct_DUMPBIN"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5451 $as_echo "$ac_ct_DUMPBIN" >&6; }
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5458 test -n "$ac_ct_DUMPBIN" && break
5461 if test "x$ac_ct_DUMPBIN" = x; then
5464 case $cross_compiling:$ac_tool_warned in
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5468 ac_tool_warned=yes ;;
5470 DUMPBIN=$ac_ct_DUMPBIN
5474 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5476 DUMPBIN="$DUMPBIN -symbols"
5484 if test "$DUMPBIN" != ":"; then
5488 test -z "$NM" && NM=nm
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5496 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5497 if ${lt_cv_nm_interface+:} false; then :
5498 $as_echo_n "(cached) " >&6
5500 lt_cv_nm_interface="BSD nm"
5501 echo "int some_variable = 0;" > conftest.$ac_ext
5502 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5503 (eval "$ac_compile" 2>conftest.err)
5504 cat conftest.err >&5
5505 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5506 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5507 cat conftest.err >&5
5508 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5509 cat conftest.out >&5
5510 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5511 lt_cv_nm_interface="MS dumpbin"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5516 $as_echo "$lt_cv_nm_interface" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5519 $as_echo_n "checking whether ln -s works... " >&6; }
5521 if test "$LN_S" = "ln -s"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5523 $as_echo "yes" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5526 $as_echo "no, using $LN_S" >&6; }
5529 # find the maximum length of command line arguments
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5531 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5532 if ${lt_cv_sys_max_cmd_len+:} false; then :
5533 $as_echo_n "(cached) " >&6
5540 # On DJGPP, this test can blow up pretty badly due to problems in libc
5541 # (any single argument exceeding 2000 bytes causes a buffer overrun
5542 # during glob expansion). Even if it were fixed, the result of this
5543 # check would be larger than it should be.
5544 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5548 # Under GNU Hurd, this test is not required because there is
5549 # no limit to the length of command line arguments.
5550 # Libtool will interpret -1 as no limit whatsoever
5551 lt_cv_sys_max_cmd_len=-1;
5554 cygwin* | mingw* | cegcc*)
5555 # On Win9x/ME, this test blows up -- it succeeds, but takes
5556 # about 5 minutes as the teststring grows exponentially.
5557 # Worse, since 9x/ME are not pre-emptively multitasking,
5558 # you end up with a "frozen" computer, even though with patience
5559 # the test eventually succeeds (with a max line length of 256k).
5560 # Instead, let's just punt: use the minimum linelength reported by
5561 # all of the supported platforms: 8192 (on NT/2K/XP).
5562 lt_cv_sys_max_cmd_len=8192;
5566 # On MiNT this can take a long time and run out of memory.
5567 lt_cv_sys_max_cmd_len=8192;
5571 # On AmigaOS with pdksh, this test takes hours, literally.
5572 # So we just punt and use a minimum line length of 8192.
5573 lt_cv_sys_max_cmd_len=8192;
5576 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5577 # This has been around since 386BSD, at least. Likely further.
5578 if test -x /sbin/sysctl; then
5579 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5580 elif test -x /usr/sbin/sysctl; then
5581 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5583 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5585 # And add a safety zone
5586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5591 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5592 lt_cv_sys_max_cmd_len=196608
5596 # The test takes a long time on OS/2.
5597 lt_cv_sys_max_cmd_len=8192
5601 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5602 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5603 # nice to cause kernel panics so lets avoid the loop below.
5604 # First set a reasonable default.
5605 lt_cv_sys_max_cmd_len=16384
5607 if test -x /sbin/sysconfig; then
5608 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5609 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5614 lt_cv_sys_max_cmd_len=102400
5616 sysv5* | sco5v6* | sysv4.2uw2*)
5617 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5618 if test -n "$kargmax"; then
5619 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5621 lt_cv_sys_max_cmd_len=32768
5625 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5626 if test -n "$lt_cv_sys_max_cmd_len"; then
5627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5630 # Make teststring a little bigger before we do anything with it.
5631 # a 1K string should be a reasonable start.
5632 for i in 1 2 3 4 5 6 7 8 ; do
5633 teststring=$teststring$teststring
5635 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5636 # If test is not a shell built-in, we'll probably end up computing a
5637 # maximum length that is only half of the actual maximum length, but
5639 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5640 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5641 test $i != 17 # 1/2 MB should be enough
5644 teststring=$teststring$teststring
5646 # Only check the string length outside the loop.
5647 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5649 # Add a significant safety factor because C++ compilers can tack on
5650 # massive amounts of additional arguments before passing them to the
5651 # linker. It appears as though 1/2 is a usable value.
5652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5659 if test -n $lt_cv_sys_max_cmd_len ; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5661 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5664 $as_echo "none" >&6; }
5666 max_cmd_len=$lt_cv_sys_max_cmd_len
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5678 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5679 # Try some XSI features
5682 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5684 && eval 'test $(( 1 + 1 )) -eq 2 \
5685 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5688 $as_echo "$xsi_shell" >&6; }
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5692 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5694 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5696 && lt_shell_append=yes
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5698 $as_echo "$lt_shell_append" >&6; }
5701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5711 # test EBCDIC or ASCII
5712 case `echo X|tr X '\101'` in
5713 A) # ASCII based system
5714 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5715 lt_SP2NL='tr \040 \012'
5716 lt_NL2SP='tr \015\012 \040\040'
5718 *) # EBCDIC based system
5719 lt_SP2NL='tr \100 \n'
5720 lt_NL2SP='tr \r\n \100\100'
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5733 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5734 if ${lt_cv_to_host_file_cmd+:} false; then :
5735 $as_echo_n "(cached) " >&6
5740 *-*-mingw* ) # actually msys
5741 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5744 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5746 * ) # otherwise, assume *nix
5747 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5753 *-*-mingw* ) # actually msys
5754 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5757 lt_cv_to_host_file_cmd=func_convert_file_noop
5759 * ) # otherwise, assume *nix
5760 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5764 * ) # unhandled hosts (and "normal" native builds)
5765 lt_cv_to_host_file_cmd=func_convert_file_noop
5771 to_host_file_cmd=$lt_cv_to_host_file_cmd
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5773 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5780 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5781 if ${lt_cv_to_tool_file_cmd+:} false; then :
5782 $as_echo_n "(cached) " >&6
5784 #assume ordinary cross tools, or native build.
5785 lt_cv_to_tool_file_cmd=func_convert_file_noop
5789 *-*-mingw* ) # actually msys
5790 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5798 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5800 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5807 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5808 if ${lt_cv_ld_reload_flag+:} false; then :
5809 $as_echo_n "(cached) " >&6
5811 lt_cv_ld_reload_flag='-r'
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5814 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5815 reload_flag=$lt_cv_ld_reload_flag
5816 case $reload_flag in
5818 *) reload_flag=" $reload_flag" ;;
5820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5822 cygwin* | mingw* | pw32* | cegcc*)
5823 if test "$GCC" != yes; then
5828 if test "$GCC" = yes; then
5829 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5844 if test -n "$ac_tool_prefix"; then
5845 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5846 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_OBJDUMP+:} false; then :
5850 $as_echo_n "(cached) " >&6
5852 if test -n "$OBJDUMP"; then
5853 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 OBJDUMP=$ac_cv_prog_OBJDUMP
5873 if test -n "$OBJDUMP"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5875 $as_echo "$OBJDUMP" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5883 if test -z "$ac_cv_prog_OBJDUMP"; then
5884 ac_ct_OBJDUMP=$OBJDUMP
5885 # Extract the first word of "objdump", so it can be a program name with args.
5886 set dummy objdump; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5890 $as_echo_n "(cached) " >&6
5892 if test -n "$ac_ct_OBJDUMP"; then
5893 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5913 if test -n "$ac_ct_OBJDUMP"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5915 $as_echo "$ac_ct_OBJDUMP" >&6; }
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5921 if test "x$ac_ct_OBJDUMP" = x; then
5924 case $cross_compiling:$ac_tool_warned in
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928 ac_tool_warned=yes ;;
5930 OBJDUMP=$ac_ct_OBJDUMP
5933 OBJDUMP="$ac_cv_prog_OBJDUMP"
5936 test -z "$OBJDUMP" && OBJDUMP=objdump
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5947 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5948 if ${lt_cv_deplibs_check_method+:} false; then :
5949 $as_echo_n "(cached) " >&6
5951 lt_cv_file_magic_cmd='$MAGIC_CMD'
5952 lt_cv_file_magic_test_file=
5953 lt_cv_deplibs_check_method='unknown'
5954 # Need to set the preceding variable on all platforms that support
5955 # interlibrary dependencies.
5956 # 'none' -- dependencies not supported.
5957 # `unknown' -- same as none, but documents that we really don't know.
5958 # 'pass_all' -- all dependencies passed with no checks.
5959 # 'test_compile' -- check by making test program.
5960 # 'file_magic [[regex]]' -- check by looking for files in library path
5961 # which responds to the $file_magic_cmd with a given extended regex.
5962 # If you have `file' or equivalent on your system and you're not sure
5963 # whether `pass_all' will *always* work, you probably want this one.
5967 lt_cv_deplibs_check_method=pass_all
5971 lt_cv_deplibs_check_method=pass_all
5975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5976 lt_cv_file_magic_cmd='/usr/bin/file -L'
5977 lt_cv_file_magic_test_file=/shlib/libc.so
5981 # func_win32_libid is a shell function defined in ltmain.sh
5982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5983 lt_cv_file_magic_cmd='func_win32_libid'
5987 # Base MSYS/MinGW do not provide the 'file' command needed by
5988 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5989 # unless we find 'file', for example because we are cross-compiling.
5990 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5991 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5993 lt_cv_file_magic_cmd='func_win32_libid'
5995 # Keep this pattern in sync with the one in func_win32_libid.
5996 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5997 lt_cv_file_magic_cmd='$OBJDUMP -f'
6002 # use the weaker test based on 'objdump'. See mingw*.
6003 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6004 lt_cv_file_magic_cmd='$OBJDUMP -f'
6007 darwin* | rhapsody*)
6008 lt_cv_deplibs_check_method=pass_all
6011 freebsd* | dragonfly*)
6012 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6015 # Not sure whether the presence of OpenBSD here was a mistake.
6016 # Let's accept both of them until this is cleared up.
6017 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6018 lt_cv_file_magic_cmd=/usr/bin/file
6019 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6023 lt_cv_deplibs_check_method=pass_all
6028 lt_cv_deplibs_check_method=pass_all
6032 lt_cv_deplibs_check_method=pass_all
6035 hpux10.20* | hpux11*)
6036 lt_cv_file_magic_cmd=/usr/bin/file
6039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6040 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6043 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]'
6044 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6048 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6054 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6058 irix5* | irix6* | nonstopux*)
6060 *-32|*"-32 ") libmagic=32-bit;;
6061 *-n32|*"-n32 ") libmagic=N32;;
6062 *-64|*"-64 ") libmagic=64-bit;;
6063 *) libmagic=never-match;;
6065 lt_cv_deplibs_check_method=pass_all
6068 # This must be glibc/ELF.
6069 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6070 lt_cv_deplibs_check_method=pass_all
6073 netbsd* | netbsdelf*-gnu)
6074 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6083 lt_cv_file_magic_cmd=/usr/bin/file
6084 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6088 lt_cv_deplibs_check_method=pass_all
6092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6099 osf3* | osf4* | osf5*)
6100 lt_cv_deplibs_check_method=pass_all
6104 lt_cv_deplibs_check_method=pass_all
6108 lt_cv_deplibs_check_method=pass_all
6111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6112 lt_cv_deplibs_check_method=pass_all
6116 case $host_vendor in
6118 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]'
6119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6122 lt_cv_deplibs_check_method=pass_all
6125 lt_cv_file_magic_cmd='/bin/file'
6126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6129 lt_cv_file_magic_cmd='/bin/file'
6130 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6131 lt_cv_file_magic_test_file=/lib/libc.so
6134 lt_cv_deplibs_check_method=pass_all
6137 lt_cv_deplibs_check_method=pass_all
6143 lt_cv_deplibs_check_method=pass_all
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6149 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6153 if test "$build" = "$host"; then
6156 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6159 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6165 file_magic_cmd=$lt_cv_file_magic_cmd
6166 deplibs_check_method=$lt_cv_deplibs_check_method
6167 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6190 if test -n "$ac_tool_prefix"; then
6191 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6192 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_DLLTOOL+:} false; then :
6196 $as_echo_n "(cached) " >&6
6198 if test -n "$DLLTOOL"; then
6199 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 DLLTOOL=$ac_cv_prog_DLLTOOL
6219 if test -n "$DLLTOOL"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6221 $as_echo "$DLLTOOL" >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6229 if test -z "$ac_cv_prog_DLLTOOL"; then
6230 ac_ct_DLLTOOL=$DLLTOOL
6231 # Extract the first word of "dlltool", so it can be a program name with args.
6232 set dummy dlltool; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6236 $as_echo_n "(cached) " >&6
6238 if test -n "$ac_ct_DLLTOOL"; then
6239 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6259 if test -n "$ac_ct_DLLTOOL"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6261 $as_echo "$ac_ct_DLLTOOL" >&6; }
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6267 if test "x$ac_ct_DLLTOOL" = x; then
6270 case $cross_compiling:$ac_tool_warned in
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274 ac_tool_warned=yes ;;
6276 DLLTOOL=$ac_ct_DLLTOOL
6279 DLLTOOL="$ac_cv_prog_DLLTOOL"
6282 test -z "$DLLTOOL" && DLLTOOL=dlltool
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6294 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6295 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6296 $as_echo_n "(cached) " >&6
6298 lt_cv_sharedlib_from_linklib_cmd='unknown'
6301 cygwin* | mingw* | pw32* | cegcc*)
6302 # two different shell functions defined in ltmain.sh
6303 # decide which to use based on capabilities of $DLLTOOL
6304 case `$DLLTOOL --help 2>&1` in
6305 *--identify-strict*)
6306 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6309 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6314 # fallback: assume linklib IS sharedlib
6315 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6321 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6322 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6323 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6332 if test -n "$ac_tool_prefix"; then
6335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_AR+:} false; then :
6340 $as_echo_n "(cached) " >&6
6342 if test -n "$AR"; then
6343 ac_cv_prog_AR="$AR" # Let the user override the test.
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 if test -n "$AR"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6365 $as_echo "$AR" >&6; }
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6372 test -n "$AR" && break
6375 if test -z "$AR"; then
6379 # Extract the first word of "$ac_prog", so it can be a program name with args.
6380 set dummy $ac_prog; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6384 $as_echo_n "(cached) " >&6
6386 if test -n "$ac_ct_AR"; then
6387 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_ac_ct_AR="$ac_prog"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6407 if test -n "$ac_ct_AR"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6409 $as_echo "$ac_ct_AR" >&6; }
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6416 test -n "$ac_ct_AR" && break
6419 if test "x$ac_ct_AR" = x; then
6422 case $cross_compiling:$ac_tool_warned in
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426 ac_tool_warned=yes ;;
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6446 $as_echo_n "checking for archiver @FILE support... " >&6; }
6447 if ${lt_cv_ar_at_file+:} false; then :
6448 $as_echo_n "(cached) " >&6
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6462 if ac_fn_cxx_try_compile "$LINENO"; then :
6463 echo conftest.$ac_objext > conftest.lst
6464 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6466 (eval $lt_ar_try) 2>&5
6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469 test $ac_status = 0; }
6470 if test "$ac_status" -eq 0; then
6471 # Ensure the archiver fails upon bogus file names.
6472 rm -f conftest.$ac_objext libconftest.a
6473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6474 (eval $lt_ar_try) 2>&5
6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477 test $ac_status = 0; }
6478 if test "$ac_status" -ne 0; then
6482 rm -f conftest.* libconftest.a
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6489 $as_echo "$lt_cv_ar_at_file" >&6; }
6491 if test "x$lt_cv_ar_at_file" = xno; then
6494 archiver_list_spec=$lt_cv_ar_at_file
6503 if test -n "$ac_tool_prefix"; then
6504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6505 set dummy ${ac_tool_prefix}strip; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_prog_STRIP+:} false; then :
6509 $as_echo_n "(cached) " >&6
6511 if test -n "$STRIP"; then
6512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 STRIP=$ac_cv_prog_STRIP
6532 if test -n "$STRIP"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6534 $as_echo "$STRIP" >&6; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6542 if test -z "$ac_cv_prog_STRIP"; then
6544 # Extract the first word of "strip", so it can be a program name with args.
6545 set dummy strip; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6549 $as_echo_n "(cached) " >&6
6551 if test -n "$ac_ct_STRIP"; then
6552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_ac_ct_STRIP="strip"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6572 if test -n "$ac_ct_STRIP"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6574 $as_echo "$ac_ct_STRIP" >&6; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6580 if test "x$ac_ct_STRIP" = x; then
6583 case $cross_compiling:$ac_tool_warned in
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6592 STRIP="$ac_cv_prog_STRIP"
6595 test -z "$STRIP" && STRIP=:
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_RANLIB+:} false; then :
6608 $as_echo_n "(cached) " >&6
6610 if test -n "$RANLIB"; then
6611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 RANLIB=$ac_cv_prog_RANLIB
6631 if test -n "$RANLIB"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6633 $as_echo "$RANLIB" >&6; }
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6641 if test -z "$ac_cv_prog_RANLIB"; then
6642 ac_ct_RANLIB=$RANLIB
6643 # Extract the first word of "ranlib", so it can be a program name with args.
6644 set dummy ranlib; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6648 $as_echo_n "(cached) " >&6
6650 if test -n "$ac_ct_RANLIB"; then
6651 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_prog_ac_ct_RANLIB="ranlib"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6671 if test -n "$ac_ct_RANLIB"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6673 $as_echo "$ac_ct_RANLIB" >&6; }
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6679 if test "x$ac_ct_RANLIB" = x; then
6682 case $cross_compiling:$ac_tool_warned in
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6688 RANLIB=$ac_ct_RANLIB
6691 RANLIB="$ac_cv_prog_RANLIB"
6694 test -z "$RANLIB" && RANLIB=:
6701 # Determine commands to create old-style static archives.
6702 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6703 old_postinstall_cmds='chmod 644 $oldlib'
6704 old_postuninstall_cmds=
6706 if test -n "$RANLIB"; then
6709 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6712 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6715 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6720 lock_old_archive_extraction=yes ;;
6722 lock_old_archive_extraction=no ;;
6763 # If no C compiler was specified, use CC.
6766 # If no C compiler flags were specified, use CFLAGS.
6767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6769 # Allow CC to be a program name with arguments.
6773 # Check for command to grab the raw symbol name followed by C symbol from nm.
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6775 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6776 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6777 $as_echo_n "(cached) " >&6
6780 # These are sane defaults that work on at least a few old systems.
6781 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6783 # Character class describing NM global symbol codes.
6784 symcode='[BCDEGRST]'
6786 # Regexp to match symbols that can be accessed directly from C.
6787 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6789 # Define system-specific variables.
6794 cygwin* | mingw* | pw32* | cegcc*)
6795 symcode='[ABCDGISTW]'
6798 if test "$host_cpu" = ia64; then
6799 symcode='[ABCDEGRST]'
6803 symcode='[BCDEGRST]'
6806 symcode='[BCDEGQRST]'
6817 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6825 # If we're using GNU nm, then use its standard symbol codes.
6826 case `$NM -V 2>&1` in
6827 *GNU* | *'with BFD'*)
6828 symcode='[ABCDGIRSTW]' ;;
6831 # Transform an extracted symbol line into a proper C declaration.
6832 # Some systems (esp. on ia64) link data and code symbols differently,
6833 # so use this general approach.
6834 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6836 # Transform an extracted symbol line into symbol name and symbol address
6837 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6838 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'"
6840 # Handle CRLF in mingw tool chain
6844 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6848 # Try without a prefix underscore, then with it.
6849 for ac_symprfx in "" "_"; do
6851 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6852 symxfrm="\\1 $ac_symprfx\\2 \\2"
6854 # Write the raw and C identifiers.
6855 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6856 # Fake it for dumpbin and say T for any non-static function
6857 # and D for any global variable.
6858 # Also find C++ and __fastcall symbols from MSVC++,
6859 # which start with @ or ?.
6860 lt_cv_sys_global_symbol_pipe="$AWK '"\
6861 " {last_section=section; section=\$ 3};"\
6862 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6863 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6864 " \$ 0!~/External *\|/{next};"\
6865 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6866 " {if(hide[section]) next};"\
6867 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6868 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6869 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6870 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6871 " ' prfx=^$ac_symprfx"
6873 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6875 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6877 # Check to see that the pipe works correctly.
6881 cat > conftest.$ac_ext <<_LT_EOF
6886 void nm_test_func(void);
6887 void nm_test_func(void){}
6891 int main(){nm_test_var='a';nm_test_func();return(0);}
6894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6895 (eval $ac_compile) 2>&5
6897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898 test $ac_status = 0; }; then
6899 # Now try to grab the symbols.
6901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6902 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905 test $ac_status = 0; } && test -s "$nlist"; then
6906 # Try sorting and uniquifying the output.
6907 if sort "$nlist" | uniq > "$nlist"T; then
6908 mv -f "$nlist"T "$nlist"
6913 # Make sure that we snagged all the symbols we need.
6914 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6915 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6916 cat <<_LT_EOF > conftest.$ac_ext
6917 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6918 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6919 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6920 relocations are performed -- see ld's documentation on pseudo-relocs. */
6921 # define LT_DLSYM_CONST
6922 #elif defined(__osf__)
6923 /* This system does not cope well with relocations in const data. */
6924 # define LT_DLSYM_CONST
6926 # define LT_DLSYM_CONST const
6934 # Now generate the symbol file.
6935 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6937 cat <<_LT_EOF >> conftest.$ac_ext
6939 /* The mapping between symbol names and symbols. */
6940 LT_DLSYM_CONST struct {
6944 lt__PROGRAM__LTX_preloaded_symbols[] =
6946 { "@PROGRAM@", (void *) 0 },
6948 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6949 cat <<\_LT_EOF >> conftest.$ac_ext
6953 /* This works around a problem in FreeBSD linker */
6954 #ifdef FREEBSD_WORKAROUND
6955 static const void *lt_preloaded_setup() {
6956 return lt__PROGRAM__LTX_preloaded_symbols;
6964 # Now try linking the two files.
6965 mv conftest.$ac_objext conftstm.$ac_objext
6966 lt_globsym_save_LIBS=$LIBS
6967 lt_globsym_save_CFLAGS=$CFLAGS
6968 LIBS="conftstm.$ac_objext"
6969 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6971 (eval $ac_link) 2>&5
6973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6974 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6977 LIBS=$lt_globsym_save_LIBS
6978 CFLAGS=$lt_globsym_save_CFLAGS
6980 echo "cannot find nm_test_func in $nlist" >&5
6983 echo "cannot find nm_test_var in $nlist" >&5
6986 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6989 echo "$progname: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6992 rm -rf conftest* conftst*
6994 # Do not use the global_symbol_pipe unless it works.
6995 if test "$pipe_works" = yes; then
6998 lt_cv_sys_global_symbol_pipe=
7004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7005 lt_cv_sys_global_symbol_to_cdecl=
7007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7009 $as_echo "failed" >&6; }
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7012 $as_echo "ok" >&6; }
7015 # Response file support.
7016 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7017 nm_file_list_spec='@'
7018 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7019 nm_file_list_spec='@'
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7049 $as_echo_n "checking for sysroot... " >&6; }
7051 # Check whether --with-sysroot was given.
7052 if test "${with_sysroot+set}" = set; then :
7053 withval=$with_sysroot;
7060 case ${with_sysroot} in #(
7062 if test "$GCC" = yes; then
7063 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7067 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7073 $as_echo "${with_sysroot}" >&6; }
7074 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7079 $as_echo "${lt_sysroot:-no}" >&6; }
7086 # Check whether --enable-libtool-lock was given.
7087 if test "${enable_libtool_lock+set}" = set; then :
7088 enableval=$enable_libtool_lock;
7091 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7093 # Some flags need to be propagated to the compiler or linker for good
7097 # Find out which ABI we are using.
7098 echo 'int i;' > conftest.$ac_ext
7099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7100 (eval $ac_compile) 2>&5
7102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7103 test $ac_status = 0; }; then
7104 case `/usr/bin/file conftest.$ac_objext` in
7116 # Find out which ABI we are using.
7117 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7119 (eval $ac_compile) 2>&5
7121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7122 test $ac_status = 0; }; then
7123 if test "$lt_cv_prog_gnu_ld" = yes; then
7124 case `/usr/bin/file conftest.$ac_objext` in
7126 LD="${LD-ld} -melf32bsmip"
7129 LD="${LD-ld} -melf32bmipn32"
7132 LD="${LD-ld} -melf64bmip"
7136 case `/usr/bin/file conftest.$ac_objext` in
7152 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7153 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7154 # Find out which ABI we are using.
7155 echo 'int i;' > conftest.$ac_ext
7156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7157 (eval $ac_compile) 2>&5
7159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7160 test $ac_status = 0; }; then
7161 case `/usr/bin/file conftest.o` in
7164 x86_64-*kfreebsd*-gnu)
7165 LD="${LD-ld} -m elf_i386_fbsd"
7168 LD="${LD-ld} -m elf_i386"
7170 ppc64-*linux*|powerpc64-*linux*)
7171 LD="${LD-ld} -m elf32ppclinux"
7174 LD="${LD-ld} -m elf_s390"
7177 LD="${LD-ld} -m elf32_sparc"
7183 x86_64-*kfreebsd*-gnu)
7184 LD="${LD-ld} -m elf_x86_64_fbsd"
7187 LD="${LD-ld} -m elf_x86_64"
7189 ppc*-*linux*|powerpc*-*linux*)
7190 LD="${LD-ld} -m elf64ppc"
7192 s390*-*linux*|s390*-*tpf*)
7193 LD="${LD-ld} -m elf64_s390"
7196 LD="${LD-ld} -m elf64_sparc"
7206 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7207 SAVE_CFLAGS="$CFLAGS"
7208 CFLAGS="$CFLAGS -belf"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7210 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7211 if ${lt_cv_cc_needs_belf+:} false; then :
7212 $as_echo_n "(cached) " >&6
7215 ac_cpp='$CPP $CPPFLAGS'
7216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7231 if ac_fn_c_try_link "$LINENO"; then :
7232 lt_cv_cc_needs_belf=yes
7234 lt_cv_cc_needs_belf=no
7236 rm -f core conftest.err conftest.$ac_objext \
7237 conftest$ac_exeext conftest.$ac_ext
7239 ac_cpp='$CPP $CPPFLAGS'
7240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7246 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7247 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7248 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7249 CFLAGS="$SAVE_CFLAGS"
7253 # Find out which ABI we are using.
7254 echo 'int i;' > conftest.$ac_ext
7255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7256 (eval $ac_compile) 2>&5
7258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7259 test $ac_status = 0; }; then
7260 case `/usr/bin/file conftest.o` in
7262 case $lt_cv_prog_gnu_ld in
7266 LD="${LD-ld} -m elf_x86_64"
7269 LD="${LD-ld} -m elf64_sparc"
7272 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7273 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7278 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7290 need_locks="$enable_libtool_lock"
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}mt; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7298 $as_echo_n "(cached) " >&6
7300 if test -n "$MANIFEST_TOOL"; then
7301 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7321 if test -n "$MANIFEST_TOOL"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7323 $as_echo "$MANIFEST_TOOL" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7331 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7332 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7333 # Extract the first word of "mt", so it can be a program name with args.
7334 set dummy mt; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7338 $as_echo_n "(cached) " >&6
7340 if test -n "$ac_ct_MANIFEST_TOOL"; then
7341 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7361 if test -n "$ac_ct_MANIFEST_TOOL"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7363 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7369 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7372 case $cross_compiling:$ac_tool_warned in
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7378 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7381 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7384 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7386 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7387 if ${lt_cv_path_mainfest_tool+:} false; then :
7388 $as_echo_n "(cached) " >&6
7390 lt_cv_path_mainfest_tool=no
7391 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7392 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7393 cat conftest.err >&5
7394 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7395 lt_cv_path_mainfest_tool=yes
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7400 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7401 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7411 rhapsody* | darwin*)
7412 if test -n "$ac_tool_prefix"; then
7413 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7414 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7418 $as_echo_n "(cached) " >&6
7420 if test -n "$DSYMUTIL"; then
7421 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7441 if test -n "$DSYMUTIL"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7443 $as_echo "$DSYMUTIL" >&6; }
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7451 if test -z "$ac_cv_prog_DSYMUTIL"; then
7452 ac_ct_DSYMUTIL=$DSYMUTIL
7453 # Extract the first word of "dsymutil", so it can be a program name with args.
7454 set dummy dsymutil; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7458 $as_echo_n "(cached) " >&6
7460 if test -n "$ac_ct_DSYMUTIL"; then
7461 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7481 if test -n "$ac_ct_DSYMUTIL"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7483 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7489 if test "x$ac_ct_DSYMUTIL" = x; then
7492 case $cross_compiling:$ac_tool_warned in
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7496 ac_tool_warned=yes ;;
7498 DSYMUTIL=$ac_ct_DSYMUTIL
7501 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7504 if test -n "$ac_tool_prefix"; then
7505 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7506 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if ${ac_cv_prog_NMEDIT+:} false; then :
7510 $as_echo_n "(cached) " >&6
7512 if test -n "$NMEDIT"; then
7513 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 NMEDIT=$ac_cv_prog_NMEDIT
7533 if test -n "$NMEDIT"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7535 $as_echo "$NMEDIT" >&6; }
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7543 if test -z "$ac_cv_prog_NMEDIT"; then
7544 ac_ct_NMEDIT=$NMEDIT
7545 # Extract the first word of "nmedit", so it can be a program name with args.
7546 set dummy nmedit; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7550 $as_echo_n "(cached) " >&6
7552 if test -n "$ac_ct_NMEDIT"; then
7553 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7573 if test -n "$ac_ct_NMEDIT"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7575 $as_echo "$ac_ct_NMEDIT" >&6; }
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7581 if test "x$ac_ct_NMEDIT" = x; then
7584 case $cross_compiling:$ac_tool_warned in
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7588 ac_tool_warned=yes ;;
7590 NMEDIT=$ac_ct_NMEDIT
7593 NMEDIT="$ac_cv_prog_NMEDIT"
7596 if test -n "$ac_tool_prefix"; then
7597 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7598 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_LIPO+:} false; then :
7602 $as_echo_n "(cached) " >&6
7604 if test -n "$LIPO"; then
7605 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 LIPO=$ac_cv_prog_LIPO
7625 if test -n "$LIPO"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7627 $as_echo "$LIPO" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7635 if test -z "$ac_cv_prog_LIPO"; then
7637 # Extract the first word of "lipo", so it can be a program name with args.
7638 set dummy lipo; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7642 $as_echo_n "(cached) " >&6
7644 if test -n "$ac_ct_LIPO"; then
7645 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_prog_ac_ct_LIPO="lipo"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7665 if test -n "$ac_ct_LIPO"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7667 $as_echo "$ac_ct_LIPO" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7673 if test "x$ac_ct_LIPO" = x; then
7676 case $cross_compiling:$ac_tool_warned in
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7680 ac_tool_warned=yes ;;
7685 LIPO="$ac_cv_prog_LIPO"
7688 if test -n "$ac_tool_prefix"; then
7689 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7690 set dummy ${ac_tool_prefix}otool; ac_word=$2
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692 $as_echo_n "checking for $ac_word... " >&6; }
7693 if ${ac_cv_prog_OTOOL+:} false; then :
7694 $as_echo_n "(cached) " >&6
7696 if test -n "$OTOOL"; then
7697 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7706 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 OTOOL=$ac_cv_prog_OTOOL
7717 if test -n "$OTOOL"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7719 $as_echo "$OTOOL" >&6; }
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722 $as_echo "no" >&6; }
7727 if test -z "$ac_cv_prog_OTOOL"; then
7729 # Extract the first word of "otool", so it can be a program name with args.
7730 set dummy otool; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7734 $as_echo_n "(cached) " >&6
7736 if test -n "$ac_ct_OTOOL"; then
7737 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_prog_ac_ct_OTOOL="otool"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7757 if test -n "$ac_ct_OTOOL"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7759 $as_echo "$ac_ct_OTOOL" >&6; }
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7765 if test "x$ac_ct_OTOOL" = x; then
7768 case $cross_compiling:$ac_tool_warned in
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7772 ac_tool_warned=yes ;;
7777 OTOOL="$ac_cv_prog_OTOOL"
7780 if test -n "$ac_tool_prefix"; then
7781 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7782 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if ${ac_cv_prog_OTOOL64+:} false; then :
7786 $as_echo_n "(cached) " >&6
7788 if test -n "$OTOOL64"; then
7789 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 OTOOL64=$ac_cv_prog_OTOOL64
7809 if test -n "$OTOOL64"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7811 $as_echo "$OTOOL64" >&6; }
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7819 if test -z "$ac_cv_prog_OTOOL64"; then
7820 ac_ct_OTOOL64=$OTOOL64
7821 # Extract the first word of "otool64", so it can be a program name with args.
7822 set dummy otool64; ac_word=$2
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 $as_echo_n "checking for $ac_word... " >&6; }
7825 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7826 $as_echo_n "(cached) " >&6
7828 if test -n "$ac_ct_OTOOL64"; then
7829 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7838 ac_cv_prog_ac_ct_OTOOL64="otool64"
7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7849 if test -n "$ac_ct_OTOOL64"; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7851 $as_echo "$ac_ct_OTOOL64" >&6; }
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7857 if test "x$ac_ct_OTOOL64" = x; then
7860 case $cross_compiling:$ac_tool_warned in
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7864 ac_tool_warned=yes ;;
7866 OTOOL64=$ac_ct_OTOOL64
7869 OTOOL64="$ac_cv_prog_OTOOL64"
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7899 $as_echo_n "checking for -single_module linker flag... " >&6; }
7900 if ${lt_cv_apple_cc_single_mod+:} false; then :
7901 $as_echo_n "(cached) " >&6
7903 lt_cv_apple_cc_single_mod=no
7904 if test -z "${LT_MULTI_MODULE}"; then
7905 # By default we will add the -single_module flag. You can override
7906 # by either setting the environment variable LT_MULTI_MODULE
7907 # non-empty at configure time, or by adding -multi_module to the
7909 rm -rf libconftest.dylib*
7910 echo "int foo(void){return 1;}" > conftest.c
7911 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7912 -dynamiclib -Wl,-single_module conftest.c" >&5
7913 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7914 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7916 # If there is a non-empty error log, and "single_module"
7917 # appears in it, assume the flag caused a linker warning
7918 if test -s conftest.err && $GREP single_module conftest.err; then
7919 cat conftest.err >&5
7920 # Otherwise, if the output was created with a 0 exit code from
7921 # the compiler, it worked.
7922 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7923 lt_cv_apple_cc_single_mod=yes
7925 cat conftest.err >&5
7927 rm -rf libconftest.dylib*
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7932 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7935 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7936 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7937 $as_echo_n "(cached) " >&6
7939 lt_cv_ld_exported_symbols_list=no
7940 save_LDFLAGS=$LDFLAGS
7941 echo "_main" > conftest.sym
7942 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 lt_cv_ld_exported_symbols_list=yes
7957 lt_cv_ld_exported_symbols_list=no
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 LDFLAGS="$save_LDFLAGS"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7965 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7968 $as_echo_n "checking for -force_load linker flag... " >&6; }
7969 if ${lt_cv_ld_force_load+:} false; then :
7970 $as_echo_n "(cached) " >&6
7972 lt_cv_ld_force_load=no
7973 cat > conftest.c << _LT_EOF
7974 int forced_loaded() { return 2;}
7976 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7977 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7978 echo "$AR cru libconftest.a conftest.o" >&5
7979 $AR cru libconftest.a conftest.o 2>&5
7980 echo "$RANLIB libconftest.a" >&5
7981 $RANLIB libconftest.a 2>&5
7982 cat > conftest.c << _LT_EOF
7983 int main() { return 0;}
7985 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7986 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7988 if test -s conftest.err && $GREP force_load conftest.err; then
7989 cat conftest.err >&5
7990 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7991 lt_cv_ld_force_load=yes
7993 cat conftest.err >&5
7995 rm -f conftest.err libconftest.a conftest conftest.c
7996 rm -rf conftest.dSYM
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8000 $as_echo "$lt_cv_ld_force_load" >&6; }
8002 rhapsody* | darwin1.[012])
8003 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8005 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8006 darwin*) # darwin 5.x on
8007 # if running on 10.5 or later, the deployment target defaults
8008 # to the OS version, if on x86, and 10.4, the deployment
8009 # target defaults to 10.4. Don't you love it?
8010 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8011 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8012 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8014 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8016 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8020 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8021 _lt_dar_single_mod='$single_module'
8023 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8024 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8026 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8028 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8029 _lt_dsymutil='~$DSYMUTIL $lib || :'
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8038 $as_echo_n "checking for ANSI C header files... " >&6; }
8039 if ${ac_cv_header_stdc+:} false; then :
8040 $as_echo_n "(cached) " >&6
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8057 if ac_fn_c_try_compile "$LINENO"; then :
8058 ac_cv_header_stdc=yes
8060 ac_cv_header_stdc=no
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 if test $ac_cv_header_stdc = yes; then
8065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8072 $EGREP "memchr" >/dev/null 2>&1; then :
8075 ac_cv_header_stdc=no
8081 if test $ac_cv_header_stdc = yes; then
8082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8089 $EGREP "free" >/dev/null 2>&1; then :
8092 ac_cv_header_stdc=no
8098 if test $ac_cv_header_stdc = yes; then
8099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8100 if test "$cross_compiling" = yes; then :
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8107 #if ((' ' & 0x0FF) == 0x020)
8108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8111 # define ISLOWER(c) \
8112 (('a' <= (c) && (c) <= 'i') \
8113 || ('j' <= (c) && (c) <= 'r') \
8114 || ('s' <= (c) && (c) <= 'z'))
8115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8123 for (i = 0; i < 256; i++)
8124 if (XOR (islower (i), ISLOWER (i))
8125 || toupper (i) != TOUPPER (i))
8130 if ac_fn_c_try_run "$LINENO"; then :
8133 ac_cv_header_stdc=no
8135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8136 conftest.$ac_objext conftest.beam conftest.$ac_ext
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8142 $as_echo "$ac_cv_header_stdc" >&6; }
8143 if test $ac_cv_header_stdc = yes; then
8145 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8149 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8150 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8151 inttypes.h stdint.h unistd.h
8153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8154 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8156 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8157 cat >>confdefs.h <<_ACEOF
8158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8166 for ac_header in dlfcn.h
8168 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8170 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8171 cat >>confdefs.h <<_ACEOF
8172 #define HAVE_DLFCN_H 1
8181 func_stripname_cnf ()
8184 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8185 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8187 } # func_stripname_cnf
8203 # Check whether --enable-shared was given.
8204 if test "${enable_shared+set}" = set; then :
8205 enableval=$enable_shared; p=${PACKAGE-default}
8207 yes) enable_shared=yes ;;
8208 no) enable_shared=no ;;
8211 # Look at the argument we got. We use all the common list separators.
8212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8213 for pkg in $enableval; do
8215 if test "X$pkg" = "X$p"; then
8234 # Check whether --enable-static was given.
8235 if test "${enable_static+set}" = set; then :
8236 enableval=$enable_static; p=${PACKAGE-default}
8238 yes) enable_static=yes ;;
8239 no) enable_static=no ;;
8242 # Look at the argument we got. We use all the common list separators.
8243 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8244 for pkg in $enableval; do
8246 if test "X$pkg" = "X$p"; then
8266 # Check whether --with-pic was given.
8267 if test "${with_pic+set}" = set; then :
8268 withval=$with_pic; lt_p=${PACKAGE-default}
8270 yes|no) pic_mode=$withval ;;
8273 # Look at the argument we got. We use all the common list separators.
8274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8275 for lt_pkg in $withval; do
8277 if test "X$lt_pkg" = "X$lt_p"; then
8289 test -z "$pic_mode" && pic_mode=default
8297 # Check whether --enable-fast-install was given.
8298 if test "${enable_fast_install+set}" = set; then :
8299 enableval=$enable_fast_install; p=${PACKAGE-default}
8301 yes) enable_fast_install=yes ;;
8302 no) enable_fast_install=no ;;
8304 enable_fast_install=no
8305 # Look at the argument we got. We use all the common list separators.
8306 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8307 for pkg in $enableval; do
8309 if test "X$pkg" = "X$p"; then
8310 enable_fast_install=yes
8317 enable_fast_install=yes
8330 # This can be used to rebuild libtool when needed
8331 LIBTOOL_DEPS="$ltmain"
8333 # Always use our own libtool.
8334 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8365 test -z "$LN_S" && LN_S="ln -s"
8380 if test -n "${ZSH_VERSION+set}" ; then
8381 setopt NO_GLOB_SUBST
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8385 $as_echo_n "checking for objdir... " >&6; }
8386 if ${lt_cv_objdir+:} false; then :
8387 $as_echo_n "(cached) " >&6
8389 rm -f .libs 2>/dev/null
8390 mkdir .libs 2>/dev/null
8391 if test -d .libs; then
8394 # MS-DOS does not allow filenames that begin with a dot.
8397 rmdir .libs 2>/dev/null
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8400 $as_echo "$lt_cv_objdir" >&6; }
8401 objdir=$lt_cv_objdir
8407 cat >>confdefs.h <<_ACEOF
8408 #define LT_OBJDIR "$lt_cv_objdir/"
8416 # AIX sometimes has problems with the GCC collect2 program. For some
8417 # reason, if we set the COLLECT_NAMES environment variable, the problems
8418 # vanish in a puff of smoke.
8419 if test "X${COLLECT_NAMES+set}" != Xset; then
8421 export COLLECT_NAMES
8428 can_build_shared=yes
8430 # All known linkers require a `.a' archive for static linking (except MSVC,
8431 # which needs '.lib').
8434 with_gnu_ld="$lt_cv_prog_gnu_ld"
8437 old_CFLAGS="$CFLAGS"
8439 # Set sane defaults for various variables
8440 test -z "$CC" && CC=cc
8441 test -z "$LTCC" && LTCC=$CC
8442 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8443 test -z "$LD" && LD=ld
8444 test -z "$ac_objext" && ac_objext=o
8446 for cc_temp in $compiler""; do
8448 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8449 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8454 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8457 # Only perform the check for file, if the check method requires it
8458 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8459 case $deplibs_check_method in
8461 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8463 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8464 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8465 $as_echo_n "(cached) " >&6
8469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8472 lt_save_MAGIC_CMD="$MAGIC_CMD"
8473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475 for ac_dir in $ac_dummy; do
8477 test -z "$ac_dir" && ac_dir=.
8478 if test -f $ac_dir/${ac_tool_prefix}file; then
8479 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8480 if test -n "$file_magic_test_file"; then
8481 case $deplibs_check_method in
8483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486 $EGREP "$file_magic_regex" > /dev/null; then
8491 *** Warning: the command libtool uses to detect shared libraries,
8492 *** $file_magic_cmd, produces output that libtool cannot recognize.
8493 *** The result is that libtool may fail to recognize shared libraries
8494 *** as such. This will affect the creation of libtool libraries that
8495 *** depend on shared libraries, but programs linked with such libtool
8496 *** libraries will work regardless of this problem. Nevertheless, you
8497 *** may want to report the problem to your system manager and/or to
8498 *** bug-libtool@gnu.org
8508 MAGIC_CMD="$lt_save_MAGIC_CMD"
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514 if test -n "$MAGIC_CMD"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8516 $as_echo "$MAGIC_CMD" >&6; }
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8526 if test -z "$lt_cv_path_MAGIC_CMD"; then
8527 if test -n "$ac_tool_prefix"; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8529 $as_echo_n "checking for file... " >&6; }
8530 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8531 $as_echo_n "(cached) " >&6
8535 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8538 lt_save_MAGIC_CMD="$MAGIC_CMD"
8539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8540 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8541 for ac_dir in $ac_dummy; do
8543 test -z "$ac_dir" && ac_dir=.
8544 if test -f $ac_dir/file; then
8545 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8546 if test -n "$file_magic_test_file"; then
8547 case $deplibs_check_method in
8549 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8551 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8552 $EGREP "$file_magic_regex" > /dev/null; then
8557 *** Warning: the command libtool uses to detect shared libraries,
8558 *** $file_magic_cmd, produces output that libtool cannot recognize.
8559 *** The result is that libtool may fail to recognize shared libraries
8560 *** as such. This will affect the creation of libtool libraries that
8561 *** depend on shared libraries, but programs linked with such libtool
8562 *** libraries will work regardless of this problem. Nevertheless, you
8563 *** may want to report the problem to your system manager and/or to
8564 *** bug-libtool@gnu.org
8574 MAGIC_CMD="$lt_save_MAGIC_CMD"
8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 if test -n "$MAGIC_CMD"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8582 $as_echo "$MAGIC_CMD" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8598 # Use C for the default configuration in the libtool script
8602 ac_cpp='$CPP $CPPFLAGS'
8603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8608 # Source file extension for C test sources.
8611 # Object file extension for compiled C test sources.
8615 # Code to be used in simple compile tests
8616 lt_simple_compile_test_code="int some_variable = 0;"
8618 # Code to be used in simple link tests
8619 lt_simple_link_test_code='int main(){return(0);}'
8627 # If no C compiler was specified, use CC.
8630 # If no C compiler flags were specified, use CFLAGS.
8631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8633 # Allow CC to be a program name with arguments.
8636 # Save the default compiler, since it gets overwritten when the other
8637 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8638 compiler_DEFAULT=$CC
8640 # save warnings/boilerplate of simple test code
8641 ac_outfile=conftest.$ac_objext
8642 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8643 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8644 _lt_compiler_boilerplate=`cat conftest.err`
8647 ac_outfile=conftest.$ac_objext
8648 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8649 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8650 _lt_linker_boilerplate=`cat conftest.err`
8655 ## There is no encapsulation within the following macros, do not change
8656 ## the running order or otherwise move them around unless you know exactly
8657 ## what you are doing...
8658 if test -n "$compiler"; then
8660 lt_prog_compiler_no_builtin_flag=
8662 if test "$GCC" = yes; then
8663 case $cc_basename in
8665 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8667 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8671 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8672 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8673 $as_echo_n "(cached) " >&6
8675 lt_cv_prog_compiler_rtti_exceptions=no
8676 ac_outfile=conftest.$ac_objext
8677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678 lt_compiler_flag="-fno-rtti -fno-exceptions"
8679 # Insert the option either (1) after the last *FLAGS variable, or
8680 # (2) before a word containing "conftest.", or (3) at the end.
8681 # Note that $ac_compile itself does not contain backslashes and begins
8682 # with a dollar sign (not a hyphen), so the echo should work correctly.
8683 # The option is referenced via a variable to avoid confusing sed.
8684 lt_compile=`echo "$ac_compile" | $SED \
8685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687 -e 's:$: $lt_compiler_flag:'`
8688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8689 (eval "$lt_compile" 2>conftest.err)
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 if (exit $ac_status) && test -s "$ac_outfile"; then
8694 # The compiler can only warn and ignore the option if not recognized
8695 # So say no if there are warnings other than the usual output.
8696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8699 lt_cv_prog_compiler_rtti_exceptions=yes
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8706 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8708 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8709 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8721 lt_prog_compiler_wl=
8722 lt_prog_compiler_pic=
8723 lt_prog_compiler_static=
8726 if test "$GCC" = yes; then
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_static='-static'
8732 # All AIX code is PIC.
8733 if test "$host_cpu" = ia64; then
8734 # AIX 5 now supports IA64 processor
8735 lt_prog_compiler_static='-Bstatic'
8742 # see comment about AmigaOS4 .so support
8743 lt_prog_compiler_pic='-fPIC'
8746 # FIXME: we need at least 68020 code to build shared libraries, but
8747 # adding the `-m68020' flag to GCC prevents building anything better,
8749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8754 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8755 # PIC is the default for these OSes.
8758 mingw* | cygwin* | pw32* | os2* | cegcc*)
8759 # This hack is so that the source file can tell whether it is being
8760 # built for inclusion in a dll (and should export symbols for example).
8761 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8762 # (--disable-auto-import) libraries
8763 lt_prog_compiler_pic='-DDLL_EXPORT'
8766 darwin* | rhapsody*)
8767 # PIC is the default on this platform
8768 # Common symbols not allowed in MH_DYLIB files
8769 lt_prog_compiler_pic='-fno-common'
8773 # PIC is the default for Haiku.
8774 # The "-static" flag exists, but is broken.
8775 lt_prog_compiler_static=
8779 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8780 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8781 # sets the default TLS model and affects inlining.
8787 lt_prog_compiler_pic='-fPIC'
8793 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8794 # Instead, we relocate shared libraries at runtime.
8798 # Just because we use GCC doesn't mean we suddenly get shared libraries
8799 # on systems that don't support them.
8800 lt_prog_compiler_can_build_shared=no
8805 # QNX uses GNU C++, but need to define -shared option too, otherwise
8807 lt_prog_compiler_pic='-fPIC -shared'
8811 if test -d /usr/nec; then
8812 lt_prog_compiler_pic=-Kconform_pic
8817 lt_prog_compiler_pic='-fPIC'
8821 case $cc_basename in
8822 nvcc*) # Cuda Compiler Driver 2.2
8823 lt_prog_compiler_wl='-Xlinker '
8824 if test -n "$lt_prog_compiler_pic"; then
8825 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8830 # PORTME Check for flag to pass linker flags through the system compiler.
8833 lt_prog_compiler_wl='-Wl,'
8834 if test "$host_cpu" = ia64; then
8835 # AIX 5 now supports IA64 processor
8836 lt_prog_compiler_static='-Bstatic'
8838 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8842 mingw* | cygwin* | pw32* | os2* | cegcc*)
8843 # This hack is so that the source file can tell whether it is being
8844 # built for inclusion in a dll (and should export symbols for example).
8845 lt_prog_compiler_pic='-DDLL_EXPORT'
8848 hpux9* | hpux10* | hpux11*)
8849 lt_prog_compiler_wl='-Wl,'
8850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8857 lt_prog_compiler_pic='+Z'
8860 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8861 lt_prog_compiler_static='${wl}-a ${wl}archive'
8864 irix5* | irix6* | nonstopux*)
8865 lt_prog_compiler_wl='-Wl,'
8866 # PIC (with -KPIC) is the default.
8867 lt_prog_compiler_static='-non_shared'
8870 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8871 case $cc_basename in
8872 # old Intel for x86_64 which still supported -KPIC.
8874 lt_prog_compiler_wl='-Wl,'
8875 lt_prog_compiler_pic='-KPIC'
8876 lt_prog_compiler_static='-static'
8878 # icc used to be incompatible with GCC.
8879 # ICC 10 doesn't accept -KPIC any more.
8881 lt_prog_compiler_wl='-Wl,'
8882 lt_prog_compiler_pic='-fPIC'
8883 lt_prog_compiler_static='-static'
8885 # Lahey Fortran 8.1.
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='--shared'
8889 lt_prog_compiler_static='--static'
8892 # NAG Fortran compiler
8893 lt_prog_compiler_wl='-Wl,-Wl,,'
8894 lt_prog_compiler_pic='-PIC'
8895 lt_prog_compiler_static='-Bstatic'
8897 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8898 # Portland Group compilers (*not* the Pentium gcc compiler,
8899 # which looks to be a dead project)
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_pic='-fpic'
8902 lt_prog_compiler_static='-Bstatic'
8905 lt_prog_compiler_wl='-Wl,'
8906 # All Alpha code is PIC.
8907 lt_prog_compiler_static='-non_shared'
8909 xl* | bgxl* | bgf* | mpixl*)
8910 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8911 lt_prog_compiler_wl='-Wl,'
8912 lt_prog_compiler_pic='-qpic'
8913 lt_prog_compiler_static='-qstaticlink'
8916 case `$CC -V 2>&1 | sed 5q` in
8917 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8918 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8919 lt_prog_compiler_pic='-KPIC'
8920 lt_prog_compiler_static='-Bstatic'
8921 lt_prog_compiler_wl=''
8923 *Sun\ F* | *Sun*Fortran*)
8924 lt_prog_compiler_pic='-KPIC'
8925 lt_prog_compiler_static='-Bstatic'
8926 lt_prog_compiler_wl='-Qoption ld '
8930 lt_prog_compiler_pic='-KPIC'
8931 lt_prog_compiler_static='-Bstatic'
8932 lt_prog_compiler_wl='-Wl,'
8934 *Intel*\ [CF]*Compiler*)
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_pic='-fPIC'
8937 lt_prog_compiler_static='-static'
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_pic='-fpic'
8942 lt_prog_compiler_static='-Bstatic'
8950 lt_prog_compiler_pic='-KPIC'
8951 lt_prog_compiler_static='-Bstatic'
8955 # QNX uses GNU C++, but need to define -shared option too, otherwise
8957 lt_prog_compiler_pic='-fPIC -shared'
8960 osf3* | osf4* | osf5*)
8961 lt_prog_compiler_wl='-Wl,'
8962 # All OSF/1 code is PIC.
8963 lt_prog_compiler_static='-non_shared'
8967 lt_prog_compiler_static='-non_shared'
8971 lt_prog_compiler_pic='-KPIC'
8972 lt_prog_compiler_static='-Bstatic'
8973 case $cc_basename in
8974 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8975 lt_prog_compiler_wl='-Qoption ld ';;
8977 lt_prog_compiler_wl='-Wl,';;
8982 lt_prog_compiler_wl='-Qoption ld '
8983 lt_prog_compiler_pic='-PIC'
8984 lt_prog_compiler_static='-Bstatic'
8987 sysv4 | sysv4.2uw2* | sysv4.3*)
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-KPIC'
8990 lt_prog_compiler_static='-Bstatic'
8994 if test -d /usr/nec ;then
8995 lt_prog_compiler_pic='-Kconform_pic'
8996 lt_prog_compiler_static='-Bstatic'
9000 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9001 lt_prog_compiler_wl='-Wl,'
9002 lt_prog_compiler_pic='-KPIC'
9003 lt_prog_compiler_static='-Bstatic'
9007 lt_prog_compiler_wl='-Wl,'
9008 lt_prog_compiler_can_build_shared=no
9012 lt_prog_compiler_pic='-pic'
9013 lt_prog_compiler_static='-Bstatic'
9017 lt_prog_compiler_can_build_shared=no
9023 # For platforms which do not support PIC, -DPIC is meaningless:
9025 lt_prog_compiler_pic=
9028 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9033 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9034 if ${lt_cv_prog_compiler_pic+:} false; then :
9035 $as_echo_n "(cached) " >&6
9037 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9040 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9041 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9044 # Check to make sure the PIC flag actually works.
9046 if test -n "$lt_prog_compiler_pic"; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9048 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9049 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9050 $as_echo_n "(cached) " >&6
9052 lt_cv_prog_compiler_pic_works=no
9053 ac_outfile=conftest.$ac_objext
9054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9056 # Insert the option either (1) after the last *FLAGS variable, or
9057 # (2) before a word containing "conftest.", or (3) at the end.
9058 # Note that $ac_compile itself does not contain backslashes and begins
9059 # with a dollar sign (not a hyphen), so the echo should work correctly.
9060 # The option is referenced via a variable to avoid confusing sed.
9061 lt_compile=`echo "$ac_compile" | $SED \
9062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9064 -e 's:$: $lt_compiler_flag:'`
9065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9066 (eval "$lt_compile" 2>conftest.err)
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 if (exit $ac_status) && test -s "$ac_outfile"; then
9071 # The compiler can only warn and ignore the option if not recognized
9072 # So say no if there are warnings other than the usual output.
9073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9076 lt_cv_prog_compiler_pic_works=yes
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9083 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9085 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9086 case $lt_prog_compiler_pic in
9088 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9091 lt_prog_compiler_pic=
9092 lt_prog_compiler_can_build_shared=no
9108 # Check to make sure the static flag actually works.
9110 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9112 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9113 if ${lt_cv_prog_compiler_static_works+:} false; then :
9114 $as_echo_n "(cached) " >&6
9116 lt_cv_prog_compiler_static_works=no
9117 save_LDFLAGS="$LDFLAGS"
9118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9121 # The linker can only warn and ignore the option if not recognized
9122 # So say no if there are warnings
9123 if test -s conftest.err; then
9124 # Append any errors to the config.log.
9125 cat conftest.err 1>&5
9126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128 if diff conftest.exp conftest.er2 >/dev/null; then
9129 lt_cv_prog_compiler_static_works=yes
9132 lt_cv_prog_compiler_static_works=yes
9136 LDFLAGS="$save_LDFLAGS"
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9140 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9142 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9145 lt_prog_compiler_static=
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9156 if ${lt_cv_prog_compiler_c_o+:} false; then :
9157 $as_echo_n "(cached) " >&6
9159 lt_cv_prog_compiler_c_o=no
9160 $RM -r conftest 2>/dev/null
9164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9166 lt_compiler_flag="-o out/conftest2.$ac_objext"
9167 # Insert the option either (1) after the last *FLAGS variable, or
9168 # (2) before a word containing "conftest.", or (3) at the end.
9169 # Note that $ac_compile itself does not contain backslashes and begins
9170 # with a dollar sign (not a hyphen), so the echo should work correctly.
9171 lt_compile=`echo "$ac_compile" | $SED \
9172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174 -e 's:$: $lt_compiler_flag:'`
9175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9176 (eval "$lt_compile" 2>out/conftest.err)
9178 cat out/conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9182 # The compiler can only warn and ignore the option if not recognized
9183 # So say no if there are warnings
9184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9187 lt_cv_prog_compiler_c_o=yes
9192 # SGI C++ compiler will create directory out/ii_files/ for
9193 # template instantiation
9194 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9195 $RM out/* && rmdir out
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9202 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9211 if ${lt_cv_prog_compiler_c_o+:} false; then :
9212 $as_echo_n "(cached) " >&6
9214 lt_cv_prog_compiler_c_o=no
9215 $RM -r conftest 2>/dev/null
9219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9221 lt_compiler_flag="-o out/conftest2.$ac_objext"
9222 # Insert the option either (1) after the last *FLAGS variable, or
9223 # (2) before a word containing "conftest.", or (3) at the end.
9224 # Note that $ac_compile itself does not contain backslashes and begins
9225 # with a dollar sign (not a hyphen), so the echo should work correctly.
9226 lt_compile=`echo "$ac_compile" | $SED \
9227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9229 -e 's:$: $lt_compiler_flag:'`
9230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9231 (eval "$lt_compile" 2>out/conftest.err)
9233 cat out/conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9237 # The compiler can only warn and ignore the option if not recognized
9238 # So say no if there are warnings
9239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9242 lt_cv_prog_compiler_c_o=yes
9247 # SGI C++ compiler will create directory out/ii_files/ for
9248 # template instantiation
9249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9250 $RM out/* && rmdir out
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9257 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9262 hard_links="nottested"
9263 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9264 # do not overwrite the value of need_locks provided by the user
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9266 $as_echo_n "checking if we can lock with hard links... " >&6; }
9269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9271 ln conftest.a conftest.b 2>&5 || hard_links=no
9272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9274 $as_echo "$hard_links" >&6; }
9275 if test "$hard_links" = no; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9290 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9293 allow_undefined_flag=
9294 always_export_symbols=no
9296 archive_expsym_cmds=
9297 compiler_needs_object=no
9298 enable_shared_with_static_runtimes=no
9299 export_dynamic_flag_spec=
9300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9301 hardcode_automatic=no
9303 hardcode_direct_absolute=no
9304 hardcode_libdir_flag_spec=
9305 hardcode_libdir_separator=
9307 hardcode_shlibpath_var=unsupported
9309 link_all_deplibs=unknown
9312 old_archive_from_new_cmds=
9313 old_archive_from_expsyms_cmds=
9314 thread_safe_flag_spec=
9315 whole_archive_flag_spec=
9316 # include_expsyms should be a list of space-separated symbols to be *always*
9317 # included in the symbol list
9319 # exclude_expsyms can be an extended regexp of symbols to exclude
9320 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9321 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9322 # as well as any symbol that contains `d'.
9323 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9324 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9325 # platforms (ab)use it in PIC code, but their linkers get confused if
9326 # the symbol is explicitly referenced. Since portable code cannot
9327 # rely on this symbol name, it's probably fine to never include it in
9328 # preloaded symbol tables.
9329 # Exclude shared library initialization/finalization symbols.
9330 extract_expsyms_cmds=
9333 cygwin* | mingw* | pw32* | cegcc*)
9334 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9335 # When not using gcc, we currently assume that we are using
9336 # Microsoft Visual C++.
9337 if test "$GCC" != yes; then
9342 # we just hope/assume this is gcc and not c89 (= MSVC++)
9348 linux* | k*bsd*-gnu | gnu*)
9355 # On some targets, GNU ld is compatible enough with the native linker
9356 # that we're better off using the native interface for both.
9357 lt_use_gnu_ld_interface=no
9358 if test "$with_gnu_ld" = yes; then
9361 # The AIX port of GNU ld has always aspired to compatibility
9362 # with the native linker. However, as the warning in the GNU ld
9363 # block says, versions before 2.19.5* couldn't really create working
9364 # shared libraries, regardless of the interface used.
9365 case `$LD -v 2>&1` in
9366 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9367 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9368 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9370 lt_use_gnu_ld_interface=yes
9375 lt_use_gnu_ld_interface=yes
9380 if test "$lt_use_gnu_ld_interface" = yes; then
9381 # If archive_cmds runs LD, not CC, wlarc should be empty
9384 # Set some defaults for GNU ld with shared library support. These
9385 # are reset later if shared libraries are not supported. Putting them
9386 # here allows them to be overridden if necessary.
9387 runpath_var=LD_RUN_PATH
9388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389 export_dynamic_flag_spec='${wl}--export-dynamic'
9390 # ancient GNU ld didn't support --whole-archive et. al.
9391 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9392 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9394 whole_archive_flag_spec=
9396 supports_anon_versioning=no
9397 case `$LD -v 2>&1` in
9398 *GNU\ gold*) supports_anon_versioning=yes ;;
9399 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9400 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9401 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9402 *\ 2.11.*) ;; # other 2.11 versions
9403 *) supports_anon_versioning=yes ;;
9406 # See if GNU ld supports shared libraries.
9409 # On AIX/PPC, the GNU linker is very broken
9410 if test "$host_cpu" != ia64; then
9414 *** Warning: the GNU linker, at least up to release 2.19, is reported
9415 *** to be unable to reliably create shared libraries on AIX.
9416 *** Therefore, libtool is disabling shared libraries support. If you
9417 *** really care for shared libraries, you may want to install binutils
9418 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9419 *** You will then need to restart the configuration process.
9428 # see comment about AmigaOS4 .so support
9429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430 archive_expsym_cmds=''
9433 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)'
9434 hardcode_libdir_flag_spec='-L$libdir'
9435 hardcode_minus_L=yes
9441 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442 allow_undefined_flag=unsupported
9443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9444 # support --undefined. This deserves some investigation. FIXME
9445 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9451 cygwin* | mingw* | pw32* | cegcc*)
9452 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9453 # as there is no search path for DLLs.
9454 hardcode_libdir_flag_spec='-L$libdir'
9455 export_dynamic_flag_spec='${wl}--export-all-symbols'
9456 allow_undefined_flag=unsupported
9457 always_export_symbols=no
9458 enable_shared_with_static_runtimes=yes
9459 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'
9460 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9462 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9464 # If the export-symbols file already is a .def file (1st line
9465 # is EXPORTS), use it as is; otherwise, prepend...
9466 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9467 cp $export_symbols $output_objdir/$soname.def;
9469 echo EXPORTS > $output_objdir/$soname.def;
9470 cat $export_symbols >> $output_objdir/$soname.def;
9472 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480 link_all_deplibs=yes
9485 hardcode_shlibpath_var=no
9486 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9487 export_dynamic_flag_spec='${wl}-E'
9488 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9489 # Instead, shared libraries are loaded at an image base (0x10000000 by
9490 # default) and relocated if they conflict, which is a slow very memory
9491 # consuming and fragmenting process. To avoid this, we pick a random,
9492 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9493 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9494 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9495 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'
9498 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9500 if test "$host_os" = linux-dietlibc; then
9501 case $cc_basename in
9502 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9505 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9506 && test "$tmp_diet" = no
9508 tmp_addflag=' $pic_flag'
9509 tmp_sharedflag='-shared'
9510 case $cc_basename,$host_cpu in
9511 pgcc*) # Portland Group C compiler
9512 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'
9513 tmp_addflag=' $pic_flag'
9515 pgf77* | pgf90* | pgf95* | pgfortran*)
9516 # Portland Group f77 and f90 compilers
9517 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'
9518 tmp_addflag=' $pic_flag -Mnomain' ;;
9519 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9520 tmp_addflag=' -i_dynamic' ;;
9521 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9522 tmp_addflag=' -i_dynamic -nofor_main' ;;
9523 ifc* | ifort*) # Intel Fortran compiler
9524 tmp_addflag=' -nofor_main' ;;
9525 lf95*) # Lahey Fortran 8.1
9526 whole_archive_flag_spec=
9527 tmp_sharedflag='--shared' ;;
9528 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9529 tmp_sharedflag='-qmkshrobj'
9531 nvcc*) # Cuda Compiler Driver 2.2
9532 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'
9533 compiler_needs_object=yes
9536 case `$CC -V 2>&1 | sed 5q` in
9537 *Sun\ C*) # Sun C 5.9
9538 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'
9539 compiler_needs_object=yes
9540 tmp_sharedflag='-G' ;;
9541 *Sun\ F*) # Sun Fortran 8.3
9542 tmp_sharedflag='-G' ;;
9544 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546 if test "x$supports_anon_versioning" = xyes; then
9547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549 echo "local: *; };" >> $output_objdir/$libname.ver~
9550 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9553 case $cc_basename in
9554 xlf* | bgf* | bgxlf* | mpixlf*)
9555 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9556 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9559 if test "x$supports_anon_versioning" = xyes; then
9560 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9562 echo "local: *; };" >> $output_objdir/$libname.ver~
9563 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9572 netbsd* | netbsdelf*-gnu)
9573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9574 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9583 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9587 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9588 *** create shared libraries on Solaris systems. Therefore, libtool
9589 *** is disabling shared libraries support. We urge you to upgrade GNU
9590 *** binutils to release 2.9.1 or newer. Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9595 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9596 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9604 case `$LD -v 2>&1` in
9605 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9609 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9610 *** reliably create shared libraries on SCO systems. Therefore, libtool
9611 *** is disabling shared libraries support. We urge you to upgrade GNU
9612 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9613 *** your PATH or compiler configuration so that the native linker is
9614 *** used, and then restart.
9619 # For security reasons, it is highly recommended that you always
9620 # use absolute paths for naming shared libraries, and exclude the
9621 # DT_RUNPATH tag from executables and libraries. But doing so
9622 # requires that you compile everything twice, which is a pain.
9623 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9635 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_shlibpath_var=no
9642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9651 if test "$ld_shlibs" = no; then
9653 hardcode_libdir_flag_spec=
9654 export_dynamic_flag_spec=
9655 whole_archive_flag_spec=
9658 # PORTME fill in a description of your system's linker (not GNU ld)
9661 allow_undefined_flag=unsupported
9662 always_export_symbols=yes
9663 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'
9664 # Note: this linker hardcodes the directories in LIBPATH if there
9665 # are no directories specified by -L.
9666 hardcode_minus_L=yes
9667 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9668 # Neither direct hardcoding nor static linking is supported with a
9670 hardcode_direct=unsupported
9675 if test "$host_cpu" = ia64; then
9676 # On IA64, the linker does run time linking by default, so we don't
9677 # have to do anything special.
9678 aix_use_runtimelinking=no
9679 exp_sym_flag='-Bexport'
9682 # If we're using GNU nm, then we don't want the "-C" option.
9683 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9684 # Also, AIX nm treats weak defined symbols like other global
9685 # defined symbols, whereas GNU nm marks them as "W".
9686 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9687 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'
9689 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'
9691 aix_use_runtimelinking=no
9693 # Test if we are trying to use run time linking or normal
9694 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9695 # need to do runtime linking.
9696 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9697 for ld_flag in $LDFLAGS; do
9698 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9699 aix_use_runtimelinking=yes
9706 exp_sym_flag='-bexport'
9707 no_entry_flag='-bnoentry'
9710 # When large executables or shared objects are built, AIX ld can
9711 # have problems creating the table of contents. If linking a library
9712 # or program results in "error TOC overflow" add -mminimal-toc to
9713 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9714 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9718 hardcode_direct_absolute=yes
9719 hardcode_libdir_separator=':'
9720 link_all_deplibs=yes
9721 file_list_spec='${wl}-f,'
9723 if test "$GCC" = yes; then
9724 case $host_os in aix4.[012]|aix4.[012].*)
9725 # We only want to do this on AIX 4.2 and lower, the check
9726 # below for broken collect2 doesn't work under 4.3+
9727 collect2name=`${CC} -print-prog-name=collect2`
9728 if test -f "$collect2name" &&
9729 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9731 # We have reworked collect2
9734 # We have old collect2
9735 hardcode_direct=unsupported
9736 # It fails to find uninstalled libraries when the uninstalled
9737 # path is not listed in the libpath. Setting hardcode_minus_L
9738 # to unsupported forces relinking
9739 hardcode_minus_L=yes
9740 hardcode_libdir_flag_spec='-L$libdir'
9741 hardcode_libdir_separator=
9745 shared_flag='-shared'
9746 if test "$aix_use_runtimelinking" = yes; then
9747 shared_flag="$shared_flag "'${wl}-G'
9752 if test "$host_cpu" = ia64; then
9753 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9754 # chokes on -Wl,-G. The following line is correct:
9757 if test "$aix_use_runtimelinking" = yes; then
9758 shared_flag='${wl}-G'
9760 shared_flag='${wl}-bM:SRE'
9765 export_dynamic_flag_spec='${wl}-bexpall'
9766 # It seems that -bexpall does not export symbols beginning with
9767 # underscore (_), so it is better to generate a list of symbols to export.
9768 always_export_symbols=yes
9769 if test "$aix_use_runtimelinking" = yes; then
9770 # Warning - without using the other runtime loading flags (-brtl),
9771 # -berok will link without error, but may produce a broken library.
9772 allow_undefined_flag='-berok'
9773 # Determine the default libpath from the value encoded in an
9775 if test "${lt_cv_aix_libpath+set}" = set; then
9776 aix_libpath=$lt_cv_aix_libpath
9778 if ${lt_cv_aix_libpath_+:} false; then :
9779 $as_echo_n "(cached) " >&6
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9792 if ac_fn_c_try_link "$LINENO"; then :
9794 lt_aix_libpath_sed='
9795 /Import File Strings/,/^$/ {
9797 s/^0 *\([^ ]*\) *$/\1/
9801 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802 # Check for a 64-bit object if we didn't find anything.
9803 if test -z "$lt_cv_aix_libpath_"; then
9804 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9807 rm -f core conftest.err conftest.$ac_objext \
9808 conftest$ac_exeext conftest.$ac_ext
9809 if test -z "$lt_cv_aix_libpath_"; then
9810 lt_cv_aix_libpath_="/usr/lib:/lib"
9815 aix_libpath=$lt_cv_aix_libpath_
9818 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9819 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"
9821 if test "$host_cpu" = ia64; then
9822 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9823 allow_undefined_flag="-z nodefs"
9824 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"
9826 # Determine the default libpath from the value encoded in an
9828 if test "${lt_cv_aix_libpath+set}" = set; then
9829 aix_libpath=$lt_cv_aix_libpath
9831 if ${lt_cv_aix_libpath_+:} false; then :
9832 $as_echo_n "(cached) " >&6
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9845 if ac_fn_c_try_link "$LINENO"; then :
9847 lt_aix_libpath_sed='
9848 /Import File Strings/,/^$/ {
9850 s/^0 *\([^ ]*\) *$/\1/
9854 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855 # Check for a 64-bit object if we didn't find anything.
9856 if test -z "$lt_cv_aix_libpath_"; then
9857 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 if test -z "$lt_cv_aix_libpath_"; then
9863 lt_cv_aix_libpath_="/usr/lib:/lib"
9868 aix_libpath=$lt_cv_aix_libpath_
9871 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9872 # Warning - without using the other run time loading flags,
9873 # -berok will link without error, but may produce a broken library.
9874 no_undefined_flag=' ${wl}-bernotok'
9875 allow_undefined_flag=' ${wl}-berok'
9876 if test "$with_gnu_ld" = yes; then
9877 # We only use this code for GNU lds that support --whole-archive.
9878 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9880 # Exported symbols can be pulled into shared objects from archives
9881 whole_archive_flag_spec='$convenience'
9883 archive_cmds_need_lc=yes
9884 # This is similar to how AIX traditionally builds its shared libraries.
9885 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'
9893 # see comment about AmigaOS4 .so support
9894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9895 archive_expsym_cmds=''
9898 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)'
9899 hardcode_libdir_flag_spec='-L$libdir'
9900 hardcode_minus_L=yes
9906 export_dynamic_flag_spec=-rdynamic
9909 cygwin* | mingw* | pw32* | cegcc*)
9910 # When not using gcc, we currently assume that we are using
9911 # Microsoft Visual C++.
9912 # hardcode_libdir_flag_spec is actually meaningless, as there is
9913 # no search path for DLLs.
9914 case $cc_basename in
9917 hardcode_libdir_flag_spec=' '
9918 allow_undefined_flag=unsupported
9919 always_export_symbols=yes
9921 # Tell ltmain to make .lib files, not .a files.
9923 # Tell ltmain to make .dll files, not .so files.
9925 # FIXME: Setting linknames here is a bad hack.
9926 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9927 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9928 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9930 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9932 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9934 # The linker will not automatically build a static lib if we build a DLL.
9935 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9936 enable_shared_with_static_runtimes=yes
9937 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9940 old_postinstall_cmds='chmod 644 $oldlib'
9941 postlink_cmds='lt_outputfile="@OUTPUT@"~
9942 lt_tool_outputfile="@TOOL_OUTPUT@"~
9943 case $lt_outputfile in
9946 lt_outputfile="$lt_outputfile.exe"
9947 lt_tool_outputfile="$lt_tool_outputfile.exe"
9950 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9951 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9952 $RM "$lt_outputfile.manifest";
9956 # Assume MSVC wrapper
9957 hardcode_libdir_flag_spec=' '
9958 allow_undefined_flag=unsupported
9959 # Tell ltmain to make .lib files, not .a files.
9961 # Tell ltmain to make .dll files, not .so files.
9963 # FIXME: Setting linknames here is a bad hack.
9964 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9965 # The linker will automatically build a .lib file if we build a DLL.
9966 old_archive_from_new_cmds='true'
9967 # FIXME: Should let the user specify the lib program.
9968 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9969 enable_shared_with_static_runtimes=yes
9974 darwin* | rhapsody*)
9977 archive_cmds_need_lc=no
9979 hardcode_automatic=yes
9980 hardcode_shlibpath_var=unsupported
9981 if test "$lt_cv_ld_force_load" = "yes"; then
9982 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\"`'
9985 whole_archive_flag_spec=''
9987 link_all_deplibs=yes
9988 allow_undefined_flag="$_lt_dar_allow_undefined"
9989 case $cc_basename in
9990 ifort*) _lt_dar_can_shared=yes ;;
9991 *) _lt_dar_can_shared=$GCC ;;
9993 if test "$_lt_dar_can_shared" = "yes"; then
9994 output_verbose_link_cmd=func_echo_all
9995 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9996 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9997 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}"
9998 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}"
10007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008 hardcode_libdir_flag_spec='-L$libdir'
10009 hardcode_shlibpath_var=no
10012 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10013 # support. Future versions do this automatically, but an explicit c++rt0.o
10014 # does not break anything, and helps significantly (at the cost of a little
10017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10018 hardcode_libdir_flag_spec='-R$libdir'
10019 hardcode_direct=yes
10020 hardcode_shlibpath_var=no
10023 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10026 hardcode_direct=yes
10027 hardcode_minus_L=yes
10028 hardcode_shlibpath_var=no
10031 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10032 freebsd* | dragonfly*)
10033 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10034 hardcode_libdir_flag_spec='-R$libdir'
10035 hardcode_direct=yes
10036 hardcode_shlibpath_var=no
10040 if test "$GCC" = yes; then
10041 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'
10043 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'
10045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10046 hardcode_libdir_separator=:
10047 hardcode_direct=yes
10049 # hardcode_minus_L: Not really in the search PATH,
10050 # but as the default location of the library.
10051 hardcode_minus_L=yes
10052 export_dynamic_flag_spec='${wl}-E'
10056 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10057 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10061 if test "$with_gnu_ld" = no; then
10062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10063 hardcode_libdir_separator=:
10064 hardcode_direct=yes
10065 hardcode_direct_absolute=yes
10066 export_dynamic_flag_spec='${wl}-E'
10067 # hardcode_minus_L: Not really in the search PATH,
10068 # but as the default location of the library.
10069 hardcode_minus_L=yes
10074 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10077 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10089 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10096 # Older versions of the 11.00 compiler do not understand -b yet
10097 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10099 $as_echo_n "checking if $CC understands -b... " >&6; }
10100 if ${lt_cv_prog_compiler__b+:} false; then :
10101 $as_echo_n "(cached) " >&6
10103 lt_cv_prog_compiler__b=no
10104 save_LDFLAGS="$LDFLAGS"
10105 LDFLAGS="$LDFLAGS -b"
10106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10108 # The linker can only warn and ignore the option if not recognized
10109 # So say no if there are warnings
10110 if test -s conftest.err; then
10111 # Append any errors to the config.log.
10112 cat conftest.err 1>&5
10113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10115 if diff conftest.exp conftest.er2 >/dev/null; then
10116 lt_cv_prog_compiler__b=yes
10119 lt_cv_prog_compiler__b=yes
10123 LDFLAGS="$save_LDFLAGS"
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10127 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10129 if test x"$lt_cv_prog_compiler__b" = xyes; then
10130 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10132 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10138 if test "$with_gnu_ld" = no; then
10139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10140 hardcode_libdir_separator=:
10145 hardcode_shlibpath_var=no
10148 hardcode_direct=yes
10149 hardcode_direct_absolute=yes
10150 export_dynamic_flag_spec='${wl}-E'
10152 # hardcode_minus_L: Not really in the search PATH,
10153 # but as the default location of the library.
10154 hardcode_minus_L=yes
10160 irix5* | irix6* | nonstopux*)
10161 if test "$GCC" = yes; then
10162 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'
10163 # Try to use the -exported_symbol ld option, if it does not
10164 # work, assume that -exports_file does not work either and
10165 # implicitly export all symbols.
10166 # This should be the same for all languages, so no per-tag cache variable.
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10168 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10169 if ${lt_cv_irix_exported_symbol+:} false; then :
10170 $as_echo_n "(cached) " >&6
10172 save_LDFLAGS="$LDFLAGS"
10173 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10176 int foo (void) { return 0; }
10178 if ac_fn_c_try_link "$LINENO"; then :
10179 lt_cv_irix_exported_symbol=yes
10181 lt_cv_irix_exported_symbol=no
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LDFLAGS="$save_LDFLAGS"
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10188 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10189 if test "$lt_cv_irix_exported_symbol" = yes; then
10190 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'
10193 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'
10194 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'
10196 archive_cmds_need_lc='no'
10197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10198 hardcode_libdir_separator=:
10200 link_all_deplibs=yes
10203 netbsd* | netbsdelf*-gnu)
10204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10209 hardcode_libdir_flag_spec='-R$libdir'
10210 hardcode_direct=yes
10211 hardcode_shlibpath_var=no
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_direct=yes
10217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218 hardcode_libdir_separator=:
10219 hardcode_shlibpath_var=no
10226 if test -f /usr/libexec/ld.so; then
10227 hardcode_direct=yes
10228 hardcode_shlibpath_var=no
10229 hardcode_direct_absolute=yes
10230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10234 export_dynamic_flag_spec='${wl}-E'
10237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10239 hardcode_libdir_flag_spec='-R$libdir'
10242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10253 hardcode_libdir_flag_spec='-L$libdir'
10254 hardcode_minus_L=yes
10255 allow_undefined_flag=unsupported
10256 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'
10257 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10261 if test "$GCC" = yes; then
10262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10263 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'
10265 allow_undefined_flag=' -expect_unresolved \*'
10266 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'
10268 archive_cmds_need_lc='no'
10269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10270 hardcode_libdir_separator=:
10273 osf4* | osf5*) # as osf3* with the addition of -msym flag
10274 if test "$GCC" = yes; then
10275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10276 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'
10277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10279 allow_undefined_flag=' -expect_unresolved \*'
10280 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'
10281 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~
10282 $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'
10284 # Both c and cxx compiler support -rpath directly
10285 hardcode_libdir_flag_spec='-rpath $libdir'
10287 archive_cmds_need_lc='no'
10288 hardcode_libdir_separator=:
10292 no_undefined_flag=' -z defs'
10293 if test "$GCC" = yes; then
10295 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297 $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'
10299 case `$CC -V 2>&1` in
10302 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10308 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10310 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10314 hardcode_libdir_flag_spec='-R$libdir'
10315 hardcode_shlibpath_var=no
10317 solaris2.[0-5] | solaris2.[0-5].*) ;;
10319 # The compiler driver will combine and reorder linker options,
10320 # but understands `-z linker_flag'. GCC discards it without `$wl',
10321 # but is careful enough not to reorder.
10322 # Supported since Solaris 2.6 (maybe 2.5.1?)
10323 if test "$GCC" = yes; then
10324 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10326 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10330 link_all_deplibs=yes
10334 if test "x$host_vendor" = xsequent; then
10335 # Use $CC to link under sequent, because it throws in some extra .o
10336 # files that make .init and .fini sections work.
10337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10341 hardcode_libdir_flag_spec='-L$libdir'
10342 hardcode_direct=yes
10343 hardcode_minus_L=yes
10344 hardcode_shlibpath_var=no
10348 case $host_vendor in
10350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351 hardcode_direct=yes # is this really true???
10354 ## LD is ld it makes a PLAMLIB
10355 ## CC just makes a GrossModule.
10356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10357 reload_cmds='$CC -r -o $output$reload_objs'
10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10365 runpath_var='LD_RUN_PATH'
10366 hardcode_shlibpath_var=no
10370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371 hardcode_shlibpath_var=no
10372 export_dynamic_flag_spec='-Bexport'
10376 if test -d /usr/nec; then
10377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_shlibpath_var=no
10379 runpath_var=LD_RUN_PATH
10380 hardcode_runpath_var=yes
10385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10386 no_undefined_flag='${wl}-z,text'
10387 archive_cmds_need_lc=no
10388 hardcode_shlibpath_var=no
10389 runpath_var='LD_RUN_PATH'
10391 if test "$GCC" = yes; then
10392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 sysv5* | sco3.2v5* | sco5v6*)
10401 # Note: We can NOT use -z defs as we might desire, because we do not
10402 # link with -lc, and that would cause any symbols used from libc to
10403 # always be unresolved, which means just about no library would
10404 # ever link correctly. If we're not using GNU ld we use -z text
10405 # though, which does catch some bad symbols but isn't as heavy-handed
10407 no_undefined_flag='${wl}-z,text'
10408 allow_undefined_flag='${wl}-z,nodefs'
10409 archive_cmds_need_lc=no
10410 hardcode_shlibpath_var=no
10411 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10412 hardcode_libdir_separator=':'
10413 link_all_deplibs=yes
10414 export_dynamic_flag_spec='${wl}-Bexport'
10415 runpath_var='LD_RUN_PATH'
10417 if test "$GCC" = yes; then
10418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_libdir_flag_spec='-L$libdir'
10429 hardcode_shlibpath_var=no
10437 if test x$host_vendor = xsni; then
10439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10440 export_dynamic_flag_spec='${wl}-Blargedynsym'
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10447 $as_echo "$ld_shlibs" >&6; }
10448 test "$ld_shlibs" = no && can_build_shared=no
10450 with_gnu_ld=$with_gnu_ld
10467 # Do we need to explicitly link libc?
10469 case "x$archive_cmds_need_lc" in
10471 # Assume -lc should be added
10472 archive_cmds_need_lc=yes
10474 if test "$enable_shared" = yes && test "$GCC" = yes; then
10475 case $archive_cmds in
10477 # FIXME: we may have to deal with multi-command sequences.
10480 # Test whether the compiler implicitly links with -lc since on some
10481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10482 # to ld, don't add -lc before -lgcc.
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10485 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10486 $as_echo_n "(cached) " >&6
10489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10492 (eval $ac_compile) 2>&5
10494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10495 test $ac_status = 0; } 2>conftest.err; then
10498 libobjs=conftest.$ac_objext
10500 wl=$lt_prog_compiler_wl
10501 pic_flag=$lt_prog_compiler_pic
10507 lt_save_allow_undefined_flag=$allow_undefined_flag
10508 allow_undefined_flag=
10509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10510 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; }
10515 lt_cv_archive_cmds_need_lc=no
10517 lt_cv_archive_cmds_need_lc=yes
10519 allow_undefined_flag=$lt_save_allow_undefined_flag
10521 cat conftest.err 1>&5
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10527 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10528 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10687 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10689 if test "$GCC" = yes; then
10691 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10692 *) lt_awk_arg="/^libraries:/" ;;
10695 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10696 *) lt_sed_strip_eq="s,=/,/,g" ;;
10698 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10699 case $lt_search_path_spec in
10701 # if the path contains ";" then we assume it to be the separator
10702 # otherwise default to the standard path separator (i.e. ":") - it is
10703 # assumed that no part of a normal pathname contains ";" but that should
10704 # okay in the real world where ";" in dirpaths is itself problematic.
10705 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10708 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10711 # Ok, now we have the path, separated by spaces, we can step through it
10712 # and add multilib dir if necessary.
10713 lt_tmp_lt_search_path_spec=
10714 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10715 for lt_sys_path in $lt_search_path_spec; do
10716 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10717 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10719 test -d "$lt_sys_path" && \
10720 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10723 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10724 BEGIN {RS=" "; FS="/|\n";} {
10727 for (lt_i = NF; lt_i > 0; lt_i--) {
10728 if ($lt_i != "" && $lt_i != ".") {
10729 if ($lt_i == "..") {
10732 if (lt_count == 0) {
10733 lt_foo="/" $lt_i lt_foo;
10740 if (lt_foo != "") { lt_freq[lt_foo]++; }
10741 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10743 # AWK program above erroneously prepends '/' to C:/dos/paths
10746 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10747 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10749 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10753 library_names_spec=
10754 libname_spec='lib$name'
10758 postuninstall_cmds=
10762 shlibpath_overrides_runpath=unknown
10764 dynamic_linker="$host_os ld.so"
10765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10766 need_lib_prefix=unknown
10767 hardcode_into_libs=no
10769 # when you set need_version to no, make sure it does not cause -set_version
10770 # flags to be left without arguments
10771 need_version=unknown
10775 version_type=linux # correct to gnu/linux during the next big refactor
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10777 shlibpath_var=LIBPATH
10779 # AIX 3 has no versioning support, so we append a major version to the name.
10780 soname_spec='${libname}${release}${shared_ext}$major'
10784 version_type=linux # correct to gnu/linux during the next big refactor
10787 hardcode_into_libs=yes
10788 if test "$host_cpu" = ia64; then
10789 # AIX 5 supports IA64
10790 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10791 shlibpath_var=LD_LIBRARY_PATH
10793 # With GCC up to 2.95.x, collect2 would create an import file
10794 # for dependence libraries. The import file would start with
10795 # the line `#! .'. This would cause the generated library to
10796 # depend on `.', always an invalid library. This was fixed in
10797 # development snapshots of GCC prior to 3.0.
10799 aix4 | aix4.[01] | aix4.[01].*)
10800 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10802 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10805 can_build_shared=no
10809 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10810 # soname into executable. Probably we can add versioning support to
10811 # collect2, so additional links can be useful in future.
10812 if test "$aix_use_runtimelinking" = yes; then
10813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10814 # instead of lib<name>.a to let people know that these are not
10815 # typical AIX shared libraries.
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 # We preserve .a as extension for shared libraries through AIX4.2
10819 # and later when we are not doing run time linking.
10820 library_names_spec='${libname}${release}.a $libname.a'
10821 soname_spec='${libname}${release}${shared_ext}$major'
10823 shlibpath_var=LIBPATH
10830 # Since July 2007 AmigaOS4 officially supports .so libraries.
10831 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 library_names_spec='$libname.ixlibrary $libname.a'
10836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10837 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'
10843 library_names_spec='${libname}${shared_ext}'
10844 dynamic_linker="$host_os ld.so"
10845 shlibpath_var=LIBRARY_PATH
10849 version_type=linux # correct to gnu/linux during the next big refactor
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10854 shlibpath_var=LD_LIBRARY_PATH
10855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10857 # the default ld.so.conf also contains /usr/contrib/lib and
10858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10859 # libtool to hard-code these into programs
10862 cygwin* | mingw* | pw32* | cegcc*)
10863 version_type=windows
10868 case $GCC,$cc_basename in
10871 library_names_spec='$libname.dll.a'
10872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10873 postinstall_cmds='base_file=`basename \${file}`~
10874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10875 dldir=$destdir/`dirname \$dlpath`~
10876 test -d \$dldir || mkdir -p \$dldir~
10877 $install_prog $dir/$dlname \$dldir/$dlname~
10878 chmod a+x \$dldir/$dlname~
10879 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10880 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10883 dlpath=$dir/\$dldll~
10885 shlibpath_overrides_runpath=yes
10889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10892 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10895 # MinGW DLLs use traditional 'lib' prefix
10896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10899 # pw32 DLLs use 'pw' prefix rather than 'lib'
10900 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10903 dynamic_linker='Win32 ld.exe'
10908 libname_spec='$name'
10909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10910 library_names_spec='${libname}.dll.lib'
10914 sys_lib_search_path_spec=
10917 for lt_path in $LIB
10920 # Let DOS variable expansion print the short 8.3 style file name.
10921 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10922 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10925 # Convert to MSYS style.
10926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10929 # Convert to unix form, then to dos form, then back to unix form
10930 # but this time dos style (no spaces!) so that the unix form looks
10931 # like /cygdrive/c/PROGRA~1:/cygdr...
10932 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10933 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10934 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10937 sys_lib_search_path_spec="$LIB"
10938 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10939 # It is most probably a Windows format PATH.
10940 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10942 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10944 # FIXME: find the short name or the path components, as spaces are
10945 # common. (e.g. "Program Files" -> "PROGRA~1")
10949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10950 postinstall_cmds='base_file=`basename \${file}`~
10951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10952 dldir=$destdir/`dirname \$dlpath`~
10953 test -d \$dldir || mkdir -p \$dldir~
10954 $install_prog $dir/$dlname \$dldir/$dlname'
10955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10956 dlpath=$dir/\$dldll~
10958 shlibpath_overrides_runpath=yes
10959 dynamic_linker='Win32 link.exe'
10963 # Assume MSVC wrapper
10964 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10965 dynamic_linker='Win32 ld.exe'
10968 # FIXME: first we should search . and the directory the executable is in
10972 darwin* | rhapsody*)
10973 dynamic_linker="$host_os dyld"
10974 version_type=darwin
10977 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10978 soname_spec='${libname}${release}${major}$shared_ext'
10979 shlibpath_overrides_runpath=yes
10980 shlibpath_var=DYLD_LIBRARY_PATH
10981 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10983 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10988 version_type=linux # correct to gnu/linux during the next big refactor
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LD_LIBRARY_PATH
10996 freebsd* | dragonfly*)
10997 # DragonFly does not have aout. When/if they implement a new
10998 # versioning mechanism, adjust this.
10999 if test -x /usr/bin/objformat; then
11000 objformat=`/usr/bin/objformat`
11003 freebsd[23].*) objformat=aout ;;
11004 *) objformat=elf ;;
11007 version_type=freebsd-$objformat
11008 case $version_type in
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11019 shlibpath_var=LD_LIBRARY_PATH
11022 shlibpath_overrides_runpath=yes
11024 freebsd3.[01]* | freebsdelf3.[01]*)
11025 shlibpath_overrides_runpath=yes
11026 hardcode_into_libs=yes
11028 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11029 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11030 shlibpath_overrides_runpath=no
11031 hardcode_into_libs=yes
11033 *) # from 4.6 on, and DragonFly
11034 shlibpath_overrides_runpath=yes
11035 hardcode_into_libs=yes
11041 version_type=linux # correct to gnu/linux during the next big refactor
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=no
11048 hardcode_into_libs=yes
11052 version_type=linux # correct to gnu/linux during the next big refactor
11055 dynamic_linker="$host_os runtime_loader"
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes
11060 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11061 hardcode_into_libs=yes
11064 hpux9* | hpux10* | hpux11*)
11065 # Give a soname corresponding to the major version so that dld.sl refuses to
11066 # link against other versions.
11073 hardcode_into_libs=yes
11074 dynamic_linker="$host_os dld.so"
11075 shlibpath_var=LD_LIBRARY_PATH
11076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 soname_spec='${libname}${release}${shared_ext}$major'
11079 if test "X$HPUX_IA64_MODE" = X32; then
11080 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11082 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11088 hardcode_into_libs=yes
11089 dynamic_linker="$host_os dld.sl"
11090 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11099 dynamic_linker="$host_os dld.sl"
11100 shlibpath_var=SHLIB_PATH
11101 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11106 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11107 postinstall_cmds='chmod 555 $lib'
11108 # or fails outright, so override atomically:
11109 install_override_mode=555
11113 version_type=linux # correct to gnu/linux during the next big refactor
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11117 soname_spec='${libname}${release}${shared_ext}$major'
11118 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=no
11121 hardcode_into_libs=yes
11124 irix5* | irix6* | nonstopux*)
11126 nonstopux*) version_type=nonstopux ;;
11128 if test "$lt_cv_prog_gnu_ld" = yes; then
11129 version_type=linux # correct to gnu/linux during the next big refactor
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11139 irix5* | nonstopux*)
11140 libsuff= shlibsuff=
11143 case $LD in # libtool.m4 will add one of these switches to LD
11144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11145 libsuff= shlibsuff= libmagic=32-bit;;
11146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11147 libsuff=32 shlibsuff=N32 libmagic=N32;;
11148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11150 *) libsuff= shlibsuff= libmagic=never-match;;
11154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11155 shlibpath_overrides_runpath=no
11156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11158 hardcode_into_libs=yes
11161 # No shared lib support for Linux oldld, aout, or coff.
11162 linux*oldld* | linux*aout* | linux*coff*)
11166 # This must be glibc/ELF.
11167 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11168 version_type=linux # correct to gnu/linux during the next big refactor
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=no
11177 # Some binutils ld are patched to set DT_RUNPATH
11178 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11179 $as_echo_n "(cached) " >&6
11181 lt_cv_shlibpath_overrides_runpath=no
11182 save_LDFLAGS=$LDFLAGS
11183 save_libdir=$libdir
11184 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11185 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11197 if ac_fn_c_try_link "$LINENO"; then :
11198 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11199 lt_cv_shlibpath_overrides_runpath=yes
11202 rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204 LDFLAGS=$save_LDFLAGS
11205 libdir=$save_libdir
11209 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11211 # This implies no fast_install, which is unacceptable.
11212 # Some rework will be needed to allow for fast_install
11213 # before this can be enabled.
11214 hardcode_into_libs=yes
11216 # Append ld.so.conf contents to the search path
11217 if test -f /etc/ld.so.conf; then
11218 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' ' '`
11219 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11222 # We used to test for /lib/ld.so.1 and disable shared libraries on
11223 # powerpc, because MkLinux only supported shared libraries with the
11224 # GNU dynamic linker. Since this was broken with cross compilers,
11225 # most powerpc-linux boxes support dynamic linking these days and
11226 # people can always --disable-shared, the test was removed, and we
11227 # assume the GNU/Linux dynamic linker is in use.
11228 dynamic_linker='GNU/Linux ld.so'
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 shlibpath_var=LD_LIBRARY_PATH
11238 shlibpath_overrides_runpath=no
11239 hardcode_into_libs=yes
11240 dynamic_linker='NetBSD ld.elf_so'
11247 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11250 dynamic_linker='NetBSD (a.out) ld.so'
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11253 soname_spec='${libname}${release}${shared_ext}$major'
11254 dynamic_linker='NetBSD ld.elf_so'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 shlibpath_overrides_runpath=yes
11258 hardcode_into_libs=yes
11262 version_type=linux # correct to gnu/linux during the next big refactor
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264 shlibpath_var=LD_LIBRARY_PATH
11265 shlibpath_overrides_runpath=yes
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=no
11276 hardcode_into_libs=yes
11277 dynamic_linker='ldqnx.so'
11282 sys_lib_dlsearch_path_spec="/usr/lib"
11284 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11286 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11287 *) need_version=no ;;
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11294 openbsd2.[89] | openbsd2.[89].*)
11295 shlibpath_overrides_runpath=no
11298 shlibpath_overrides_runpath=yes
11302 shlibpath_overrides_runpath=yes
11307 libname_spec='$name'
11310 library_names_spec='$libname${shared_ext} $libname.a'
11311 dynamic_linker='OS/2 ld.exe'
11312 shlibpath_var=LIBPATH
11315 osf3* | osf4* | osf5*)
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11323 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11331 version_type=linux # correct to gnu/linux during the next big refactor
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath=yes
11338 hardcode_into_libs=yes
11339 # ldd complains unless libraries are executable
11340 postinstall_cmds='chmod +x $lib'
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11346 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11347 shlibpath_var=LD_LIBRARY_PATH
11348 shlibpath_overrides_runpath=yes
11349 if test "$with_gnu_ld" = yes; then
11356 version_type=linux # correct to gnu/linux during the next big refactor
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358 soname_spec='${libname}${release}${shared_ext}$major'
11359 shlibpath_var=LD_LIBRARY_PATH
11360 case $host_vendor in
11362 shlibpath_overrides_runpath=no
11364 runpath_var=LD_RUN_PATH
11372 shlibpath_overrides_runpath=no
11373 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11379 if test -d /usr/nec ;then
11380 version_type=linux # correct to gnu/linux during the next big refactor
11381 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11382 soname_spec='$libname${shared_ext}.$major'
11383 shlibpath_var=LD_LIBRARY_PATH
11387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11388 version_type=freebsd-elf
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11392 soname_spec='${libname}${release}${shared_ext}$major'
11393 shlibpath_var=LD_LIBRARY_PATH
11394 shlibpath_overrides_runpath=yes
11395 hardcode_into_libs=yes
11396 if test "$with_gnu_ld" = yes; then
11397 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11399 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11402 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11406 sys_lib_dlsearch_path_spec='/usr/lib'
11410 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11411 version_type=linux # correct to gnu/linux during the next big refactor
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 shlibpath_overrides_runpath=no
11417 hardcode_into_libs=yes
11421 version_type=linux # correct to gnu/linux during the next big refactor
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 shlibpath_var=LD_LIBRARY_PATH
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11432 $as_echo "$dynamic_linker" >&6; }
11433 test "$dynamic_linker" = no && can_build_shared=no
11435 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11436 if test "$GCC" = yes; then
11437 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11440 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11441 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11443 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11444 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11539 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11541 if test -n "$hardcode_libdir_flag_spec" ||
11542 test -n "$runpath_var" ||
11543 test "X$hardcode_automatic" = "Xyes" ; then
11545 # We can hardcode non-existent directories.
11546 if test "$hardcode_direct" != no &&
11547 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11548 # have to relink, otherwise we might link with an installed library
11549 # when we should be linking with a yet-to-be-installed one
11550 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11551 test "$hardcode_minus_L" != no; then
11552 # Linking always hardcodes the temporary library directory.
11553 hardcode_action=relink
11555 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11556 hardcode_action=immediate
11559 # We cannot hardcode anything, or else we can only hardcode existing
11561 hardcode_action=unsupported
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11564 $as_echo "$hardcode_action" >&6; }
11566 if test "$hardcode_action" = relink ||
11567 test "$inherit_rpath" = yes; then
11568 # Fast installation is not supported
11569 enable_fast_install=no
11570 elif test "$shlibpath_overrides_runpath" = yes ||
11571 test "$enable_shared" = no; then
11572 # Fast installation is not necessary
11573 enable_fast_install=needless
11581 if test "x$enable_dlopen" != xyes; then
11582 enable_dlopen=unknown
11583 enable_dlopen_self=unknown
11584 enable_dlopen_self_static=unknown
11591 lt_cv_dlopen="load_add_on"
11593 lt_cv_dlopen_self=yes
11596 mingw* | pw32* | cegcc*)
11597 lt_cv_dlopen="LoadLibrary"
11602 lt_cv_dlopen="dlopen"
11607 # if libdl is installed we need to link against it
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11609 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11610 if ${ac_cv_lib_dl_dlopen+:} false; then :
11611 $as_echo_n "(cached) " >&6
11613 ac_check_lib_save_LIBS=$LIBS
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11618 /* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11633 if ac_fn_c_try_link "$LINENO"; then :
11634 ac_cv_lib_dl_dlopen=yes
11636 ac_cv_lib_dl_dlopen=no
11638 rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11640 LIBS=$ac_check_lib_save_LIBS
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11643 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11644 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11648 lt_cv_dlopen="dyld"
11650 lt_cv_dlopen_self=yes
11657 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11658 if test "x$ac_cv_func_shl_load" = xyes; then :
11659 lt_cv_dlopen="shl_load"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11662 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11663 if ${ac_cv_lib_dld_shl_load+:} false; then :
11664 $as_echo_n "(cached) " >&6
11666 ac_check_lib_save_LIBS=$LIBS
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11681 return shl_load ();
11686 if ac_fn_c_try_link "$LINENO"; then :
11687 ac_cv_lib_dld_shl_load=yes
11689 ac_cv_lib_dld_shl_load=no
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11696 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11697 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11698 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11700 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11701 if test "x$ac_cv_func_dlopen" = xyes; then :
11702 lt_cv_dlopen="dlopen"
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11705 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11706 if ${ac_cv_lib_dl_dlopen+:} false; then :
11707 $as_echo_n "(cached) " >&6
11709 ac_check_lib_save_LIBS=$LIBS
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11714 /* Override any GCC internal prototype to avoid an error.
11715 Use char because int might match the return type of a GCC
11716 builtin and then its argument prototype would still apply. */
11729 if ac_fn_c_try_link "$LINENO"; then :
11730 ac_cv_lib_dl_dlopen=yes
11732 ac_cv_lib_dl_dlopen=no
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736 LIBS=$ac_check_lib_save_LIBS
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11739 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11740 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11741 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11744 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11745 if ${ac_cv_lib_svld_dlopen+:} false; then :
11746 $as_echo_n "(cached) " >&6
11748 ac_check_lib_save_LIBS=$LIBS
11749 LIBS="-lsvld $LIBS"
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11768 if ac_fn_c_try_link "$LINENO"; then :
11769 ac_cv_lib_svld_dlopen=yes
11771 ac_cv_lib_svld_dlopen=no
11773 rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775 LIBS=$ac_check_lib_save_LIBS
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11778 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11779 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11783 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11784 if ${ac_cv_lib_dld_dld_link+:} false; then :
11785 $as_echo_n "(cached) " >&6
11787 ac_check_lib_save_LIBS=$LIBS
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11792 /* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
11802 return dld_link ();
11807 if ac_fn_c_try_link "$LINENO"; then :
11808 ac_cv_lib_dld_dld_link=yes
11810 ac_cv_lib_dld_dld_link=no
11812 rm -f core conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11817 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11818 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11819 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11840 if test "x$lt_cv_dlopen" != xno; then
11846 case $lt_cv_dlopen in
11848 save_CPPFLAGS="$CPPFLAGS"
11849 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11851 save_LDFLAGS="$LDFLAGS"
11852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11855 LIBS="$lt_cv_dlopen_libs $LIBS"
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11858 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11859 if ${lt_cv_dlopen_self+:} false; then :
11860 $as_echo_n "(cached) " >&6
11862 if test "$cross_compiling" = yes; then :
11863 lt_cv_dlopen_self=cross
11865 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11866 lt_status=$lt_dlunknown
11867 cat > conftest.$ac_ext <<_LT_EOF
11868 #line $LINENO "configure"
11869 #include "confdefs.h"
11878 # define LT_DLGLOBAL RTLD_GLOBAL
11881 # define LT_DLGLOBAL DL_GLOBAL
11883 # define LT_DLGLOBAL 0
11887 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11888 find out it does not work in some platform. */
11889 #ifndef LT_DLLAZY_OR_NOW
11891 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11894 # define LT_DLLAZY_OR_NOW DL_LAZY
11897 # define LT_DLLAZY_OR_NOW RTLD_NOW
11900 # define LT_DLLAZY_OR_NOW DL_NOW
11902 # define LT_DLLAZY_OR_NOW 0
11909 /* When -fvisbility=hidden is used, assume the code has been annotated
11910 correspondingly for the symbols needed. */
11911 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11912 int fnord () __attribute__((visibility("default")));
11915 int fnord () { return 42; }
11918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11919 int status = $lt_dlunknown;
11923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11926 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11927 else puts (dlerror ());
11929 /* dlclose (self); */
11937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11938 (eval $ac_link) 2>&5
11940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11942 (./conftest; exit; ) >&5 2>/dev/null
11944 case x$lt_status in
11945 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11946 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11947 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11950 # compilation failed
11951 lt_cv_dlopen_self=no
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11959 $as_echo "$lt_cv_dlopen_self" >&6; }
11961 if test "x$lt_cv_dlopen_self" = xyes; then
11962 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11964 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11965 if ${lt_cv_dlopen_self_static+:} false; then :
11966 $as_echo_n "(cached) " >&6
11968 if test "$cross_compiling" = yes; then :
11969 lt_cv_dlopen_self_static=cross
11971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11972 lt_status=$lt_dlunknown
11973 cat > conftest.$ac_ext <<_LT_EOF
11974 #line $LINENO "configure"
11975 #include "confdefs.h"
11984 # define LT_DLGLOBAL RTLD_GLOBAL
11987 # define LT_DLGLOBAL DL_GLOBAL
11989 # define LT_DLGLOBAL 0
11993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11994 find out it does not work in some platform. */
11995 #ifndef LT_DLLAZY_OR_NOW
11997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12000 # define LT_DLLAZY_OR_NOW DL_LAZY
12003 # define LT_DLLAZY_OR_NOW RTLD_NOW
12006 # define LT_DLLAZY_OR_NOW DL_NOW
12008 # define LT_DLLAZY_OR_NOW 0
12015 /* When -fvisbility=hidden is used, assume the code has been annotated
12016 correspondingly for the symbols needed. */
12017 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12018 int fnord () __attribute__((visibility("default")));
12021 int fnord () { return 42; }
12024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12025 int status = $lt_dlunknown;
12029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12032 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12033 else puts (dlerror ());
12035 /* dlclose (self); */
12043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12044 (eval $ac_link) 2>&5
12046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12047 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12048 (./conftest; exit; ) >&5 2>/dev/null
12050 case x$lt_status in
12051 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12052 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12053 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12056 # compilation failed
12057 lt_cv_dlopen_self_static=no
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12065 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12068 CPPFLAGS="$save_CPPFLAGS"
12069 LDFLAGS="$save_LDFLAGS"
12074 case $lt_cv_dlopen_self in
12075 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12076 *) enable_dlopen_self=unknown ;;
12079 case $lt_cv_dlopen_self_static in
12080 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12081 *) enable_dlopen_self_static=unknown ;;
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12104 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12105 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12106 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12107 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12109 $as_echo "yes" >&6; }
12111 # FIXME - insert some real tests, host_os isn't really good enough
12114 if test -n "$STRIP" ; then
12115 striplib="$STRIP -x"
12116 old_striplib="$STRIP -S"
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118 $as_echo "yes" >&6; }
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12142 # Report which library types will actually be built
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12144 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12146 $as_echo "$can_build_shared" >&6; }
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12149 $as_echo_n "checking whether to build shared libraries... " >&6; }
12150 test "$can_build_shared" = "no" && enable_shared=no
12152 # On AIX, shared libraries and static libraries use the same namespace, and
12153 # are all built from PIC.
12156 test "$enable_shared" = yes && enable_static=no
12157 if test -n "$RANLIB"; then
12158 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12159 postinstall_cmds='$RANLIB $lib'
12164 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12165 test "$enable_shared" = yes && enable_static=no
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12170 $as_echo "$enable_shared" >&6; }
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12173 $as_echo_n "checking whether to build static libraries... " >&6; }
12174 # Make sure either enable_shared or enable_static is yes.
12175 test "$enable_shared" = yes || enable_static=yes
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12177 $as_echo "$enable_static" >&6; }
12184 ac_cpp='$CXXCPP $CPPFLAGS'
12185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12191 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12192 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12193 (test "X$CXX" != "Xg++"))) ; then
12195 ac_cpp='$CXXCPP $CPPFLAGS'
12196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12200 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12201 if test -z "$CXXCPP"; then
12202 if ${ac_cv_prog_CXXCPP+:} false; then :
12203 $as_echo_n "(cached) " >&6
12205 # Double quotes because CXXCPP needs to be expanded
12206 for CXXCPP in "$CXX -E" "/lib/cpp"
12208 ac_preproc_ok=false
12209 for ac_cxx_preproc_warn_flag in '' yes
12211 # Use a header file that comes with gcc, so configuring glibc
12212 # with a fresh cross-compiler works.
12213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12214 # <limits.h> exists even on freestanding compilers.
12215 # On the NeXT, cc -E runs the code through the compiler's parser,
12216 # not just through cpp. "Syntax error" is here to catch this case.
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h. */
12220 # include <limits.h>
12222 # include <assert.h>
12226 if ac_fn_cxx_try_cpp "$LINENO"; then :
12229 # Broken: fails on valid input.
12232 rm -f conftest.err conftest.i conftest.$ac_ext
12234 # OK, works on sane cases. Now check whether nonexistent headers
12235 # can be detected and how.
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238 #include <ac_nonexistent.h>
12240 if ac_fn_cxx_try_cpp "$LINENO"; then :
12241 # Broken: success on invalid input.
12244 # Passes both tests.
12248 rm -f conftest.err conftest.i conftest.$ac_ext
12251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12252 rm -f conftest.i conftest.err conftest.$ac_ext
12253 if $ac_preproc_ok; then :
12258 ac_cv_prog_CXXCPP=$CXXCPP
12261 CXXCPP=$ac_cv_prog_CXXCPP
12263 ac_cv_prog_CXXCPP=$CXXCPP
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12266 $as_echo "$CXXCPP" >&6; }
12267 ac_preproc_ok=false
12268 for ac_cxx_preproc_warn_flag in '' yes
12270 # Use a header file that comes with gcc, so configuring glibc
12271 # with a fresh cross-compiler works.
12272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12273 # <limits.h> exists even on freestanding compilers.
12274 # On the NeXT, cc -E runs the code through the compiler's parser,
12275 # not just through cpp. "Syntax error" is here to catch this case.
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 # include <limits.h>
12281 # include <assert.h>
12285 if ac_fn_cxx_try_cpp "$LINENO"; then :
12288 # Broken: fails on valid input.
12291 rm -f conftest.err conftest.i conftest.$ac_ext
12293 # OK, works on sane cases. Now check whether nonexistent headers
12294 # can be detected and how.
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297 #include <ac_nonexistent.h>
12299 if ac_fn_cxx_try_cpp "$LINENO"; then :
12300 # Broken: success on invalid input.
12303 # Passes both tests.
12307 rm -f conftest.err conftest.i conftest.$ac_ext
12310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12311 rm -f conftest.i conftest.err conftest.$ac_ext
12312 if $ac_preproc_ok; then :
12315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12317 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12318 See \`config.log' for more details" "$LINENO" 5; }
12322 ac_cpp='$CXXCPP $CPPFLAGS'
12323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12328 _lt_caught_CXX_error=yes
12332 ac_cpp='$CXXCPP $CPPFLAGS'
12333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12337 archive_cmds_need_lc_CXX=no
12338 allow_undefined_flag_CXX=
12339 always_export_symbols_CXX=no
12340 archive_expsym_cmds_CXX=
12341 compiler_needs_object_CXX=no
12342 export_dynamic_flag_spec_CXX=
12343 hardcode_direct_CXX=no
12344 hardcode_direct_absolute_CXX=no
12345 hardcode_libdir_flag_spec_CXX=
12346 hardcode_libdir_separator_CXX=
12347 hardcode_minus_L_CXX=no
12348 hardcode_shlibpath_var_CXX=unsupported
12349 hardcode_automatic_CXX=no
12350 inherit_rpath_CXX=no
12352 module_expsym_cmds_CXX=
12353 link_all_deplibs_CXX=unknown
12354 old_archive_cmds_CXX=$old_archive_cmds
12355 reload_flag_CXX=$reload_flag
12356 reload_cmds_CXX=$reload_cmds
12357 no_undefined_flag_CXX=
12358 whole_archive_flag_spec_CXX=
12359 enable_shared_with_static_runtimes_CXX=no
12361 # Source file extension for C++ test sources.
12364 # Object file extension for compiled C++ test sources.
12368 # No sense in running all these tests if we already determined that
12369 # the CXX compiler isn't working. Some variables (like enable_shared)
12370 # are currently assumed to apply to all compilers on this platform,
12371 # and will be corrupted by setting them based on a non-working compiler.
12372 if test "$_lt_caught_CXX_error" != yes; then
12373 # Code to be used in simple compile tests
12374 lt_simple_compile_test_code="int some_variable = 0;"
12376 # Code to be used in simple link tests
12377 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12379 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12386 # If no C compiler was specified, use CC.
12389 # If no C compiler flags were specified, use CFLAGS.
12390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12392 # Allow CC to be a program name with arguments.
12396 # save warnings/boilerplate of simple test code
12397 ac_outfile=conftest.$ac_objext
12398 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12400 _lt_compiler_boilerplate=`cat conftest.err`
12403 ac_outfile=conftest.$ac_objext
12404 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12406 _lt_linker_boilerplate=`cat conftest.err`
12410 # Allow CC to be a program name with arguments.
12412 lt_save_CFLAGS=$CFLAGS
12416 lt_save_with_gnu_ld=$with_gnu_ld
12417 lt_save_path_LD=$lt_cv_path_LD
12418 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12419 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12421 $as_unset lt_cv_prog_gnu_ld
12423 if test -n "${lt_cv_path_LDCXX+set}"; then
12424 lt_cv_path_LD=$lt_cv_path_LDCXX
12426 $as_unset lt_cv_path_LD
12428 test -z "${LDCXX+set}" || LD=$LDCXX
12433 for cc_temp in $compiler""; do
12435 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12436 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12441 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12444 if test -n "$compiler"; then
12445 # We don't want -fno-exception when compiling C++ code, so set the
12446 # no_builtin_flag separately
12447 if test "$GXX" = yes; then
12448 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12450 lt_prog_compiler_no_builtin_flag_CXX=
12453 if test "$GXX" = yes; then
12454 # Set up default GNU C++ configuration
12458 # Check whether --with-gnu-ld was given.
12459 if test "${with_gnu_ld+set}" = set; then :
12460 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12466 if test "$GCC" = yes; then
12467 # Check if gcc -print-prog-name=ld gives a path.
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12469 $as_echo_n "checking for ld used by $CC... " >&6; }
12472 # gcc leaves a trailing carriage return which upsets mingw
12473 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12475 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12478 # Accept absolute paths.
12480 re_direlt='/[^/][^/]*/\.\./'
12481 # Canonicalize the pathname of ld
12482 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12483 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12484 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12486 test -z "$LD" && LD="$ac_prog"
12489 # If it fails, then pretend we aren't using GCC.
12493 # If it is relative, then search for the first ld in PATH.
12494 with_gnu_ld=unknown
12497 elif test "$with_gnu_ld" = yes; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12499 $as_echo_n "checking for GNU ld... " >&6; }
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12502 $as_echo_n "checking for non-GNU ld... " >&6; }
12504 if ${lt_cv_path_LD+:} false; then :
12505 $as_echo_n "(cached) " >&6
12507 if test -z "$LD"; then
12508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12509 for ac_dir in $PATH; do
12511 test -z "$ac_dir" && ac_dir=.
12512 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12513 lt_cv_path_LD="$ac_dir/$ac_prog"
12514 # Check to see if the program is GNU ld. I'd rather use --version,
12515 # but apparently some variants of GNU ld only accept -v.
12516 # Break only if it was the GNU/non-GNU ld that we prefer.
12517 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12518 *GNU* | *'with BFD'*)
12519 test "$with_gnu_ld" != no && break
12522 test "$with_gnu_ld" != yes && break
12529 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12533 LD="$lt_cv_path_LD"
12534 if test -n "$LD"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12536 $as_echo "$LD" >&6; }
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12541 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12543 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12544 if ${lt_cv_prog_gnu_ld+:} false; then :
12545 $as_echo_n "(cached) " >&6
12547 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12548 case `$LD -v 2>&1 </dev/null` in
12549 *GNU* | *'with BFD'*)
12550 lt_cv_prog_gnu_ld=yes
12553 lt_cv_prog_gnu_ld=no
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12558 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12559 with_gnu_ld=$lt_cv_prog_gnu_ld
12567 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12568 # archiving commands below assume that GNU ld is being used.
12569 if test "$with_gnu_ld" = yes; then
12570 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12571 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'
12573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12574 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12576 # If archive_cmds runs LD, not CC, wlarc should be empty
12577 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12578 # investigate it a little bit more. (MM)
12581 # ancient GNU ld didn't support --whole-archive et. al.
12582 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12583 $GREP 'no-whole-archive' > /dev/null; then
12584 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12586 whole_archive_flag_spec_CXX=
12592 # A generic and very simple default shared library creation
12593 # command for GNU C++ for the case where it uses the native
12594 # linker, instead of GNU ld. If possible, this setting should
12595 # overridden to take advantage of the native linker features on
12596 # the platform it is being used on.
12597 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12600 # Commands to make compiler produce verbose output that lists
12601 # what "hidden" libraries, object files and flags are used when
12602 # linking a shared library.
12603 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12611 # PORTME: fill in a description of your system's C++ link characteristics
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12613 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12617 # FIXME: insert proper C++ library support
12621 if test "$host_cpu" = ia64; then
12622 # On IA64, the linker does run time linking by default, so we don't
12623 # have to do anything special.
12624 aix_use_runtimelinking=no
12625 exp_sym_flag='-Bexport'
12628 aix_use_runtimelinking=no
12630 # Test if we are trying to use run time linking or normal
12631 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12632 # need to do runtime linking.
12633 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12634 for ld_flag in $LDFLAGS; do
12637 aix_use_runtimelinking=yes
12645 exp_sym_flag='-bexport'
12646 no_entry_flag='-bnoentry'
12649 # When large executables or shared objects are built, AIX ld can
12650 # have problems creating the table of contents. If linking a library
12651 # or program results in "error TOC overflow" add -mminimal-toc to
12652 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12653 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12655 archive_cmds_CXX=''
12656 hardcode_direct_CXX=yes
12657 hardcode_direct_absolute_CXX=yes
12658 hardcode_libdir_separator_CXX=':'
12659 link_all_deplibs_CXX=yes
12660 file_list_spec_CXX='${wl}-f,'
12662 if test "$GXX" = yes; then
12663 case $host_os in aix4.[012]|aix4.[012].*)
12664 # We only want to do this on AIX 4.2 and lower, the check
12665 # below for broken collect2 doesn't work under 4.3+
12666 collect2name=`${CC} -print-prog-name=collect2`
12667 if test -f "$collect2name" &&
12668 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12670 # We have reworked collect2
12673 # We have old collect2
12674 hardcode_direct_CXX=unsupported
12675 # It fails to find uninstalled libraries when the uninstalled
12676 # path is not listed in the libpath. Setting hardcode_minus_L
12677 # to unsupported forces relinking
12678 hardcode_minus_L_CXX=yes
12679 hardcode_libdir_flag_spec_CXX='-L$libdir'
12680 hardcode_libdir_separator_CXX=
12683 shared_flag='-shared'
12684 if test "$aix_use_runtimelinking" = yes; then
12685 shared_flag="$shared_flag "'${wl}-G'
12689 if test "$host_cpu" = ia64; then
12690 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12691 # chokes on -Wl,-G. The following line is correct:
12694 if test "$aix_use_runtimelinking" = yes; then
12695 shared_flag='${wl}-G'
12697 shared_flag='${wl}-bM:SRE'
12702 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12703 # It seems that -bexpall does not export symbols beginning with
12704 # underscore (_), so it is better to generate a list of symbols to
12706 always_export_symbols_CXX=yes
12707 if test "$aix_use_runtimelinking" = yes; then
12708 # Warning - without using the other runtime loading flags (-brtl),
12709 # -berok will link without error, but may produce a broken library.
12710 allow_undefined_flag_CXX='-berok'
12711 # Determine the default libpath from the value encoded in an empty
12713 if test "${lt_cv_aix_libpath+set}" = set; then
12714 aix_libpath=$lt_cv_aix_libpath
12716 if ${lt_cv_aix_libpath__CXX+:} false; then :
12717 $as_echo_n "(cached) " >&6
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12730 if ac_fn_cxx_try_link "$LINENO"; then :
12732 lt_aix_libpath_sed='
12733 /Import File Strings/,/^$/ {
12735 s/^0 *\([^ ]*\) *$/\1/
12739 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12740 # Check for a 64-bit object if we didn't find anything.
12741 if test -z "$lt_cv_aix_libpath__CXX"; then
12742 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12745 rm -f core conftest.err conftest.$ac_objext \
12746 conftest$ac_exeext conftest.$ac_ext
12747 if test -z "$lt_cv_aix_libpath__CXX"; then
12748 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12753 aix_libpath=$lt_cv_aix_libpath__CXX
12756 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12758 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"
12760 if test "$host_cpu" = ia64; then
12761 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12762 allow_undefined_flag_CXX="-z nodefs"
12763 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"
12765 # Determine the default libpath from the value encoded in an
12766 # empty executable.
12767 if test "${lt_cv_aix_libpath+set}" = set; then
12768 aix_libpath=$lt_cv_aix_libpath
12770 if ${lt_cv_aix_libpath__CXX+:} false; then :
12771 $as_echo_n "(cached) " >&6
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12784 if ac_fn_cxx_try_link "$LINENO"; then :
12786 lt_aix_libpath_sed='
12787 /Import File Strings/,/^$/ {
12789 s/^0 *\([^ ]*\) *$/\1/
12793 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12794 # Check for a 64-bit object if we didn't find anything.
12795 if test -z "$lt_cv_aix_libpath__CXX"; then
12796 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12799 rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 if test -z "$lt_cv_aix_libpath__CXX"; then
12802 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12807 aix_libpath=$lt_cv_aix_libpath__CXX
12810 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12811 # Warning - without using the other run time loading flags,
12812 # -berok will link without error, but may produce a broken library.
12813 no_undefined_flag_CXX=' ${wl}-bernotok'
12814 allow_undefined_flag_CXX=' ${wl}-berok'
12815 if test "$with_gnu_ld" = yes; then
12816 # We only use this code for GNU lds that support --whole-archive.
12817 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12819 # Exported symbols can be pulled into shared objects from archives
12820 whole_archive_flag_spec_CXX='$convenience'
12822 archive_cmds_need_lc_CXX=yes
12823 # This is similar to how AIX traditionally builds its shared
12825 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'
12831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12832 allow_undefined_flag_CXX=unsupported
12833 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12834 # support --undefined. This deserves some investigation. FIXME
12835 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12842 case $cc_basename in
12844 # FIXME: insert proper C++ library support
12850 cygwin* | mingw* | pw32* | cegcc*)
12851 case $GXX,$cc_basename in
12854 # hardcode_libdir_flag_spec is actually meaningless, as there is
12855 # no search path for DLLs.
12856 hardcode_libdir_flag_spec_CXX=' '
12857 allow_undefined_flag_CXX=unsupported
12858 always_export_symbols_CXX=yes
12859 file_list_spec_CXX='@'
12860 # Tell ltmain to make .lib files, not .a files.
12862 # Tell ltmain to make .dll files, not .so files.
12864 # FIXME: Setting linknames here is a bad hack.
12865 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12866 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12867 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12869 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12871 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12873 # The linker will not automatically build a static lib if we build a DLL.
12874 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12875 enable_shared_with_static_runtimes_CXX=yes
12877 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12878 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12879 lt_tool_outputfile="@TOOL_OUTPUT@"~
12880 case $lt_outputfile in
12883 lt_outputfile="$lt_outputfile.exe"
12884 lt_tool_outputfile="$lt_tool_outputfile.exe"
12887 func_to_tool_file "$lt_outputfile"~
12888 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12889 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12890 $RM "$lt_outputfile.manifest";
12895 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12896 # as there is no search path for DLLs.
12897 hardcode_libdir_flag_spec_CXX='-L$libdir'
12898 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12899 allow_undefined_flag_CXX=unsupported
12900 always_export_symbols_CXX=no
12901 enable_shared_with_static_runtimes_CXX=yes
12903 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12904 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'
12905 # If the export-symbols file already is a .def file (1st line
12906 # is EXPORTS), use it as is; otherwise, prepend...
12907 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12908 cp $export_symbols $output_objdir/$soname.def;
12910 echo EXPORTS > $output_objdir/$soname.def;
12911 cat $export_symbols >> $output_objdir/$soname.def;
12913 $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'
12920 darwin* | rhapsody*)
12923 archive_cmds_need_lc_CXX=no
12924 hardcode_direct_CXX=no
12925 hardcode_automatic_CXX=yes
12926 hardcode_shlibpath_var_CXX=unsupported
12927 if test "$lt_cv_ld_force_load" = "yes"; then
12928 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\"`'
12931 whole_archive_flag_spec_CXX=''
12933 link_all_deplibs_CXX=yes
12934 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12935 case $cc_basename in
12936 ifort*) _lt_dar_can_shared=yes ;;
12937 *) _lt_dar_can_shared=$GCC ;;
12939 if test "$_lt_dar_can_shared" = "yes"; then
12940 output_verbose_link_cmd=func_echo_all
12941 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}"
12942 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12943 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}"
12944 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}"
12945 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12946 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}"
12947 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}"
12957 case $cc_basename in
12959 # FIXME: insert proper C++ library support
12963 # Green Hills C++ Compiler
12964 # FIXME: insert proper C++ library support
12968 # FIXME: insert proper C++ library support
12975 # C++ shared libraries reported to be fairly broken before
12981 archive_cmds_need_lc_CXX=no
12984 freebsd* | dragonfly*)
12985 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12994 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995 link_all_deplibs_CXX=yes
12999 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13000 hardcode_libdir_separator_CXX=:
13001 export_dynamic_flag_spec_CXX='${wl}-E'
13002 hardcode_direct_CXX=yes
13003 hardcode_minus_L_CXX=yes # Not in the search PATH,
13004 # but as the default
13005 # location of the library.
13007 case $cc_basename in
13009 # FIXME: insert proper C++ library support
13013 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'
13014 # Commands to make compiler produce verbose output that lists
13015 # what "hidden" libraries, object files and flags are used when
13016 # linking a shared library.
13018 # There doesn't appear to be a way to prevent this compiler from
13019 # explicitly linking system object files so we need to strip them
13020 # from the output so that they don't get included in the library
13022 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"'
13025 if test "$GXX" = yes; then
13026 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'
13028 # FIXME: insert proper C++ library support
13036 if test $with_gnu_ld = no; then
13037 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13038 hardcode_libdir_separator_CXX=:
13044 export_dynamic_flag_spec_CXX='${wl}-E'
13050 hardcode_direct_CXX=no
13051 hardcode_shlibpath_var_CXX=no
13054 hardcode_direct_CXX=yes
13055 hardcode_direct_absolute_CXX=yes
13056 hardcode_minus_L_CXX=yes # Not in the search PATH,
13057 # but as the default
13058 # location of the library.
13062 case $cc_basename in
13064 # FIXME: insert proper C++ library support
13070 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13073 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13076 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13079 # Commands to make compiler produce verbose output that lists
13080 # what "hidden" libraries, object files and flags are used when
13081 # linking a shared library.
13083 # There doesn't appear to be a way to prevent this compiler from
13084 # explicitly linking system object files so we need to strip them
13085 # from the output so that they don't get included in the library
13087 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"'
13090 if test "$GXX" = yes; then
13091 if test $with_gnu_ld = no; then
13094 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13097 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13100 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'
13105 # FIXME: insert proper C++ library support
13113 hardcode_direct_CXX=no
13114 hardcode_shlibpath_var_CXX=no
13115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13116 export_dynamic_flag_spec_CXX='${wl}-E'
13117 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13118 # Instead, shared libraries are loaded at an image base (0x10000000 by
13119 # default) and relocated if they conflict, which is a slow very memory
13120 # consuming and fragmenting process. To avoid this, we pick a random,
13121 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13122 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13123 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'
13124 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'
13127 case $cc_basename in
13130 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'
13132 # Archives containing C++ object files must be created using
13133 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13134 # necessary to make sure instantiated templates are included
13136 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13139 if test "$GXX" = yes; then
13140 if test "$with_gnu_ld" = no; then
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"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13143 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'
13146 link_all_deplibs_CXX=yes
13149 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13150 hardcode_libdir_separator_CXX=:
13151 inherit_rpath_CXX=yes
13154 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13155 case $cc_basename in
13157 # Kuck and Associates, Inc. (KAI) C++ Compiler
13159 # KCC will only create a shared library if the output file
13160 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13161 # to its proper name (with version) after linking.
13162 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13163 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'
13164 # Commands to make compiler produce verbose output that lists
13165 # what "hidden" libraries, object files and flags are used when
13166 # linking a shared library.
13168 # There doesn't appear to be a way to prevent this compiler from
13169 # explicitly linking system object files so we need to strip them
13170 # from the output so that they don't get included in the library
13172 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"'
13174 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13175 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13177 # Archives containing C++ object files must be created using
13178 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13179 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13184 # version 8.0 and above of icpc choke on multiply defined symbols
13185 # if we add $predep_objects and $postdep_objects, however 7.1 and
13186 # earlier do not add the objects themselves.
13187 case `$CC -V 2>&1` in
13189 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190 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'
13192 *) # Version 8.0 or newer
13195 ia64*) tmp_idyn=' -i_dynamic';;
13197 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13198 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'
13201 archive_cmds_need_lc_CXX=no
13202 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13204 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13207 # Portland Group C++ compiler
13209 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13210 prelink_cmds_CXX='tpldir=Template.dir~
13212 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13213 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13214 old_archive_cmds_CXX='tpldir=Template.dir~
13216 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13217 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13219 archive_cmds_CXX='tpldir=Template.dir~
13221 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13222 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13223 archive_expsym_cmds_CXX='tpldir=Template.dir~
13225 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13226 $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'
13228 *) # Version 6 and above use weak symbols
13229 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13230 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'
13234 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13235 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13236 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'
13240 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241 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'
13243 runpath_var=LD_RUN_PATH
13244 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13245 hardcode_libdir_separator_CXX=:
13247 # Commands to make compiler produce verbose output that lists
13248 # what "hidden" libraries, object files and flags are used when
13249 # linking a shared library.
13251 # There doesn't appear to be a way to prevent this compiler from
13252 # explicitly linking system object files so we need to strip them
13253 # from the output so that they don't get included in the library
13255 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'
13257 xl* | mpixl* | bgxl*)
13258 # IBM XL 8.0 on PPC, with GNU ld
13259 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13260 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13261 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13262 if test "x$supports_anon_versioning" = xyes; then
13263 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13264 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13265 echo "local: *; };" >> $output_objdir/$libname.ver~
13266 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13270 case `$CC -V 2>&1 | sed 5q` in
13273 no_undefined_flag_CXX=' -zdefs'
13274 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13275 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'
13276 hardcode_libdir_flag_spec_CXX='-R$libdir'
13277 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'
13278 compiler_needs_object_CXX=yes
13280 # Not sure whether something based on
13281 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13283 output_verbose_link_cmd='func_echo_all'
13285 # Archives containing C++ object files must be created using
13286 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13287 # necessary to make sure instantiated templates are included
13289 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13297 # FIXME: insert proper C++ library support
13302 # FIXME: insert proper C++ library support
13307 case $cc_basename in
13309 # FIXME: insert proper C++ library support
13313 # FIXME: insert proper C++ library support
13320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13321 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13323 hardcode_libdir_flag_spec_CXX='-R$libdir'
13324 hardcode_direct_CXX=yes
13325 hardcode_shlibpath_var_CXX=no
13327 # Workaround some broken pre-1.5 toolchains
13328 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13336 # C++ shared libraries are fairly broken
13341 if test -f /usr/libexec/ld.so; then
13342 hardcode_direct_CXX=yes
13343 hardcode_shlibpath_var_CXX=no
13344 hardcode_direct_absolute_CXX=yes
13345 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13346 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13348 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13349 export_dynamic_flag_spec_CXX='${wl}-E'
13350 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13352 output_verbose_link_cmd=func_echo_all
13358 osf3* | osf4* | osf5*)
13359 case $cc_basename in
13361 # Kuck and Associates, Inc. (KAI) C++ Compiler
13363 # KCC will only create a shared library if the output file
13364 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13365 # to its proper name (with version) after linking.
13366 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'
13368 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13369 hardcode_libdir_separator_CXX=:
13371 # Archives containing C++ object files must be created using
13372 # the KAI C++ compiler.
13374 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13375 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13379 # Rational C++ 2.4.1
13380 # FIXME: insert proper C++ library support
13386 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13387 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'
13388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13391 allow_undefined_flag_CXX=' -expect_unresolved \*'
13392 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'
13393 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13394 echo "-hidden">> $lib.exp~
13395 $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~
13397 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13401 hardcode_libdir_separator_CXX=:
13403 # Commands to make compiler produce verbose output that lists
13404 # what "hidden" libraries, object files and flags are used when
13405 # linking a shared library.
13407 # There doesn't appear to be a way to prevent this compiler from
13408 # explicitly linking system object files so we need to strip them
13409 # from the output so that they don't get included in the library
13411 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"'
13414 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13415 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13418 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'
13421 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'
13425 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13426 hardcode_libdir_separator_CXX=:
13428 # Commands to make compiler produce verbose output that lists
13429 # what "hidden" libraries, object files and flags are used when
13430 # linking a shared library.
13431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13434 # FIXME: insert proper C++ library support
13442 # FIXME: insert proper C++ library support
13447 case $cc_basename in
13450 # FIXME: insert proper C++ library support
13455 # FIXME: insert proper C++ library support
13459 # FIXME: insert proper C++ library support
13466 case $cc_basename in
13468 # Sun C++ 4.2, 5.x and Centerline C++
13469 archive_cmds_need_lc_CXX=yes
13470 no_undefined_flag_CXX=' -zdefs'
13471 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13473 $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'
13475 hardcode_libdir_flag_spec_CXX='-R$libdir'
13476 hardcode_shlibpath_var_CXX=no
13478 solaris2.[0-5] | solaris2.[0-5].*) ;;
13480 # The compiler driver will combine and reorder linker options,
13481 # but understands `-z linker_flag'.
13482 # Supported since Solaris 2.6 (maybe 2.5.1?)
13483 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13486 link_all_deplibs_CXX=yes
13488 output_verbose_link_cmd='func_echo_all'
13490 # Archives containing C++ object files must be created using
13491 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13492 # necessary to make sure instantiated templates are included
13494 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13497 # Green Hills C++ Compiler
13498 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13500 # The C++ compiler must be used to create the archive.
13501 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13504 # GNU C++ compiler with Solaris linker
13505 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13506 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13507 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13508 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13509 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13510 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13512 # Commands to make compiler produce verbose output that lists
13513 # what "hidden" libraries, object files and flags are used when
13514 # linking a shared library.
13515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13517 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13519 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13520 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13521 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13523 # Commands to make compiler produce verbose output that lists
13524 # what "hidden" libraries, object files and flags are used when
13525 # linking a shared library.
13526 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13529 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13531 solaris2.[0-5] | solaris2.[0-5].*) ;;
13533 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13541 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13542 no_undefined_flag_CXX='${wl}-z,text'
13543 archive_cmds_need_lc_CXX=no
13544 hardcode_shlibpath_var_CXX=no
13545 runpath_var='LD_RUN_PATH'
13547 case $cc_basename in
13549 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13553 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13559 sysv5* | sco3.2v5* | sco5v6*)
13560 # Note: We can NOT use -z defs as we might desire, because we do not
13561 # link with -lc, and that would cause any symbols used from libc to
13562 # always be unresolved, which means just about no library would
13563 # ever link correctly. If we're not using GNU ld we use -z text
13564 # though, which does catch some bad symbols but isn't as heavy-handed
13566 no_undefined_flag_CXX='${wl}-z,text'
13567 allow_undefined_flag_CXX='${wl}-z,nodefs'
13568 archive_cmds_need_lc_CXX=no
13569 hardcode_shlibpath_var_CXX=no
13570 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13571 hardcode_libdir_separator_CXX=':'
13572 link_all_deplibs_CXX=yes
13573 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13574 runpath_var='LD_RUN_PATH'
13576 case $cc_basename in
13578 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13579 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13580 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13581 '"$old_archive_cmds_CXX"
13582 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13583 '"$reload_cmds_CXX"
13586 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13593 case $cc_basename in
13595 # NonStop-UX NCC 3.20
13596 # FIXME: insert proper C++ library support
13600 # FIXME: insert proper C++ library support
13607 # FIXME: insert proper C++ library support
13612 # FIXME: insert proper C++ library support
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13618 $as_echo "$ld_shlibs_CXX" >&6; }
13619 test "$ld_shlibs_CXX" = no && can_build_shared=no
13625 ## There is no encapsulation within the following macros, do not change
13626 ## the running order or otherwise move them around unless you know exactly
13627 ## what you are doing...
13628 # Dependencies to place before and after the object being linked:
13629 predep_objects_CXX=
13630 postdep_objects_CXX=
13633 compiler_lib_search_path_CXX=
13635 cat > conftest.$ac_ext <<_LT_EOF
13639 Foo (void) { a = 0; }
13646 _lt_libdeps_save_CFLAGS=$CFLAGS
13647 case "$CC $CFLAGS " in #(
13648 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13649 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13650 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13654 (eval $ac_compile) 2>&5
13656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13657 test $ac_status = 0; }; then
13658 # Parse the compiler output and extract the necessary
13659 # objects, libraries and library flags.
13661 # Sentinel used to keep track of whether or not we are before
13662 # the conftest object file.
13663 pre_test_object_deps_done=no
13665 for p in `eval "$output_verbose_link_cmd"`; do
13666 case ${prev}${p} in
13669 # Some compilers place space between "-{L,R}" and the path.
13670 # Remove the space.
13671 if test $p = "-L" ||
13672 test $p = "-R"; then
13677 # Expand the sysroot to ease extracting the directories later.
13678 if test -z "$prev"; then
13680 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13681 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13682 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13686 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13688 if test "$pre_test_object_deps_done" = no; then
13691 # Internal compiler library paths should come after those
13692 # provided the user. The postdeps already come after the
13693 # user supplied libs so there is no need to process them.
13694 if test -z "$compiler_lib_search_path_CXX"; then
13695 compiler_lib_search_path_CXX="${prev}${p}"
13697 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13700 # The "-l" case would never come before the object being
13701 # linked, so don't bother handling this case.
13704 if test -z "$postdeps_CXX"; then
13705 postdeps_CXX="${prev}${p}"
13707 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13713 *.lto.$objext) ;; # Ignore GCC LTO objects
13715 # This assumes that the test object file only shows up
13716 # once in the compiler output.
13717 if test "$p" = "conftest.$objext"; then
13718 pre_test_object_deps_done=yes
13722 if test "$pre_test_object_deps_done" = no; then
13723 if test -z "$predep_objects_CXX"; then
13724 predep_objects_CXX="$p"
13726 predep_objects_CXX="$predep_objects_CXX $p"
13729 if test -z "$postdep_objects_CXX"; then
13730 postdep_objects_CXX="$p"
13732 postdep_objects_CXX="$postdep_objects_CXX $p"
13737 *) ;; # Ignore the rest.
13745 echo "libtool.m4: error: problem compiling CXX test program"
13748 $RM -f confest.$objext
13749 CFLAGS=$_lt_libdeps_save_CFLAGS
13751 # PORTME: override above test on systems where it is broken
13754 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13755 # hack all around it, let's just trust "g++" to DTRT.
13756 predep_objects_CXX=
13757 postdep_objects_CXX=
13762 case `$CC -V 2>&1 | sed 5q` in
13766 # The more standards-conforming stlport4 library is
13767 # incompatible with the Cstd library. Avoid specifying
13768 # it if it's in CXXFLAGS. Ignore libCrun as
13769 # -library=stlport4 depends on it.
13770 case " $CXX $CXXFLAGS " in
13771 *" -library=stlport4 "*)
13772 solaris_use_stlport4=yes
13776 if test "$solaris_use_stlport4" != yes; then
13777 postdeps_CXX='-library=Cstd -library=Crun'
13784 case $cc_basename in
13786 # The more standards-conforming stlport4 library is
13787 # incompatible with the Cstd library. Avoid specifying
13788 # it if it's in CXXFLAGS. Ignore libCrun as
13789 # -library=stlport4 depends on it.
13790 case " $CXX $CXXFLAGS " in
13791 *" -library=stlport4 "*)
13792 solaris_use_stlport4=yes
13796 # Adding this requires a known-good setup of shared libraries for
13797 # Sun compiler versions before 5.6, else PIC objects from an old
13798 # archive will be linked into the output, leading to subtle bugs.
13799 if test "$solaris_use_stlport4" != yes; then
13800 postdeps_CXX='-library=Cstd -library=Crun'
13808 case " $postdeps_CXX " in
13809 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13811 compiler_lib_search_dirs_CXX=
13812 if test -n "${compiler_lib_search_path_CXX}"; then
13813 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13846 lt_prog_compiler_wl_CXX=
13847 lt_prog_compiler_pic_CXX=
13848 lt_prog_compiler_static_CXX=
13851 # C++ specific cases for pic, static, wl, etc.
13852 if test "$GXX" = yes; then
13853 lt_prog_compiler_wl_CXX='-Wl,'
13854 lt_prog_compiler_static_CXX='-static'
13858 # All AIX code is PIC.
13859 if test "$host_cpu" = ia64; then
13860 # AIX 5 now supports IA64 processor
13861 lt_prog_compiler_static_CXX='-Bstatic'
13868 # see comment about AmigaOS4 .so support
13869 lt_prog_compiler_pic_CXX='-fPIC'
13872 # FIXME: we need at least 68020 code to build shared libraries, but
13873 # adding the `-m68020' flag to GCC prevents building anything better,
13875 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13880 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13881 # PIC is the default for these OSes.
13883 mingw* | cygwin* | os2* | pw32* | cegcc*)
13884 # This hack is so that the source file can tell whether it is being
13885 # built for inclusion in a dll (and should export symbols for example).
13886 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13887 # (--disable-auto-import) libraries
13888 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13890 darwin* | rhapsody*)
13891 # PIC is the default on this platform
13892 # Common symbols not allowed in MH_DYLIB files
13893 lt_prog_compiler_pic_CXX='-fno-common'
13896 # DJGPP does not support shared libraries at all
13897 lt_prog_compiler_pic_CXX=
13900 # PIC is the default for Haiku.
13901 # The "-static" flag exists, but is broken.
13902 lt_prog_compiler_static_CXX=
13905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13906 # Instead, we relocate shared libraries at runtime.
13909 if test -d /usr/nec; then
13910 lt_prog_compiler_pic_CXX=-Kconform_pic
13914 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13915 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13916 # sets the default TLS model and affects inlining.
13921 lt_prog_compiler_pic_CXX='-fPIC'
13926 # QNX uses GNU C++, but need to define -shared option too, otherwise
13927 # it will coredump.
13928 lt_prog_compiler_pic_CXX='-fPIC -shared'
13931 lt_prog_compiler_pic_CXX='-fPIC'
13937 # All AIX code is PIC.
13938 if test "$host_cpu" = ia64; then
13939 # AIX 5 now supports IA64 processor
13940 lt_prog_compiler_static_CXX='-Bstatic'
13942 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13946 case $cc_basename in
13948 # Green Hills C++ Compiler
13949 # _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"
13953 mingw* | cygwin* | os2* | pw32* | cegcc*)
13954 # This hack is so that the source file can tell whether it is being
13955 # built for inclusion in a dll (and should export symbols for example).
13956 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13959 case $cc_basename in
13961 lt_prog_compiler_pic_CXX='-KPIC'
13964 # Green Hills C++ Compiler
13965 lt_prog_compiler_pic_CXX='-pic'
13971 freebsd* | dragonfly*)
13972 # FreeBSD uses GNU C++
13974 hpux9* | hpux10* | hpux11*)
13975 case $cc_basename in
13977 lt_prog_compiler_wl_CXX='-Wl,'
13978 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13979 if test "$host_cpu" != ia64; then
13980 lt_prog_compiler_pic_CXX='+Z'
13984 lt_prog_compiler_wl_CXX='-Wl,'
13985 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13991 lt_prog_compiler_pic_CXX='+Z'
14000 # This is c89, which is MS Visual C++ (no shared libs)
14001 # Anyone wants to do a port?
14003 irix5* | irix6* | nonstopux*)
14004 case $cc_basename in
14006 lt_prog_compiler_wl_CXX='-Wl,'
14007 lt_prog_compiler_static_CXX='-non_shared'
14008 # CC pic flag -KPIC is the default.
14014 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14015 case $cc_basename in
14018 lt_prog_compiler_wl_CXX='--backend -Wl,'
14019 lt_prog_compiler_pic_CXX='-fPIC'
14022 # old Intel C++ for x86_64 which still supported -KPIC.
14023 lt_prog_compiler_wl_CXX='-Wl,'
14024 lt_prog_compiler_pic_CXX='-KPIC'
14025 lt_prog_compiler_static_CXX='-static'
14028 # Intel C++, used to be incompatible with GCC.
14029 # ICC 10 doesn't accept -KPIC any more.
14030 lt_prog_compiler_wl_CXX='-Wl,'
14031 lt_prog_compiler_pic_CXX='-fPIC'
14032 lt_prog_compiler_static_CXX='-static'
14035 # Portland Group C++ compiler
14036 lt_prog_compiler_wl_CXX='-Wl,'
14037 lt_prog_compiler_pic_CXX='-fpic'
14038 lt_prog_compiler_static_CXX='-Bstatic'
14042 # Make sure the PIC flag is empty. It appears that all Alpha
14043 # Linux and Compaq Tru64 Unix objects are PIC.
14044 lt_prog_compiler_pic_CXX=
14045 lt_prog_compiler_static_CXX='-non_shared'
14047 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14048 # IBM XL 8.0, 9.0 on PPC and BlueGene
14049 lt_prog_compiler_wl_CXX='-Wl,'
14050 lt_prog_compiler_pic_CXX='-qpic'
14051 lt_prog_compiler_static_CXX='-qstaticlink'
14054 case `$CC -V 2>&1 | sed 5q` in
14057 lt_prog_compiler_pic_CXX='-KPIC'
14058 lt_prog_compiler_static_CXX='-Bstatic'
14059 lt_prog_compiler_wl_CXX='-Qoption ld '
14070 case $cc_basename in
14072 lt_prog_compiler_pic_CXX='-W c,exportall'
14078 netbsd* | netbsdelf*-gnu)
14081 # QNX uses GNU C++, but need to define -shared option too, otherwise
14082 # it will coredump.
14083 lt_prog_compiler_pic_CXX='-fPIC -shared'
14085 osf3* | osf4* | osf5*)
14086 case $cc_basename in
14088 lt_prog_compiler_wl_CXX='--backend -Wl,'
14091 # Rational C++ 2.4.1
14092 lt_prog_compiler_pic_CXX='-pic'
14095 # Digital/Compaq C++
14096 lt_prog_compiler_wl_CXX='-Wl,'
14097 # Make sure the PIC flag is empty. It appears that all Alpha
14098 # Linux and Compaq Tru64 Unix objects are PIC.
14099 lt_prog_compiler_pic_CXX=
14100 lt_prog_compiler_static_CXX='-non_shared'
14109 case $cc_basename in
14111 # Sun C++ 4.2, 5.x and Centerline C++
14112 lt_prog_compiler_pic_CXX='-KPIC'
14113 lt_prog_compiler_static_CXX='-Bstatic'
14114 lt_prog_compiler_wl_CXX='-Qoption ld '
14117 # Green Hills C++ Compiler
14118 lt_prog_compiler_pic_CXX='-PIC'
14125 case $cc_basename in
14128 lt_prog_compiler_pic_CXX='-pic'
14129 lt_prog_compiler_static_CXX='-Bstatic'
14133 lt_prog_compiler_pic_CXX='-pic'
14139 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14140 case $cc_basename in
14142 lt_prog_compiler_wl_CXX='-Wl,'
14143 lt_prog_compiler_pic_CXX='-KPIC'
14144 lt_prog_compiler_static_CXX='-Bstatic'
14149 case $cc_basename in
14151 # NonStop-UX NCC 3.20
14152 lt_prog_compiler_pic_CXX='-KPIC'
14161 lt_prog_compiler_can_build_shared_CXX=no
14167 # For platforms which do not support PIC, -DPIC is meaningless:
14169 lt_prog_compiler_pic_CXX=
14172 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14177 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14178 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14179 $as_echo_n "(cached) " >&6
14181 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14184 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14185 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14188 # Check to make sure the PIC flag actually works.
14190 if test -n "$lt_prog_compiler_pic_CXX"; then
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14192 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14193 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14194 $as_echo_n "(cached) " >&6
14196 lt_cv_prog_compiler_pic_works_CXX=no
14197 ac_outfile=conftest.$ac_objext
14198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14199 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14200 # Insert the option either (1) after the last *FLAGS variable, or
14201 # (2) before a word containing "conftest.", or (3) at the end.
14202 # Note that $ac_compile itself does not contain backslashes and begins
14203 # with a dollar sign (not a hyphen), so the echo should work correctly.
14204 # The option is referenced via a variable to avoid confusing sed.
14205 lt_compile=`echo "$ac_compile" | $SED \
14206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14208 -e 's:$: $lt_compiler_flag:'`
14209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14210 (eval "$lt_compile" 2>conftest.err)
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 if (exit $ac_status) && test -s "$ac_outfile"; then
14215 # The compiler can only warn and ignore the option if not recognized
14216 # So say no if there are warnings other than the usual output.
14217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14220 lt_cv_prog_compiler_pic_works_CXX=yes
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14227 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14229 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14230 case $lt_prog_compiler_pic_CXX in
14232 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14235 lt_prog_compiler_pic_CXX=
14236 lt_prog_compiler_can_build_shared_CXX=no
14246 # Check to make sure the static flag actually works.
14248 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14250 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14251 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14252 $as_echo_n "(cached) " >&6
14254 lt_cv_prog_compiler_static_works_CXX=no
14255 save_LDFLAGS="$LDFLAGS"
14256 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14257 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14258 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14259 # The linker can only warn and ignore the option if not recognized
14260 # So say no if there are warnings
14261 if test -s conftest.err; then
14262 # Append any errors to the config.log.
14263 cat conftest.err 1>&5
14264 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14266 if diff conftest.exp conftest.er2 >/dev/null; then
14267 lt_cv_prog_compiler_static_works_CXX=yes
14270 lt_cv_prog_compiler_static_works_CXX=yes
14274 LDFLAGS="$save_LDFLAGS"
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14278 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14280 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14283 lt_prog_compiler_static_CXX=
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14290 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14291 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14292 $as_echo_n "(cached) " >&6
14294 lt_cv_prog_compiler_c_o_CXX=no
14295 $RM -r conftest 2>/dev/null
14299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14301 lt_compiler_flag="-o out/conftest2.$ac_objext"
14302 # Insert the option either (1) after the last *FLAGS variable, or
14303 # (2) before a word containing "conftest.", or (3) at the end.
14304 # Note that $ac_compile itself does not contain backslashes and begins
14305 # with a dollar sign (not a hyphen), so the echo should work correctly.
14306 lt_compile=`echo "$ac_compile" | $SED \
14307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14309 -e 's:$: $lt_compiler_flag:'`
14310 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14311 (eval "$lt_compile" 2>out/conftest.err)
14313 cat out/conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14317 # The compiler can only warn and ignore the option if not recognized
14318 # So say no if there are warnings
14319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14320 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14321 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14322 lt_cv_prog_compiler_c_o_CXX=yes
14327 # SGI C++ compiler will create directory out/ii_files/ for
14328 # template instantiation
14329 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14330 $RM out/* && rmdir out
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14337 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14343 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14344 $as_echo_n "(cached) " >&6
14346 lt_cv_prog_compiler_c_o_CXX=no
14347 $RM -r conftest 2>/dev/null
14351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14353 lt_compiler_flag="-o out/conftest2.$ac_objext"
14354 # Insert the option either (1) after the last *FLAGS variable, or
14355 # (2) before a word containing "conftest.", or (3) at the end.
14356 # Note that $ac_compile itself does not contain backslashes and begins
14357 # with a dollar sign (not a hyphen), so the echo should work correctly.
14358 lt_compile=`echo "$ac_compile" | $SED \
14359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361 -e 's:$: $lt_compiler_flag:'`
14362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14363 (eval "$lt_compile" 2>out/conftest.err)
14365 cat out/conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14369 # The compiler can only warn and ignore the option if not recognized
14370 # So say no if there are warnings
14371 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14374 lt_cv_prog_compiler_c_o_CXX=yes
14379 # SGI C++ compiler will create directory out/ii_files/ for
14380 # template instantiation
14381 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14382 $RM out/* && rmdir out
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14389 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14394 hard_links="nottested"
14395 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14396 # do not overwrite the value of need_locks provided by the user
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14398 $as_echo_n "checking if we can lock with hard links... " >&6; }
14401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14403 ln conftest.a conftest.b 2>&5 || hard_links=no
14404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14406 $as_echo "$hard_links" >&6; }
14407 if test "$hard_links" = no; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14409 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14419 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14421 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14422 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14425 # If we're using GNU nm, then we don't want the "-C" option.
14426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14427 # Also, AIX nm treats weak defined symbols like other global defined
14428 # symbols, whereas GNU nm marks them as "W".
14429 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14430 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'
14432 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'
14436 export_symbols_cmds_CXX="$ltdll_cmds"
14438 cygwin* | mingw* | cegcc*)
14439 case $cc_basename in
14441 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14444 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'
14445 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14449 linux* | k*bsd*-gnu | gnu*)
14450 link_all_deplibs_CXX=no
14453 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14458 $as_echo "$ld_shlibs_CXX" >&6; }
14459 test "$ld_shlibs_CXX" = no && can_build_shared=no
14461 with_gnu_ld_CXX=$with_gnu_ld
14469 # Do we need to explicitly link libc?
14471 case "x$archive_cmds_need_lc_CXX" in
14473 # Assume -lc should be added
14474 archive_cmds_need_lc_CXX=yes
14476 if test "$enable_shared" = yes && test "$GCC" = yes; then
14477 case $archive_cmds_CXX in
14479 # FIXME: we may have to deal with multi-command sequences.
14482 # Test whether the compiler implicitly links with -lc since on some
14483 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14484 # to ld, don't add -lc before -lgcc.
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14486 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14487 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14488 $as_echo_n "(cached) " >&6
14491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14494 (eval $ac_compile) 2>&5
14496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14497 test $ac_status = 0; } 2>conftest.err; then
14500 libobjs=conftest.$ac_objext
14502 wl=$lt_prog_compiler_wl_CXX
14503 pic_flag=$lt_prog_compiler_pic_CXX
14509 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14510 allow_undefined_flag_CXX=
14511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14512 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14515 test $ac_status = 0; }
14517 lt_cv_archive_cmds_need_lc_CXX=no
14519 lt_cv_archive_cmds_need_lc_CXX=yes
14521 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14523 cat conftest.err 1>&5
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14529 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14530 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14599 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14601 library_names_spec=
14602 libname_spec='lib$name'
14606 postuninstall_cmds=
14610 shlibpath_overrides_runpath=unknown
14612 dynamic_linker="$host_os ld.so"
14613 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14614 need_lib_prefix=unknown
14615 hardcode_into_libs=no
14617 # when you set need_version to no, make sure it does not cause -set_version
14618 # flags to be left without arguments
14619 need_version=unknown
14623 version_type=linux # correct to gnu/linux during the next big refactor
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14625 shlibpath_var=LIBPATH
14627 # AIX 3 has no versioning support, so we append a major version to the name.
14628 soname_spec='${libname}${release}${shared_ext}$major'
14632 version_type=linux # correct to gnu/linux during the next big refactor
14635 hardcode_into_libs=yes
14636 if test "$host_cpu" = ia64; then
14637 # AIX 5 supports IA64
14638 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14639 shlibpath_var=LD_LIBRARY_PATH
14641 # With GCC up to 2.95.x, collect2 would create an import file
14642 # for dependence libraries. The import file would start with
14643 # the line `#! .'. This would cause the generated library to
14644 # depend on `.', always an invalid library. This was fixed in
14645 # development snapshots of GCC prior to 3.0.
14647 aix4 | aix4.[01] | aix4.[01].*)
14648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14650 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14653 can_build_shared=no
14657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14658 # soname into executable. Probably we can add versioning support to
14659 # collect2, so additional links can be useful in future.
14660 if test "$aix_use_runtimelinking" = yes; then
14661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14662 # instead of lib<name>.a to let people know that these are not
14663 # typical AIX shared libraries.
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 # We preserve .a as extension for shared libraries through AIX4.2
14667 # and later when we are not doing run time linking.
14668 library_names_spec='${libname}${release}.a $libname.a'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14671 shlibpath_var=LIBPATH
14678 # Since July 2007 AmigaOS4 officially supports .so libraries.
14679 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683 library_names_spec='$libname.ixlibrary $libname.a'
14684 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14685 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'
14691 library_names_spec='${libname}${shared_ext}'
14692 dynamic_linker="$host_os ld.so"
14693 shlibpath_var=LIBRARY_PATH
14697 version_type=linux # correct to gnu/linux during the next big refactor
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14702 shlibpath_var=LD_LIBRARY_PATH
14703 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14704 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14705 # the default ld.so.conf also contains /usr/contrib/lib and
14706 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14707 # libtool to hard-code these into programs
14710 cygwin* | mingw* | pw32* | cegcc*)
14711 version_type=windows
14716 case $GCC,$cc_basename in
14719 library_names_spec='$libname.dll.a'
14720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14721 postinstall_cmds='base_file=`basename \${file}`~
14722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14723 dldir=$destdir/`dirname \$dlpath`~
14724 test -d \$dldir || mkdir -p \$dldir~
14725 $install_prog $dir/$dlname \$dldir/$dlname~
14726 chmod a+x \$dldir/$dlname~
14727 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14728 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14731 dlpath=$dir/\$dldll~
14733 shlibpath_overrides_runpath=yes
14737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14742 # MinGW DLLs use traditional 'lib' prefix
14743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14746 # pw32 DLLs use 'pw' prefix rather than 'lib'
14747 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14750 dynamic_linker='Win32 ld.exe'
14755 libname_spec='$name'
14756 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14757 library_names_spec='${libname}.dll.lib'
14761 sys_lib_search_path_spec=
14764 for lt_path in $LIB
14767 # Let DOS variable expansion print the short 8.3 style file name.
14768 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14769 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14772 # Convert to MSYS style.
14773 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14776 # Convert to unix form, then to dos form, then back to unix form
14777 # but this time dos style (no spaces!) so that the unix form looks
14778 # like /cygdrive/c/PROGRA~1:/cygdr...
14779 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14780 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14781 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14784 sys_lib_search_path_spec="$LIB"
14785 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14786 # It is most probably a Windows format PATH.
14787 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14789 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14791 # FIXME: find the short name or the path components, as spaces are
14792 # common. (e.g. "Program Files" -> "PROGRA~1")
14796 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14797 postinstall_cmds='base_file=`basename \${file}`~
14798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14799 dldir=$destdir/`dirname \$dlpath`~
14800 test -d \$dldir || mkdir -p \$dldir~
14801 $install_prog $dir/$dlname \$dldir/$dlname'
14802 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14803 dlpath=$dir/\$dldll~
14805 shlibpath_overrides_runpath=yes
14806 dynamic_linker='Win32 link.exe'
14810 # Assume MSVC wrapper
14811 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14812 dynamic_linker='Win32 ld.exe'
14815 # FIXME: first we should search . and the directory the executable is in
14819 darwin* | rhapsody*)
14820 dynamic_linker="$host_os dyld"
14821 version_type=darwin
14824 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14825 soname_spec='${libname}${release}${major}$shared_ext'
14826 shlibpath_overrides_runpath=yes
14827 shlibpath_var=DYLD_LIBRARY_PATH
14828 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14834 version_type=linux # correct to gnu/linux during the next big refactor
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14838 soname_spec='${libname}${release}${shared_ext}$major'
14839 shlibpath_var=LD_LIBRARY_PATH
14842 freebsd* | dragonfly*)
14843 # DragonFly does not have aout. When/if they implement a new
14844 # versioning mechanism, adjust this.
14845 if test -x /usr/bin/objformat; then
14846 objformat=`/usr/bin/objformat`
14849 freebsd[23].*) objformat=aout ;;
14850 *) objformat=elf ;;
14853 version_type=freebsd-$objformat
14854 case $version_type in
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14865 shlibpath_var=LD_LIBRARY_PATH
14868 shlibpath_overrides_runpath=yes
14870 freebsd3.[01]* | freebsdelf3.[01]*)
14871 shlibpath_overrides_runpath=yes
14872 hardcode_into_libs=yes
14874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14876 shlibpath_overrides_runpath=no
14877 hardcode_into_libs=yes
14879 *) # from 4.6 on, and DragonFly
14880 shlibpath_overrides_runpath=yes
14881 hardcode_into_libs=yes
14887 version_type=linux # correct to gnu/linux during the next big refactor
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14891 soname_spec='${libname}${release}${shared_ext}$major'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 shlibpath_overrides_runpath=no
14894 hardcode_into_libs=yes
14898 version_type=linux # correct to gnu/linux during the next big refactor
14901 dynamic_linker="$host_os runtime_loader"
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 shlibpath_var=LIBRARY_PATH
14905 shlibpath_overrides_runpath=yes
14906 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14907 hardcode_into_libs=yes
14910 hpux9* | hpux10* | hpux11*)
14911 # Give a soname corresponding to the major version so that dld.sl refuses to
14912 # link against other versions.
14919 hardcode_into_libs=yes
14920 dynamic_linker="$host_os dld.so"
14921 shlibpath_var=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924 soname_spec='${libname}${release}${shared_ext}$major'
14925 if test "X$HPUX_IA64_MODE" = X32; then
14926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14934 hardcode_into_libs=yes
14935 dynamic_linker="$host_os dld.sl"
14936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14945 dynamic_linker="$host_os dld.sl"
14946 shlibpath_var=SHLIB_PATH
14947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14952 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14953 postinstall_cmds='chmod 555 $lib'
14954 # or fails outright, so override atomically:
14955 install_override_mode=555
14959 version_type=linux # correct to gnu/linux during the next big refactor
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14965 shlibpath_var=LD_LIBRARY_PATH
14966 shlibpath_overrides_runpath=no
14967 hardcode_into_libs=yes
14970 irix5* | irix6* | nonstopux*)
14972 nonstopux*) version_type=nonstopux ;;
14974 if test "$lt_cv_prog_gnu_ld" = yes; then
14975 version_type=linux # correct to gnu/linux during the next big refactor
14982 soname_spec='${libname}${release}${shared_ext}$major'
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14985 irix5* | nonstopux*)
14986 libsuff= shlibsuff=
14989 case $LD in # libtool.m4 will add one of these switches to LD
14990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14991 libsuff= shlibsuff= libmagic=32-bit;;
14992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14993 libsuff=32 shlibsuff=N32 libmagic=N32;;
14994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14996 *) libsuff= shlibsuff= libmagic=never-match;;
15000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15001 shlibpath_overrides_runpath=no
15002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15004 hardcode_into_libs=yes
15007 # No shared lib support for Linux oldld, aout, or coff.
15008 linux*oldld* | linux*aout* | linux*coff*)
15012 # This must be glibc/ELF.
15013 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15014 version_type=linux # correct to gnu/linux during the next big refactor
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15018 soname_spec='${libname}${release}${shared_ext}$major'
15019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 shlibpath_overrides_runpath=no
15023 # Some binutils ld are patched to set DT_RUNPATH
15024 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15025 $as_echo_n "(cached) " >&6
15027 lt_cv_shlibpath_overrides_runpath=no
15028 save_LDFLAGS=$LDFLAGS
15029 save_libdir=$libdir
15030 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15031 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15043 if ac_fn_cxx_try_link "$LINENO"; then :
15044 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15045 lt_cv_shlibpath_overrides_runpath=yes
15048 rm -f core conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15050 LDFLAGS=$save_LDFLAGS
15051 libdir=$save_libdir
15055 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15057 # This implies no fast_install, which is unacceptable.
15058 # Some rework will be needed to allow for fast_install
15059 # before this can be enabled.
15060 hardcode_into_libs=yes
15062 # Append ld.so.conf contents to the search path
15063 if test -f /etc/ld.so.conf; then
15064 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' ' '`
15065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15068 # We used to test for /lib/ld.so.1 and disable shared libraries on
15069 # powerpc, because MkLinux only supported shared libraries with the
15070 # GNU dynamic linker. Since this was broken with cross compilers,
15071 # most powerpc-linux boxes support dynamic linking these days and
15072 # people can always --disable-shared, the test was removed, and we
15073 # assume the GNU/Linux dynamic linker is in use.
15074 dynamic_linker='GNU/Linux ld.so'
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15082 soname_spec='${libname}${release}${shared_ext}$major'
15083 shlibpath_var=LD_LIBRARY_PATH
15084 shlibpath_overrides_runpath=no
15085 hardcode_into_libs=yes
15086 dynamic_linker='NetBSD ld.elf_so'
15093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15096 dynamic_linker='NetBSD (a.out) ld.so'
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15099 soname_spec='${libname}${release}${shared_ext}$major'
15100 dynamic_linker='NetBSD ld.elf_so'
15102 shlibpath_var=LD_LIBRARY_PATH
15103 shlibpath_overrides_runpath=yes
15104 hardcode_into_libs=yes
15108 version_type=linux # correct to gnu/linux during the next big refactor
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15110 shlibpath_var=LD_LIBRARY_PATH
15111 shlibpath_overrides_runpath=yes
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15119 soname_spec='${libname}${release}${shared_ext}$major'
15120 shlibpath_var=LD_LIBRARY_PATH
15121 shlibpath_overrides_runpath=no
15122 hardcode_into_libs=yes
15123 dynamic_linker='ldqnx.so'
15128 sys_lib_dlsearch_path_spec="/usr/lib"
15130 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15132 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15133 *) need_version=no ;;
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15137 shlibpath_var=LD_LIBRARY_PATH
15138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15140 openbsd2.[89] | openbsd2.[89].*)
15141 shlibpath_overrides_runpath=no
15144 shlibpath_overrides_runpath=yes
15148 shlibpath_overrides_runpath=yes
15153 libname_spec='$name'
15156 library_names_spec='$libname${shared_ext} $libname.a'
15157 dynamic_linker='OS/2 ld.exe'
15158 shlibpath_var=LIBPATH
15161 osf3* | osf4* | osf5*)
15165 soname_spec='${libname}${release}${shared_ext}$major'
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15167 shlibpath_var=LD_LIBRARY_PATH
15168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15169 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15177 version_type=linux # correct to gnu/linux during the next big refactor
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 shlibpath_var=LD_LIBRARY_PATH
15183 shlibpath_overrides_runpath=yes
15184 hardcode_into_libs=yes
15185 # ldd complains unless libraries are executable
15186 postinstall_cmds='chmod +x $lib'
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15193 shlibpath_var=LD_LIBRARY_PATH
15194 shlibpath_overrides_runpath=yes
15195 if test "$with_gnu_ld" = yes; then
15202 version_type=linux # correct to gnu/linux during the next big refactor
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 case $host_vendor in
15208 shlibpath_overrides_runpath=no
15210 runpath_var=LD_RUN_PATH
15218 shlibpath_overrides_runpath=no
15219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15225 if test -d /usr/nec ;then
15226 version_type=linux # correct to gnu/linux during the next big refactor
15227 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15228 soname_spec='$libname${shared_ext}.$major'
15229 shlibpath_var=LD_LIBRARY_PATH
15233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15234 version_type=freebsd-elf
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 shlibpath_var=LD_LIBRARY_PATH
15240 shlibpath_overrides_runpath=yes
15241 hardcode_into_libs=yes
15242 if test "$with_gnu_ld" = yes; then
15243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15245 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15248 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15252 sys_lib_dlsearch_path_spec='/usr/lib'
15256 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15257 version_type=linux # correct to gnu/linux during the next big refactor
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261 shlibpath_var=LD_LIBRARY_PATH
15262 shlibpath_overrides_runpath=no
15263 hardcode_into_libs=yes
15267 version_type=linux # correct to gnu/linux during the next big refactor
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 shlibpath_var=LD_LIBRARY_PATH
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15278 $as_echo "$dynamic_linker" >&6; }
15279 test "$dynamic_linker" = no && can_build_shared=no
15281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15282 if test "$GCC" = yes; then
15283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15286 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15287 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15289 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15290 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15331 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15332 hardcode_action_CXX=
15333 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15334 test -n "$runpath_var_CXX" ||
15335 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15337 # We can hardcode non-existent directories.
15338 if test "$hardcode_direct_CXX" != no &&
15339 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15340 # have to relink, otherwise we might link with an installed library
15341 # when we should be linking with a yet-to-be-installed one
15342 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15343 test "$hardcode_minus_L_CXX" != no; then
15344 # Linking always hardcodes the temporary library directory.
15345 hardcode_action_CXX=relink
15347 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15348 hardcode_action_CXX=immediate
15351 # We cannot hardcode anything, or else we can only hardcode existing
15353 hardcode_action_CXX=unsupported
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15356 $as_echo "$hardcode_action_CXX" >&6; }
15358 if test "$hardcode_action_CXX" = relink ||
15359 test "$inherit_rpath_CXX" = yes; then
15360 # Fast installation is not supported
15361 enable_fast_install=no
15362 elif test "$shlibpath_overrides_runpath" = yes ||
15363 test "$enable_shared" = no; then
15364 # Fast installation is not necessary
15365 enable_fast_install=needless
15374 fi # test -n "$compiler"
15377 CFLAGS=$lt_save_CFLAGS
15381 with_gnu_ld=$lt_save_with_gnu_ld
15382 lt_cv_path_LDCXX=$lt_cv_path_LD
15383 lt_cv_path_LD=$lt_save_path_LD
15384 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15385 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15386 fi # test "$_lt_caught_CXX_error" != yes
15389 ac_cpp='$CXXCPP $CPPFLAGS'
15390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15408 ac_config_commands="$ac_config_commands libtool"
15413 # Only expand once:
15418 # Check whether some low-level functions/files are available
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15421 $as_echo_n "checking for ANSI C header files... " >&6; }
15422 if ${ac_cv_header_stdc+:} false; then :
15423 $as_echo_n "(cached) " >&6
15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426 /* end confdefs.h. */
15427 #include <stdlib.h>
15428 #include <stdarg.h>
15429 #include <string.h>
15440 if ac_fn_cxx_try_compile "$LINENO"; then :
15441 ac_cv_header_stdc=yes
15443 ac_cv_header_stdc=no
15445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 if test $ac_cv_header_stdc = yes; then
15448 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15451 #include <string.h>
15454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15455 $EGREP "memchr" >/dev/null 2>&1; then :
15458 ac_cv_header_stdc=no
15464 if test $ac_cv_header_stdc = yes; then
15465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468 #include <stdlib.h>
15471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15472 $EGREP "free" >/dev/null 2>&1; then :
15475 ac_cv_header_stdc=no
15481 if test $ac_cv_header_stdc = yes; then
15482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15483 if test "$cross_compiling" = yes; then :
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15489 #include <stdlib.h>
15490 #if ((' ' & 0x0FF) == 0x020)
15491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15494 # define ISLOWER(c) \
15495 (('a' <= (c) && (c) <= 'i') \
15496 || ('j' <= (c) && (c) <= 'r') \
15497 || ('s' <= (c) && (c) <= 'z'))
15498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15506 for (i = 0; i < 256; i++)
15507 if (XOR (islower (i), ISLOWER (i))
15508 || toupper (i) != TOUPPER (i))
15513 if ac_fn_cxx_try_run "$LINENO"; then :
15516 ac_cv_header_stdc=no
15518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15519 conftest.$ac_objext conftest.beam conftest.$ac_ext
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15525 $as_echo "$ac_cv_header_stdc" >&6; }
15526 if test $ac_cv_header_stdc = yes; then
15528 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15533 # These are tested for by AC_HEADER_STDC, but I check again to set the var
15534 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15535 if test "x$ac_cv_header_stdint_h" = xyes; then :
15536 ac_cv_have_stdint_h=1
15538 ac_cv_have_stdint_h=0
15542 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15543 if test "x$ac_cv_header_sys_types_h" = xyes; then :
15544 ac_cv_have_systypes_h=1
15546 ac_cv_have_systypes_h=0
15550 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15551 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15552 ac_cv_have_inttypes_h=1
15554 ac_cv_have_inttypes_h=0
15558 for ac_header in unistd.h
15560 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15561 if test "x$ac_cv_header_unistd_h" = xyes; then :
15562 cat >>confdefs.h <<_ACEOF
15563 #define HAVE_UNISTD_H 1
15565 ac_cv_have_unistd_h=1
15567 ac_cv_have_unistd_h=0
15572 for ac_header in syscall.h
15574 ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
15575 if test "x$ac_cv_header_syscall_h" = xyes; then :
15576 cat >>confdefs.h <<_ACEOF
15577 #define HAVE_SYSCALL_H 1
15584 for ac_header in sys/syscall.h
15586 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
15587 if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
15588 cat >>confdefs.h <<_ACEOF
15589 #define HAVE_SYS_SYSCALL_H 1
15596 # For backtrace with glibc.
15597 for ac_header in execinfo.h
15599 ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
15600 if test "x$ac_cv_header_execinfo_h" = xyes; then :
15601 cat >>confdefs.h <<_ACEOF
15602 #define HAVE_EXECINFO_H 1
15609 # For backtrace with libunwind.
15610 for ac_header in libunwind.h
15612 ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
15613 if test "x$ac_cv_header_libunwind_h" = xyes; then :
15614 cat >>confdefs.h <<_ACEOF
15615 #define HAVE_LIBUNWIND_H 1
15617 ac_cv_have_libunwind_h=1
15619 ac_cv_have_libunwind_h=0
15624 for ac_header in ucontext.h
15626 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
15627 if test "x$ac_cv_header_ucontext_h" = xyes; then :
15628 cat >>confdefs.h <<_ACEOF
15629 #define HAVE_UCONTEXT_H 1
15636 for ac_header in sys/utsname.h
15638 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
15639 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
15640 cat >>confdefs.h <<_ACEOF
15641 #define HAVE_SYS_UTSNAME_H 1
15648 for ac_header in pwd.h
15650 ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15651 if test "x$ac_cv_header_pwd_h" = xyes; then :
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_PWD_H 1
15660 for ac_header in syslog.h
15662 ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15663 if test "x$ac_cv_header_syslog_h" = xyes; then :
15664 cat >>confdefs.h <<_ACEOF
15665 #define HAVE_SYSLOG_H 1
15672 for ac_header in sys/time.h
15674 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15675 if test "x$ac_cv_header_sys_time_h" = xyes; then :
15676 cat >>confdefs.h <<_ACEOF
15677 #define HAVE_SYS_TIME_H 1
15684 for ac_header in glob.h
15686 ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
15687 if test "x$ac_cv_header_glob_h" = xyes; then :
15688 cat >>confdefs.h <<_ACEOF
15689 #define HAVE_GLOB_H 1
15696 # For backtrace with gcc.
15697 for ac_header in unwind.h
15699 ac_fn_cxx_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
15700 if test "x$ac_cv_header_unwind_h" = xyes; then :
15701 cat >>confdefs.h <<_ACEOF
15702 #define HAVE_UNWIND_H 1
15710 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
15711 if test "x$ac_cv_header_windows_h" = xyes; then :
15712 ac_cv_have_windows_h=1
15714 ac_cv_have_windows_h=0
15718 if test x"$ac_cv_have_windows_h" = x"1"; then
15719 MINGW_CFLAGS=-Isrc/windows
15722 # The cast to long int works around a bug in the HP C Compiler
15723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15725 # This bug is HP SR number 8606223364.
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15727 $as_echo_n "checking size of void *... " >&6; }
15728 if ${ac_cv_sizeof_void_p+:} false; then :
15729 $as_echo_n "(cached) " >&6
15731 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15734 if test "$ac_cv_type_void_p" = yes; then
15735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15737 as_fn_error 77 "cannot compute sizeof (void *)
15738 See \`config.log' for more details" "$LINENO" 5; }
15740 ac_cv_sizeof_void_p=0
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15746 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15750 cat >>confdefs.h <<_ACEOF
15751 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15756 # These are the types I need. We look for them in either stdint.h,
15757 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15758 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15759 if test "x$ac_cv_type_uint16_t" = xyes; then :
15760 ac_cv_have_uint16_t=1
15762 ac_cv_have_uint16_t=0
15765 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15766 if test "x$ac_cv_type_u_int16_t" = xyes; then :
15767 ac_cv_have_u_int16_t=1
15769 ac_cv_have_u_int16_t=0
15772 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15773 if test "x$ac_cv_type___uint16" = xyes; then :
15774 ac_cv_have___uint16=1
15776 ac_cv_have___uint16=0
15780 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15781 if test "x$ac_cv_func_sigaltstack" = xyes; then :
15783 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15787 ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
15788 if test "x$ac_cv_func_sigaction" = xyes; then :
15790 $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
15794 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15795 if test "x$ac_cv_func_dladdr" = xyes; then :
15797 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15801 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15802 if test "x$ac_cv_func_fcntl" = xyes; then :
15804 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15808 ac_fn_cxx_check_func "$LINENO" "pread" "ac_cv_func_pread"
15809 if test "x$ac_cv_func_pread" = xyes; then :
15811 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
15815 ac_fn_cxx_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
15816 if test "x$ac_cv_func_pwrite" = xyes; then :
15818 $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15825 $as_echo_n "checking for __attribute__... " >&6; }
15826 if ${ac_cv___attribute__+:} false; then :
15827 $as_echo_n "(cached) " >&6
15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831 /* end confdefs.h. */
15832 #include <stdlib.h>
15833 static void foo(void) __attribute__ ((unused));
15834 void foo(void) { exit(1); }
15843 if ac_fn_cxx_try_compile "$LINENO"; then :
15844 ac_cv___attribute__=yes
15846 ac_cv___attribute__=no
15849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15852 if test "$ac_cv___attribute__" = "yes"; then
15854 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15858 $as_echo "$ac_cv___attribute__" >&6; }
15860 # We only care about these two attributes.
15861 if test x"$ac_cv___attribute__" = x"yes"; then
15862 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15863 ac_cv___attribute___noinline="__attribute__ ((noinline))"
15864 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15866 ac_cv___attribute___noreturn=
15867 ac_cv___attribute___noinline=
15868 ac_cv___attribute___printf_4_5=
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15873 $as_echo_n "checking for __builtin_expect... " >&6; }
15874 if ${ac_cv___builtin_expect+:} false; then :
15875 $as_echo_n "(cached) " >&6
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15889 if ac_fn_cxx_try_compile "$LINENO"; then :
15890 ac_cv___builtin_expect=yes
15892 ac_cv___builtin_expect=no
15895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15898 if test "$ac_cv___builtin_expect" = "yes"; then
15900 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15904 $as_echo "$ac_cv___builtin_expect" >&6; }
15906 if test x"$ac_cv___builtin_expect" = x"yes"; then
15907 ac_cv_have___builtin_expect=1
15909 ac_cv_have___builtin_expect=0
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15914 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15915 if ${ac_cv___sync_val_compare_and_swap+:} false; then :
15916 $as_echo_n "(cached) " >&6
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15925 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15930 if ac_fn_cxx_try_link "$LINENO"; then :
15931 ac_cv___sync_val_compare_and_swap=yes
15933 ac_cv___sync_val_compare_and_swap=no
15936 rm -f core conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15940 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15942 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15946 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15949 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15950 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15951 # Check whether --enable-frame_pointers was given.
15952 if test "${enable_frame_pointers+set}" = set; then :
15953 enableval=$enable_frame_pointers;
15955 enable_frame_pointers=no
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15964 return __x86_64__ == 1 ? 0 : 1
15969 if ac_fn_cxx_try_compile "$LINENO"; then :
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 if test "$enable_frame_pointers" = yes; then
15976 ENABLE_FRAME_POINTERS_TRUE=
15977 ENABLE_FRAME_POINTERS_FALSE='#'
15979 ENABLE_FRAME_POINTERS_TRUE='#'
15980 ENABLE_FRAME_POINTERS_FALSE=
15983 if test "$is_x86_64" = yes; then
15992 # Check whether --enable-rtti was given.
15993 if test "${enable_rtti+set}" = set; then :
15994 enableval=$enable_rtti;
15997 if test x"$enable_rtti" = x"no"; then
15999 DISABLE_RTTI_FALSE='#'
16001 DISABLE_RTTI_TRUE='#'
16002 DISABLE_RTTI_FALSE=
16005 if test x"$enable_rtti" = x"no"; then
16007 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
16011 # Some of the code in this directory depends on pthreads
16016 ac_cpp='$CPP $CPPFLAGS'
16017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16023 # We used to check for pthread.h first, but this fails if pthread.h
16024 # requires special compiler flags (e.g. on True64 or Sequent).
16025 # It gets checked for in the link test anyway.
16027 # First of all, check if the user has set any of the PTHREAD_LIBS,
16028 # etcetera environment variables, and if threads linking works using
16030 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16031 save_CFLAGS="$CFLAGS"
16032 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16034 LIBS="$PTHREAD_LIBS $LIBS"
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16036 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038 /* end confdefs.h. */
16040 /* Override any GCC internal prototype to avoid an error.
16041 Use char because int might match the return type of a GCC
16042 builtin and then its argument prototype would still apply. */
16046 char pthread_join ();
16050 return pthread_join ();
16055 if ac_fn_c_try_link "$LINENO"; then :
16058 rm -f core conftest.err conftest.$ac_objext \
16059 conftest$ac_exeext conftest.$ac_ext
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16061 $as_echo "$acx_pthread_ok" >&6; }
16062 if test x"$acx_pthread_ok" = xno; then
16067 CFLAGS="$save_CFLAGS"
16070 # We must check for the threads library under a number of different
16071 # names; the ordering is very important because some systems
16072 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16073 # libraries is broken (non-POSIX).
16075 # Create a list of thread flags to try. Items starting with a "-" are
16076 # C compiler flags, and other items are library names, except for "none"
16077 # which indicates that we try without any flags at all, and "pthread-config"
16078 # which is a program returning the flags for the Pth emulation library.
16080 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16082 # The ordering *is* (sometimes) important. Some notes on the
16083 # individual items follow:
16085 # pthreads: AIX (must check this before -lpthread)
16086 # none: in case threads are in libc; should be tried before -Kthread and
16087 # other compiler flags to prevent continual compiler warnings
16088 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16089 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16090 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16091 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16092 # -pthreads: Solaris/gcc
16093 # -mthreads: Mingw32/gcc, Lynx/gcc
16094 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16095 # doesn't hurt to check since this sometimes defines pthreads too;
16096 # also defines -D_REENTRANT)
16097 # ... -mt is also the pthreads flag for HP/aCC
16098 # pthread: Linux, etcetera
16099 # --thread-safe: KAI C++
16100 # pthread-config: use pthread-config program (for GNU Pth library)
16102 case "${host_cpu}-${host_os}" in
16105 # On Solaris (at least, for some versions), libc contains stubbed
16106 # (non-functional) versions of the pthreads routines, so link-based
16107 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16108 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16109 # a function called by this macro, so we could check for that, but
16110 # who knows whether they'll stub that too in a future libc.) So,
16111 # we'll just look for -pthreads and -lpthread first:
16113 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16117 if test x"$acx_pthread_ok" = xno; then
16118 for flag in $acx_pthread_flags; do
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16123 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16128 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16129 PTHREAD_CFLAGS="$flag"
16133 # Extract the first word of "pthread-config", so it can be a program name with args.
16134 set dummy pthread-config; ac_word=$2
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16136 $as_echo_n "checking for $ac_word... " >&6; }
16137 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16138 $as_echo_n "(cached) " >&6
16140 if test -n "$acx_pthread_config"; then
16141 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16144 for as_dir in $PATH
16147 test -z "$as_dir" && as_dir=.
16148 for ac_exec_ext in '' $ac_executable_extensions; do
16149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16150 ac_cv_prog_acx_pthread_config="yes"
16151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16158 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16161 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16162 if test -n "$acx_pthread_config"; then
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16164 $as_echo "$acx_pthread_config" >&6; }
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16167 $as_echo "no" >&6; }
16171 if test x"$acx_pthread_config" = xno; then continue; fi
16172 PTHREAD_CFLAGS="`pthread-config --cflags`"
16173 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16178 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16179 PTHREAD_LIBS="-l$flag"
16184 save_CFLAGS="$CFLAGS"
16185 LIBS="$PTHREAD_LIBS $LIBS"
16186 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16188 # Check for various functions. We must include pthread.h,
16189 # since some functions may be macros. (On the Sequent, we
16190 # need a special flag -Kthread to make this header compile.)
16191 # We check for pthread_join because it is in -lpthread on IRIX
16192 # while pthread_create is in libc. We check for pthread_attr_init
16193 # due to DEC craziness with -lpthreads. We check for
16194 # pthread_cleanup_push because it is one of the few pthread
16195 # functions on Solaris that doesn't have a non-functional libc stub.
16196 # We try pthread_create on general principles.
16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198 /* end confdefs.h. */
16199 #include <pthread.h>
16203 pthread_t th; pthread_join(th, 0);
16204 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16205 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16210 if ac_fn_c_try_link "$LINENO"; then :
16213 rm -f core conftest.err conftest.$ac_objext \
16214 conftest$ac_exeext conftest.$ac_ext
16217 CFLAGS="$save_CFLAGS"
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16220 $as_echo "$acx_pthread_ok" >&6; }
16221 if test "x$acx_pthread_ok" = xyes; then
16230 # Various other checks:
16231 if test "x$acx_pthread_ok" = xyes; then
16233 LIBS="$PTHREAD_LIBS $LIBS"
16234 save_CFLAGS="$CFLAGS"
16235 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16237 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16239 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16241 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243 /* end confdefs.h. */
16244 #include <pthread.h>
16248 int attr=$attr; return attr;
16253 if ac_fn_c_try_link "$LINENO"; then :
16254 attr_name=$attr; break
16256 rm -f core conftest.err conftest.$ac_objext \
16257 conftest$ac_exeext conftest.$ac_ext
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16260 $as_echo "$attr_name" >&6; }
16261 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16263 cat >>confdefs.h <<_ACEOF
16264 #define PTHREAD_CREATE_JOINABLE $attr_name
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16270 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16272 case "${host_cpu}-${host_os}" in
16273 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16274 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16277 $as_echo "${flag}" >&6; }
16278 if test "x$flag" != xno; then
16279 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16283 CFLAGS="$save_CFLAGS"
16284 # More AIX lossage: must compile with xlc_r or cc_r
16285 if test x"$GCC" != xyes; then
16286 for ac_prog in xlc_r cc_r
16288 # Extract the first word of "$ac_prog", so it can be a program name with args.
16289 set dummy $ac_prog; ac_word=$2
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16291 $as_echo_n "checking for $ac_word... " >&6; }
16292 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16293 $as_echo_n "(cached) " >&6
16295 if test -n "$PTHREAD_CC"; then
16296 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16299 for as_dir in $PATH
16302 test -z "$as_dir" && as_dir=.
16303 for ac_exec_ext in '' $ac_executable_extensions; do
16304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16305 ac_cv_prog_PTHREAD_CC="$ac_prog"
16306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16315 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16316 if test -n "$PTHREAD_CC"; then
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16318 $as_echo "$PTHREAD_CC" >&6; }
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16321 $as_echo "no" >&6; }
16325 test -n "$PTHREAD_CC" && break
16327 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16333 # The next part tries to detect GCC inconsistency with -shared on some
16334 # architectures and systems. The problem is that in certain
16335 # configurations, when -shared is specified, GCC "forgets" to
16336 # internally use various flags which are still necessary.
16339 # Prepare the flags
16341 save_CFLAGS="$CFLAGS"
16345 # Try with the flags determined by the earlier checks.
16347 # -Wl,-z,defs forces link-time symbol resolution, so that the
16348 # linking checks with -shared actually have any value
16350 # FIXME: -fPIC is required for -shared on many architectures,
16351 # so we specify it here, but the right way would probably be to
16352 # properly detect whether it is actually required.
16353 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16354 LIBS="$PTHREAD_LIBS $LIBS"
16357 # In order not to create several levels of indentation, we test
16358 # the value of "$done" until we find the cure or run out of ideas.
16361 # First, make sure the CFLAGS we added are actually accepted by our
16362 # compiler. If not (and OS X's ld, for instance, does not accept -z),
16363 # then we can't do this test.
16364 if test x"$done" = xno; then
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16366 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h. */
16378 if ac_fn_c_try_link "$LINENO"; then :
16383 rm -f core conftest.err conftest.$ac_objext \
16384 conftest$ac_exeext conftest.$ac_ext
16386 if test "x$done" = xyes ; then
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16388 $as_echo "no" >&6; }
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16391 $as_echo "yes" >&6; }
16395 if test x"$done" = xno; then
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16397 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h. */
16400 #include <pthread.h>
16404 pthread_t th; pthread_join(th, 0);
16405 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16406 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16411 if ac_fn_c_try_link "$LINENO"; then :
16414 rm -f core conftest.err conftest.$ac_objext \
16415 conftest$ac_exeext conftest.$ac_ext
16417 if test "x$done" = xyes; then
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16419 $as_echo "yes" >&6; }
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16422 $as_echo "no" >&6; }
16427 # Linux gcc on some architectures such as mips/mipsel forgets
16430 if test x"$done" = xno; then
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16432 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
16433 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16436 #include <pthread.h>
16440 pthread_t th; pthread_join(th, 0);
16441 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16442 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16447 if ac_fn_c_try_link "$LINENO"; then :
16450 rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16453 if test "x$done" = xyes; then
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16455 $as_echo "yes" >&6; }
16456 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459 $as_echo "no" >&6; }
16463 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16465 if test x"$done" = xno; then
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16467 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
16468 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16471 #include <pthread.h>
16475 pthread_t th; pthread_join(th, 0);
16476 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16477 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16482 if ac_fn_c_try_link "$LINENO"; then :
16485 rm -f core conftest.err conftest.$ac_objext \
16486 conftest$ac_exeext conftest.$ac_ext
16488 if test "x$done" = xyes; then
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16490 $as_echo "yes" >&6; }
16491 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494 $as_echo "no" >&6; }
16497 if test x"$done" = xno; then
16498 # OK, we have run out of ideas
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16500 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16502 # so it's not safe to assume that we may use pthreads
16506 CFLAGS="$save_CFLAGS"
16517 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16518 if test x"$acx_pthread_ok" = xyes; then
16520 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16528 ac_cpp='$CXXCPP $CPPFLAGS'
16529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16534 if test x"$acx_pthread_ok" = x"yes"; then
16535 # To make libglog depend on libpthread on Linux, we need to add
16536 # -lpthread in addition to -pthread.
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
16538 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
16539 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
16540 $as_echo_n "(cached) " >&6
16542 ac_check_lib_save_LIBS=$LIBS
16543 LIBS="-lpthread $LIBS"
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16547 /* Override any GCC internal prototype to avoid an error.
16548 Use char because int might match the return type of a GCC
16549 builtin and then its argument prototype would still apply. */
16553 char pthread_self ();
16557 return pthread_self ();
16562 if ac_fn_cxx_try_link "$LINENO"; then :
16563 ac_cv_lib_pthread_pthread_self=yes
16565 ac_cv_lib_pthread_pthread_self=no
16567 rm -f core conftest.err conftest.$ac_objext \
16568 conftest$ac_exeext conftest.$ac_ext
16569 LIBS=$ac_check_lib_save_LIBS
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
16572 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
16573 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
16574 cat >>confdefs.h <<_ACEOF
16575 #define HAVE_LIBPTHREAD 1
16578 LIBS="-lpthread $LIBS"
16584 # Check if there is google-gflags library installed.
16585 SAVE_CFLAGS="$CFLAGS"
16588 # Check whether --with-gflags was given.
16589 if test "${with_gflags+set}" = set; then :
16590 withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
16591 GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
16592 CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
16593 LIBS="$LIBS $GFLAGS_LIBS"
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
16598 $as_echo_n "checking for main in -lgflags... " >&6; }
16599 if ${ac_cv_lib_gflags_main+:} false; then :
16600 $as_echo_n "(cached) " >&6
16602 ac_check_lib_save_LIBS=$LIBS
16603 LIBS="-lgflags $LIBS"
16604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605 /* end confdefs.h. */
16616 if ac_fn_cxx_try_link "$LINENO"; then :
16617 ac_cv_lib_gflags_main=yes
16619 ac_cv_lib_gflags_main=no
16621 rm -f core conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16623 LIBS=$ac_check_lib_save_LIBS
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
16626 $as_echo "$ac_cv_lib_gflags_main" >&6; }
16627 if test "x$ac_cv_lib_gflags_main" = xyes; then :
16628 ac_cv_have_libgflags=1
16630 ac_cv_have_libgflags=0
16633 if test x"$ac_cv_have_libgflags" = x"1"; then
16635 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
16637 if test x"$GFLAGS_LIBS" = x""; then
16638 GFLAGS_LIBS="-lgflags"
16644 CFLAGS="$SAVE_CFLAGS"
16647 # TODO(hamaji): Use official m4 macros provided by testing libraries
16648 # once the m4 macro of Google Mocking becomes ready.
16649 # Check if there is Google Test library installed.
16650 # Extract the first word of "gtest-config", so it can be a program name with args.
16651 set dummy gtest-config; ac_word=$2
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16653 $as_echo_n "checking for $ac_word... " >&6; }
16654 if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
16655 $as_echo_n "(cached) " >&6
16657 if test -n "$GTEST_CONFIG"; then
16658 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
16660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16661 for as_dir in $PATH
16664 test -z "$as_dir" && as_dir=.
16665 for ac_exec_ext in '' $ac_executable_extensions; do
16666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16667 ac_cv_prog_GTEST_CONFIG=""yes""
16668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16677 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
16678 if test -n "$GTEST_CONFIG"; then
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
16680 $as_echo "$GTEST_CONFIG" >&6; }
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16683 $as_echo "no" >&6; }
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtest" >&5
16688 $as_echo_n "checking for main in -lgtest... " >&6; }
16689 if ${ac_cv_lib_gtest_main+:} false; then :
16690 $as_echo_n "(cached) " >&6
16692 ac_check_lib_save_LIBS=$LIBS
16693 LIBS="-lgtest $LIBS"
16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h. */
16706 if ac_fn_cxx_try_link "$LINENO"; then :
16707 ac_cv_lib_gtest_main=yes
16709 ac_cv_lib_gtest_main=no
16711 rm -f core conftest.err conftest.$ac_objext \
16712 conftest$ac_exeext conftest.$ac_ext
16713 LIBS=$ac_check_lib_save_LIBS
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtest_main" >&5
16716 $as_echo "$ac_cv_lib_gtest_main" >&6; }
16717 if test "x$ac_cv_lib_gtest_main" = xyes; then :
16718 have_gtest_lib="yes"
16721 if test x"$GTEST_CONFIG" = "xyes" -a x"$have_gtest_lib" = "xyes"; then
16722 GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
16723 GTEST_LIBS=`gtest-config --ldflags --libs`
16725 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
16728 # Check if there is Google Mocking library installed.
16729 # Extract the first word of "gmock-config", so it can be a program name with args.
16730 set dummy gmock-config; ac_word=$2
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16732 $as_echo_n "checking for $ac_word... " >&6; }
16733 if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
16734 $as_echo_n "(cached) " >&6
16736 if test -n "$GMOCK_CONFIG"; then
16737 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
16739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16740 for as_dir in $PATH
16743 test -z "$as_dir" && as_dir=.
16744 for ac_exec_ext in '' $ac_executable_extensions; do
16745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16746 ac_cv_prog_GMOCK_CONFIG=""yes""
16747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16756 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
16757 if test -n "$GMOCK_CONFIG"; then
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
16759 $as_echo "$GMOCK_CONFIG" >&6; }
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762 $as_echo "no" >&6; }
16766 if test x"$GMOCK_CONFIG" = "xyes"; then
16767 GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
16768 GMOCK_LIBS=`gmock-config --ldflags --libs`
16770 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
16773 # We don't run test cases which use Google Mocking framework.
16778 # We'll use src/googletest.h for our unittests.
16782 if test x"$GMOCK_CONFIG" = "xyes"; then
16784 HAVE_GMOCK_FALSE='#'
16786 HAVE_GMOCK_TRUE='#'
16791 # We want to link in libunwind if it exists
16793 # Unfortunately, we need to check the header file in addition to the
16794 # lib file to check if libunwind is available since libunwind-0.98
16795 # doesn't install all necessary header files.
16796 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16798 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16799 if ${ac_cv_lib_unwind_backtrace+:} false; then :
16800 $as_echo_n "(cached) " >&6
16802 ac_check_lib_save_LIBS=$LIBS
16803 LIBS="-lunwind $LIBS"
16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h. */
16807 /* Override any GCC internal prototype to avoid an error.
16808 Use char because int might match the return type of a GCC
16809 builtin and then its argument prototype would still apply. */
16817 return backtrace ();
16822 if ac_fn_cxx_try_link "$LINENO"; then :
16823 ac_cv_lib_unwind_backtrace=yes
16825 ac_cv_lib_unwind_backtrace=no
16827 rm -f core conftest.err conftest.$ac_objext \
16828 conftest$ac_exeext conftest.$ac_ext
16829 LIBS=$ac_check_lib_save_LIBS
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16832 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16833 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
16834 UNWIND_LIBS=-lunwind
16839 if test x"$UNWIND_LIBS" != x""; then
16841 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16845 # We'd like to use read/write locks in several places in the code.
16846 # See if our pthreads support extends to that. Note: for linux, it
16847 # does as long as you define _XOPEN_SOURCE appropriately.
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16849 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16850 if ${ac_cv_rwlock+:} false; then :
16851 $as_echo_n "(cached) " >&6
16855 ac_cpp='$CPP $CPPFLAGS'
16856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16862 #define _XOPEN_SOURCE 500
16863 #include <pthread.h>
16867 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16868 pthread_rwlock_rdlock(&l);
16874 if ac_fn_c_try_compile "$LINENO"; then :
16879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881 ac_cpp='$CXXCPP $CPPFLAGS'
16882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16889 $as_echo "$ac_cv_rwlock" >&6; }
16890 if test "$ac_cv_rwlock" = yes; then
16892 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16897 # Find out what namespace 'normal' STL code lives in, and also what namespace
16898 # the user wants our classes to be defined in
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16900 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16901 if ${ac_cv_cxx_namespaces+:} false; then :
16902 $as_echo_n "(cached) " >&6
16906 ac_cpp='$CXXCPP $CPPFLAGS'
16907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16914 namespace Inner { int i = 0; }}
16918 using namespace Outer::Inner; return i;
16923 if ac_fn_cxx_try_compile "$LINENO"; then :
16924 ac_cv_cxx_namespaces=yes
16926 ac_cv_cxx_namespaces=no
16928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16930 ac_cpp='$CXXCPP $CPPFLAGS'
16931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16937 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16938 if test "$ac_cv_cxx_namespaces" = yes; then
16940 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16944 $as_echo_n "checking what namespace STL code is in... " >&6; }
16945 if ${ac_cv_cxx_stl_namespace+:} false; then :
16946 $as_echo_n "(cached) " >&6
16951 ac_cpp='$CXXCPP $CPPFLAGS'
16952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h. */
16962 vector<int> t; return 0;
16967 if ac_fn_cxx_try_compile "$LINENO"; then :
16968 ac_cv_cxx_stl_namespace=none
16970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16977 std::vector<int> t; return 0;
16982 if ac_fn_cxx_try_compile "$LINENO"; then :
16983 ac_cv_cxx_stl_namespace=std
16985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987 ac_cpp='$CXXCPP $CPPFLAGS'
16988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16994 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16995 if test "$ac_cv_cxx_stl_namespace" = none; then
16997 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
17000 if test "$ac_cv_cxx_stl_namespace" = std; then
17002 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
17006 google_namespace_default=google
17007 # Check whether --enable-namespace was given.
17008 if test "${enable_namespace+set}" = set; then :
17009 enableval=$enable_namespace; case "$enableval" in
17010 yes) google_namespace="$google_namespace_default" ;;
17011 no) google_namespace="" ;;
17012 *) google_namespace="$enableval" ;;
17015 google_namespace="$google_namespace_default"
17018 if test -n "$google_namespace"; then
17019 ac_google_namespace="$google_namespace"
17020 ac_google_start_namespace="namespace $google_namespace {"
17021 ac_google_end_namespace="}"
17023 ac_google_namespace=""
17024 ac_google_start_namespace=""
17025 ac_google_end_namespace=""
17028 cat >>confdefs.h <<_ACEOF
17029 #define GOOGLE_NAMESPACE $ac_google_namespace
17033 cat >>confdefs.h <<_ACEOF
17034 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
17038 cat >>confdefs.h <<_ACEOF
17039 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
17045 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
17046 if ${ac_cv_cxx_using_operator+:} false; then :
17047 $as_echo_n "(cached) " >&6
17051 ac_cpp='$CXXCPP $CPPFLAGS'
17052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17057 /* end confdefs.h. */
17058 #include <iostream>
17059 std::ostream& operator<<(std::ostream&, struct s);
17063 using ::operator<<; return 0;
17068 if ac_fn_cxx_try_compile "$LINENO"; then :
17069 ac_cv_cxx_using_operator=1
17071 ac_cv_cxx_using_operator=0
17073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17075 ac_cpp='$CXXCPP $CPPFLAGS'
17076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
17082 $as_echo "$ac_cv_cxx_using_operator" >&6; }
17083 if test "$ac_cv_cxx_using_operator" = 1; then
17085 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
17089 for ac_header in ucontext.h
17091 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
17092 if test "x$ac_cv_header_ucontext_h" = xyes; then :
17093 cat >>confdefs.h <<_ACEOF
17094 #define HAVE_UCONTEXT_H 1
17101 for ac_header in sys/ucontext.h
17103 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
17104 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
17105 cat >>confdefs.h <<_ACEOF
17106 #define HAVE_SYS_UCONTEXT_H 1
17112 # ucontext on OS X 10.6 (at least)
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
17114 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
17115 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
17116 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
17117 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
17118 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
17119 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
17120 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
17121 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
17122 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
17123 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
17124 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
17125 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
17126 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
17127 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
17128 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
17129 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
17130 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
17131 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
17132 pc_field_found=false
17133 for pc_field in $pc_fields; do
17134 if ! $pc_field_found; then
17135 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17138 #define _GNU_SOURCE 1
17139 #include <sys/ucontext.h>
17143 ucontext_t u; return u.$pc_field == 0;
17148 if ac_fn_cxx_try_compile "$LINENO"; then :
17150 cat >>confdefs.h <<_ACEOF
17151 #define PC_FROM_UCONTEXT $pc_field
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17155 $as_echo "$pc_field" >&6; }
17156 pc_field_found=true
17158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161 /* end confdefs.h. */
17162 #define _GNU_SOURCE 1
17163 #include <ucontext.h>
17167 ucontext_t u; return u.$pc_field == 0;
17172 if ac_fn_cxx_try_compile "$LINENO"; then :
17174 cat >>confdefs.h <<_ACEOF
17175 #define PC_FROM_UCONTEXT $pc_field
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17179 $as_echo "$pc_field" >&6; }
17180 pc_field_found=true
17182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17186 if ! $pc_field_found; then
17187 pc_fields=" sc_eip" # OpenBSD (i386)
17188 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
17189 for pc_field in $pc_fields; do
17190 if ! $pc_field_found; then
17191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192 /* end confdefs.h. */
17193 #include <signal.h>
17197 ucontext_t u; return u.$pc_field == 0;
17202 if ac_fn_cxx_try_compile "$LINENO"; then :
17204 cat >>confdefs.h <<_ACEOF
17205 #define PC_FROM_UCONTEXT $pc_field
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17209 $as_echo "$pc_field" >&6; }
17210 pc_field_found=true
17212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17216 if ! $pc_field_found; then
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not output failed addresses..." >&5
17218 $as_echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
17222 cat >>confdefs.h <<_ACEOF
17223 #define TEST_SRC_DIR "$srcdir"
17227 # These are what's needed by logging.h.in and raw_logging.h.in
17252 # Write generated configuration file
17253 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"
17255 ac_config_files="$ac_config_files libglog.pc"
17257 cat >confcache <<\_ACEOF
17258 # This file is a shell script that caches the results of configure
17259 # tests run on this system so they can be shared between configure
17260 # scripts and configure runs, see configure's option --config-cache.
17261 # It is not useful on other systems. If it contains results you don't
17262 # want to keep, you may remove or edit it.
17264 # config.status only pays attention to the cache file if you give it
17265 # the --recheck option to rerun configure.
17267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17269 # following values.
17273 # The following way of writing the cache mishandles newlines in values,
17274 # but we know of no workaround that is simple, portable, and efficient.
17275 # So, we kill variables containing newlines.
17276 # Ultrix sh set writes to stderr and can't be redirected directly,
17277 # and sets the high bit in the cache file unless we assign to the vars.
17279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17280 eval ac_val=\$$ac_var
17284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17285 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17288 _ | IFS | as_nl) ;; #(
17289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17290 *) { eval $ac_var=; unset $ac_var;} ;;
17296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17297 *${as_nl}ac_space=\ *)
17298 # `set' does not quote correctly, so add quotes: double-quote
17299 # substitution turns \\\\ into \\, and sed turns \\ into \.
17302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17305 # `set' quotes correctly as required by POSIX, so do not add quotes.
17306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17320 if test -w "$cache_file"; then
17321 if test "x$cache_file" != "x/dev/null"; then
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17323 $as_echo "$as_me: updating cache $cache_file" >&6;}
17324 if test ! -f "$cache_file" || test -h "$cache_file"; then
17325 cat confcache >"$cache_file"
17327 case $cache_file in #(
17329 mv -f confcache "$cache_file"$$ &&
17330 mv -f "$cache_file"$$ "$cache_file" ;; #(
17332 mv -f confcache "$cache_file" ;;
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17338 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17344 # Let make expand exec_prefix.
17345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17347 DEFS=-DHAVE_CONFIG_H
17352 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17353 # 1. Remove the extension, and $U if already installed.
17354 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17355 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17356 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17357 # will be set to the directory where LIBOBJS objects are built.
17358 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17359 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17361 LIBOBJS=$ac_libobjs
17363 LTLIBOBJS=$ac_ltlibobjs
17366 if test -n "$EXEEXT"; then
17368 am__EXEEXT_FALSE='#'
17370 am__EXEEXT_TRUE='#'
17374 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17375 as_fn_error $? "conditional \"AMDEP\" was never defined.
17376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17378 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17379 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17382 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17383 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17386 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17387 as_fn_error $? "conditional \"GCC\" was never defined.
17388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17390 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
17391 as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
17392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17394 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
17395 as_fn_error $? "conditional \"X86_64\" was never defined.
17396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17398 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
17399 as_fn_error $? "conditional \"DISABLE_RTTI\" was never defined.
17400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17402 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
17403 as_fn_error $? "conditional \"HAVE_GMOCK\" was never defined.
17404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17407 : "${CONFIG_STATUS=./config.status}"
17409 ac_clean_files_save=$ac_clean_files
17410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17412 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17414 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17416 # Generated by $as_me.
17417 # Run this file to recreate the current configuration.
17418 # Compiler output produced by configure, useful for debugging
17419 # configure, is in config.log if it exists.
17422 ac_cs_recheck=false
17425 SHELL=\${CONFIG_SHELL-$SHELL}
17428 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17429 ## -------------------- ##
17430 ## M4sh Initialization. ##
17431 ## -------------------- ##
17433 # Be more Bourne compatible
17434 DUALCASE=1; export DUALCASE # for MKS sh
17435 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17438 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17439 # is contrary to our usage. Disable this feature.
17440 alias -g '${1+"$@"}'='"$@"'
17441 setopt NO_GLOB_SUBST
17443 case `(set -o) 2>/dev/null` in #(
17455 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17456 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17457 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17459 # Prefer a ksh shell builtin over an external printf program on Solaris,
17460 # but without wasting forks for bash or zsh.
17461 if test -z "$BASH_VERSION$ZSH_VERSION" \
17462 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17463 as_echo='print -r --'
17464 as_echo_n='print -rn --'
17465 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17466 as_echo='printf %s\n'
17467 as_echo_n='printf %s'
17469 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17470 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17471 as_echo_n='/usr/ucb/echo -n'
17473 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17474 as_echo_n_body='eval
17478 expr "X$arg" : "X\\(.*\\)$as_nl";
17479 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17481 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17483 export as_echo_n_body
17484 as_echo_n='sh -c $as_echo_n_body as_echo'
17486 export as_echo_body
17487 as_echo='sh -c $as_echo_body as_echo'
17490 # The user is always right.
17491 if test "${PATH_SEPARATOR+set}" != set; then
17493 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17494 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17501 # We need space, tab and new line, in precisely that order. Quoting is
17502 # there to prevent editors from complaining about space-tab.
17503 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17504 # splitting by setting IFS to empty value.)
17507 # Find who we are. Look in the path if we contain no directory separator.
17510 *[\\/]* ) as_myself=$0 ;;
17511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17512 for as_dir in $PATH
17515 test -z "$as_dir" && as_dir=.
17516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17522 # We did not find ourselves, most probably we were run as `sh COMMAND'
17523 # in which case we are not to be found in the path.
17524 if test "x$as_myself" = x; then
17527 if test ! -f "$as_myself"; then
17528 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17532 # Unset variables that we do not need and which cause bugs (e.g. in
17533 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17534 # suppresses any "Segmentation fault" message there. '((' could
17535 # trigger a bug in pdksh 5.2.14.
17536 for as_var in BASH_ENV ENV MAIL MAILPATH
17537 do eval test x\${$as_var+set} = xset \
17538 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17551 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17554 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17555 # ----------------------------------------
17556 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17557 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17558 # script with STATUS, using 1 if that was 0.
17561 as_status=$1; test $as_status -eq 0 && as_status=1
17563 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17564 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17566 $as_echo "$as_me: error: $2" >&2
17567 as_fn_exit $as_status
17571 # as_fn_set_status STATUS
17572 # -----------------------
17573 # Set $? to STATUS, without forking.
17574 as_fn_set_status ()
17577 } # as_fn_set_status
17579 # as_fn_exit STATUS
17580 # -----------------
17581 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17585 as_fn_set_status $1
17591 # Portably unset VAR.
17594 { eval $1=; unset $1;}
17596 as_unset=as_fn_unset
17597 # as_fn_append VAR VALUE
17598 # ----------------------
17599 # Append the text in VALUE to the end of the definition contained in VAR. Take
17600 # advantage of any shell optimizations that allow amortized linear growth over
17601 # repeated appends, instead of the typical quadratic growth present in naive
17603 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17604 eval 'as_fn_append ()
17615 # as_fn_arith ARG...
17616 # ------------------
17617 # Perform arithmetic evaluation on the ARGs, and store the result in the
17618 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17619 # must be portable across $(()) and expr.
17620 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17621 eval 'as_fn_arith ()
17628 as_val=`expr "$@" || test $? -eq 1`
17633 if expr a : '\(a\)' >/dev/null 2>&1 &&
17634 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17640 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17641 as_basename=basename
17646 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17652 as_me=`$as_basename -- "$0" ||
17653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17654 X"$0" : 'X\(//\)$' \| \
17655 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17657 sed '/^.*\/\([^/][^/]*\)\/*$/{
17671 # Avoid depending upon Character Ranges.
17672 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17673 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17674 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17675 as_cr_digits='0123456789'
17676 as_cr_alnum=$as_cr_Letters$as_cr_digits
17678 ECHO_C= ECHO_N= ECHO_T=
17679 case `echo -n x` in #(((((
17681 case `echo 'xy\c'` in
17682 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17684 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17691 rm -f conf$$ conf$$.exe conf$$.file
17692 if test -d conf$$.dir; then
17693 rm -f conf$$.dir/conf$$.file
17696 mkdir conf$$.dir 2>/dev/null
17698 if (echo >conf$$.file) 2>/dev/null; then
17699 if ln -s conf$$.file conf$$ 2>/dev/null; then
17701 # ... but there are two gotchas:
17702 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17703 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17704 # In both cases, we have to default to `cp -p'.
17705 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17707 elif ln conf$$.file conf$$ 2>/dev/null; then
17715 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17716 rmdir conf$$.dir 2>/dev/null
17721 # Create "$as_dir" as a directory, including parents if necessary.
17726 -*) as_dir=./$as_dir;;
17728 test -d "$as_dir" || eval $as_mkdir_p || {
17732 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17733 *) as_qdir=$as_dir;;
17735 as_dirs="'$as_qdir' $as_dirs"
17736 as_dir=`$as_dirname -- "$as_dir" ||
17737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17738 X"$as_dir" : 'X\(//\)[^/]' \| \
17739 X"$as_dir" : 'X\(//\)$' \| \
17740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17741 $as_echo X"$as_dir" |
17742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17746 /^X\(\/\/\)[^/].*/{
17759 test -d "$as_dir" && break
17761 test -z "$as_dirs" || eval "mkdir $as_dirs"
17762 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17766 if mkdir -p . 2>/dev/null; then
17767 as_mkdir_p='mkdir -p "$as_dir"'
17769 test -d ./-p && rmdir ./-p
17773 if test -x / >/dev/null 2>&1; then
17774 as_test_x='test -x'
17776 if ls -dL / >/dev/null 2>&1; then
17783 if test -d "$1"; then
17789 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17790 ???[sx]*):;;*)false;;esac;fi
17794 as_executable_p=$as_test_x
17796 # Sed expression to map a string onto a valid CPP name.
17797 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17799 # Sed expression to map a string onto a valid variable name.
17800 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17804 ## ----------------------------------- ##
17805 ## Main body of $CONFIG_STATUS script. ##
17806 ## ----------------------------------- ##
17808 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17811 # Save the log message, to keep $0 and so on meaningful, and to
17812 # report actual input values of CONFIG_FILES etc. instead of their
17813 # values after options handling.
17815 This file was extended by glog $as_me 0.3.3, which was
17816 generated by GNU Autoconf 2.68. Invocation command line was
17818 CONFIG_FILES = $CONFIG_FILES
17819 CONFIG_HEADERS = $CONFIG_HEADERS
17820 CONFIG_LINKS = $CONFIG_LINKS
17821 CONFIG_COMMANDS = $CONFIG_COMMANDS
17824 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17829 case $ac_config_files in *"
17830 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17833 case $ac_config_headers in *"
17834 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17839 # Files that config.status was made for.
17840 config_files="$ac_config_files"
17841 config_headers="$ac_config_headers"
17842 config_commands="$ac_config_commands"
17846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17848 \`$as_me' instantiates files and other configuration actions
17849 from templates according to the current configuration. Unless the files
17850 and actions are specified as TAGs, all are instantiated by default.
17852 Usage: $0 [OPTION]... [TAG]...
17854 -h, --help print this help, then exit
17855 -V, --version print version number and configuration settings, then exit
17856 --config print configuration, then exit
17857 -q, --quiet, --silent
17858 do not print progress messages
17859 -d, --debug don't remove temporary files
17860 --recheck update $as_me by reconfiguring in the same conditions
17861 --file=FILE[:TEMPLATE]
17862 instantiate the configuration file FILE
17863 --header=FILE[:TEMPLATE]
17864 instantiate the configuration header FILE
17866 Configuration files:
17869 Configuration headers:
17872 Configuration commands:
17875 Report bugs to <opensource@google.com>."
17878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17879 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17881 glog config.status 0.3.3
17882 configured by $0, generated by GNU Autoconf 2.68,
17883 with options \\"\$ac_cs_config\\"
17885 Copyright (C) 2010 Free Software Foundation, Inc.
17886 This config.status script is free software; the Free Software Foundation
17887 gives unlimited permission to copy, distribute and modify it."
17894 test -n "\$AWK" || AWK=awk
17897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17898 # The default lists apply if the user does not specify any file.
17904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17905 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17909 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17921 # Handling of the options.
17922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17924 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17925 $as_echo "$ac_cs_version"; exit ;;
17926 --config | --confi | --conf | --con | --co | --c )
17927 $as_echo "$ac_cs_config"; exit ;;
17928 --debug | --debu | --deb | --de | --d | -d )
17930 --file | --fil | --fi | --f )
17933 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17934 '') as_fn_error $? "missing file argument" ;;
17936 as_fn_append CONFIG_FILES " '$ac_optarg'"
17937 ac_need_defaults=false;;
17938 --header | --heade | --head | --hea )
17941 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17943 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17944 ac_need_defaults=false;;
17946 # Conflict between --help and --header
17947 as_fn_error $? "ambiguous option: \`$1'
17948 Try \`$0 --help' for more information.";;
17949 --help | --hel | -h )
17950 $as_echo "$ac_cs_usage"; exit ;;
17951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17955 # This is an error.
17956 -*) as_fn_error $? "unrecognized option: \`$1'
17957 Try \`$0 --help' for more information." ;;
17959 *) as_fn_append ac_config_targets " $1"
17960 ac_need_defaults=false ;;
17966 ac_configure_extra_args=
17968 if $ac_cs_silent; then
17970 ac_configure_extra_args="$ac_configure_extra_args --silent"
17974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17975 if \$ac_cs_recheck; then
17976 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17978 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17979 CONFIG_SHELL='$SHELL'
17980 export CONFIG_SHELL
17985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17989 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17990 ## Running $as_me. ##
17996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18000 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18003 # The HP-UX ksh and POSIX shell print the target directory to stdout
18004 # if CDPATH is set.
18005 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18007 sed_quote_subst='$sed_quote_subst'
18008 double_quote_subst='$double_quote_subst'
18009 delay_variable_subst='$delay_variable_subst'
18010 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18011 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18012 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18013 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18014 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18015 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18016 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18017 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18018 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18019 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18020 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18021 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18022 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18023 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18024 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18025 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18026 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18027 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18028 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18029 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18030 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18031 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18032 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18033 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18034 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18035 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18036 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18037 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18038 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18039 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18040 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18041 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18042 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18043 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18044 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18045 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18046 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18047 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18048 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18049 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18050 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18051 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18052 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18053 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18054 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18055 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18056 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18057 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18058 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18059 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18060 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18061 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18062 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18063 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18064 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18065 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18066 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"`'
18067 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18068 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18069 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18070 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18071 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18072 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18073 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18074 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18075 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18076 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18077 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18078 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18079 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18080 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18081 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18082 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18083 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18084 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18085 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18086 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18087 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18088 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18089 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18090 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18091 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18092 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18093 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18094 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18095 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18096 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18097 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18098 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18099 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18100 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18101 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18102 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18103 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18104 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18105 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18106 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18107 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18108 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18109 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18110 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18111 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18112 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18113 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18114 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18115 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18116 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18117 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18118 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18119 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18120 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18121 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18122 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18123 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18124 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18125 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18126 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18127 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18128 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18129 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18130 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18131 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18132 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18133 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18134 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18135 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18136 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18137 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18138 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18139 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18140 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18141 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18142 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18143 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18144 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18145 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18146 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18147 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18148 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18149 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18150 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18151 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18152 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18153 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18154 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18155 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18156 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18157 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18158 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18159 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18160 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18161 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18162 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18163 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18164 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18165 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18166 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18167 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18168 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18169 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18170 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18171 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18172 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18173 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18174 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18175 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18176 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18177 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18178 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18179 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18180 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18181 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18182 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18183 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18184 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18185 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18186 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18187 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18188 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18189 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18190 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18191 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18192 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18193 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18196 LTCFLAGS='$LTCFLAGS'
18197 compiler='$compiler_DEFAULT'
18199 # A function that is used when there is no print builtin or printf.
18200 func_fallback_echo ()
18202 eval 'cat <<_LTECHO_EOF
18207 # Quote evaled strings.
18222 deplibs_check_method \
18227 sharedlib_from_linklib_cmd \
18230 archiver_list_spec \
18236 lt_cv_sys_global_symbol_pipe \
18237 lt_cv_sys_global_symbol_to_cdecl \
18238 lt_cv_sys_global_symbol_to_c_name_address \
18239 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18240 nm_file_list_spec \
18241 lt_prog_compiler_no_builtin_flag \
18242 lt_prog_compiler_pic \
18243 lt_prog_compiler_wl \
18244 lt_prog_compiler_static \
18245 lt_cv_prog_compiler_c_o \
18254 export_dynamic_flag_spec \
18255 whole_archive_flag_spec \
18256 compiler_needs_object \
18258 allow_undefined_flag \
18259 no_undefined_flag \
18260 hardcode_libdir_flag_spec \
18261 hardcode_libdir_separator \
18265 variables_saved_for_relink \
18267 library_names_spec \
18269 install_override_mode \
18273 compiler_lib_search_dirs \
18278 compiler_lib_search_path \
18282 lt_prog_compiler_no_builtin_flag_CXX \
18283 lt_prog_compiler_pic_CXX \
18284 lt_prog_compiler_wl_CXX \
18285 lt_prog_compiler_static_CXX \
18286 lt_cv_prog_compiler_c_o_CXX \
18287 export_dynamic_flag_spec_CXX \
18288 whole_archive_flag_spec_CXX \
18289 compiler_needs_object_CXX \
18291 allow_undefined_flag_CXX \
18292 no_undefined_flag_CXX \
18293 hardcode_libdir_flag_spec_CXX \
18294 hardcode_libdir_separator_CXX \
18295 exclude_expsyms_CXX \
18296 include_expsyms_CXX \
18297 file_list_spec_CXX \
18298 compiler_lib_search_dirs_CXX \
18299 predep_objects_CXX \
18300 postdep_objects_CXX \
18303 compiler_lib_search_path_CXX; do
18304 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18305 *[\\\\\\\`\\"\\\$]*)
18306 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18309 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18314 # Double-quote double-evaled strings.
18315 for var in reload_cmds \
18316 old_postinstall_cmds \
18317 old_postuninstall_cmds \
18319 extract_expsyms_cmds \
18320 old_archive_from_new_cmds \
18321 old_archive_from_expsyms_cmds \
18323 archive_expsym_cmds \
18325 module_expsym_cmds \
18326 export_symbols_cmds \
18330 postuninstall_cmds \
18332 sys_lib_search_path_spec \
18333 sys_lib_dlsearch_path_spec \
18335 old_archive_cmds_CXX \
18336 old_archive_from_new_cmds_CXX \
18337 old_archive_from_expsyms_cmds_CXX \
18339 archive_expsym_cmds_CXX \
18341 module_expsym_cmds_CXX \
18342 export_symbols_cmds_CXX \
18344 postlink_cmds_CXX; do
18345 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18346 *[\\\\\\\`\\"\\\$]*)
18347 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18350 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18355 ac_aux_dir='$ac_aux_dir'
18356 xsi_shell='$xsi_shell'
18357 lt_shell_append='$lt_shell_append'
18359 # See if we are running on zsh, and set the options which allow our
18360 # commands through without removal of \ escapes INIT.
18361 if test -n "\${ZSH_VERSION+set}" ; then
18362 setopt NO_GLOB_SUBST
18368 TIMESTAMP='$TIMESTAMP'
18379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18381 # Handling of arguments.
18382 for ac_config_target in $ac_config_targets
18384 case $ac_config_target in
18385 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18386 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18387 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18388 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18389 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
18390 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
18391 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
18392 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
18393 "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
18395 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18400 # If the user did not use the arguments to specify the items to instantiate,
18401 # then the envvar interface is used. Set only those that are not.
18402 # We use the long form for the default assignment because of an extremely
18403 # bizarre bug on SunOS 4.1.3.
18404 if $ac_need_defaults; then
18405 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18406 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18407 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18410 # Have a temporary directory for convenience. Make it in the build tree
18411 # simply because there is no reason against having it here, and in addition,
18412 # creating and moving files from /tmp can sometimes cause problems.
18413 # Hook for its removal unless debugging.
18414 # Note that there is a small window in which the directory will not be cleaned:
18415 # after its creation but before its name has been assigned to `$tmp'.
18419 trap 'exit_status=$?
18420 : "${ac_tmp:=$tmp}"
18421 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18423 trap 'as_fn_exit 1' 1 2 13 15
18425 # Create a (secure) tmp directory for tmp files.
18428 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18432 tmp=./conf$$-$RANDOM
18433 (umask 077 && mkdir "$tmp")
18434 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18437 # Set up the scripts for CONFIG_FILES section.
18438 # No need to generate them if there are no CONFIG_FILES.
18439 # This happens for instance with `./config.status config.h'.
18440 if test -n "$CONFIG_FILES"; then
18443 ac_cr=`echo X | tr X '\015'`
18444 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18445 # But we know of no other shell where ac_cr would be empty at this
18446 # point, so we can use a bashism as a fallback.
18447 if test "x$ac_cr" = x; then
18448 eval ac_cr=\$\'\\r\'
18450 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18451 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18454 ac_cs_awk_cr=$ac_cr
18457 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18462 echo "cat >conf$$subs.awk <<_ACEOF" &&
18463 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18465 } >conf$$subs.sh ||
18466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18467 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18469 for ac_last_try in false false false false false :; do
18470 . ./conf$$subs.sh ||
18471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18473 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18474 if test $ac_delim_n = $ac_delim_num; then
18476 elif $ac_last_try; then
18477 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18482 rm -f conf$$subs.sh
18484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18485 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18489 s/^/S["/; s/!.*/"]=/
18499 s/\(.\{148\}\)..*/\1/
18501 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18506 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18513 s/\(.\{148\}\)..*/\1/
18515 s/["\\]/\\&/g; s/^/"/; s/$/"/
18519 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18524 ' <conf$$subs.awk | sed '
18529 ' >>$CONFIG_STATUS || ac_write_fail=1
18530 rm -f conf$$subs.awk
18531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18533 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18534 for (key in S) S_is_set[key] = 1
18540 nfields = split(line, field, "@")
18542 len = length(field[1])
18543 for (i = 2; i < nfields; i++) {
18545 keylen = length(key)
18546 if (S_is_set[key]) {
18548 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18549 len += length(value) + length(field[++i])
18560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18561 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18562 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18565 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18566 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18569 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18570 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18571 # trailing colons and then remove the whole line if VPATH becomes empty
18572 # (actually we leave an empty line to preserve line numbers).
18573 if test "x$srcdir" = x.; then
18574 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18593 fi # test -n "$CONFIG_FILES"
18595 # Set up the scripts for CONFIG_HEADERS section.
18596 # No need to generate them if there are no CONFIG_HEADERS.
18597 # This happens for instance with `./config.status Makefile'.
18598 if test -n "$CONFIG_HEADERS"; then
18599 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18603 # Transform confdefs.h into an awk script `defines.awk', embedded as
18604 # here-document in config.status, that substitutes the proper values into
18605 # config.h.in to produce config.h.
18607 # Create a delimiter string that does not exist in confdefs.h, to ease
18608 # handling of long lines.
18610 for ac_last_try in false false :; do
18611 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18612 if test -z "$ac_tt"; then
18614 elif $ac_last_try; then
18615 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18621 # For the awk script, D is an array of macro values keyed by name,
18622 # likewise P contains macro parameters if any. Preserve backslash
18623 # newline sequences.
18625 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18627 s/.\{148\}/&'"$ac_delim"'/g
18630 s/^[ ]*#[ ]*define[ ][ ]*/ /
18637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18639 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18643 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18644 D["\1"]=" \3\\\\\\n"\\/p
18646 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18651 s/.\{148\}/&'"$ac_delim"'/g
18656 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18659 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18661 ' <confdefs.h | sed '
18662 s/'"$ac_delim"'/"\\\
18663 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18666 for (key in D) D_is_set[key] = 1
18669 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18671 split(line, arg, " ")
18672 if (arg[1] == "#") {
18676 defundef = substr(arg[1], 2)
18679 split(mac1, mac2, "(") #)
18681 prefix = substr(line, 1, index(line, defundef) - 1)
18682 if (D_is_set[macro]) {
18683 # Preserve the white space surrounding the "#".
18684 print prefix "define", macro P[macro] D[macro]
18687 # Replace #undef with comments. This is necessary, for example,
18688 # in the case of _POSIX_SOURCE, which is predefined and required
18689 # on some systems where configure will not decide to define it.
18690 if (defundef == "undef") {
18691 print "/*", prefix defundef, macro, "*/"
18699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18700 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18701 fi # test -n "$CONFIG_HEADERS"
18704 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18709 :[FHLC]) ac_mode=$ac_tag; continue;;
18711 case $ac_mode$ac_tag in
18713 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18714 :[FH]-) ac_tag=-:-;;
18715 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18732 -) ac_f="$ac_tmp/stdin";;
18733 *) # Look for the file first in the build tree, then in the source tree
18734 # (if the path is not absolute). The absolute path cannot be DOS-style,
18735 # because $ac_f cannot contain `:'.
18739 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18741 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18743 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18744 as_fn_append ac_file_inputs " '$ac_f'"
18747 # Let's still pretend it is `configure' which instantiates (i.e., don't
18748 # use $as_me), people would be surprised to read:
18749 # /* config.h. Generated by config.status. */
18750 configure_input='Generated from '`
18751 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18753 if test x"$ac_file" != x-; then
18754 configure_input="$ac_file. $configure_input"
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18756 $as_echo "$as_me: creating $ac_file" >&6;}
18758 # Neutralize special characters interpreted by sed in replacement strings.
18759 case $configure_input in #(
18760 *\&* | *\|* | *\\* )
18761 ac_sed_conf_input=`$as_echo "$configure_input" |
18762 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18763 *) ac_sed_conf_input=$configure_input;;
18767 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18773 ac_dir=`$as_dirname -- "$ac_file" ||
18774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18775 X"$ac_file" : 'X\(//\)[^/]' \| \
18776 X"$ac_file" : 'X\(//\)$' \| \
18777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18778 $as_echo X"$ac_file" |
18779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18783 /^X\(\/\/\)[^/].*/{
18796 as_dir="$ac_dir"; as_fn_mkdir_p
18800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18803 # A ".." for each directory in $ac_dir_suffix.
18804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18805 case $ac_top_builddir_sub in
18806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18810 ac_abs_top_builddir=$ac_pwd
18811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18812 # for backward compatibility:
18813 ac_top_builddir=$ac_top_build_prefix
18816 .) # We are building in place.
18818 ac_top_srcdir=$ac_top_builddir_sub
18819 ac_abs_top_srcdir=$ac_pwd ;;
18820 [\\/]* | ?:[\\/]* ) # Absolute name.
18821 ac_srcdir=$srcdir$ac_dir_suffix;
18822 ac_top_srcdir=$srcdir
18823 ac_abs_top_srcdir=$srcdir ;;
18824 *) # Relative name.
18825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18826 ac_top_srcdir=$ac_top_build_prefix$srcdir
18827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18842 ac_MKDIR_P=$MKDIR_P
18844 [\\/$]* | ?:[\\/]* ) ;;
18845 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18850 # If the template does not know about datarootdir, expand it.
18851 # FIXME: This hack should be removed a few years after 2.60.
18852 ac_datarootdir_hack=; ac_datarootdir_seen=
18863 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18864 *datarootdir*) ac_datarootdir_seen=yes;;
18865 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18867 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18870 ac_datarootdir_hack='
18871 s&@datadir@&$datadir&g
18872 s&@docdir@&$docdir&g
18873 s&@infodir@&$infodir&g
18874 s&@localedir@&$localedir&g
18875 s&@mandir@&$mandir&g
18876 s&\\\${datarootdir}&$datarootdir&g' ;;
18880 # Neutralize VPATH when `$srcdir' = `.'.
18881 # Shell code in configure.ac might set extrasub.
18882 # FIXME: do we really want to maintain this feature?
18883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18884 ac_sed_extra="$ac_vpsub
18887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18890 s|@configure_input@|$ac_sed_conf_input|;t t
18891 s&@top_builddir@&$ac_top_builddir_sub&;t t
18892 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18893 s&@srcdir@&$ac_srcdir&;t t
18894 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18895 s&@top_srcdir@&$ac_top_srcdir&;t t
18896 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18897 s&@builddir@&$ac_builddir&;t t
18898 s&@abs_builddir@&$ac_abs_builddir&;t t
18899 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18900 s&@INSTALL@&$ac_INSTALL&;t t
18901 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18902 $ac_datarootdir_hack
18904 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18905 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18907 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18908 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18909 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18910 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18912 which seems to be undefined. Please make sure it is defined" >&5
18913 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18914 which seems to be undefined. Please make sure it is defined" >&2;}
18916 rm -f "$ac_tmp/stdin"
18918 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18919 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18927 if test x"$ac_file" != x-; then
18929 $as_echo "/* $configure_input */" \
18930 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18931 } >"$ac_tmp/config.h" \
18932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18933 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18935 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18938 mv "$ac_tmp/config.h" "$ac_file" \
18939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18942 $as_echo "/* $configure_input */" \
18943 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18944 || as_fn_error $? "could not create -" "$LINENO" 5
18946 # Compute "$ac_file"'s index in $config_headers.
18949 for _am_header in $config_headers :; do
18950 case $_am_header in
18951 $_am_arg | $_am_arg:* )
18954 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18957 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18958 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18959 X"$_am_arg" : 'X\(//\)[^/]' \| \
18960 X"$_am_arg" : 'X\(//\)$' \| \
18961 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18962 $as_echo X"$_am_arg" |
18963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18967 /^X\(\/\/\)[^/].*/{
18979 s/.*/./; q'`/stamp-h$_am_stamp_count
18982 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18983 $as_echo "$as_me: executing $ac_file commands" >&6;}
18988 case $ac_file$ac_mode in
18989 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18990 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18991 # are listed without --file. Let's play safe and only enable the eval
18992 # if we detect the quoting.
18993 case $CONFIG_FILES in
18994 *\'*) eval set x "$CONFIG_FILES" ;;
18995 *) set x $CONFIG_FILES ;;
19000 # Strip MF so we end up with the name of the file.
19001 mf=`echo "$mf" | sed -e 's/:.*$//'`
19002 # Check whether this is an Automake generated Makefile or not.
19003 # We used to match only the files named `Makefile.in', but
19004 # some people rename them; so instead we look at the file content.
19005 # Grep'ing the first line is not enough: some people post-process
19006 # each Makefile.in and add a new line on top of each file to say so.
19007 # Grep'ing the whole file is not good either: AIX grep has a line
19008 # limit of 2048, but all sed's we know have understand at least 4000.
19009 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19010 dirpart=`$as_dirname -- "$mf" ||
19011 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19012 X"$mf" : 'X\(//\)[^/]' \| \
19013 X"$mf" : 'X\(//\)$' \| \
19014 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19020 /^X\(\/\/\)[^/].*/{
19036 # Extract the definition of DEPDIR, am__include, and am__quote
19037 # from the Makefile without running `make'.
19038 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19039 test -z "$DEPDIR" && continue
19040 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19041 test -z "am__include" && continue
19042 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19043 # When using ansi2knr, U may be empty or an underscore; expand it
19044 U=`sed -n 's/^U = //p' < "$mf"`
19045 # Find all dependency output files, they are included files with
19046 # $(DEPDIR) in their names. We invoke sed twice because it is the
19047 # simplest approach to changing $(DEPDIR) to its actual value in the
19049 for file in `sed -n "
19050 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19051 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19052 # Make sure the directory exists.
19053 test -f "$dirpart/$file" && continue
19054 fdir=`$as_dirname -- "$file" ||
19055 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19056 X"$file" : 'X\(//\)[^/]' \| \
19057 X"$file" : 'X\(//\)$' \| \
19058 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19059 $as_echo X"$file" |
19060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19064 /^X\(\/\/\)[^/].*/{
19077 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19078 # echo "creating $dirpart/$file"
19079 echo '# dummy' > "$dirpart/$file"
19086 # See if we are running on zsh, and set the options which allow our
19087 # commands through without removal of \ escapes.
19088 if test -n "${ZSH_VERSION+set}" ; then
19089 setopt NO_GLOB_SUBST
19092 cfgfile="${ofile}T"
19093 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19096 cat <<_LT_EOF >> "$cfgfile"
19099 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19100 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19102 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19104 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19105 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19107 # Written by Gordon Matzigkeit, 1996
19109 # This file is part of GNU Libtool.
19111 # GNU Libtool is free software; you can redistribute it and/or
19112 # modify it under the terms of the GNU General Public License as
19113 # published by the Free Software Foundation; either version 2 of
19114 # the License, or (at your option) any later version.
19116 # As a special exception to the GNU General Public License,
19117 # if you distribute this file as part of a program or library that
19118 # is built using GNU Libtool, you may include this file under the
19119 # same distribution terms that you use for the rest of that program.
19121 # GNU Libtool is distributed in the hope that it will be useful,
19122 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19123 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19124 # GNU General Public License for more details.
19126 # You should have received a copy of the GNU General Public License
19127 # along with GNU Libtool; see the file COPYING. If not, a copy
19128 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19129 # obtained by writing to the Free Software Foundation, Inc.,
19130 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19133 # The names of the tagged configurations supported by this script.
19134 available_tags="CXX "
19136 # ### BEGIN LIBTOOL CONFIG
19138 # Which release of libtool.m4 was used?
19139 macro_version=$macro_version
19140 macro_revision=$macro_revision
19142 # Whether or not to build shared libraries.
19143 build_libtool_libs=$enable_shared
19145 # Whether or not to build static libraries.
19146 build_old_libs=$enable_static
19148 # What type of objects to build.
19151 # Whether or not to optimize for fast installation.
19152 fast_install=$enable_fast_install
19154 # Shell to use when invoking shell scripts.
19157 # An echo program that protects backslashes.
19160 # The PATH separator for the build system.
19161 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19164 host_alias=$host_alias
19168 # The build system.
19169 build_alias=$build_alias
19173 # A sed program that does not truncate output.
19176 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19177 Xsed="\$SED -e 1s/^X//"
19179 # A grep program that handles long lines.
19185 # A literal string matcher.
19188 # A BSD- or MS-compatible name lister.
19191 # Whether we need soft or hard links.
19194 # What is the maximum length of a command?
19195 max_cmd_len=$max_cmd_len
19197 # Object file suffix (normally "o").
19200 # Executable file suffix (normally "").
19203 # whether the shell understands "unset".
19206 # turn spaces into newlines.
19209 # turn newlines into spaces.
19212 # convert \$build file names to \$host format.
19213 to_host_file_cmd=$lt_cv_to_host_file_cmd
19215 # convert \$build files to toolchain format.
19216 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19218 # An object symbol dumper.
19219 OBJDUMP=$lt_OBJDUMP
19221 # Method to check whether dependent libraries are shared objects.
19222 deplibs_check_method=$lt_deplibs_check_method
19224 # Command to use when deplibs_check_method = "file_magic".
19225 file_magic_cmd=$lt_file_magic_cmd
19227 # How to find potential files when deplibs_check_method = "file_magic".
19228 file_magic_glob=$lt_file_magic_glob
19230 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19231 want_nocaseglob=$lt_want_nocaseglob
19233 # DLL creation program.
19234 DLLTOOL=$lt_DLLTOOL
19236 # Command to associate shared and link libraries.
19237 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19242 # Flags to create an archive.
19243 AR_FLAGS=$lt_AR_FLAGS
19245 # How to feed a file listing to the archiver.
19246 archiver_list_spec=$lt_archiver_list_spec
19248 # A symbol stripping program.
19251 # Commands used to install an old-style archive.
19253 old_postinstall_cmds=$lt_old_postinstall_cmds
19254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19256 # Whether to use a lock for old archive extraction.
19257 lock_old_archive_extraction=$lock_old_archive_extraction
19262 # LTCC compiler flags.
19263 LTCFLAGS=$lt_CFLAGS
19265 # Take the output of nm and produce a listing of raw symbols and C names.
19266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19268 # Transform the output of nm in a proper C declaration.
19269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19271 # Transform the output of nm in a C name address pair.
19272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19274 # Transform the output of nm in a C name address pair when lib prefix is needed.
19275 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19277 # Specify filename containing input files for \$NM.
19278 nm_file_list_spec=$lt_nm_file_list_spec
19280 # The root where to search for dependent libraries,and in which our libraries should be installed.
19281 lt_sysroot=$lt_sysroot
19283 # The name of the directory that contains temporary libtool files.
19286 # Used to examine libraries when file_magic_cmd begins with "file".
19287 MAGIC_CMD=$MAGIC_CMD
19289 # Must we lock files when doing compilation?
19290 need_locks=$lt_need_locks
19293 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19295 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19296 DSYMUTIL=$lt_DSYMUTIL
19298 # Tool to change global to local symbols on Mac OS X.
19301 # Tool to manipulate fat objects and archives on Mac OS X.
19304 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19307 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19308 OTOOL64=$lt_OTOOL64
19310 # Old archive suffix (normally "a").
19313 # Shared library suffix (normally ".so").
19314 shrext_cmds=$lt_shrext_cmds
19316 # The commands to extract the exported symbol list from a shared archive.
19317 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19319 # Variables whose values should be saved in libtool wrapper scripts and
19320 # restored at link time.
19321 variables_saved_for_relink=$lt_variables_saved_for_relink
19323 # Do we need the "lib" prefix for modules?
19324 need_lib_prefix=$need_lib_prefix
19326 # Do we need a version for libraries?
19327 need_version=$need_version
19329 # Library versioning type.
19330 version_type=$version_type
19332 # Shared library runtime path variable.
19333 runpath_var=$runpath_var
19335 # Shared library path variable.
19336 shlibpath_var=$shlibpath_var
19338 # Is shlibpath searched before the hard-coded library search path?
19339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19341 # Format of library name prefix.
19342 libname_spec=$lt_libname_spec
19344 # List of archive names. First name is the real one, the rest are links.
19345 # The last name is the one that the linker finds with -lNAME
19346 library_names_spec=$lt_library_names_spec
19348 # The coded name of the library, if different from the real name.
19349 soname_spec=$lt_soname_spec
19351 # Permission mode override for installation of shared libraries.
19352 install_override_mode=$lt_install_override_mode
19354 # Command to use after installation of a shared archive.
19355 postinstall_cmds=$lt_postinstall_cmds
19357 # Command to use after uninstallation of a shared archive.
19358 postuninstall_cmds=$lt_postuninstall_cmds
19360 # Commands used to finish a libtool library installation in a directory.
19361 finish_cmds=$lt_finish_cmds
19363 # As "finish_cmds", except a single script fragment to be evaled but
19365 finish_eval=$lt_finish_eval
19367 # Whether we should hardcode library paths into libraries.
19368 hardcode_into_libs=$hardcode_into_libs
19370 # Compile-time system search path for libraries.
19371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19373 # Run-time system search path for libraries.
19374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19376 # Whether dlopen is supported.
19377 dlopen_support=$enable_dlopen
19379 # Whether dlopen of programs is supported.
19380 dlopen_self=$enable_dlopen_self
19382 # Whether dlopen of statically linked programs is supported.
19383 dlopen_self_static=$enable_dlopen_self_static
19385 # Commands to strip libraries.
19386 old_striplib=$lt_old_striplib
19387 striplib=$lt_striplib
19390 # The linker used to build libraries.
19393 # How to create reloadable object files.
19394 reload_flag=$lt_reload_flag
19395 reload_cmds=$lt_reload_cmds
19397 # Commands used to build an old-style archive.
19398 old_archive_cmds=$lt_old_archive_cmds
19400 # A language specific compiler.
19403 # Is the compiler the GNU compiler?
19406 # Compiler flag to turn off builtin functions.
19407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19409 # Additional compiler flags for building library objects.
19410 pic_flag=$lt_lt_prog_compiler_pic
19412 # How to pass a linker flag through the compiler.
19413 wl=$lt_lt_prog_compiler_wl
19415 # Compiler flag to prevent dynamic linking.
19416 link_static_flag=$lt_lt_prog_compiler_static
19418 # Does compiler simultaneously support -c and -o options?
19419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19421 # Whether or not to add -lc for building shared libraries.
19422 build_libtool_need_lc=$archive_cmds_need_lc
19424 # Whether or not to disallow shared libs when runtime libs are static.
19425 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19427 # Compiler flag to allow reflexive dlopens.
19428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19430 # Compiler flag to generate shared objects directly from archives.
19431 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19433 # Whether the compiler copes with passing no objects directly.
19434 compiler_needs_object=$lt_compiler_needs_object
19436 # Create an old-style archive from a shared archive.
19437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19439 # Create a temporary old-style archive to link instead of a shared archive.
19440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19442 # Commands used to build a shared archive.
19443 archive_cmds=$lt_archive_cmds
19444 archive_expsym_cmds=$lt_archive_expsym_cmds
19446 # Commands used to build a loadable module if different from building
19447 # a shared archive.
19448 module_cmds=$lt_module_cmds
19449 module_expsym_cmds=$lt_module_expsym_cmds
19451 # Whether we are building with GNU ld or not.
19452 with_gnu_ld=$lt_with_gnu_ld
19454 # Flag that allows shared libraries with undefined symbols to be built.
19455 allow_undefined_flag=$lt_allow_undefined_flag
19457 # Flag that enforces no undefined symbols.
19458 no_undefined_flag=$lt_no_undefined_flag
19460 # Flag to hardcode \$libdir into a binary during linking.
19461 # This must work even if \$libdir does not exist
19462 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19464 # Whether we need a single "-rpath" flag with a separated argument.
19465 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19467 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19468 # DIR into the resulting binary.
19469 hardcode_direct=$hardcode_direct
19471 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19472 # DIR into the resulting binary and the resulting library dependency is
19473 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19474 # library is relocated.
19475 hardcode_direct_absolute=$hardcode_direct_absolute
19477 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19478 # into the resulting binary.
19479 hardcode_minus_L=$hardcode_minus_L
19481 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19482 # into the resulting binary.
19483 hardcode_shlibpath_var=$hardcode_shlibpath_var
19485 # Set to "yes" if building a shared library automatically hardcodes DIR
19486 # into the library and all subsequent libraries and executables linked
19488 hardcode_automatic=$hardcode_automatic
19490 # Set to yes if linker adds runtime paths of dependent libraries
19491 # to runtime path list.
19492 inherit_rpath=$inherit_rpath
19494 # Whether libtool must link a program against all its dependency libraries.
19495 link_all_deplibs=$link_all_deplibs
19497 # Set to "yes" if exported symbols are required.
19498 always_export_symbols=$always_export_symbols
19500 # The commands to list exported symbols.
19501 export_symbols_cmds=$lt_export_symbols_cmds
19503 # Symbols that should not be listed in the preloaded symbols.
19504 exclude_expsyms=$lt_exclude_expsyms
19506 # Symbols that must always be exported.
19507 include_expsyms=$lt_include_expsyms
19509 # Commands necessary for linking programs (against libraries) with templates.
19510 prelink_cmds=$lt_prelink_cmds
19512 # Commands necessary for finishing linking programs.
19513 postlink_cmds=$lt_postlink_cmds
19515 # Specify filename containing input files.
19516 file_list_spec=$lt_file_list_spec
19518 # How to hardcode a shared library path into an executable.
19519 hardcode_action=$hardcode_action
19521 # The directories searched by this compiler when creating a shared library.
19522 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19524 # Dependencies to place before and after the objects being linked to
19525 # create a shared library.
19526 predep_objects=$lt_predep_objects
19527 postdep_objects=$lt_postdep_objects
19528 predeps=$lt_predeps
19529 postdeps=$lt_postdeps
19531 # The library search path used internally by the compiler when linking
19532 # a shared library.
19533 compiler_lib_search_path=$lt_compiler_lib_search_path
19535 # ### END LIBTOOL CONFIG
19541 cat <<\_LT_EOF >> "$cfgfile"
19542 # AIX sometimes has problems with the GCC collect2 program. For some
19543 # reason, if we set the COLLECT_NAMES environment variable, the problems
19544 # vanish in a puff of smoke.
19545 if test "X${COLLECT_NAMES+set}" != Xset; then
19547 export COLLECT_NAMES
19554 ltmain="$ac_aux_dir/ltmain.sh"
19557 # We use sed instead of cat because bash on DJGPP gets confused if
19558 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19559 # text mode, it properly converts lines to CR/LF. This bash problem
19560 # is reportedly fixed, but why not run on old versions too?
19561 sed '$q' "$ltmain" >> "$cfgfile" \
19562 || (rm -f "$cfgfile"; exit 1)
19564 if test x"$xsi_shell" = xyes; then
19565 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19569 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19570 \ * ) func_dirname_result="${3}" ;;\
19572 } # Extended-shell func_dirname 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_basename ()$/,/^} # func_basename /c\
19581 \ func_basename_result="${1##*/}"\
19582 } # Extended-shell func_basename 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_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19589 func_dirname_and_basename ()\
19592 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19593 \ * ) func_dirname_result="${3}" ;;\
19595 \ func_basename_result="${1##*/}"\
19596 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19597 && mv -f "$cfgfile.tmp" "$cfgfile" \
19598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19599 test 0 -eq $? || _lt_function_replace_fail=:
19602 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19605 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19606 \ # positional parameters, so assign one to ordinary parameter first.\
19607 \ func_stripname_result=${3}\
19608 \ func_stripname_result=${func_stripname_result#"${1}"}\
19609 \ func_stripname_result=${func_stripname_result%"${2}"}\
19610 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19611 && mv -f "$cfgfile.tmp" "$cfgfile" \
19612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19613 test 0 -eq $? || _lt_function_replace_fail=:
19616 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19617 func_split_long_opt ()\
19619 \ func_split_long_opt_name=${1%%=*}\
19620 \ func_split_long_opt_arg=${1#*=}\
19621 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19622 && mv -f "$cfgfile.tmp" "$cfgfile" \
19623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19624 test 0 -eq $? || _lt_function_replace_fail=:
19627 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19628 func_split_short_opt ()\
19630 \ func_split_short_opt_arg=${1#??}\
19631 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19632 } # Extended-shell func_split_short_opt implementation' "$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=:
19638 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19642 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19643 \ *) func_lo2o_result=${1} ;;\
19645 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19646 && mv -f "$cfgfile.tmp" "$cfgfile" \
19647 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19648 test 0 -eq $? || _lt_function_replace_fail=:
19651 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19654 func_xform_result=${1%.*}.lo\
19655 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19656 && mv -f "$cfgfile.tmp" "$cfgfile" \
19657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19658 test 0 -eq $? || _lt_function_replace_fail=:
19661 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19664 func_arith_result=$(( $* ))\
19665 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19666 && mv -f "$cfgfile.tmp" "$cfgfile" \
19667 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19668 test 0 -eq $? || _lt_function_replace_fail=:
19671 sed -e '/^func_len ()$/,/^} # func_len /c\
19674 func_len_result=${#1}\
19675 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19676 && mv -f "$cfgfile.tmp" "$cfgfile" \
19677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19678 test 0 -eq $? || _lt_function_replace_fail=:
19682 if test x"$lt_shell_append" = xyes; then
19683 sed -e '/^func_append ()$/,/^} # func_append /c\
19686 eval "${1}+=\\${2}"\
19687 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19688 && mv -f "$cfgfile.tmp" "$cfgfile" \
19689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19690 test 0 -eq $? || _lt_function_replace_fail=:
19693 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19694 func_append_quoted ()\
19696 \ func_quote_for_eval "${2}"\
19697 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19698 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19699 && mv -f "$cfgfile.tmp" "$cfgfile" \
19700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19701 test 0 -eq $? || _lt_function_replace_fail=:
19704 # Save a `func_append' function call where possible by direct use of '+='
19705 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19706 && mv -f "$cfgfile.tmp" "$cfgfile" \
19707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19708 test 0 -eq $? || _lt_function_replace_fail=:
19710 # Save a `func_append' function call even when '+=' is not available
19711 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19712 && mv -f "$cfgfile.tmp" "$cfgfile" \
19713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19714 test 0 -eq $? || _lt_function_replace_fail=:
19717 if test x"$_lt_function_replace_fail" = x":"; then
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19719 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19723 mv -f "$cfgfile" "$ofile" ||
19724 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19728 cat <<_LT_EOF >> "$ofile"
19730 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19732 # The linker used to build libraries.
19735 # How to create reloadable object files.
19736 reload_flag=$lt_reload_flag_CXX
19737 reload_cmds=$lt_reload_cmds_CXX
19739 # Commands used to build an old-style archive.
19740 old_archive_cmds=$lt_old_archive_cmds_CXX
19742 # A language specific compiler.
19743 CC=$lt_compiler_CXX
19745 # Is the compiler the GNU compiler?
19748 # Compiler flag to turn off builtin functions.
19749 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19751 # Additional compiler flags for building library objects.
19752 pic_flag=$lt_lt_prog_compiler_pic_CXX
19754 # How to pass a linker flag through the compiler.
19755 wl=$lt_lt_prog_compiler_wl_CXX
19757 # Compiler flag to prevent dynamic linking.
19758 link_static_flag=$lt_lt_prog_compiler_static_CXX
19760 # Does compiler simultaneously support -c and -o options?
19761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19763 # Whether or not to add -lc for building shared libraries.
19764 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19766 # Whether or not to disallow shared libs when runtime libs are static.
19767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19769 # Compiler flag to allow reflexive dlopens.
19770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19772 # Compiler flag to generate shared objects directly from archives.
19773 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19775 # Whether the compiler copes with passing no objects directly.
19776 compiler_needs_object=$lt_compiler_needs_object_CXX
19778 # Create an old-style archive from a shared archive.
19779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19781 # Create a temporary old-style archive to link instead of a shared archive.
19782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19784 # Commands used to build a shared archive.
19785 archive_cmds=$lt_archive_cmds_CXX
19786 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19788 # Commands used to build a loadable module if different from building
19789 # a shared archive.
19790 module_cmds=$lt_module_cmds_CXX
19791 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19793 # Whether we are building with GNU ld or not.
19794 with_gnu_ld=$lt_with_gnu_ld_CXX
19796 # Flag that allows shared libraries with undefined symbols to be built.
19797 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19799 # Flag that enforces no undefined symbols.
19800 no_undefined_flag=$lt_no_undefined_flag_CXX
19802 # Flag to hardcode \$libdir into a binary during linking.
19803 # This must work even if \$libdir does not exist
19804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19806 # Whether we need a single "-rpath" flag with a separated argument.
19807 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19809 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19810 # DIR into the resulting binary.
19811 hardcode_direct=$hardcode_direct_CXX
19813 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19814 # DIR into the resulting binary and the resulting library dependency is
19815 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19816 # library is relocated.
19817 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19819 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19820 # into the resulting binary.
19821 hardcode_minus_L=$hardcode_minus_L_CXX
19823 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19824 # into the resulting binary.
19825 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19827 # Set to "yes" if building a shared library automatically hardcodes DIR
19828 # into the library and all subsequent libraries and executables linked
19830 hardcode_automatic=$hardcode_automatic_CXX
19832 # Set to yes if linker adds runtime paths of dependent libraries
19833 # to runtime path list.
19834 inherit_rpath=$inherit_rpath_CXX
19836 # Whether libtool must link a program against all its dependency libraries.
19837 link_all_deplibs=$link_all_deplibs_CXX
19839 # Set to "yes" if exported symbols are required.
19840 always_export_symbols=$always_export_symbols_CXX
19842 # The commands to list exported symbols.
19843 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19845 # Symbols that should not be listed in the preloaded symbols.
19846 exclude_expsyms=$lt_exclude_expsyms_CXX
19848 # Symbols that must always be exported.
19849 include_expsyms=$lt_include_expsyms_CXX
19851 # Commands necessary for linking programs (against libraries) with templates.
19852 prelink_cmds=$lt_prelink_cmds_CXX
19854 # Commands necessary for finishing linking programs.
19855 postlink_cmds=$lt_postlink_cmds_CXX
19857 # Specify filename containing input files.
19858 file_list_spec=$lt_file_list_spec_CXX
19860 # How to hardcode a shared library path into an executable.
19861 hardcode_action=$hardcode_action_CXX
19863 # The directories searched by this compiler when creating a shared library.
19864 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19866 # Dependencies to place before and after the objects being linked to
19867 # create a shared library.
19868 predep_objects=$lt_predep_objects_CXX
19869 postdep_objects=$lt_postdep_objects_CXX
19870 predeps=$lt_predeps_CXX
19871 postdeps=$lt_postdeps_CXX
19873 # The library search path used internally by the compiler when linking
19874 # a shared library.
19875 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19877 # ### END LIBTOOL TAG CONFIG: CXX
19888 ac_clean_files=$ac_clean_files_save
19890 test $ac_write_fail = 0 ||
19891 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19894 # configure is writing to config.log, and then calls config.status.
19895 # config.status does its own redirection, appending to config.log.
19896 # Unfortunately, on DOS this fails, as config.log is still kept open
19897 # by configure, so config.status won't be able to write to it; its
19898 # output is simply discarded. So we exec the FD to /dev/null,
19899 # effectively closing config.log, so it can be properly (re)opened and
19900 # appended to by config.status. When coming back to configure, we
19901 # need to make the FD available again.
19902 if test "$no_create" != yes; then
19904 ac_config_status_args=
19905 test "$silent" = yes &&
19906 ac_config_status_args="$ac_config_status_args --quiet"
19908 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19910 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19911 # would make configure fail if this is the last instruction.
19912 $ac_cs_success || as_fn_exit 1
19914 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19916 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}