2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glog 0.3.2.
5 # Report bugs to <opensource@google.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: opensource@google.com about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
572 PACKAGE_TARNAME='glog'
573 PACKAGE_VERSION='0.3.2'
574 PACKAGE_STRING='glog 0.3.2'
575 PACKAGE_BUGREPORT='opensource@google.com'
578 ac_unique_file="README"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
630 ac_cv_have_inttypes_h
631 ac_cv_have_systypes_h
633 ac_cv_have___builtin_expect
634 ac_cv___attribute___printf_4_5
635 ac_cv___attribute___noinline
636 ac_cv___attribute___noreturn
637 ac_cv_cxx_using_operator
639 ac_google_end_namespace
640 ac_google_start_namespace
654 ENABLE_FRAME_POINTERS_FALSE
655 ENABLE_FRAME_POINTERS_TRUE
721 INSTALL_STRIP_PROGRAM
763 program_transform_name
776 enable_option_checking
777 enable_dependency_tracking
785 enable_frame_pointers
790 ac_precious_vars='build_alias
805 # Initialize some variables set by options.
807 ac_init_version=false
808 ac_unrecognized_opts=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
819 program_transform_name=s,x,x,
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 # Accept the important Cygnus configure options, so we can diagnose typos.
872 case $ac_dashdash$ac_option in
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
894 cache_file=config.cache ;;
896 -datadir | --datadir | --datadi | --datad)
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
922 eval enable_$ac_useropt=no ;;
924 -docdir | --docdir | --docdi | --doc | --do)
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
948 eval enable_$ac_useropt=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
963 -help | --help | --hel | --he | -h)
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1112 -site=* | --site=* | --sit=*)
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1152 eval with_$ac_useropt=\$ac_optarg ;;
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1168 eval with_$ac_useropt=no ;;
1171 # Obsolete; use --with-x.
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1239 # Be sure to have absolute directory names.
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1252 target=$target_alias
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1259 If a cross compiler is detected then cross compile mode will be used" >&2
1260 elif test "x$build_alias" != "x$host_alias"; then
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268 test "$silent" = yes && exec 6>/dev/null
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1311 ac_srcdir_defaulted=no
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 # Report the --help message.
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1345 \`configure' configures glog 0.3.2 to adapt to many kinds of systems.
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1352 Defaults for the options are specified in brackets.
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1376 For better control, use the options below.
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of glog 0.3.2:";;
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --disable-dependency-tracking speeds up one-time build
1424 --enable-dependency-tracking do not reject slow dependency extractors
1425 --enable-shared[=PKGS] build shared libraries [default=yes]
1426 --enable-static[=PKGS] build static libraries [default=yes]
1427 --enable-fast-install[=PKGS]
1428 optimize for fast installation [default=yes]
1429 --disable-libtool-lock avoid locking (might break parallel builds)
1430 --enable-frame-pointers On x86_64 systems, compile with
1431 -fno-omit-frame-pointer (see INSTALL)
1432 --disable-rtti Disable RTTI in glog
1433 --enable-namespace=FOO to define these Google
1434 classes in the FOO namespace. --disable-namespace
1435 to define them in the global namespace. Default
1436 is to define them in namespace google.
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-sysroot=DIR Search for dependent libraries within DIR
1445 (or the compiler's sysroot if not specified).
1446 --with-gflags=GFLAGS_DIR
1448 Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1457 CXX C++ compiler command
1458 CXXFLAGS C++ compiler flags
1459 CXXCPP C++ preprocessor
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1464 Report bugs to <opensource@google.com>.
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1494 .) # We are building in place.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1527 glog configure 0.3.2
1528 generated by GNU Autoconf 2.68
1530 Copyright (C) 2010 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1577 } # ac_fn_c_try_compile
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } > conftest.i && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1616 # ac_fn_cxx_try_compile LINENO
1617 # ----------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_cxx_try_compile ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_cxx_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1652 } # ac_fn_cxx_try_compile
1654 # ac_fn_c_try_link LINENO
1655 # -----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded.
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext conftest$ac_exeext
1661 if { { ac_try="$ac_link"
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 $as_test_x conftest$ac_exeext
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1698 } # ac_fn_c_try_link
1700 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists and can be compiled using the include files in
1703 # INCLUDES, setting the cache variable VAR accordingly.
1704 ac_fn_c_check_header_compile ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \${$3+:} false; then :
1710 $as_echo_n "(cached) " >&6
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1717 if ac_fn_c_try_compile "$LINENO"; then :
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 } # ac_fn_c_check_header_compile
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=$ac_status
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1796 # include <limits.h>
1798 # include <assert.h>
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1825 if ac_fn_c_try_link "$LINENO"; then :
1830 rm -f core conftest.err conftest.$ac_objext \
1831 conftest$ac_exeext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_func
1840 # ac_fn_cxx_try_cpp LINENO
1841 # ------------------------
1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_cpp ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_cpp conftest.$ac_ext"
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } > conftest.i && {
1862 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1863 test ! -s conftest.err
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1875 } # ac_fn_cxx_try_cpp
1877 # ac_fn_cxx_try_link LINENO
1878 # -------------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_cxx_try_link ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext conftest$ac_exeext
1884 if { { ac_try="$ac_link"
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>conftest.err
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_cxx_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest$ac_exeext && {
1903 test "$cross_compiling" = yes ||
1904 $as_test_x conftest$ac_exeext
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915 # interfere with the next link command; also delete a directory that is
1916 # left behind by Apple's compiler. We do this before executing the actions.
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1921 } # ac_fn_cxx_try_link
1923 # ac_fn_cxx_try_run LINENO
1924 # ------------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1926 # that executables *can* be run.
1927 ac_fn_cxx_try_run ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if { { ac_try="$ac_link"
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>&5
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1941 { { case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_try") 2>&5
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; }; }; then :
1953 $as_echo "$as_me: program exited with status $ac_status" >&5
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 ac_retval=$ac_status
1959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status $ac_retval
1963 } # ac_fn_cxx_try_run
1965 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1966 # ---------------------------------------------------------
1967 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968 # the include files in INCLUDES and setting the cache variable VAR
1970 ac_fn_cxx_check_header_mongrel ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if eval \${$3+:} false; then :
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 # Is the header compilable?
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985 $as_echo_n "checking $2 usability... " >&6; }
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1991 if ac_fn_cxx_try_compile "$LINENO"; then :
1992 ac_header_compiler=yes
1994 ac_header_compiler=no
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998 $as_echo "$ac_header_compiler" >&6; }
2000 # Is the header present?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002 $as_echo_n "checking $2 presence... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2007 if ac_fn_cxx_try_cpp "$LINENO"; then :
2008 ac_header_preproc=yes
2010 ac_header_preproc=no
2012 rm -f conftest.err conftest.i conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014 $as_echo "$ac_header_preproc" >&6; }
2016 # So? What about this header?
2017 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2028 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2032 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 ( $as_echo "## ------------------------------------ ##
2036 ## Report this to opensource@google.com ##
2037 ## ------------------------------------ ##"
2038 ) | sed "s/^/$as_me: WARNING: /" >&2
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval \${$3+:} false; then :
2044 $as_echo_n "(cached) " >&6
2046 eval "$3=\$ac_header_compiler"
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 } # ac_fn_cxx_check_header_mongrel
2056 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2057 # ----------------------------------------------
2058 # Tries to find the compile-time value of EXPR in a program that includes
2059 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2061 ac_fn_cxx_compute_int ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 if test "$cross_compiling" = yes; then
2065 # Depending upon the size, compute the lo and hi bounds.
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2072 static int test_array [1 - 2 * !(($2) >= 0)];
2079 if ac_fn_cxx_try_compile "$LINENO"; then :
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2088 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2096 ac_hi=$ac_mid; break
2098 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2099 if test $ac_lo -le $ac_mid; then
2103 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2114 static int test_array [1 - 2 * !(($2) < 0)];
2121 if ac_fn_cxx_try_compile "$LINENO"; then :
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2130 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2137 if ac_fn_cxx_try_compile "$LINENO"; then :
2138 ac_lo=$ac_mid; break
2140 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2141 if test $ac_mid -le $ac_hi; then
2145 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 # Binary search between lo and hi bounds.
2156 while test "x$ac_lo" != "x$ac_hi"; do
2157 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2164 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2171 if ac_fn_cxx_try_compile "$LINENO"; then :
2174 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2186 static long int longval () { return $2; }
2187 static unsigned long int ulongval () { return $2; }
2194 FILE *f = fopen ("conftest.val", "w");
2199 long int i = longval ();
2202 fprintf (f, "%ld", i);
2206 unsigned long int i = ulongval ();
2209 fprintf (f, "%lu", i);
2211 /* Do not output a trailing newline, as this causes \r\n confusion
2212 on some platforms. */
2213 return ferror (f) || fclose (f) != 0;
2219 if ac_fn_cxx_try_run "$LINENO"; then :
2220 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2225 conftest.$ac_objext conftest.beam conftest.$ac_ext
2229 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230 as_fn_set_status $ac_retval
2232 } # ac_fn_cxx_compute_int
2234 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2235 # ---------------------------------------------
2236 # Tests whether TYPE exists after having included INCLUDES, setting cache
2237 # variable VAR accordingly.
2238 ac_fn_cxx_check_type ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2259 if ac_fn_cxx_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2272 if ac_fn_cxx_try_compile "$LINENO"; then :
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 } # ac_fn_cxx_check_type
2288 # ac_fn_cxx_check_func LINENO FUNC VAR
2289 # ------------------------------------
2290 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2291 ac_fn_cxx_check_func ()
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295 $as_echo_n "checking for $2... " >&6; }
2296 if eval \${$3+:} false; then :
2297 $as_echo_n "(cached) " >&6
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2301 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2303 #define $2 innocuous_$2
2305 /* System header to define __stub macros and hopefully few prototypes,
2306 which can conflict with char $2 (); below.
2307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2308 <limits.h> exists even on freestanding compilers. */
2311 # include <limits.h>
2313 # include <assert.h>
2318 /* Override any GCC internal prototype to avoid an error.
2319 Use char because int might match the return type of a GCC
2320 builtin and then its argument prototype would still apply. */
2325 /* The GNU C library defines this for functions which it implements
2326 to always fail with ENOSYS. Some functions are actually named
2327 something starting with __ and the normal name is an alias. */
2328 #if defined __stub_$2 || defined __stub___$2
2340 if ac_fn_cxx_try_link "$LINENO"; then :
2345 rm -f core conftest.err conftest.$ac_objext \
2346 conftest$ac_exeext conftest.$ac_ext
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353 } # ac_fn_cxx_check_func
2354 cat >config.log <<_ACEOF
2355 This file contains any messages produced by compilers while
2356 running configure, to aid debugging if configure makes a mistake.
2358 It was created by glog $as_me 0.3.2, which was
2359 generated by GNU Autoconf 2.68. Invocation command line was
2371 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2372 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2373 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2374 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2375 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2377 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2378 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2380 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2381 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2382 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2383 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2384 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2385 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2386 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 $as_echo "PATH: $as_dir"
2411 # Keep a trace of the command line.
2412 # Strip out --no-create and --no-recursion so they do not pile up.
2413 # Strip out --silent because we don't want to record it for future runs.
2414 # Also quote any args containing shell meta-characters.
2415 # Make two passes to allow for proper duplicate-argument suppression.
2419 ac_must_keep_next=false
2425 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2427 | -silent | --silent | --silen | --sile | --sil)
2430 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2433 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2435 as_fn_append ac_configure_args1 " '$ac_arg'"
2436 if test $ac_must_keep_next = true; then
2437 ac_must_keep_next=false # Got value, back to normal.
2440 *=* | --config-cache | -C | -disable-* | --disable-* \
2441 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2442 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2443 | -with-* | --with-* | -without-* | --without-* | --x)
2444 case "$ac_configure_args0 " in
2445 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2448 -* ) ac_must_keep_next=true ;;
2451 as_fn_append ac_configure_args " '$ac_arg'"
2456 { ac_configure_args0=; unset ac_configure_args0;}
2457 { ac_configure_args1=; unset ac_configure_args1;}
2459 # When interrupted or exit'd, cleanup temporary files, and complete
2460 # config.log. We remove comments because anyway the quotes in there
2461 # would cause problems or look ugly.
2462 # WARNING: Use '\'' to represent an apostrophe within the trap.
2463 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2464 trap 'exit_status=$?
2465 # Save into config.log some information that might help in debugging.
2469 $as_echo "## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##"
2473 # The following way of writing the cache mishandles newlines in values,
2475 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2476 eval ac_val=\$$ac_var
2480 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2484 _ | IFS | as_nl) ;; #(
2485 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2486 *) { eval $ac_var=; unset $ac_var;} ;;
2491 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2492 *${as_nl}ac_space=\ *)
2494 "s/'\''/'\''\\\\'\'''\''/g;
2495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2505 $as_echo "## ----------------- ##
2506 ## Output variables. ##
2507 ## ----------------- ##"
2509 for ac_var in $ac_subst_vars
2511 eval ac_val=\$$ac_var
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515 $as_echo "$ac_var='\''$ac_val'\''"
2519 if test -n "$ac_subst_files"; then
2520 $as_echo "## ------------------- ##
2521 ## File substitutions. ##
2522 ## ------------------- ##"
2524 for ac_var in $ac_subst_files
2526 eval ac_val=\$$ac_var
2528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 $as_echo "$ac_var='\''$ac_val'\''"
2535 if test -s confdefs.h; then
2536 $as_echo "## ----------- ##
2543 test "$ac_signal" != 0 &&
2544 $as_echo "$as_me: caught signal $ac_signal"
2545 $as_echo "$as_me: exit $exit_status"
2547 rm -f core *.core core.conftest.* &&
2548 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2551 for ac_signal in 1 2 13 15; do
2552 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2556 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2557 rm -f -r conftest* confdefs.h
2559 $as_echo "/* confdefs.h */" > confdefs.h
2561 # Predefined preprocessor variables.
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_NAME "$PACKAGE_NAME"
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_STRING "$PACKAGE_STRING"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_URL "$PACKAGE_URL"
2588 # Let the site file select an alternate cache file if it wants to.
2589 # Prefer an explicitly selected file to automatically selected ones.
2592 if test -n "$CONFIG_SITE"; then
2593 # We do not want a PATH search for config.site.
2594 case $CONFIG_SITE in #((
2595 -*) ac_site_file1=./$CONFIG_SITE;;
2596 */*) ac_site_file1=$CONFIG_SITE;;
2597 *) ac_site_file1=./$CONFIG_SITE;;
2599 elif test "x$prefix" != xNONE; then
2600 ac_site_file1=$prefix/share/config.site
2601 ac_site_file2=$prefix/etc/config.site
2603 ac_site_file1=$ac_default_prefix/share/config.site
2604 ac_site_file2=$ac_default_prefix/etc/config.site
2606 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2608 test "x$ac_site_file" = xNONE && continue
2609 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2611 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2612 sed 's/^/| /' "$ac_site_file" >&5
2614 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 as_fn_error $? "failed to load site script $ac_site_file
2617 See \`config.log' for more details" "$LINENO" 5; }
2621 if test -r "$cache_file"; then
2622 # Some versions of bash will fail to source /dev/null (special files
2623 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2624 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2626 $as_echo "$as_me: loading cache $cache_file" >&6;}
2628 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2629 *) . "./$cache_file";;
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2634 $as_echo "$as_me: creating cache $cache_file" >&6;}
2638 # Check that the precious variables saved in the cache have kept the same
2640 ac_cache_corrupted=false
2641 for ac_var in $ac_precious_vars; do
2642 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2643 eval ac_new_set=\$ac_env_${ac_var}_set
2644 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2645 eval ac_new_val=\$ac_env_${ac_var}_value
2646 case $ac_old_set,$ac_new_set in
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2649 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2650 ac_cache_corrupted=: ;;
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2653 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2654 ac_cache_corrupted=: ;;
2657 if test "x$ac_old_val" != "x$ac_new_val"; then
2658 # differences in whitespace do not lead to failure.
2659 ac_old_val_w=`echo x $ac_old_val`
2660 ac_new_val_w=`echo x $ac_new_val`
2661 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2663 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2664 ac_cache_corrupted=:
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2667 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2668 eval $ac_var=\$ac_old_val
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2671 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2673 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2676 # Pass precious variables to config.status.
2677 if test "$ac_new_set" = set; then
2679 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2680 *) ac_arg=$ac_var=$ac_new_val ;;
2682 case " $ac_configure_args " in
2683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2684 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2688 if $ac_cache_corrupted; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2692 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2693 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2695 ## -------------------- ##
2696 ## Main body of script. ##
2697 ## -------------------- ##
2700 ac_cpp='$CPP $CPPFLAGS'
2701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706 # The argument here is just something that should be in the current directory
2707 # (for sanity checking)
2710 am__api_version='1.11'
2713 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2714 if test -f "$ac_dir/install-sh"; then
2716 ac_install_sh="$ac_aux_dir/install-sh -c"
2718 elif test -f "$ac_dir/install.sh"; then
2720 ac_install_sh="$ac_aux_dir/install.sh -c"
2722 elif test -f "$ac_dir/shtool"; then
2724 ac_install_sh="$ac_aux_dir/shtool install -c"
2728 if test -z "$ac_aux_dir"; then
2729 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2732 # These three variables are undocumented and unsupported,
2733 # and are intended to be withdrawn in a future Autoconf release.
2734 # They can cause serious problems if a builder's source tree is in a directory
2735 # whose full name contains unusual characters.
2736 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2737 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2738 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2741 # Find a good install program. We prefer a C program (faster),
2742 # so one script is as good as another. But avoid the broken or
2743 # incompatible versions:
2744 # SysV /etc/install, /usr/sbin/install
2745 # SunOS /usr/etc/install
2746 # IRIX /sbin/install
2748 # AmigaOS /C/install, which installs bootblocks on floppy discs
2749 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2750 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2751 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2752 # OS/2's system install, which has a completely different semantic
2753 # ./install, which can be erroneously created by make from ./install.sh.
2754 # Reject install programs that cannot install multiple files.
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2756 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2757 if test -z "$INSTALL"; then
2758 if ${ac_cv_path_install+:} false; then :
2759 $as_echo_n "(cached) " >&6
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 # Account for people who put trailing slashes in PATH elements.
2767 case $as_dir/ in #((
2768 ./ | .// | /[cC]/* | \
2769 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2770 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2773 # OSF1 and SCO ODT 3.0 have their own names for install.
2774 # Don't use installbsd from OSF since it installs stuff as root
2776 for ac_prog in ginstall scoinst install; do
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2779 if test $ac_prog = install &&
2780 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781 # AIX install. It has an incompatible calling convention.
2783 elif test $ac_prog = install &&
2784 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2785 # program-specific install script used by HP pwplus--don't use.
2788 rm -rf conftest.one conftest.two conftest.dir
2789 echo one > conftest.one
2790 echo two > conftest.two
2792 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2793 test -s conftest.one && test -s conftest.two &&
2794 test -s conftest.dir/conftest.one &&
2795 test -s conftest.dir/conftest.two
2797 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2810 rm -rf conftest.one conftest.two conftest.dir
2813 if test "${ac_cv_path_install+set}" = set; then
2814 INSTALL=$ac_cv_path_install
2816 # As a last resort, use the slow shell script. Don't cache a
2817 # value for INSTALL within a source directory, because that will
2818 # break other packages using the cache if that directory is
2819 # removed, or if the value is a relative name.
2820 INSTALL=$ac_install_sh
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2824 $as_echo "$INSTALL" >&6; }
2826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2827 # It thinks the first close brace ends the variable substitution.
2828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2835 $as_echo_n "checking whether build environment is sane... " >&6; }
2838 echo timestamp > conftest.file
2839 # Reject unsafe characters in $srcdir or the absolute working directory
2840 # name. Accept space and tab only in the latter.
2844 *[\\\"\#\$\&\'\`$am_lf]*)
2845 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2848 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2849 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2852 # Do `set' in a subshell so we don't clobber the current shell's
2853 # arguments. Must try -L first in case configure is actually a
2854 # symlink; some systems play weird games with the mod time of symlinks
2855 # (eg FreeBSD returns the mod time of the symlink's containing
2858 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2859 if test "$*" = "X"; then
2861 set X `ls -t "$srcdir/configure" conftest.file`
2864 if test "$*" != "X $srcdir/configure conftest.file" \
2865 && test "$*" != "X conftest.file $srcdir/configure"; then
2867 # If neither matched, then we have a broken ls. This can happen
2868 # if, for instance, CONFIG_SHELL is bash and it inherits a
2869 # broken ls alias from the environment. This has actually
2870 # happened. Such a system could not be considered "sane".
2871 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2872 alias in your environment" "$LINENO" 5
2875 test "$2" = conftest.file
2881 as_fn_error $? "newly created file is older than distributed files!
2882 Check your system clock" "$LINENO" 5
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2885 $as_echo "yes" >&6; }
2886 test "$program_prefix" != NONE &&
2887 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2888 # Use a double $ so make ignores it.
2889 test "$program_suffix" != NONE &&
2890 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2891 # Double any \ or $.
2892 # By default was `s,x,x', remove it if useless.
2893 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2894 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2896 # expand $ac_aux_dir to an absolute path
2897 am_aux_dir=`cd $ac_aux_dir && pwd`
2899 if test x"${MISSING+set}" != xset; then
2902 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2904 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2907 # Use eval to expand $SHELL
2908 if eval "$MISSING --run true"; then
2909 am_missing_run="$MISSING --run "
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2913 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2916 if test x"${install_sh}" != xset; then
2919 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2921 install_sh="\${SHELL} $am_aux_dir/install-sh"
2925 # Installed binaries are usually stripped using `strip' when the user
2926 # run `make install-strip'. However `strip' might not be the right
2927 # tool to use in cross-compilation environments, therefore Automake
2928 # will honor the `STRIP' environment variable to overrule this program.
2929 if test "$cross_compiling" != no; then
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}strip; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_STRIP+:} false; then :
2936 $as_echo_n "(cached) " >&6
2938 if test -n "$STRIP"; then
2939 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 STRIP=$ac_cv_prog_STRIP
2959 if test -n "$STRIP"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2961 $as_echo "$STRIP" >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2969 if test -z "$ac_cv_prog_STRIP"; then
2971 # Extract the first word of "strip", so it can be a program name with args.
2972 set dummy strip; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$ac_ct_STRIP"; then
2979 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_ac_ct_STRIP="strip"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2999 if test -n "$ac_ct_STRIP"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3001 $as_echo "$ac_ct_STRIP" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3007 if test "x$ac_ct_STRIP" = x; then
3010 case $cross_compiling:$ac_tool_warned in
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3019 STRIP="$ac_cv_prog_STRIP"
3023 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3026 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3027 if test -z "$MKDIR_P"; then
3028 if ${ac_cv_path_mkdir+:} false; then :
3029 $as_echo_n "(cached) " >&6
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3035 test -z "$as_dir" && as_dir=.
3036 for ac_prog in mkdir gmkdir; do
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3039 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3040 'mkdir (GNU coreutils) '* | \
3041 'mkdir (coreutils) '* | \
3042 'mkdir (fileutils) '4.1*)
3043 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3053 test -d ./--version && rmdir ./--version
3054 if test "${ac_cv_path_mkdir+set}" = set; then
3055 MKDIR_P="$ac_cv_path_mkdir -p"
3057 # As a last resort, use the slow shell script. Don't cache a
3058 # value for MKDIR_P within a source directory, because that will
3059 # break other packages using the cache if that directory is
3060 # removed, or if the value is a relative name.
3061 MKDIR_P="$ac_install_sh -d"
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3065 $as_echo "$MKDIR_P" >&6; }
3069 [\\/$]* | ?:[\\/]*) ;;
3070 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3073 for ac_prog in gawk mawk nawk awk
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_AWK+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$AWK"; then
3083 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_AWK="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 if test -n "$AWK"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3105 $as_echo "$AWK" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3112 test -n "$AWK" && break
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3116 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3118 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3119 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3120 $as_echo_n "(cached) " >&6
3122 cat >conftest.make <<\_ACEOF
3125 @echo '@@@%%%=$(MAKE)=@@@%%%'
3127 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3128 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3130 eval ac_cv_prog_make_${ac_make}_set=yes;;
3132 eval ac_cv_prog_make_${ac_make}_set=no;;
3136 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 SET_MAKE="MAKE=${MAKE-make}"
3146 rm -rf .tst 2>/dev/null
3147 mkdir .tst 2>/dev/null
3148 if test -d .tst; then
3153 rmdir .tst 2>/dev/null
3155 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3156 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3157 # is not polluted with repeated "-I."
3158 am__isrc=' -I$(srcdir)'
3159 # test to see if srcdir already configured
3160 if test -f $srcdir/config.status; then
3161 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3165 # test whether we have cygpath
3166 if test -z "$CYGPATH_W"; then
3167 if (cygpath --version) >/dev/null 2>/dev/null; then
3168 CYGPATH_W='cygpath -w'
3175 # Define the identity of the package.
3180 cat >>confdefs.h <<_ACEOF
3181 #define PACKAGE "$PACKAGE"
3185 cat >>confdefs.h <<_ACEOF
3186 #define VERSION "$VERSION"
3189 # Some tools Automake needs.
3191 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3194 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3197 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3200 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3203 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3205 # We need awk for the "check" target. The system "awk" is bad on
3207 # Always define AMTAR for backward compatibility. Yes, it's still used
3208 # in the wild :-( We should find a proper way to deprecate it ...
3211 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3217 ac_config_headers="$ac_config_headers src/config.h"
3221 ac_cpp='$CXXCPP $CPPFLAGS'
3222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3227 # Checks for programs.
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233 if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_CC+:} false; then :
3239 $as_echo_n "(cached) " >&6
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3272 if test -z "$ac_cv_prog_CC"; then
3274 # Extract the first word of "gcc", so it can be a program name with args.
3275 set dummy gcc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$ac_ct_CC"; then
3282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_ac_ct_CC="gcc"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3302 if test -n "$ac_ct_CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3304 $as_echo "$ac_ct_CC" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3310 if test "x$ac_ct_CC" = x; then
3313 case $cross_compiling:$ac_tool_warned in
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3317 ac_tool_warned=yes ;;
3325 if test -z "$CC"; then
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}cc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CC="${ac_tool_prefix}cc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3366 if test -z "$CC"; then
3367 # Extract the first word of "cc", so it can be a program name with args.
3368 set dummy cc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3386 ac_prog_rejected=yes
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 if test $ac_prog_rejected = yes; then
3398 # We found a bogon in the path, so make sure we never use it.
3399 set dummy $ac_cv_prog_CC
3401 if test $# != 0; then
3402 # We chose a different compiler from the bogus one.
3403 # However, it has the same basename, so the bogon will be chosen
3404 # first if we set CC to just the basename; use the full file name.
3406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3412 if test -n "$CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 $as_echo "$CC" >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3422 if test -z "$CC"; then
3423 if test -n "$ac_tool_prefix"; then
3424 for ac_prog in cl.exe
3426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_CC+:} false; then :
3431 $as_echo_n "(cached) " >&6
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3463 test -n "$CC" && break
3466 if test -z "$CC"; then
3468 for ac_prog in cl.exe
3470 # Extract the first word of "$ac_prog", so it can be a program name with args.
3471 set dummy $ac_prog; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3475 $as_echo_n "(cached) " >&6
3477 if test -n "$ac_ct_CC"; then
3478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487 ac_cv_prog_ac_ct_CC="$ac_prog"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3498 if test -n "$ac_ct_CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3500 $as_echo "$ac_ct_CC" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3507 test -n "$ac_ct_CC" && break
3510 if test "x$ac_ct_CC" = x; then
3513 case $cross_compiling:$ac_tool_warned in
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517 ac_tool_warned=yes ;;
3526 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error $? "no acceptable C compiler found in \$PATH
3529 See \`config.log' for more details" "$LINENO" 5; }
3531 # Provide some information about the compiler.
3532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3535 for ac_option in --version -v -V -qversion; do
3536 { { ac_try="$ac_compiler $ac_option >&5"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3545 if test -s conftest.err; then
3547 ... rest of stderr output deleted ...
3548 10q' conftest.err >conftest.er1
3549 cat conftest.er1 >&5
3551 rm -f conftest.er1 conftest.err
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3567 ac_clean_files_save=$ac_clean_files
3568 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3569 # Try to create an executable without -o first, disregard a.out.
3570 # It will help us diagnose broken compilers, and finding out an intuition
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3573 $as_echo_n "checking whether the C compiler works... " >&6; }
3574 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3576 # The possible output files:
3577 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3580 for ac_file in $ac_files
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3589 if { { ac_try="$ac_link_default"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_link_default") 2>&5
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }; then :
3600 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3601 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3602 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3603 # so that the user can short-circuit this test for compilers unknown to
3605 for ac_file in $ac_files ''
3607 test -f "$ac_file" || continue
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3612 # We found the default executable, but exeext='' is most
3616 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3618 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620 # We set ac_cv_exeext here because the later test for it is not
3621 # safe: cross compilers may not add the suffix if given an `-o'
3622 # argument, so we may need to know it at that point already.
3623 # Even if this section looks crufty: it has the advantage of
3630 test "$ac_cv_exeext" = no && ac_cv_exeext=
3635 if test -z "$ac_file"; then :
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 $as_echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error 77 "C compiler cannot create executables
3644 See \`config.log' for more details" "$LINENO" 5; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 $as_echo "yes" >&6; }
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3650 $as_echo_n "checking for C compiler default output file name... " >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3652 $as_echo "$ac_file" >&6; }
3653 ac_exeext=$ac_cv_exeext
3655 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3656 ac_clean_files=$ac_clean_files_save
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3658 $as_echo_n "checking for suffix of executables... " >&6; }
3659 if { { ac_try="$ac_link"
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_link") 2>&5
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3671 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3672 # work properly (i.e., refer to `conftest.exe'), while it won't with
3674 for ac_file in conftest.exe conftest conftest.*; do
3675 test -f "$ac_file" || continue
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3678 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3687 See \`config.log' for more details" "$LINENO" 5; }
3689 rm -f conftest conftest$ac_cv_exeext
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3691 $as_echo "$ac_cv_exeext" >&6; }
3693 rm -f conftest.$ac_ext
3694 EXEEXT=$ac_cv_exeext
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3702 FILE *f = fopen ("conftest.out", "w");
3703 return ferror (f) || fclose (f) != 0;
3709 ac_clean_files="$ac_clean_files conftest.out"
3710 # Check that the compiler produces executables we can run. If not, either
3711 # the compiler is broken, or we cross compile.
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3713 $as_echo_n "checking whether we are cross compiling... " >&6; }
3714 if test "$cross_compiling" != yes; then
3715 { { ac_try="$ac_link"
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_link") 2>&5
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }
3726 if { ac_try='./conftest$ac_cv_exeext'
3727 { { case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_try") 2>&5
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }; }; then
3739 if test "$cross_compiling" = maybe; then
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot run C compiled programs.
3745 If you meant to cross compile, use \`--host'.
3746 See \`config.log' for more details" "$LINENO" 5; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3751 $as_echo "$cross_compiling" >&6; }
3753 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3754 ac_clean_files=$ac_clean_files_save
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3756 $as_echo_n "checking for suffix of object files... " >&6; }
3757 if ${ac_cv_objext+:} false; then :
3758 $as_echo_n "(cached) " >&6
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3771 rm -f conftest.o conftest.obj
3772 if { { ac_try="$ac_compile"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_compile") 2>&5
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }; then :
3783 for ac_file in conftest.o conftest.obj conftest.*; do
3784 test -f "$ac_file" || continue;
3786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3787 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3792 $as_echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error $? "cannot compute suffix of object files: cannot compile
3798 See \`config.log' for more details" "$LINENO" 5; }
3800 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3803 $as_echo "$ac_cv_objext" >&6; }
3804 OBJEXT=$ac_cv_objext
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3807 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3808 if ${ac_cv_c_compiler_gnu+:} false; then :
3809 $as_echo_n "(cached) " >&6
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3825 if ac_fn_c_try_compile "$LINENO"; then :
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3836 if test $ac_compiler_gnu = yes; then
3841 ac_test_CFLAGS=${CFLAGS+set}
3842 ac_save_CFLAGS=$CFLAGS
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3845 if ${ac_cv_prog_cc_g+:} false; then :
3846 $as_echo_n "(cached) " >&6
3848 ac_save_c_werror_flag=$ac_c_werror_flag
3849 ac_c_werror_flag=yes
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3863 if ac_fn_c_try_compile "$LINENO"; then :
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3878 if ac_fn_c_try_compile "$LINENO"; then :
3881 ac_c_werror_flag=$ac_save_c_werror_flag
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3894 if ac_fn_c_try_compile "$LINENO"; then :
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_c_werror_flag=$ac_save_c_werror_flag
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3905 $as_echo "$ac_cv_prog_cc_g" >&6; }
3906 if test "$ac_test_CFLAGS" = set; then
3907 CFLAGS=$ac_save_CFLAGS
3908 elif test $ac_cv_prog_cc_g = yes; then
3909 if test "$GCC" = yes; then
3915 if test "$GCC" = yes; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3922 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3923 if ${ac_cv_prog_cc_c89+:} false; then :
3924 $as_echo_n "(cached) " >&6
3926 ac_cv_prog_cc_c89=no
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3932 #include <sys/types.h>
3933 #include <sys/stat.h>
3934 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3935 struct buf { int x; };
3936 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3937 static char *e (p, i)
3943 static char *f (char * (*g) (char **, int), char **p, ...)
3948 s = g (p, va_arg (v,int));
3953 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3954 function prototypes and stuff, but not '\xHH' hex character constants.
3955 These don't provoke an error unfortunately, instead are silently treated
3956 as 'x'. The following induces an error, until -std is added to get
3957 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3958 array size at least. It's necessary to write '\x00'==0 to get something
3959 that's true only with -std. */
3960 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3963 inside strings and character constants. */
3965 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3967 int test (int i, double x);
3968 struct s1 {int (*f) (int a);};
3969 struct s2 {int (*f) (double a);};
3970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3976 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3981 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3982 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3984 CC="$ac_save_CC $ac_arg"
3985 if ac_fn_c_try_compile "$LINENO"; then :
3986 ac_cv_prog_cc_c89=$ac_arg
3988 rm -f core conftest.err conftest.$ac_objext
3989 test "x$ac_cv_prog_cc_c89" != "xno" && break
3991 rm -f conftest.$ac_ext
3996 case "x$ac_cv_prog_cc_c89" in
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3999 $as_echo "none needed" >&6; } ;;
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4002 $as_echo "unsupported" >&6; } ;;
4004 CC="$CC $ac_cv_prog_cc_c89"
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4006 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4008 if test "x$ac_cv_prog_cc_c89" != xno; then :
4013 ac_cpp='$CXXCPP $CPPFLAGS'
4014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4017 DEPDIR="${am__leading_dot}deps"
4019 ac_config_commands="$ac_config_commands depfiles"
4022 am_make=${MAKE-make}
4023 cat > confinc << 'END'
4025 @echo this is the am__doit target
4028 # If we don't find an include directive, just comment out the code.
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4030 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4034 # First try GNU make style include.
4035 echo "include confinc" > confmf
4036 # Ignore all kinds of additional output from `make'.
4037 case `$am_make -s -f confmf 2> /dev/null` in #(
4038 *the\ am__doit\ target*)
4044 # Now try BSD make style include.
4045 if test "$am__include" = "#"; then
4046 echo '.include "confinc"' > confmf
4047 case `$am_make -s -f confmf 2> /dev/null` in #(
4048 *the\ am__doit\ target*)
4049 am__include=.include
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4058 $as_echo "$_am_result" >&6; }
4059 rm -f confinc confmf
4061 # Check whether --enable-dependency-tracking was given.
4062 if test "${enable_dependency_tracking+set}" = set; then :
4063 enableval=$enable_dependency_tracking;
4066 if test "x$enable_dependency_tracking" != xno; then
4067 am_depcomp="$ac_aux_dir/depcomp"
4071 if test "x$enable_dependency_tracking" != xno; then
4081 depcc="$CC" am_compiler_list=
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4084 $as_echo_n "checking dependency style of $depcc... " >&6; }
4085 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4086 $as_echo_n "(cached) " >&6
4088 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4089 # We make a subdir and do the tests there. Otherwise we can end up
4090 # making bogus files that we don't know about and never remove. For
4091 # instance it was reported that on HP-UX the gcc test will end up
4092 # making a dummy file named `D' -- because `-MD' means `put the output
4096 # Copy depcomp to subdir because otherwise we won't find it if we're
4097 # using a relative directory.
4098 cp "$am_depcomp" conftest.dir
4100 # We will build objects and dependencies in a subdirectory because
4101 # it helps to detect inapplicable dependency modes. For instance
4102 # both Tru64's cc and ICC support -MD to output dependencies as a
4103 # side effect of compilation, but ICC will put the dependencies in
4104 # the current directory while Tru64 will put them in the object
4108 am_cv_CC_dependencies_compiler_type=none
4109 if test "$am_compiler_list" = ""; then
4110 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4113 case " $depcc " in #(
4114 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4117 for depmode in $am_compiler_list; do
4118 # Setup a source with many dependencies, because some compilers
4119 # like to wrap large dependency lists on column 80 (with \), and
4120 # we should not choose a depcomp mode which is confused by this.
4122 # We need to recreate these files for each test, as the compiler may
4123 # overwrite some of them when testing with obscure command lines.
4124 # This happens at least with the AIX C compiler.
4126 for i in 1 2 3 4 5 6; do
4127 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4128 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4129 # Solaris 8's {/usr,}/bin/sh.
4130 touch sub/conftst$i.h
4132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4134 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4135 # mode. It turns out that the SunPro C++ compiler does not properly
4136 # handle `-M -o', and we need to detect this. Also, some Intel
4137 # versions had trouble with output in subdirs
4138 am__obj=sub/conftest.${OBJEXT-o}
4139 am__minus_obj="-o $am__obj"
4142 # This depmode causes a compiler race in universal mode.
4143 test "$am__universal" = false || continue
4146 # after this tag, mechanisms are not by side-effect, so they'll
4147 # only be used when explicitly requested
4148 if test "x$enable_dependency_tracking" = xyes; then
4154 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4155 # This compiler won't grok `-c -o', but also, the minuso test has
4156 # not run yet. These depmodes are late enough in the game, and
4157 # so weak that their functioning should not be impacted.
4158 am__obj=conftest.${OBJEXT-o}
4163 if depmode=$depmode \
4164 source=sub/conftest.c object=$am__obj \
4165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4166 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4167 >/dev/null 2>conftest.err &&
4168 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4170 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4172 # icc doesn't choke on unknown options, it will just issue warnings
4173 # or remarks (even with -Werror). So we grep stderr for any message
4174 # that says an option was ignored or not supported.
4175 # When given -MP, icc 7.0 and 7.1 complain thusly:
4176 # icc: Command line warning: ignoring option '-M'; no argument required
4177 # The diagnosis changed in icc 8.0:
4178 # icc: Command line remark: option '-MP' not supported
4179 if (grep 'ignoring option' conftest.err ||
4180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4181 am_cv_CC_dependencies_compiler_type=$depmode
4190 am_cv_CC_dependencies_compiler_type=none
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4195 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4199 test "x$enable_dependency_tracking" != xno \
4200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4202 am__fastdepCC_FALSE='#'
4204 am__fastdepCC_TRUE='#'
4205 am__fastdepCC_FALSE=
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4215 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4216 # On Suns, sometimes $CPP names a directory.
4217 if test -n "$CPP" && test -d "$CPP"; then
4220 if test -z "$CPP"; then
4221 if ${ac_cv_prog_CPP+:} false; then :
4222 $as_echo_n "(cached) " >&6
4224 # Double quotes because CPP needs to be expanded
4225 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4228 for ac_c_preproc_warn_flag in '' yes
4230 # Use a header file that comes with gcc, so configuring glibc
4231 # with a fresh cross-compiler works.
4232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4233 # <limits.h> exists even on freestanding compilers.
4234 # On the NeXT, cc -E runs the code through the compiler's parser,
4235 # not just through cpp. "Syntax error" is here to catch this case.
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4239 # include <limits.h>
4241 # include <assert.h>
4245 if ac_fn_c_try_cpp "$LINENO"; then :
4248 # Broken: fails on valid input.
4251 rm -f conftest.err conftest.i conftest.$ac_ext
4253 # OK, works on sane cases. Now check whether nonexistent headers
4254 # can be detected and how.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #include <ac_nonexistent.h>
4259 if ac_fn_c_try_cpp "$LINENO"; then :
4260 # Broken: success on invalid input.
4263 # Passes both tests.
4267 rm -f conftest.err conftest.i conftest.$ac_ext
4270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4271 rm -f conftest.i conftest.err conftest.$ac_ext
4272 if $ac_preproc_ok; then :
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4285 $as_echo "$CPP" >&6; }
4287 for ac_c_preproc_warn_flag in '' yes
4289 # Use a header file that comes with gcc, so configuring glibc
4290 # with a fresh cross-compiler works.
4291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4292 # <limits.h> exists even on freestanding compilers.
4293 # On the NeXT, cc -E runs the code through the compiler's parser,
4294 # not just through cpp. "Syntax error" is here to catch this case.
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4298 # include <limits.h>
4300 # include <assert.h>
4304 if ac_fn_c_try_cpp "$LINENO"; then :
4307 # Broken: fails on valid input.
4310 rm -f conftest.err conftest.i conftest.$ac_ext
4312 # OK, works on sane cases. Now check whether nonexistent headers
4313 # can be detected and how.
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <ac_nonexistent.h>
4318 if ac_fn_c_try_cpp "$LINENO"; then :
4319 # Broken: success on invalid input.
4322 # Passes both tests.
4326 rm -f conftest.err conftest.i conftest.$ac_ext
4329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4330 rm -f conftest.i conftest.err conftest.$ac_ext
4331 if $ac_preproc_ok; then :
4334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4336 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4337 See \`config.log' for more details" "$LINENO" 5; }
4341 ac_cpp='$CXXCPP $CPPFLAGS'
4342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4347 ac_cpp='$CXXCPP $CPPFLAGS'
4348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4351 if test -z "$CXX"; then
4352 if test -n "$CCC"; then
4355 if test -n "$ac_tool_prefix"; then
4356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_CXX+:} false; then :
4363 $as_echo_n "(cached) " >&6
4365 if test -n "$CXX"; then
4366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 if test -n "$CXX"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4388 $as_echo "$CXX" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4395 test -n "$CXX" && break
4398 if test -z "$CXX"; then
4400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4402 # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy $ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$ac_ct_CXX"; then
4410 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_ac_ct_CXX="$ac_prog"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4430 if test -n "$ac_ct_CXX"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4432 $as_echo "$ac_ct_CXX" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4439 test -n "$ac_ct_CXX" && break
4442 if test "x$ac_ct_CXX" = x; then
4445 case $cross_compiling:$ac_tool_warned in
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned=yes ;;
4457 # Provide some information about the compiler.
4458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4461 for ac_option in --version -v -V -qversion; do
4462 { { ac_try="$ac_compiler $ac_option >&5"
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4471 if test -s conftest.err; then
4473 ... rest of stderr output deleted ...
4474 10q' conftest.err >conftest.er1
4475 cat conftest.er1 >&5
4477 rm -f conftest.er1 conftest.err
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; }
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4484 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4485 $as_echo_n "(cached) " >&6
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4512 if test $ac_compiler_gnu = yes; then
4517 ac_test_CXXFLAGS=${CXXFLAGS+set}
4518 ac_save_CXXFLAGS=$CXXFLAGS
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4521 if ${ac_cv_prog_cxx_g+:} false; then :
4522 $as_echo_n "(cached) " >&6
4524 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4525 ac_cxx_werror_flag=yes
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4540 ac_cv_prog_cxx_g=yes
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571 ac_cv_prog_cxx_g=yes
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4582 if test "$ac_test_CXXFLAGS" = set; then
4583 CXXFLAGS=$ac_save_CXXFLAGS
4584 elif test $ac_cv_prog_cxx_g = yes; then
4585 if test "$GXX" = yes; then
4591 if test "$GXX" = yes; then
4598 ac_cpp='$CXXCPP $CPPFLAGS'
4599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4603 depcc="$CXX" am_compiler_list=
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4606 $as_echo_n "checking dependency style of $depcc... " >&6; }
4607 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4608 $as_echo_n "(cached) " >&6
4610 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4611 # We make a subdir and do the tests there. Otherwise we can end up
4612 # making bogus files that we don't know about and never remove. For
4613 # instance it was reported that on HP-UX the gcc test will end up
4614 # making a dummy file named `D' -- because `-MD' means `put the output
4618 # Copy depcomp to subdir because otherwise we won't find it if we're
4619 # using a relative directory.
4620 cp "$am_depcomp" conftest.dir
4622 # We will build objects and dependencies in a subdirectory because
4623 # it helps to detect inapplicable dependency modes. For instance
4624 # both Tru64's cc and ICC support -MD to output dependencies as a
4625 # side effect of compilation, but ICC will put the dependencies in
4626 # the current directory while Tru64 will put them in the object
4630 am_cv_CXX_dependencies_compiler_type=none
4631 if test "$am_compiler_list" = ""; then
4632 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4635 case " $depcc " in #(
4636 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4639 for depmode in $am_compiler_list; do
4640 # Setup a source with many dependencies, because some compilers
4641 # like to wrap large dependency lists on column 80 (with \), and
4642 # we should not choose a depcomp mode which is confused by this.
4644 # We need to recreate these files for each test, as the compiler may
4645 # overwrite some of them when testing with obscure command lines.
4646 # This happens at least with the AIX C compiler.
4648 for i in 1 2 3 4 5 6; do
4649 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4650 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4651 # Solaris 8's {/usr,}/bin/sh.
4652 touch sub/conftst$i.h
4654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4656 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4657 # mode. It turns out that the SunPro C++ compiler does not properly
4658 # handle `-M -o', and we need to detect this. Also, some Intel
4659 # versions had trouble with output in subdirs
4660 am__obj=sub/conftest.${OBJEXT-o}
4661 am__minus_obj="-o $am__obj"
4664 # This depmode causes a compiler race in universal mode.
4665 test "$am__universal" = false || continue
4668 # after this tag, mechanisms are not by side-effect, so they'll
4669 # only be used when explicitly requested
4670 if test "x$enable_dependency_tracking" = xyes; then
4676 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4677 # This compiler won't grok `-c -o', but also, the minuso test has
4678 # not run yet. These depmodes are late enough in the game, and
4679 # so weak that their functioning should not be impacted.
4680 am__obj=conftest.${OBJEXT-o}
4685 if depmode=$depmode \
4686 source=sub/conftest.c object=$am__obj \
4687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4688 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4689 >/dev/null 2>conftest.err &&
4690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4692 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4694 # icc doesn't choke on unknown options, it will just issue warnings
4695 # or remarks (even with -Werror). So we grep stderr for any message
4696 # that says an option was ignored or not supported.
4697 # When given -MP, icc 7.0 and 7.1 complain thusly:
4698 # icc: Command line warning: ignoring option '-M'; no argument required
4699 # The diagnosis changed in icc 8.0:
4700 # icc: Command line remark: option '-MP' not supported
4701 if (grep 'ignoring option' conftest.err ||
4702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4703 am_cv_CXX_dependencies_compiler_type=$depmode
4712 am_cv_CXX_dependencies_compiler_type=none
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4717 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4718 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4721 test "x$enable_dependency_tracking" != xno \
4722 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4723 am__fastdepCXX_TRUE=
4724 am__fastdepCXX_FALSE='#'
4726 am__fastdepCXX_TRUE='#'
4727 am__fastdepCXX_FALSE=
4731 if test "$GCC" = yes; then
4738 # let the Makefile know if we're gcc
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4743 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4748 macro_version='2.4.2'
4749 macro_revision='1.3337'
4763 ltmain="$ac_aux_dir/ltmain.sh"
4765 # Make sure we can run config.sub.
4766 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4767 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4770 $as_echo_n "checking build system type... " >&6; }
4771 if ${ac_cv_build+:} false; then :
4772 $as_echo_n "(cached) " >&6
4774 ac_build_alias=$build_alias
4775 test "x$ac_build_alias" = x &&
4776 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4777 test "x$ac_build_alias" = x &&
4778 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4779 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4780 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4784 $as_echo "$ac_cv_build" >&6; }
4785 case $ac_cv_build in
4787 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4790 ac_save_IFS=$IFS; IFS='-'
4796 # Remember, the first character of IFS is used to create $*,
4797 # except with old shells:
4800 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4804 $as_echo_n "checking host system type... " >&6; }
4805 if ${ac_cv_host+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 if test "x$host_alias" = x; then
4809 ac_cv_host=$ac_cv_build
4811 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4812 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4817 $as_echo "$ac_cv_host" >&6; }
4820 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4823 ac_save_IFS=$IFS; IFS='-'
4829 # Remember, the first character of IFS is used to create $*,
4830 # except with old shells:
4833 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4836 # Backslashify metacharacters that are still active within
4837 # double-quoted strings.
4838 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4840 # Same as above, but do not quote variable references.
4841 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4843 # Sed substitution to delay expansion of an escaped shell variable in a
4844 # double_quote_subst'ed string.
4845 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4847 # Sed substitution to delay expansion of an escaped single quote.
4848 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4850 # Sed substitution to avoid accidental globbing in evaled expressions
4851 no_glob_subst='s/\*/\\\*/g'
4853 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4854 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4855 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4858 $as_echo_n "checking how to print strings... " >&6; }
4859 # Test print first, because it will be a builtin if present.
4860 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4861 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4863 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4866 # Use this function as a fallback that always works.
4867 func_fallback_echo ()
4869 eval 'cat <<_LTECHO_EOF
4873 ECHO='func_fallback_echo'
4876 # func_echo_all arg...
4877 # Invoke $ECHO with all args, space-separated.
4884 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4885 $as_echo "printf" >&6; } ;;
4886 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4887 $as_echo "print -r" >&6; } ;;
4888 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4889 $as_echo "cat" >&6; } ;;
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4906 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4907 if ${ac_cv_path_SED+:} false; then :
4908 $as_echo_n "(cached) " >&6
4910 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4911 for ac_i in 1 2 3 4 5 6 7; do
4912 ac_script="$ac_script$as_nl$ac_script"
4914 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4915 { ac_script=; unset ac_script;}
4916 if test -z "$SED"; then
4917 ac_path_SED_found=false
4918 # Loop through the user's path and test for each of PROGNAME-LIST
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_prog in sed gsed; do
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4927 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4928 # Check for GNU ac_path_SED and select it if it is found.
4929 # Check for GNU $ac_path_SED
4930 case `"$ac_path_SED" --version 2>&1` in
4932 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4935 $as_echo_n 0123456789 >"conftest.in"
4938 cat "conftest.in" "conftest.in" >"conftest.tmp"
4939 mv "conftest.tmp" "conftest.in"
4940 cp "conftest.in" "conftest.nl"
4941 $as_echo '' >> "conftest.nl"
4942 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4944 as_fn_arith $ac_count + 1 && ac_count=$as_val
4945 if test $ac_count -gt ${ac_path_SED_max-0}; then
4946 # Best one so far, save it but keep looking for a better one
4947 ac_cv_path_SED="$ac_path_SED"
4948 ac_path_SED_max=$ac_count
4950 # 10*(2^10) chars as input seems more than enough
4951 test $ac_count -gt 10 && break
4953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4956 $ac_path_SED_found && break 3
4961 if test -z "$ac_cv_path_SED"; then
4962 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4970 $as_echo "$ac_cv_path_SED" >&6; }
4971 SED="$ac_cv_path_SED"
4974 test -z "$SED" && SED=sed
4975 Xsed="$SED -e 1s/^X//"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4988 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4989 if ${ac_cv_path_GREP+:} false; then :
4990 $as_echo_n "(cached) " >&6
4992 if test -z "$GREP"; then
4993 ac_path_GREP_found=false
4994 # Loop through the user's path and test for each of PROGNAME-LIST
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4999 test -z "$as_dir" && as_dir=.
5000 for ac_prog in grep ggrep; do
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5003 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5004 # Check for GNU ac_path_GREP and select it if it is found.
5005 # Check for GNU $ac_path_GREP
5006 case `"$ac_path_GREP" --version 2>&1` in
5008 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5011 $as_echo_n 0123456789 >"conftest.in"
5014 cat "conftest.in" "conftest.in" >"conftest.tmp"
5015 mv "conftest.tmp" "conftest.in"
5016 cp "conftest.in" "conftest.nl"
5017 $as_echo 'GREP' >> "conftest.nl"
5018 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5020 as_fn_arith $ac_count + 1 && ac_count=$as_val
5021 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5022 # Best one so far, save it but keep looking for a better one
5023 ac_cv_path_GREP="$ac_path_GREP"
5024 ac_path_GREP_max=$ac_count
5026 # 10*(2^10) chars as input seems more than enough
5027 test $ac_count -gt 10 && break
5029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 $ac_path_GREP_found && break 3
5037 if test -z "$ac_cv_path_GREP"; then
5038 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041 ac_cv_path_GREP=$GREP
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5046 $as_echo "$ac_cv_path_GREP" >&6; }
5047 GREP="$ac_cv_path_GREP"
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5051 $as_echo_n "checking for egrep... " >&6; }
5052 if ${ac_cv_path_EGREP+:} false; then :
5053 $as_echo_n "(cached) " >&6
5055 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5056 then ac_cv_path_EGREP="$GREP -E"
5058 if test -z "$EGREP"; then
5059 ac_path_EGREP_found=false
5060 # Loop through the user's path and test for each of PROGNAME-LIST
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5065 test -z "$as_dir" && as_dir=.
5066 for ac_prog in egrep; do
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5069 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5070 # Check for GNU ac_path_EGREP and select it if it is found.
5071 # Check for GNU $ac_path_EGREP
5072 case `"$ac_path_EGREP" --version 2>&1` in
5074 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5077 $as_echo_n 0123456789 >"conftest.in"
5080 cat "conftest.in" "conftest.in" >"conftest.tmp"
5081 mv "conftest.tmp" "conftest.in"
5082 cp "conftest.in" "conftest.nl"
5083 $as_echo 'EGREP' >> "conftest.nl"
5084 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5086 as_fn_arith $ac_count + 1 && ac_count=$as_val
5087 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5088 # Best one so far, save it but keep looking for a better one
5089 ac_cv_path_EGREP="$ac_path_EGREP"
5090 ac_path_EGREP_max=$ac_count
5092 # 10*(2^10) chars as input seems more than enough
5093 test $ac_count -gt 10 && break
5095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5098 $ac_path_EGREP_found && break 3
5103 if test -z "$ac_cv_path_EGREP"; then
5104 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5107 ac_cv_path_EGREP=$EGREP
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5113 $as_echo "$ac_cv_path_EGREP" >&6; }
5114 EGREP="$ac_cv_path_EGREP"
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5118 $as_echo_n "checking for fgrep... " >&6; }
5119 if ${ac_cv_path_FGREP+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5123 then ac_cv_path_FGREP="$GREP -F"
5125 if test -z "$FGREP"; then
5126 ac_path_FGREP_found=false
5127 # Loop through the user's path and test for each of PROGNAME-LIST
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5132 test -z "$as_dir" && as_dir=.
5133 for ac_prog in fgrep; do
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5136 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5137 # Check for GNU ac_path_FGREP and select it if it is found.
5138 # Check for GNU $ac_path_FGREP
5139 case `"$ac_path_FGREP" --version 2>&1` in
5141 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5144 $as_echo_n 0123456789 >"conftest.in"
5147 cat "conftest.in" "conftest.in" >"conftest.tmp"
5148 mv "conftest.tmp" "conftest.in"
5149 cp "conftest.in" "conftest.nl"
5150 $as_echo 'FGREP' >> "conftest.nl"
5151 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153 as_fn_arith $ac_count + 1 && ac_count=$as_val
5154 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5155 # Best one so far, save it but keep looking for a better one
5156 ac_cv_path_FGREP="$ac_path_FGREP"
5157 ac_path_FGREP_max=$ac_count
5159 # 10*(2^10) chars as input seems more than enough
5160 test $ac_count -gt 10 && break
5162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5165 $ac_path_FGREP_found && break 3
5170 if test -z "$ac_cv_path_FGREP"; then
5171 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5174 ac_cv_path_FGREP=$FGREP
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5180 $as_echo "$ac_cv_path_FGREP" >&6; }
5181 FGREP="$ac_cv_path_FGREP"
5184 test -z "$GREP" && GREP=grep
5204 # Check whether --with-gnu-ld was given.
5205 if test "${with_gnu_ld+set}" = set; then :
5206 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5212 if test "$GCC" = yes; then
5213 # Check if gcc -print-prog-name=ld gives a path.
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5215 $as_echo_n "checking for ld used by $CC... " >&6; }
5218 # gcc leaves a trailing carriage return which upsets mingw
5219 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5221 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5224 # Accept absolute paths.
5226 re_direlt='/[^/][^/]*/\.\./'
5227 # Canonicalize the pathname of ld
5228 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5229 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5230 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5232 test -z "$LD" && LD="$ac_prog"
5235 # If it fails, then pretend we aren't using GCC.
5239 # If it is relative, then search for the first ld in PATH.
5243 elif test "$with_gnu_ld" = yes; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5245 $as_echo_n "checking for GNU ld... " >&6; }
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5248 $as_echo_n "checking for non-GNU ld... " >&6; }
5250 if ${lt_cv_path_LD+:} false; then :
5251 $as_echo_n "(cached) " >&6
5253 if test -z "$LD"; then
5254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5255 for ac_dir in $PATH; do
5257 test -z "$ac_dir" && ac_dir=.
5258 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5259 lt_cv_path_LD="$ac_dir/$ac_prog"
5260 # Check to see if the program is GNU ld. I'd rather use --version,
5261 # but apparently some variants of GNU ld only accept -v.
5262 # Break only if it was the GNU/non-GNU ld that we prefer.
5263 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5264 *GNU* | *'with BFD'*)
5265 test "$with_gnu_ld" != no && break
5268 test "$with_gnu_ld" != yes && break
5275 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5280 if test -n "$LD"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5282 $as_echo "$LD" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5287 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5289 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5290 if ${lt_cv_prog_gnu_ld+:} false; then :
5291 $as_echo_n "(cached) " >&6
5293 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5294 case `$LD -v 2>&1 </dev/null` in
5295 *GNU* | *'with BFD'*)
5296 lt_cv_prog_gnu_ld=yes
5299 lt_cv_prog_gnu_ld=no
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5304 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5305 with_gnu_ld=$lt_cv_prog_gnu_ld
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5316 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5317 if ${lt_cv_path_NM+:} false; then :
5318 $as_echo_n "(cached) " >&6
5320 if test -n "$NM"; then
5321 # Let the user override the test.
5324 lt_nm_to_check="${ac_tool_prefix}nm"
5325 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5326 lt_nm_to_check="$lt_nm_to_check nm"
5328 for lt_tmp_nm in $lt_nm_to_check; do
5329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5330 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5332 test -z "$ac_dir" && ac_dir=.
5333 tmp_nm="$ac_dir/$lt_tmp_nm"
5334 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5335 # Check to see if the nm accepts a BSD-compat flag.
5336 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5337 # nm: unknown option "B" ignored
5338 # Tru64's nm complains that /dev/null is an invalid object file
5339 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5340 */dev/null* | *'Invalid file or object type'*)
5341 lt_cv_path_NM="$tmp_nm -B"
5345 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5347 lt_cv_path_NM="$tmp_nm -p"
5351 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5352 continue # so that we can try to find one that supports BSD flags
5361 : ${lt_cv_path_NM=no}
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5365 $as_echo "$lt_cv_path_NM" >&6; }
5366 if test "$lt_cv_path_NM" != "no"; then
5369 # Didn't find any BSD compatible name lister, look for dumpbin.
5370 if test -n "$DUMPBIN"; then :
5371 # Let the user override the test.
5373 if test -n "$ac_tool_prefix"; then
5374 for ac_prog in dumpbin "link -dump"
5376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_prog_DUMPBIN+:} false; then :
5381 $as_echo_n "(cached) " >&6
5383 if test -n "$DUMPBIN"; then
5384 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 DUMPBIN=$ac_cv_prog_DUMPBIN
5404 if test -n "$DUMPBIN"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5406 $as_echo "$DUMPBIN" >&6; }
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5413 test -n "$DUMPBIN" && break
5416 if test -z "$DUMPBIN"; then
5417 ac_ct_DUMPBIN=$DUMPBIN
5418 for ac_prog in dumpbin "link -dump"
5420 # Extract the first word of "$ac_prog", so it can be a program name with args.
5421 set dummy $ac_prog; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5425 $as_echo_n "(cached) " >&6
5427 if test -n "$ac_ct_DUMPBIN"; then
5428 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5448 if test -n "$ac_ct_DUMPBIN"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5450 $as_echo "$ac_ct_DUMPBIN" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5457 test -n "$ac_ct_DUMPBIN" && break
5460 if test "x$ac_ct_DUMPBIN" = x; then
5463 case $cross_compiling:$ac_tool_warned in
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5467 ac_tool_warned=yes ;;
5469 DUMPBIN=$ac_ct_DUMPBIN
5473 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5475 DUMPBIN="$DUMPBIN -symbols"
5483 if test "$DUMPBIN" != ":"; then
5487 test -z "$NM" && NM=nm
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5495 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5496 if ${lt_cv_nm_interface+:} false; then :
5497 $as_echo_n "(cached) " >&6
5499 lt_cv_nm_interface="BSD nm"
5500 echo "int some_variable = 0;" > conftest.$ac_ext
5501 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5502 (eval "$ac_compile" 2>conftest.err)
5503 cat conftest.err >&5
5504 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5505 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5506 cat conftest.err >&5
5507 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5508 cat conftest.out >&5
5509 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5510 lt_cv_nm_interface="MS dumpbin"
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5515 $as_echo "$lt_cv_nm_interface" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5518 $as_echo_n "checking whether ln -s works... " >&6; }
5520 if test "$LN_S" = "ln -s"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5522 $as_echo "yes" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5525 $as_echo "no, using $LN_S" >&6; }
5528 # find the maximum length of command line arguments
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5530 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5531 if ${lt_cv_sys_max_cmd_len+:} false; then :
5532 $as_echo_n "(cached) " >&6
5539 # On DJGPP, this test can blow up pretty badly due to problems in libc
5540 # (any single argument exceeding 2000 bytes causes a buffer overrun
5541 # during glob expansion). Even if it were fixed, the result of this
5542 # check would be larger than it should be.
5543 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5547 # Under GNU Hurd, this test is not required because there is
5548 # no limit to the length of command line arguments.
5549 # Libtool will interpret -1 as no limit whatsoever
5550 lt_cv_sys_max_cmd_len=-1;
5553 cygwin* | mingw* | cegcc*)
5554 # On Win9x/ME, this test blows up -- it succeeds, but takes
5555 # about 5 minutes as the teststring grows exponentially.
5556 # Worse, since 9x/ME are not pre-emptively multitasking,
5557 # you end up with a "frozen" computer, even though with patience
5558 # the test eventually succeeds (with a max line length of 256k).
5559 # Instead, let's just punt: use the minimum linelength reported by
5560 # all of the supported platforms: 8192 (on NT/2K/XP).
5561 lt_cv_sys_max_cmd_len=8192;
5565 # On MiNT this can take a long time and run out of memory.
5566 lt_cv_sys_max_cmd_len=8192;
5570 # On AmigaOS with pdksh, this test takes hours, literally.
5571 # So we just punt and use a minimum line length of 8192.
5572 lt_cv_sys_max_cmd_len=8192;
5575 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5576 # This has been around since 386BSD, at least. Likely further.
5577 if test -x /sbin/sysctl; then
5578 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5579 elif test -x /usr/sbin/sysctl; then
5580 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5582 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5584 # And add a safety zone
5585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5590 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5591 lt_cv_sys_max_cmd_len=196608
5595 # The test takes a long time on OS/2.
5596 lt_cv_sys_max_cmd_len=8192
5600 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5601 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5602 # nice to cause kernel panics so lets avoid the loop below.
5603 # First set a reasonable default.
5604 lt_cv_sys_max_cmd_len=16384
5606 if test -x /sbin/sysconfig; then
5607 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5608 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5613 lt_cv_sys_max_cmd_len=102400
5615 sysv5* | sco5v6* | sysv4.2uw2*)
5616 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5617 if test -n "$kargmax"; then
5618 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5620 lt_cv_sys_max_cmd_len=32768
5624 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5625 if test -n "$lt_cv_sys_max_cmd_len"; then
5626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5629 # Make teststring a little bigger before we do anything with it.
5630 # a 1K string should be a reasonable start.
5631 for i in 1 2 3 4 5 6 7 8 ; do
5632 teststring=$teststring$teststring
5634 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5635 # If test is not a shell built-in, we'll probably end up computing a
5636 # maximum length that is only half of the actual maximum length, but
5638 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5639 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5640 test $i != 17 # 1/2 MB should be enough
5643 teststring=$teststring$teststring
5645 # Only check the string length outside the loop.
5646 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5648 # Add a significant safety factor because C++ compilers can tack on
5649 # massive amounts of additional arguments before passing them to the
5650 # linker. It appears as though 1/2 is a usable value.
5651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5658 if test -n $lt_cv_sys_max_cmd_len ; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5660 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5663 $as_echo "none" >&6; }
5665 max_cmd_len=$lt_cv_sys_max_cmd_len
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5677 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5678 # Try some XSI features
5681 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5683 && eval 'test $(( 1 + 1 )) -eq 2 \
5684 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5687 $as_echo "$xsi_shell" >&6; }
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5691 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5693 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5695 && lt_shell_append=yes
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5697 $as_echo "$lt_shell_append" >&6; }
5700 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5710 # test EBCDIC or ASCII
5711 case `echo X|tr X '\101'` in
5712 A) # ASCII based system
5713 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5714 lt_SP2NL='tr \040 \012'
5715 lt_NL2SP='tr \015\012 \040\040'
5717 *) # EBCDIC based system
5718 lt_SP2NL='tr \100 \n'
5719 lt_NL2SP='tr \r\n \100\100'
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5732 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5733 if ${lt_cv_to_host_file_cmd+:} false; then :
5734 $as_echo_n "(cached) " >&6
5739 *-*-mingw* ) # actually msys
5740 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5743 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5745 * ) # otherwise, assume *nix
5746 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5752 *-*-mingw* ) # actually msys
5753 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5756 lt_cv_to_host_file_cmd=func_convert_file_noop
5758 * ) # otherwise, assume *nix
5759 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5763 * ) # unhandled hosts (and "normal" native builds)
5764 lt_cv_to_host_file_cmd=func_convert_file_noop
5770 to_host_file_cmd=$lt_cv_to_host_file_cmd
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5772 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5779 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5780 if ${lt_cv_to_tool_file_cmd+:} false; then :
5781 $as_echo_n "(cached) " >&6
5783 #assume ordinary cross tools, or native build.
5784 lt_cv_to_tool_file_cmd=func_convert_file_noop
5788 *-*-mingw* ) # actually msys
5789 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5797 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5799 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5806 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5807 if ${lt_cv_ld_reload_flag+:} false; then :
5808 $as_echo_n "(cached) " >&6
5810 lt_cv_ld_reload_flag='-r'
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5813 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5814 reload_flag=$lt_cv_ld_reload_flag
5815 case $reload_flag in
5817 *) reload_flag=" $reload_flag" ;;
5819 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5821 cygwin* | mingw* | pw32* | cegcc*)
5822 if test "$GCC" != yes; then
5827 if test "$GCC" = yes; then
5828 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5830 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5843 if test -n "$ac_tool_prefix"; then
5844 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_prog_OBJDUMP+:} false; then :
5849 $as_echo_n "(cached) " >&6
5851 if test -n "$OBJDUMP"; then
5852 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 OBJDUMP=$ac_cv_prog_OBJDUMP
5872 if test -n "$OBJDUMP"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5874 $as_echo "$OBJDUMP" >&6; }
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5882 if test -z "$ac_cv_prog_OBJDUMP"; then
5883 ac_ct_OBJDUMP=$OBJDUMP
5884 # Extract the first word of "objdump", so it can be a program name with args.
5885 set dummy objdump; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5889 $as_echo_n "(cached) " >&6
5891 if test -n "$ac_ct_OBJDUMP"; then
5892 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5912 if test -n "$ac_ct_OBJDUMP"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5914 $as_echo "$ac_ct_OBJDUMP" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5920 if test "x$ac_ct_OBJDUMP" = x; then
5923 case $cross_compiling:$ac_tool_warned in
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927 ac_tool_warned=yes ;;
5929 OBJDUMP=$ac_ct_OBJDUMP
5932 OBJDUMP="$ac_cv_prog_OBJDUMP"
5935 test -z "$OBJDUMP" && OBJDUMP=objdump
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5946 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5947 if ${lt_cv_deplibs_check_method+:} false; then :
5948 $as_echo_n "(cached) " >&6
5950 lt_cv_file_magic_cmd='$MAGIC_CMD'
5951 lt_cv_file_magic_test_file=
5952 lt_cv_deplibs_check_method='unknown'
5953 # Need to set the preceding variable on all platforms that support
5954 # interlibrary dependencies.
5955 # 'none' -- dependencies not supported.
5956 # `unknown' -- same as none, but documents that we really don't know.
5957 # 'pass_all' -- all dependencies passed with no checks.
5958 # 'test_compile' -- check by making test program.
5959 # 'file_magic [[regex]]' -- check by looking for files in library path
5960 # which responds to the $file_magic_cmd with a given extended regex.
5961 # If you have `file' or equivalent on your system and you're not sure
5962 # whether `pass_all' will *always* work, you probably want this one.
5966 lt_cv_deplibs_check_method=pass_all
5970 lt_cv_deplibs_check_method=pass_all
5974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5975 lt_cv_file_magic_cmd='/usr/bin/file -L'
5976 lt_cv_file_magic_test_file=/shlib/libc.so
5980 # func_win32_libid is a shell function defined in ltmain.sh
5981 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5982 lt_cv_file_magic_cmd='func_win32_libid'
5986 # Base MSYS/MinGW do not provide the 'file' command needed by
5987 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5988 # unless we find 'file', for example because we are cross-compiling.
5989 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5990 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5991 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5992 lt_cv_file_magic_cmd='func_win32_libid'
5994 # Keep this pattern in sync with the one in func_win32_libid.
5995 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5996 lt_cv_file_magic_cmd='$OBJDUMP -f'
6001 # use the weaker test based on 'objdump'. See mingw*.
6002 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6003 lt_cv_file_magic_cmd='$OBJDUMP -f'
6006 darwin* | rhapsody*)
6007 lt_cv_deplibs_check_method=pass_all
6010 freebsd* | dragonfly*)
6011 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6014 # Not sure whether the presence of OpenBSD here was a mistake.
6015 # Let's accept both of them until this is cleared up.
6016 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6017 lt_cv_file_magic_cmd=/usr/bin/file
6018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6022 lt_cv_deplibs_check_method=pass_all
6027 lt_cv_deplibs_check_method=pass_all
6031 lt_cv_deplibs_check_method=pass_all
6034 hpux10.20* | hpux11*)
6035 lt_cv_file_magic_cmd=/usr/bin/file
6038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6039 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6042 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]'
6043 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6047 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6053 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6057 irix5* | irix6* | nonstopux*)
6059 *-32|*"-32 ") libmagic=32-bit;;
6060 *-n32|*"-n32 ") libmagic=N32;;
6061 *-64|*"-64 ") libmagic=64-bit;;
6062 *) libmagic=never-match;;
6064 lt_cv_deplibs_check_method=pass_all
6067 # This must be glibc/ELF.
6068 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6069 lt_cv_deplibs_check_method=pass_all
6072 netbsd* | netbsdelf*-gnu)
6073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6082 lt_cv_file_magic_cmd=/usr/bin/file
6083 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6087 lt_cv_deplibs_check_method=pass_all
6091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6098 osf3* | osf4* | osf5*)
6099 lt_cv_deplibs_check_method=pass_all
6103 lt_cv_deplibs_check_method=pass_all
6107 lt_cv_deplibs_check_method=pass_all
6110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6111 lt_cv_deplibs_check_method=pass_all
6115 case $host_vendor in
6117 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]'
6118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6121 lt_cv_deplibs_check_method=pass_all
6124 lt_cv_file_magic_cmd='/bin/file'
6125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6128 lt_cv_file_magic_cmd='/bin/file'
6129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6130 lt_cv_file_magic_test_file=/lib/libc.so
6133 lt_cv_deplibs_check_method=pass_all
6136 lt_cv_deplibs_check_method=pass_all
6142 lt_cv_deplibs_check_method=pass_all
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6148 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6152 if test "$build" = "$host"; then
6155 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6158 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6164 file_magic_cmd=$lt_cv_file_magic_cmd
6165 deplibs_check_method=$lt_cv_deplibs_check_method
6166 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6189 if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193 $as_echo_n "checking for $ac_word... " >&6; }
6194 if ${ac_cv_prog_DLLTOOL+:} false; then :
6195 $as_echo_n "(cached) " >&6
6197 if test -n "$DLLTOOL"; then
6198 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 DLLTOOL=$ac_cv_prog_DLLTOOL
6218 if test -n "$DLLTOOL"; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6220 $as_echo "$DLLTOOL" >&6; }
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223 $as_echo "no" >&6; }
6228 if test -z "$ac_cv_prog_DLLTOOL"; then
6229 ac_ct_DLLTOOL=$DLLTOOL
6230 # Extract the first word of "dlltool", so it can be a program name with args.
6231 set dummy dlltool; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6235 $as_echo_n "(cached) " >&6
6237 if test -n "$ac_ct_DLLTOOL"; then
6238 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6258 if test -n "$ac_ct_DLLTOOL"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6260 $as_echo "$ac_ct_DLLTOOL" >&6; }
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6266 if test "x$ac_ct_DLLTOOL" = x; then
6269 case $cross_compiling:$ac_tool_warned in
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273 ac_tool_warned=yes ;;
6275 DLLTOOL=$ac_ct_DLLTOOL
6278 DLLTOOL="$ac_cv_prog_DLLTOOL"
6281 test -z "$DLLTOOL" && DLLTOOL=dlltool
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6293 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6294 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6295 $as_echo_n "(cached) " >&6
6297 lt_cv_sharedlib_from_linklib_cmd='unknown'
6300 cygwin* | mingw* | pw32* | cegcc*)
6301 # two different shell functions defined in ltmain.sh
6302 # decide which to use based on capabilities of $DLLTOOL
6303 case `$DLLTOOL --help 2>&1` in
6304 *--identify-strict*)
6305 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6308 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6313 # fallback: assume linklib IS sharedlib
6314 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6320 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6321 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6322 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6331 if test -n "$ac_tool_prefix"; then
6334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_AR+:} false; then :
6339 $as_echo_n "(cached) " >&6
6341 if test -n "$AR"; then
6342 ac_cv_prog_AR="$AR" # Let the user override the test.
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 if test -n "$AR"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6364 $as_echo "$AR" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6371 test -n "$AR" && break
6374 if test -z "$AR"; then
6378 # Extract the first word of "$ac_prog", so it can be a program name with args.
6379 set dummy $ac_prog; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6383 $as_echo_n "(cached) " >&6
6385 if test -n "$ac_ct_AR"; then
6386 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_prog_ac_ct_AR="$ac_prog"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6406 if test -n "$ac_ct_AR"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6408 $as_echo "$ac_ct_AR" >&6; }
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6415 test -n "$ac_ct_AR" && break
6418 if test "x$ac_ct_AR" = x; then
6421 case $cross_compiling:$ac_tool_warned in
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6445 $as_echo_n "checking for archiver @FILE support... " >&6; }
6446 if ${lt_cv_ar_at_file+:} false; then :
6447 $as_echo_n "(cached) " >&6
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6461 if ac_fn_cxx_try_compile "$LINENO"; then :
6462 echo conftest.$ac_objext > conftest.lst
6463 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6465 (eval $lt_ar_try) 2>&5
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; }
6469 if test "$ac_status" -eq 0; then
6470 # Ensure the archiver fails upon bogus file names.
6471 rm -f conftest.$ac_objext libconftest.a
6472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6473 (eval $lt_ar_try) 2>&5
6475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6476 test $ac_status = 0; }
6477 if test "$ac_status" -ne 0; then
6481 rm -f conftest.* libconftest.a
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6488 $as_echo "$lt_cv_ar_at_file" >&6; }
6490 if test "x$lt_cv_ar_at_file" = xno; then
6493 archiver_list_spec=$lt_cv_ar_at_file
6502 if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}strip; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_prog_STRIP+:} false; then :
6508 $as_echo_n "(cached) " >&6
6510 if test -n "$STRIP"; then
6511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 STRIP=$ac_cv_prog_STRIP
6531 if test -n "$STRIP"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6533 $as_echo "$STRIP" >&6; }
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6541 if test -z "$ac_cv_prog_STRIP"; then
6543 # Extract the first word of "strip", so it can be a program name with args.
6544 set dummy strip; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6548 $as_echo_n "(cached) " >&6
6550 if test -n "$ac_ct_STRIP"; then
6551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_ac_ct_STRIP="strip"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6571 if test -n "$ac_ct_STRIP"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6573 $as_echo "$ac_ct_STRIP" >&6; }
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6579 if test "x$ac_ct_STRIP" = x; then
6582 case $cross_compiling:$ac_tool_warned in
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586 ac_tool_warned=yes ;;
6591 STRIP="$ac_cv_prog_STRIP"
6594 test -z "$STRIP" && STRIP=:
6601 if test -n "$ac_tool_prefix"; then
6602 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6603 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_prog_RANLIB+:} false; then :
6607 $as_echo_n "(cached) " >&6
6609 if test -n "$RANLIB"; then
6610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 RANLIB=$ac_cv_prog_RANLIB
6630 if test -n "$RANLIB"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6632 $as_echo "$RANLIB" >&6; }
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6640 if test -z "$ac_cv_prog_RANLIB"; then
6641 ac_ct_RANLIB=$RANLIB
6642 # Extract the first word of "ranlib", so it can be a program name with args.
6643 set dummy ranlib; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6647 $as_echo_n "(cached) " >&6
6649 if test -n "$ac_ct_RANLIB"; then
6650 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_prog_ac_ct_RANLIB="ranlib"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6670 if test -n "$ac_ct_RANLIB"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6672 $as_echo "$ac_ct_RANLIB" >&6; }
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6678 if test "x$ac_ct_RANLIB" = x; then
6681 case $cross_compiling:$ac_tool_warned in
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6685 ac_tool_warned=yes ;;
6687 RANLIB=$ac_ct_RANLIB
6690 RANLIB="$ac_cv_prog_RANLIB"
6693 test -z "$RANLIB" && RANLIB=:
6700 # Determine commands to create old-style static archives.
6701 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6702 old_postinstall_cmds='chmod 644 $oldlib'
6703 old_postuninstall_cmds=
6705 if test -n "$RANLIB"; then
6708 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6711 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6714 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6719 lock_old_archive_extraction=yes ;;
6721 lock_old_archive_extraction=no ;;
6762 # If no C compiler was specified, use CC.
6765 # If no C compiler flags were specified, use CFLAGS.
6766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6768 # Allow CC to be a program name with arguments.
6772 # Check for command to grab the raw symbol name followed by C symbol from nm.
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6774 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6775 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6776 $as_echo_n "(cached) " >&6
6779 # These are sane defaults that work on at least a few old systems.
6780 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6782 # Character class describing NM global symbol codes.
6783 symcode='[BCDEGRST]'
6785 # Regexp to match symbols that can be accessed directly from C.
6786 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6788 # Define system-specific variables.
6793 cygwin* | mingw* | pw32* | cegcc*)
6794 symcode='[ABCDGISTW]'
6797 if test "$host_cpu" = ia64; then
6798 symcode='[ABCDEGRST]'
6802 symcode='[BCDEGRST]'
6805 symcode='[BCDEGQRST]'
6816 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6824 # If we're using GNU nm, then use its standard symbol codes.
6825 case `$NM -V 2>&1` in
6826 *GNU* | *'with BFD'*)
6827 symcode='[ABCDGIRSTW]' ;;
6830 # Transform an extracted symbol line into a proper C declaration.
6831 # Some systems (esp. on ia64) link data and code symbols differently,
6832 # so use this general approach.
6833 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6835 # Transform an extracted symbol line into symbol name and symbol address
6836 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6837 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'"
6839 # Handle CRLF in mingw tool chain
6843 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6847 # Try without a prefix underscore, then with it.
6848 for ac_symprfx in "" "_"; do
6850 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6851 symxfrm="\\1 $ac_symprfx\\2 \\2"
6853 # Write the raw and C identifiers.
6854 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6855 # Fake it for dumpbin and say T for any non-static function
6856 # and D for any global variable.
6857 # Also find C++ and __fastcall symbols from MSVC++,
6858 # which start with @ or ?.
6859 lt_cv_sys_global_symbol_pipe="$AWK '"\
6860 " {last_section=section; section=\$ 3};"\
6861 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6862 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6863 " \$ 0!~/External *\|/{next};"\
6864 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6865 " {if(hide[section]) next};"\
6866 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6867 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6868 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6869 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6870 " ' prfx=^$ac_symprfx"
6872 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6874 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6876 # Check to see that the pipe works correctly.
6880 cat > conftest.$ac_ext <<_LT_EOF
6885 void nm_test_func(void);
6886 void nm_test_func(void){}
6890 int main(){nm_test_var='a';nm_test_func();return(0);}
6893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894 (eval $ac_compile) 2>&5
6896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897 test $ac_status = 0; }; then
6898 # Now try to grab the symbols.
6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6901 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904 test $ac_status = 0; } && test -s "$nlist"; then
6905 # Try sorting and uniquifying the output.
6906 if sort "$nlist" | uniq > "$nlist"T; then
6907 mv -f "$nlist"T "$nlist"
6912 # Make sure that we snagged all the symbols we need.
6913 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6914 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6915 cat <<_LT_EOF > conftest.$ac_ext
6916 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6917 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6918 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6919 relocations are performed -- see ld's documentation on pseudo-relocs. */
6920 # define LT_DLSYM_CONST
6921 #elif defined(__osf__)
6922 /* This system does not cope well with relocations in const data. */
6923 # define LT_DLSYM_CONST
6925 # define LT_DLSYM_CONST const
6933 # Now generate the symbol file.
6934 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6936 cat <<_LT_EOF >> conftest.$ac_ext
6938 /* The mapping between symbol names and symbols. */
6939 LT_DLSYM_CONST struct {
6943 lt__PROGRAM__LTX_preloaded_symbols[] =
6945 { "@PROGRAM@", (void *) 0 },
6947 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6948 cat <<\_LT_EOF >> conftest.$ac_ext
6952 /* This works around a problem in FreeBSD linker */
6953 #ifdef FREEBSD_WORKAROUND
6954 static const void *lt_preloaded_setup() {
6955 return lt__PROGRAM__LTX_preloaded_symbols;
6963 # Now try linking the two files.
6964 mv conftest.$ac_objext conftstm.$ac_objext
6965 lt_globsym_save_LIBS=$LIBS
6966 lt_globsym_save_CFLAGS=$CFLAGS
6967 LIBS="conftstm.$ac_objext"
6968 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6970 (eval $ac_link) 2>&5
6972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6976 LIBS=$lt_globsym_save_LIBS
6977 CFLAGS=$lt_globsym_save_CFLAGS
6979 echo "cannot find nm_test_func in $nlist" >&5
6982 echo "cannot find nm_test_var in $nlist" >&5
6985 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6988 echo "$progname: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6991 rm -rf conftest* conftst*
6993 # Do not use the global_symbol_pipe unless it works.
6994 if test "$pipe_works" = yes; then
6997 lt_cv_sys_global_symbol_pipe=
7003 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7004 lt_cv_sys_global_symbol_to_cdecl=
7006 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7008 $as_echo "failed" >&6; }
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7011 $as_echo "ok" >&6; }
7014 # Response file support.
7015 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7016 nm_file_list_spec='@'
7017 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7018 nm_file_list_spec='@'
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7048 $as_echo_n "checking for sysroot... " >&6; }
7050 # Check whether --with-sysroot was given.
7051 if test "${with_sysroot+set}" = set; then :
7052 withval=$with_sysroot;
7059 case ${with_sysroot} in #(
7061 if test "$GCC" = yes; then
7062 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7066 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7072 $as_echo "${with_sysroot}" >&6; }
7073 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7078 $as_echo "${lt_sysroot:-no}" >&6; }
7085 # Check whether --enable-libtool-lock was given.
7086 if test "${enable_libtool_lock+set}" = set; then :
7087 enableval=$enable_libtool_lock;
7090 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7092 # Some flags need to be propagated to the compiler or linker for good
7096 # Find out which ABI we are using.
7097 echo 'int i;' > conftest.$ac_ext
7098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7099 (eval $ac_compile) 2>&5
7101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102 test $ac_status = 0; }; then
7103 case `/usr/bin/file conftest.$ac_objext` in
7115 # Find out which ABI we are using.
7116 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7118 (eval $ac_compile) 2>&5
7120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121 test $ac_status = 0; }; then
7122 if test "$lt_cv_prog_gnu_ld" = yes; then
7123 case `/usr/bin/file conftest.$ac_objext` in
7125 LD="${LD-ld} -melf32bsmip"
7128 LD="${LD-ld} -melf32bmipn32"
7131 LD="${LD-ld} -melf64bmip"
7135 case `/usr/bin/file conftest.$ac_objext` in
7151 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7152 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7153 # Find out which ABI we are using.
7154 echo 'int i;' > conftest.$ac_ext
7155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7156 (eval $ac_compile) 2>&5
7158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7159 test $ac_status = 0; }; then
7160 case `/usr/bin/file conftest.o` in
7163 x86_64-*kfreebsd*-gnu)
7164 LD="${LD-ld} -m elf_i386_fbsd"
7167 LD="${LD-ld} -m elf_i386"
7169 ppc64-*linux*|powerpc64-*linux*)
7170 LD="${LD-ld} -m elf32ppclinux"
7173 LD="${LD-ld} -m elf_s390"
7176 LD="${LD-ld} -m elf32_sparc"
7182 x86_64-*kfreebsd*-gnu)
7183 LD="${LD-ld} -m elf_x86_64_fbsd"
7186 LD="${LD-ld} -m elf_x86_64"
7188 ppc*-*linux*|powerpc*-*linux*)
7189 LD="${LD-ld} -m elf64ppc"
7191 s390*-*linux*|s390*-*tpf*)
7192 LD="${LD-ld} -m elf64_s390"
7195 LD="${LD-ld} -m elf64_sparc"
7205 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7206 SAVE_CFLAGS="$CFLAGS"
7207 CFLAGS="$CFLAGS -belf"
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7209 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7210 if ${lt_cv_cc_needs_belf+:} false; then :
7211 $as_echo_n "(cached) " >&6
7214 ac_cpp='$CPP $CPPFLAGS'
7215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7230 if ac_fn_c_try_link "$LINENO"; then :
7231 lt_cv_cc_needs_belf=yes
7233 lt_cv_cc_needs_belf=no
7235 rm -f core conftest.err conftest.$ac_objext \
7236 conftest$ac_exeext conftest.$ac_ext
7238 ac_cpp='$CPP $CPPFLAGS'
7239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7245 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7246 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7247 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7248 CFLAGS="$SAVE_CFLAGS"
7252 # Find out which ABI we are using.
7253 echo 'int i;' > conftest.$ac_ext
7254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7255 (eval $ac_compile) 2>&5
7257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7258 test $ac_status = 0; }; then
7259 case `/usr/bin/file conftest.o` in
7261 case $lt_cv_prog_gnu_ld in
7265 LD="${LD-ld} -m elf_x86_64"
7268 LD="${LD-ld} -m elf64_sparc"
7271 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7272 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7277 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7289 need_locks="$enable_libtool_lock"
7291 if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}mt; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7297 $as_echo_n "(cached) " >&6
7299 if test -n "$MANIFEST_TOOL"; then
7300 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7320 if test -n "$MANIFEST_TOOL"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7322 $as_echo "$MANIFEST_TOOL" >&6; }
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7330 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7331 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7332 # Extract the first word of "mt", so it can be a program name with args.
7333 set dummy mt; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7337 $as_echo_n "(cached) " >&6
7339 if test -n "$ac_ct_MANIFEST_TOOL"; then
7340 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7360 if test -n "$ac_ct_MANIFEST_TOOL"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7362 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7368 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7371 case $cross_compiling:$ac_tool_warned in
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375 ac_tool_warned=yes ;;
7377 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7380 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7383 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7385 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7386 if ${lt_cv_path_mainfest_tool+:} false; then :
7387 $as_echo_n "(cached) " >&6
7389 lt_cv_path_mainfest_tool=no
7390 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7391 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7392 cat conftest.err >&5
7393 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7394 lt_cv_path_mainfest_tool=yes
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7399 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7400 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7410 rhapsody* | darwin*)
7411 if test -n "$ac_tool_prefix"; then
7412 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7417 $as_echo_n "(cached) " >&6
7419 if test -n "$DSYMUTIL"; then
7420 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7440 if test -n "$DSYMUTIL"; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7442 $as_echo "$DSYMUTIL" >&6; }
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7450 if test -z "$ac_cv_prog_DSYMUTIL"; then
7451 ac_ct_DSYMUTIL=$DSYMUTIL
7452 # Extract the first word of "dsymutil", so it can be a program name with args.
7453 set dummy dsymutil; ac_word=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7457 $as_echo_n "(cached) " >&6
7459 if test -n "$ac_ct_DSYMUTIL"; then
7460 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7480 if test -n "$ac_ct_DSYMUTIL"; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7482 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7488 if test "x$ac_ct_DSYMUTIL" = x; then
7491 case $cross_compiling:$ac_tool_warned in
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7495 ac_tool_warned=yes ;;
7497 DSYMUTIL=$ac_ct_DSYMUTIL
7500 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7503 if test -n "$ac_tool_prefix"; then
7504 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7505 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if ${ac_cv_prog_NMEDIT+:} false; then :
7509 $as_echo_n "(cached) " >&6
7511 if test -n "$NMEDIT"; then
7512 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 NMEDIT=$ac_cv_prog_NMEDIT
7532 if test -n "$NMEDIT"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7534 $as_echo "$NMEDIT" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7542 if test -z "$ac_cv_prog_NMEDIT"; then
7543 ac_ct_NMEDIT=$NMEDIT
7544 # Extract the first word of "nmedit", so it can be a program name with args.
7545 set dummy nmedit; ac_word=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7549 $as_echo_n "(cached) " >&6
7551 if test -n "$ac_ct_NMEDIT"; then
7552 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7572 if test -n "$ac_ct_NMEDIT"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7574 $as_echo "$ac_ct_NMEDIT" >&6; }
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7580 if test "x$ac_ct_NMEDIT" = x; then
7583 case $cross_compiling:$ac_tool_warned in
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7587 ac_tool_warned=yes ;;
7589 NMEDIT=$ac_ct_NMEDIT
7592 NMEDIT="$ac_cv_prog_NMEDIT"
7595 if test -n "$ac_tool_prefix"; then
7596 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_LIPO+:} false; then :
7601 $as_echo_n "(cached) " >&6
7603 if test -n "$LIPO"; then
7604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 LIPO=$ac_cv_prog_LIPO
7624 if test -n "$LIPO"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7626 $as_echo "$LIPO" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7634 if test -z "$ac_cv_prog_LIPO"; then
7636 # Extract the first word of "lipo", so it can be a program name with args.
7637 set dummy lipo; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7641 $as_echo_n "(cached) " >&6
7643 if test -n "$ac_ct_LIPO"; then
7644 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_prog_ac_ct_LIPO="lipo"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7664 if test -n "$ac_ct_LIPO"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7666 $as_echo "$ac_ct_LIPO" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7672 if test "x$ac_ct_LIPO" = x; then
7675 case $cross_compiling:$ac_tool_warned in
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned=yes ;;
7684 LIPO="$ac_cv_prog_LIPO"
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}otool; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_prog_OTOOL+:} false; then :
7693 $as_echo_n "(cached) " >&6
7695 if test -n "$OTOOL"; then
7696 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 OTOOL=$ac_cv_prog_OTOOL
7716 if test -n "$OTOOL"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7718 $as_echo "$OTOOL" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7726 if test -z "$ac_cv_prog_OTOOL"; then
7728 # Extract the first word of "otool", so it can be a program name with args.
7729 set dummy otool; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7733 $as_echo_n "(cached) " >&6
7735 if test -n "$ac_ct_OTOOL"; then
7736 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_prog_ac_ct_OTOOL="otool"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7756 if test -n "$ac_ct_OTOOL"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7758 $as_echo "$ac_ct_OTOOL" >&6; }
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7764 if test "x$ac_ct_OTOOL" = x; then
7767 case $cross_compiling:$ac_tool_warned in
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7771 ac_tool_warned=yes ;;
7776 OTOOL="$ac_cv_prog_OTOOL"
7779 if test -n "$ac_tool_prefix"; then
7780 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7781 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_OTOOL64+:} false; then :
7785 $as_echo_n "(cached) " >&6
7787 if test -n "$OTOOL64"; then
7788 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 OTOOL64=$ac_cv_prog_OTOOL64
7808 if test -n "$OTOOL64"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7810 $as_echo "$OTOOL64" >&6; }
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7818 if test -z "$ac_cv_prog_OTOOL64"; then
7819 ac_ct_OTOOL64=$OTOOL64
7820 # Extract the first word of "otool64", so it can be a program name with args.
7821 set dummy otool64; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7825 $as_echo_n "(cached) " >&6
7827 if test -n "$ac_ct_OTOOL64"; then
7828 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_ac_ct_OTOOL64="otool64"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7848 if test -n "$ac_ct_OTOOL64"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7850 $as_echo "$ac_ct_OTOOL64" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7856 if test "x$ac_ct_OTOOL64" = x; then
7859 case $cross_compiling:$ac_tool_warned in
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863 ac_tool_warned=yes ;;
7865 OTOOL64=$ac_ct_OTOOL64
7868 OTOOL64="$ac_cv_prog_OTOOL64"
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7898 $as_echo_n "checking for -single_module linker flag... " >&6; }
7899 if ${lt_cv_apple_cc_single_mod+:} false; then :
7900 $as_echo_n "(cached) " >&6
7902 lt_cv_apple_cc_single_mod=no
7903 if test -z "${LT_MULTI_MODULE}"; then
7904 # By default we will add the -single_module flag. You can override
7905 # by either setting the environment variable LT_MULTI_MODULE
7906 # non-empty at configure time, or by adding -multi_module to the
7908 rm -rf libconftest.dylib*
7909 echo "int foo(void){return 1;}" > conftest.c
7910 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7911 -dynamiclib -Wl,-single_module conftest.c" >&5
7912 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7913 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7915 # If there is a non-empty error log, and "single_module"
7916 # appears in it, assume the flag caused a linker warning
7917 if test -s conftest.err && $GREP single_module conftest.err; then
7918 cat conftest.err >&5
7919 # Otherwise, if the output was created with a 0 exit code from
7920 # the compiler, it worked.
7921 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7922 lt_cv_apple_cc_single_mod=yes
7924 cat conftest.err >&5
7926 rm -rf libconftest.dylib*
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7931 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7934 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7935 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7936 $as_echo_n "(cached) " >&6
7938 lt_cv_ld_exported_symbols_list=no
7939 save_LDFLAGS=$LDFLAGS
7940 echo "_main" > conftest.sym
7941 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7953 if ac_fn_c_try_link "$LINENO"; then :
7954 lt_cv_ld_exported_symbols_list=yes
7956 lt_cv_ld_exported_symbols_list=no
7958 rm -f core conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
7960 LDFLAGS="$save_LDFLAGS"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7964 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7967 $as_echo_n "checking for -force_load linker flag... " >&6; }
7968 if ${lt_cv_ld_force_load+:} false; then :
7969 $as_echo_n "(cached) " >&6
7971 lt_cv_ld_force_load=no
7972 cat > conftest.c << _LT_EOF
7973 int forced_loaded() { return 2;}
7975 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7976 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7977 echo "$AR cru libconftest.a conftest.o" >&5
7978 $AR cru libconftest.a conftest.o 2>&5
7979 echo "$RANLIB libconftest.a" >&5
7980 $RANLIB libconftest.a 2>&5
7981 cat > conftest.c << _LT_EOF
7982 int main() { return 0;}
7984 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7985 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7987 if test -s conftest.err && $GREP force_load conftest.err; then
7988 cat conftest.err >&5
7989 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7990 lt_cv_ld_force_load=yes
7992 cat conftest.err >&5
7994 rm -f conftest.err libconftest.a conftest conftest.c
7995 rm -rf conftest.dSYM
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7999 $as_echo "$lt_cv_ld_force_load" >&6; }
8001 rhapsody* | darwin1.[012])
8002 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8004 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8005 darwin*) # darwin 5.x on
8006 # if running on 10.5 or later, the deployment target defaults
8007 # to the OS version, if on x86, and 10.4, the deployment
8008 # target defaults to 10.4. Don't you love it?
8009 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8010 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8011 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8013 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8019 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8020 _lt_dar_single_mod='$single_module'
8022 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8023 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8025 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8027 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8028 _lt_dsymutil='~$DSYMUTIL $lib || :'
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8037 $as_echo_n "checking for ANSI C header files... " >&6; }
8038 if ${ac_cv_header_stdc+:} false; then :
8039 $as_echo_n "(cached) " >&6
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8056 if ac_fn_c_try_compile "$LINENO"; then :
8057 ac_cv_header_stdc=yes
8059 ac_cv_header_stdc=no
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 if test $ac_cv_header_stdc = yes; then
8064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8071 $EGREP "memchr" >/dev/null 2>&1; then :
8074 ac_cv_header_stdc=no
8080 if test $ac_cv_header_stdc = yes; then
8081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8088 $EGREP "free" >/dev/null 2>&1; then :
8091 ac_cv_header_stdc=no
8097 if test $ac_cv_header_stdc = yes; then
8098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8099 if test "$cross_compiling" = yes; then :
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8106 #if ((' ' & 0x0FF) == 0x020)
8107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8110 # define ISLOWER(c) \
8111 (('a' <= (c) && (c) <= 'i') \
8112 || ('j' <= (c) && (c) <= 'r') \
8113 || ('s' <= (c) && (c) <= 'z'))
8114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8122 for (i = 0; i < 256; i++)
8123 if (XOR (islower (i), ISLOWER (i))
8124 || toupper (i) != TOUPPER (i))
8129 if ac_fn_c_try_run "$LINENO"; then :
8132 ac_cv_header_stdc=no
8134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8135 conftest.$ac_objext conftest.beam conftest.$ac_ext
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8141 $as_echo "$ac_cv_header_stdc" >&6; }
8142 if test $ac_cv_header_stdc = yes; then
8144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8148 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8149 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8150 inttypes.h stdint.h unistd.h
8152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8156 cat >>confdefs.h <<_ACEOF
8157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8165 for ac_header in dlfcn.h
8167 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8169 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8170 cat >>confdefs.h <<_ACEOF
8171 #define HAVE_DLFCN_H 1
8180 func_stripname_cnf ()
8183 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8184 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8186 } # func_stripname_cnf
8202 # Check whether --enable-shared was given.
8203 if test "${enable_shared+set}" = set; then :
8204 enableval=$enable_shared; p=${PACKAGE-default}
8206 yes) enable_shared=yes ;;
8207 no) enable_shared=no ;;
8210 # Look at the argument we got. We use all the common list separators.
8211 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8212 for pkg in $enableval; do
8214 if test "X$pkg" = "X$p"; then
8233 # Check whether --enable-static was given.
8234 if test "${enable_static+set}" = set; then :
8235 enableval=$enable_static; p=${PACKAGE-default}
8237 yes) enable_static=yes ;;
8238 no) enable_static=no ;;
8241 # Look at the argument we got. We use all the common list separators.
8242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8243 for pkg in $enableval; do
8245 if test "X$pkg" = "X$p"; then
8265 # Check whether --with-pic was given.
8266 if test "${with_pic+set}" = set; then :
8267 withval=$with_pic; lt_p=${PACKAGE-default}
8269 yes|no) pic_mode=$withval ;;
8272 # Look at the argument we got. We use all the common list separators.
8273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8274 for lt_pkg in $withval; do
8276 if test "X$lt_pkg" = "X$lt_p"; then
8288 test -z "$pic_mode" && pic_mode=default
8296 # Check whether --enable-fast-install was given.
8297 if test "${enable_fast_install+set}" = set; then :
8298 enableval=$enable_fast_install; p=${PACKAGE-default}
8300 yes) enable_fast_install=yes ;;
8301 no) enable_fast_install=no ;;
8303 enable_fast_install=no
8304 # Look at the argument we got. We use all the common list separators.
8305 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8306 for pkg in $enableval; do
8308 if test "X$pkg" = "X$p"; then
8309 enable_fast_install=yes
8316 enable_fast_install=yes
8329 # This can be used to rebuild libtool when needed
8330 LIBTOOL_DEPS="$ltmain"
8332 # Always use our own libtool.
8333 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8364 test -z "$LN_S" && LN_S="ln -s"
8379 if test -n "${ZSH_VERSION+set}" ; then
8380 setopt NO_GLOB_SUBST
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8384 $as_echo_n "checking for objdir... " >&6; }
8385 if ${lt_cv_objdir+:} false; then :
8386 $as_echo_n "(cached) " >&6
8388 rm -f .libs 2>/dev/null
8389 mkdir .libs 2>/dev/null
8390 if test -d .libs; then
8393 # MS-DOS does not allow filenames that begin with a dot.
8396 rmdir .libs 2>/dev/null
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8399 $as_echo "$lt_cv_objdir" >&6; }
8400 objdir=$lt_cv_objdir
8406 cat >>confdefs.h <<_ACEOF
8407 #define LT_OBJDIR "$lt_cv_objdir/"
8415 # AIX sometimes has problems with the GCC collect2 program. For some
8416 # reason, if we set the COLLECT_NAMES environment variable, the problems
8417 # vanish in a puff of smoke.
8418 if test "X${COLLECT_NAMES+set}" != Xset; then
8420 export COLLECT_NAMES
8427 can_build_shared=yes
8429 # All known linkers require a `.a' archive for static linking (except MSVC,
8430 # which needs '.lib').
8433 with_gnu_ld="$lt_cv_prog_gnu_ld"
8436 old_CFLAGS="$CFLAGS"
8438 # Set sane defaults for various variables
8439 test -z "$CC" && CC=cc
8440 test -z "$LTCC" && LTCC=$CC
8441 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8442 test -z "$LD" && LD=ld
8443 test -z "$ac_objext" && ac_objext=o
8445 for cc_temp in $compiler""; do
8447 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8448 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8453 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8456 # Only perform the check for file, if the check method requires it
8457 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8458 case $deplibs_check_method in
8460 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8462 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8463 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8464 $as_echo_n "(cached) " >&6
8468 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8471 lt_save_MAGIC_CMD="$MAGIC_CMD"
8472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8473 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8474 for ac_dir in $ac_dummy; do
8476 test -z "$ac_dir" && ac_dir=.
8477 if test -f $ac_dir/${ac_tool_prefix}file; then
8478 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8479 if test -n "$file_magic_test_file"; then
8480 case $deplibs_check_method in
8482 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8484 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8485 $EGREP "$file_magic_regex" > /dev/null; then
8490 *** Warning: the command libtool uses to detect shared libraries,
8491 *** $file_magic_cmd, produces output that libtool cannot recognize.
8492 *** The result is that libtool may fail to recognize shared libraries
8493 *** as such. This will affect the creation of libtool libraries that
8494 *** depend on shared libraries, but programs linked with such libtool
8495 *** libraries will work regardless of this problem. Nevertheless, you
8496 *** may want to report the problem to your system manager and/or to
8497 *** bug-libtool@gnu.org
8507 MAGIC_CMD="$lt_save_MAGIC_CMD"
8512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8513 if test -n "$MAGIC_CMD"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8515 $as_echo "$MAGIC_CMD" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8525 if test -z "$lt_cv_path_MAGIC_CMD"; then
8526 if test -n "$ac_tool_prefix"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8528 $as_echo_n "checking for file... " >&6; }
8529 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8530 $as_echo_n "(cached) " >&6
8534 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8537 lt_save_MAGIC_CMD="$MAGIC_CMD"
8538 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8539 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8540 for ac_dir in $ac_dummy; do
8542 test -z "$ac_dir" && ac_dir=.
8543 if test -f $ac_dir/file; then
8544 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8545 if test -n "$file_magic_test_file"; then
8546 case $deplibs_check_method in
8548 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8549 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8550 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8551 $EGREP "$file_magic_regex" > /dev/null; then
8556 *** Warning: the command libtool uses to detect shared libraries,
8557 *** $file_magic_cmd, produces output that libtool cannot recognize.
8558 *** The result is that libtool may fail to recognize shared libraries
8559 *** as such. This will affect the creation of libtool libraries that
8560 *** depend on shared libraries, but programs linked with such libtool
8561 *** libraries will work regardless of this problem. Nevertheless, you
8562 *** may want to report the problem to your system manager and/or to
8563 *** bug-libtool@gnu.org
8573 MAGIC_CMD="$lt_save_MAGIC_CMD"
8578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8579 if test -n "$MAGIC_CMD"; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8581 $as_echo "$MAGIC_CMD" >&6; }
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8597 # Use C for the default configuration in the libtool script
8601 ac_cpp='$CPP $CPPFLAGS'
8602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8607 # Source file extension for C test sources.
8610 # Object file extension for compiled C test sources.
8614 # Code to be used in simple compile tests
8615 lt_simple_compile_test_code="int some_variable = 0;"
8617 # Code to be used in simple link tests
8618 lt_simple_link_test_code='int main(){return(0);}'
8626 # If no C compiler was specified, use CC.
8629 # If no C compiler flags were specified, use CFLAGS.
8630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8632 # Allow CC to be a program name with arguments.
8635 # Save the default compiler, since it gets overwritten when the other
8636 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8637 compiler_DEFAULT=$CC
8639 # save warnings/boilerplate of simple test code
8640 ac_outfile=conftest.$ac_objext
8641 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8642 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8643 _lt_compiler_boilerplate=`cat conftest.err`
8646 ac_outfile=conftest.$ac_objext
8647 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8648 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8649 _lt_linker_boilerplate=`cat conftest.err`
8654 ## There is no encapsulation within the following macros, do not change
8655 ## the running order or otherwise move them around unless you know exactly
8656 ## what you are doing...
8657 if test -n "$compiler"; then
8659 lt_prog_compiler_no_builtin_flag=
8661 if test "$GCC" = yes; then
8662 case $cc_basename in
8664 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8666 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8670 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8671 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8672 $as_echo_n "(cached) " >&6
8674 lt_cv_prog_compiler_rtti_exceptions=no
8675 ac_outfile=conftest.$ac_objext
8676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8677 lt_compiler_flag="-fno-rtti -fno-exceptions"
8678 # Insert the option either (1) after the last *FLAGS variable, or
8679 # (2) before a word containing "conftest.", or (3) at the end.
8680 # Note that $ac_compile itself does not contain backslashes and begins
8681 # with a dollar sign (not a hyphen), so the echo should work correctly.
8682 # The option is referenced via a variable to avoid confusing sed.
8683 lt_compile=`echo "$ac_compile" | $SED \
8684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8686 -e 's:$: $lt_compiler_flag:'`
8687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8688 (eval "$lt_compile" 2>conftest.err)
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 if (exit $ac_status) && test -s "$ac_outfile"; then
8693 # The compiler can only warn and ignore the option if not recognized
8694 # So say no if there are warnings other than the usual output.
8695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8698 lt_cv_prog_compiler_rtti_exceptions=yes
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8705 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8707 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8708 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8720 lt_prog_compiler_wl=
8721 lt_prog_compiler_pic=
8722 lt_prog_compiler_static=
8725 if test "$GCC" = yes; then
8726 lt_prog_compiler_wl='-Wl,'
8727 lt_prog_compiler_static='-static'
8731 # All AIX code is PIC.
8732 if test "$host_cpu" = ia64; then
8733 # AIX 5 now supports IA64 processor
8734 lt_prog_compiler_static='-Bstatic'
8741 # see comment about AmigaOS4 .so support
8742 lt_prog_compiler_pic='-fPIC'
8745 # FIXME: we need at least 68020 code to build shared libraries, but
8746 # adding the `-m68020' flag to GCC prevents building anything better,
8748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8753 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8754 # PIC is the default for these OSes.
8757 mingw* | cygwin* | pw32* | os2* | cegcc*)
8758 # This hack is so that the source file can tell whether it is being
8759 # built for inclusion in a dll (and should export symbols for example).
8760 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8761 # (--disable-auto-import) libraries
8762 lt_prog_compiler_pic='-DDLL_EXPORT'
8765 darwin* | rhapsody*)
8766 # PIC is the default on this platform
8767 # Common symbols not allowed in MH_DYLIB files
8768 lt_prog_compiler_pic='-fno-common'
8772 # PIC is the default for Haiku.
8773 # The "-static" flag exists, but is broken.
8774 lt_prog_compiler_static=
8778 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8779 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8780 # sets the default TLS model and affects inlining.
8786 lt_prog_compiler_pic='-fPIC'
8792 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8793 # Instead, we relocate shared libraries at runtime.
8797 # Just because we use GCC doesn't mean we suddenly get shared libraries
8798 # on systems that don't support them.
8799 lt_prog_compiler_can_build_shared=no
8804 # QNX uses GNU C++, but need to define -shared option too, otherwise
8806 lt_prog_compiler_pic='-fPIC -shared'
8810 if test -d /usr/nec; then
8811 lt_prog_compiler_pic=-Kconform_pic
8816 lt_prog_compiler_pic='-fPIC'
8820 case $cc_basename in
8821 nvcc*) # Cuda Compiler Driver 2.2
8822 lt_prog_compiler_wl='-Xlinker '
8823 if test -n "$lt_prog_compiler_pic"; then
8824 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8829 # PORTME Check for flag to pass linker flags through the system compiler.
8832 lt_prog_compiler_wl='-Wl,'
8833 if test "$host_cpu" = ia64; then
8834 # AIX 5 now supports IA64 processor
8835 lt_prog_compiler_static='-Bstatic'
8837 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8841 mingw* | cygwin* | pw32* | os2* | cegcc*)
8842 # This hack is so that the source file can tell whether it is being
8843 # built for inclusion in a dll (and should export symbols for example).
8844 lt_prog_compiler_pic='-DDLL_EXPORT'
8847 hpux9* | hpux10* | hpux11*)
8848 lt_prog_compiler_wl='-Wl,'
8849 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8856 lt_prog_compiler_pic='+Z'
8859 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8860 lt_prog_compiler_static='${wl}-a ${wl}archive'
8863 irix5* | irix6* | nonstopux*)
8864 lt_prog_compiler_wl='-Wl,'
8865 # PIC (with -KPIC) is the default.
8866 lt_prog_compiler_static='-non_shared'
8869 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8870 case $cc_basename in
8871 # old Intel for x86_64 which still supported -KPIC.
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-static'
8877 # icc used to be incompatible with GCC.
8878 # ICC 10 doesn't accept -KPIC any more.
8880 lt_prog_compiler_wl='-Wl,'
8881 lt_prog_compiler_pic='-fPIC'
8882 lt_prog_compiler_static='-static'
8884 # Lahey Fortran 8.1.
8886 lt_prog_compiler_wl='-Wl,'
8887 lt_prog_compiler_pic='--shared'
8888 lt_prog_compiler_static='--static'
8891 # NAG Fortran compiler
8892 lt_prog_compiler_wl='-Wl,-Wl,,'
8893 lt_prog_compiler_pic='-PIC'
8894 lt_prog_compiler_static='-Bstatic'
8896 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8897 # Portland Group compilers (*not* the Pentium gcc compiler,
8898 # which looks to be a dead project)
8899 lt_prog_compiler_wl='-Wl,'
8900 lt_prog_compiler_pic='-fpic'
8901 lt_prog_compiler_static='-Bstatic'
8904 lt_prog_compiler_wl='-Wl,'
8905 # All Alpha code is PIC.
8906 lt_prog_compiler_static='-non_shared'
8908 xl* | bgxl* | bgf* | mpixl*)
8909 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8910 lt_prog_compiler_wl='-Wl,'
8911 lt_prog_compiler_pic='-qpic'
8912 lt_prog_compiler_static='-qstaticlink'
8915 case `$CC -V 2>&1 | sed 5q` in
8916 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8917 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8918 lt_prog_compiler_pic='-KPIC'
8919 lt_prog_compiler_static='-Bstatic'
8920 lt_prog_compiler_wl=''
8922 *Sun\ F* | *Sun*Fortran*)
8923 lt_prog_compiler_pic='-KPIC'
8924 lt_prog_compiler_static='-Bstatic'
8925 lt_prog_compiler_wl='-Qoption ld '
8929 lt_prog_compiler_pic='-KPIC'
8930 lt_prog_compiler_static='-Bstatic'
8931 lt_prog_compiler_wl='-Wl,'
8933 *Intel*\ [CF]*Compiler*)
8934 lt_prog_compiler_wl='-Wl,'
8935 lt_prog_compiler_pic='-fPIC'
8936 lt_prog_compiler_static='-static'
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-fpic'
8941 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_pic='-KPIC'
8950 lt_prog_compiler_static='-Bstatic'
8954 # QNX uses GNU C++, but need to define -shared option too, otherwise
8956 lt_prog_compiler_pic='-fPIC -shared'
8959 osf3* | osf4* | osf5*)
8960 lt_prog_compiler_wl='-Wl,'
8961 # All OSF/1 code is PIC.
8962 lt_prog_compiler_static='-non_shared'
8966 lt_prog_compiler_static='-non_shared'
8970 lt_prog_compiler_pic='-KPIC'
8971 lt_prog_compiler_static='-Bstatic'
8972 case $cc_basename in
8973 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8974 lt_prog_compiler_wl='-Qoption ld ';;
8976 lt_prog_compiler_wl='-Wl,';;
8981 lt_prog_compiler_wl='-Qoption ld '
8982 lt_prog_compiler_pic='-PIC'
8983 lt_prog_compiler_static='-Bstatic'
8986 sysv4 | sysv4.2uw2* | sysv4.3*)
8987 lt_prog_compiler_wl='-Wl,'
8988 lt_prog_compiler_pic='-KPIC'
8989 lt_prog_compiler_static='-Bstatic'
8993 if test -d /usr/nec ;then
8994 lt_prog_compiler_pic='-Kconform_pic'
8995 lt_prog_compiler_static='-Bstatic'
8999 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9000 lt_prog_compiler_wl='-Wl,'
9001 lt_prog_compiler_pic='-KPIC'
9002 lt_prog_compiler_static='-Bstatic'
9006 lt_prog_compiler_wl='-Wl,'
9007 lt_prog_compiler_can_build_shared=no
9011 lt_prog_compiler_pic='-pic'
9012 lt_prog_compiler_static='-Bstatic'
9016 lt_prog_compiler_can_build_shared=no
9022 # For platforms which do not support PIC, -DPIC is meaningless:
9024 lt_prog_compiler_pic=
9027 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9032 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9033 if ${lt_cv_prog_compiler_pic+:} false; then :
9034 $as_echo_n "(cached) " >&6
9036 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9039 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9040 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9043 # Check to make sure the PIC flag actually works.
9045 if test -n "$lt_prog_compiler_pic"; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9047 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9048 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9049 $as_echo_n "(cached) " >&6
9051 lt_cv_prog_compiler_pic_works=no
9052 ac_outfile=conftest.$ac_objext
9053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9054 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9055 # Insert the option either (1) after the last *FLAGS variable, or
9056 # (2) before a word containing "conftest.", or (3) at the end.
9057 # Note that $ac_compile itself does not contain backslashes and begins
9058 # with a dollar sign (not a hyphen), so the echo should work correctly.
9059 # The option is referenced via a variable to avoid confusing sed.
9060 lt_compile=`echo "$ac_compile" | $SED \
9061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9063 -e 's:$: $lt_compiler_flag:'`
9064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9065 (eval "$lt_compile" 2>conftest.err)
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 if (exit $ac_status) && test -s "$ac_outfile"; then
9070 # The compiler can only warn and ignore the option if not recognized
9071 # So say no if there are warnings other than the usual output.
9072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9075 lt_cv_prog_compiler_pic_works=yes
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9082 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9084 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9085 case $lt_prog_compiler_pic in
9087 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9090 lt_prog_compiler_pic=
9091 lt_prog_compiler_can_build_shared=no
9107 # Check to make sure the static flag actually works.
9109 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9111 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9112 if ${lt_cv_prog_compiler_static_works+:} false; then :
9113 $as_echo_n "(cached) " >&6
9115 lt_cv_prog_compiler_static_works=no
9116 save_LDFLAGS="$LDFLAGS"
9117 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9118 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9120 # The linker can only warn and ignore the option if not recognized
9121 # So say no if there are warnings
9122 if test -s conftest.err; then
9123 # Append any errors to the config.log.
9124 cat conftest.err 1>&5
9125 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9127 if diff conftest.exp conftest.er2 >/dev/null; then
9128 lt_cv_prog_compiler_static_works=yes
9131 lt_cv_prog_compiler_static_works=yes
9135 LDFLAGS="$save_LDFLAGS"
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9139 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9141 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9144 lt_prog_compiler_static=
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9154 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9155 if ${lt_cv_prog_compiler_c_o+:} false; then :
9156 $as_echo_n "(cached) " >&6
9158 lt_cv_prog_compiler_c_o=no
9159 $RM -r conftest 2>/dev/null
9163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165 lt_compiler_flag="-o out/conftest2.$ac_objext"
9166 # Insert the option either (1) after the last *FLAGS variable, or
9167 # (2) before a word containing "conftest.", or (3) at the end.
9168 # Note that $ac_compile itself does not contain backslashes and begins
9169 # with a dollar sign (not a hyphen), so the echo should work correctly.
9170 lt_compile=`echo "$ac_compile" | $SED \
9171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9173 -e 's:$: $lt_compiler_flag:'`
9174 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9175 (eval "$lt_compile" 2>out/conftest.err)
9177 cat out/conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9181 # The compiler can only warn and ignore the option if not recognized
9182 # So say no if there are warnings
9183 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9186 lt_cv_prog_compiler_c_o=yes
9191 # SGI C++ compiler will create directory out/ii_files/ for
9192 # template instantiation
9193 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9194 $RM out/* && rmdir out
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9201 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9209 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9210 if ${lt_cv_prog_compiler_c_o+:} false; then :
9211 $as_echo_n "(cached) " >&6
9213 lt_cv_prog_compiler_c_o=no
9214 $RM -r conftest 2>/dev/null
9218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9220 lt_compiler_flag="-o out/conftest2.$ac_objext"
9221 # Insert the option either (1) after the last *FLAGS variable, or
9222 # (2) before a word containing "conftest.", or (3) at the end.
9223 # Note that $ac_compile itself does not contain backslashes and begins
9224 # with a dollar sign (not a hyphen), so the echo should work correctly.
9225 lt_compile=`echo "$ac_compile" | $SED \
9226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9228 -e 's:$: $lt_compiler_flag:'`
9229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9230 (eval "$lt_compile" 2>out/conftest.err)
9232 cat out/conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9236 # The compiler can only warn and ignore the option if not recognized
9237 # So say no if there are warnings
9238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9241 lt_cv_prog_compiler_c_o=yes
9246 # SGI C++ compiler will create directory out/ii_files/ for
9247 # template instantiation
9248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9249 $RM out/* && rmdir out
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9256 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9261 hard_links="nottested"
9262 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9263 # do not overwrite the value of need_locks provided by the user
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9265 $as_echo_n "checking if we can lock with hard links... " >&6; }
9268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9270 ln conftest.a conftest.b 2>&5 || hard_links=no
9271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9273 $as_echo "$hard_links" >&6; }
9274 if test "$hard_links" = no; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9276 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9289 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9292 allow_undefined_flag=
9293 always_export_symbols=no
9295 archive_expsym_cmds=
9296 compiler_needs_object=no
9297 enable_shared_with_static_runtimes=no
9298 export_dynamic_flag_spec=
9299 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9300 hardcode_automatic=no
9302 hardcode_direct_absolute=no
9303 hardcode_libdir_flag_spec=
9304 hardcode_libdir_separator=
9306 hardcode_shlibpath_var=unsupported
9308 link_all_deplibs=unknown
9311 old_archive_from_new_cmds=
9312 old_archive_from_expsyms_cmds=
9313 thread_safe_flag_spec=
9314 whole_archive_flag_spec=
9315 # include_expsyms should be a list of space-separated symbols to be *always*
9316 # included in the symbol list
9318 # exclude_expsyms can be an extended regexp of symbols to exclude
9319 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9320 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9321 # as well as any symbol that contains `d'.
9322 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9323 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9324 # platforms (ab)use it in PIC code, but their linkers get confused if
9325 # the symbol is explicitly referenced. Since portable code cannot
9326 # rely on this symbol name, it's probably fine to never include it in
9327 # preloaded symbol tables.
9328 # Exclude shared library initialization/finalization symbols.
9329 extract_expsyms_cmds=
9332 cygwin* | mingw* | pw32* | cegcc*)
9333 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9334 # When not using gcc, we currently assume that we are using
9335 # Microsoft Visual C++.
9336 if test "$GCC" != yes; then
9341 # we just hope/assume this is gcc and not c89 (= MSVC++)
9347 linux* | k*bsd*-gnu | gnu*)
9354 # On some targets, GNU ld is compatible enough with the native linker
9355 # that we're better off using the native interface for both.
9356 lt_use_gnu_ld_interface=no
9357 if test "$with_gnu_ld" = yes; then
9360 # The AIX port of GNU ld has always aspired to compatibility
9361 # with the native linker. However, as the warning in the GNU ld
9362 # block says, versions before 2.19.5* couldn't really create working
9363 # shared libraries, regardless of the interface used.
9364 case `$LD -v 2>&1` in
9365 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9366 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9367 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9369 lt_use_gnu_ld_interface=yes
9374 lt_use_gnu_ld_interface=yes
9379 if test "$lt_use_gnu_ld_interface" = yes; then
9380 # If archive_cmds runs LD, not CC, wlarc should be empty
9383 # Set some defaults for GNU ld with shared library support. These
9384 # are reset later if shared libraries are not supported. Putting them
9385 # here allows them to be overridden if necessary.
9386 runpath_var=LD_RUN_PATH
9387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9388 export_dynamic_flag_spec='${wl}--export-dynamic'
9389 # ancient GNU ld didn't support --whole-archive et. al.
9390 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9391 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9393 whole_archive_flag_spec=
9395 supports_anon_versioning=no
9396 case `$LD -v 2>&1` in
9397 *GNU\ gold*) supports_anon_versioning=yes ;;
9398 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9399 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9400 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9401 *\ 2.11.*) ;; # other 2.11 versions
9402 *) supports_anon_versioning=yes ;;
9405 # See if GNU ld supports shared libraries.
9408 # On AIX/PPC, the GNU linker is very broken
9409 if test "$host_cpu" != ia64; then
9413 *** Warning: the GNU linker, at least up to release 2.19, is reported
9414 *** to be unable to reliably create shared libraries on AIX.
9415 *** Therefore, libtool is disabling shared libraries support. If you
9416 *** really care for shared libraries, you may want to install binutils
9417 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9418 *** You will then need to restart the configuration process.
9427 # see comment about AmigaOS4 .so support
9428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9429 archive_expsym_cmds=''
9432 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)'
9433 hardcode_libdir_flag_spec='-L$libdir'
9434 hardcode_minus_L=yes
9440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9441 allow_undefined_flag=unsupported
9442 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9443 # support --undefined. This deserves some investigation. FIXME
9444 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9450 cygwin* | mingw* | pw32* | cegcc*)
9451 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9452 # as there is no search path for DLLs.
9453 hardcode_libdir_flag_spec='-L$libdir'
9454 export_dynamic_flag_spec='${wl}--export-all-symbols'
9455 allow_undefined_flag=unsupported
9456 always_export_symbols=no
9457 enable_shared_with_static_runtimes=yes
9458 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'
9459 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9461 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9463 # If the export-symbols file already is a .def file (1st line
9464 # is EXPORTS), use it as is; otherwise, prepend...
9465 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9466 cp $export_symbols $output_objdir/$soname.def;
9468 echo EXPORTS > $output_objdir/$soname.def;
9469 cat $export_symbols >> $output_objdir/$soname.def;
9471 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479 link_all_deplibs=yes
9484 hardcode_shlibpath_var=no
9485 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9486 export_dynamic_flag_spec='${wl}-E'
9487 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9488 # Instead, shared libraries are loaded at an image base (0x10000000 by
9489 # default) and relocated if they conflict, which is a slow very memory
9490 # consuming and fragmenting process. To avoid this, we pick a random,
9491 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9492 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9493 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9494 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'
9497 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9499 if test "$host_os" = linux-dietlibc; then
9500 case $cc_basename in
9501 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9504 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9505 && test "$tmp_diet" = no
9507 tmp_addflag=' $pic_flag'
9508 tmp_sharedflag='-shared'
9509 case $cc_basename,$host_cpu in
9510 pgcc*) # Portland Group C compiler
9511 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'
9512 tmp_addflag=' $pic_flag'
9514 pgf77* | pgf90* | pgf95* | pgfortran*)
9515 # Portland Group f77 and f90 compilers
9516 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'
9517 tmp_addflag=' $pic_flag -Mnomain' ;;
9518 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9519 tmp_addflag=' -i_dynamic' ;;
9520 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9521 tmp_addflag=' -i_dynamic -nofor_main' ;;
9522 ifc* | ifort*) # Intel Fortran compiler
9523 tmp_addflag=' -nofor_main' ;;
9524 lf95*) # Lahey Fortran 8.1
9525 whole_archive_flag_spec=
9526 tmp_sharedflag='--shared' ;;
9527 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9528 tmp_sharedflag='-qmkshrobj'
9530 nvcc*) # Cuda Compiler Driver 2.2
9531 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'
9532 compiler_needs_object=yes
9535 case `$CC -V 2>&1 | sed 5q` in
9536 *Sun\ C*) # Sun C 5.9
9537 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'
9538 compiler_needs_object=yes
9539 tmp_sharedflag='-G' ;;
9540 *Sun\ F*) # Sun Fortran 8.3
9541 tmp_sharedflag='-G' ;;
9543 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9545 if test "x$supports_anon_versioning" = xyes; then
9546 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9547 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9548 echo "local: *; };" >> $output_objdir/$libname.ver~
9549 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9552 case $cc_basename in
9553 xlf* | bgf* | bgxlf* | mpixlf*)
9554 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9555 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9558 if test "x$supports_anon_versioning" = xyes; then
9559 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9561 echo "local: *; };" >> $output_objdir/$libname.ver~
9562 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9571 netbsd* | netbsdelf*-gnu)
9572 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9573 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9577 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9582 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9586 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9587 *** create shared libraries on Solaris systems. Therefore, libtool
9588 *** is disabling shared libraries support. We urge you to upgrade GNU
9589 *** binutils to release 2.9.1 or newer. Another option is to modify
9590 *** your PATH or compiler configuration so that the native linker is
9591 *** used, and then restart.
9594 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9603 case `$LD -v 2>&1` in
9604 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9608 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9609 *** reliably create shared libraries on SCO systems. Therefore, libtool
9610 *** is disabling shared libraries support. We urge you to upgrade GNU
9611 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9612 *** your PATH or compiler configuration so that the native linker is
9613 *** used, and then restart.
9618 # For security reasons, it is highly recommended that you always
9619 # use absolute paths for naming shared libraries, and exclude the
9620 # DT_RUNPATH tag from executables and libraries. But doing so
9621 # requires that you compile everything twice, which is a pain.
9622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9634 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_shlibpath_var=no
9641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9642 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9643 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9650 if test "$ld_shlibs" = no; then
9652 hardcode_libdir_flag_spec=
9653 export_dynamic_flag_spec=
9654 whole_archive_flag_spec=
9657 # PORTME fill in a description of your system's linker (not GNU ld)
9660 allow_undefined_flag=unsupported
9661 always_export_symbols=yes
9662 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'
9663 # Note: this linker hardcodes the directories in LIBPATH if there
9664 # are no directories specified by -L.
9665 hardcode_minus_L=yes
9666 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9667 # Neither direct hardcoding nor static linking is supported with a
9669 hardcode_direct=unsupported
9674 if test "$host_cpu" = ia64; then
9675 # On IA64, the linker does run time linking by default, so we don't
9676 # have to do anything special.
9677 aix_use_runtimelinking=no
9678 exp_sym_flag='-Bexport'
9681 # If we're using GNU nm, then we don't want the "-C" option.
9682 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9683 # Also, AIX nm treats weak defined symbols like other global
9684 # defined symbols, whereas GNU nm marks them as "W".
9685 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9686 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'
9688 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'
9690 aix_use_runtimelinking=no
9692 # Test if we are trying to use run time linking or normal
9693 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9694 # need to do runtime linking.
9695 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9696 for ld_flag in $LDFLAGS; do
9697 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9698 aix_use_runtimelinking=yes
9705 exp_sym_flag='-bexport'
9706 no_entry_flag='-bnoentry'
9709 # When large executables or shared objects are built, AIX ld can
9710 # have problems creating the table of contents. If linking a library
9711 # or program results in "error TOC overflow" add -mminimal-toc to
9712 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9713 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9717 hardcode_direct_absolute=yes
9718 hardcode_libdir_separator=':'
9719 link_all_deplibs=yes
9720 file_list_spec='${wl}-f,'
9722 if test "$GCC" = yes; then
9723 case $host_os in aix4.[012]|aix4.[012].*)
9724 # We only want to do this on AIX 4.2 and lower, the check
9725 # below for broken collect2 doesn't work under 4.3+
9726 collect2name=`${CC} -print-prog-name=collect2`
9727 if test -f "$collect2name" &&
9728 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9730 # We have reworked collect2
9733 # We have old collect2
9734 hardcode_direct=unsupported
9735 # It fails to find uninstalled libraries when the uninstalled
9736 # path is not listed in the libpath. Setting hardcode_minus_L
9737 # to unsupported forces relinking
9738 hardcode_minus_L=yes
9739 hardcode_libdir_flag_spec='-L$libdir'
9740 hardcode_libdir_separator=
9744 shared_flag='-shared'
9745 if test "$aix_use_runtimelinking" = yes; then
9746 shared_flag="$shared_flag "'${wl}-G'
9751 if test "$host_cpu" = ia64; then
9752 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9753 # chokes on -Wl,-G. The following line is correct:
9756 if test "$aix_use_runtimelinking" = yes; then
9757 shared_flag='${wl}-G'
9759 shared_flag='${wl}-bM:SRE'
9764 export_dynamic_flag_spec='${wl}-bexpall'
9765 # It seems that -bexpall does not export symbols beginning with
9766 # underscore (_), so it is better to generate a list of symbols to export.
9767 always_export_symbols=yes
9768 if test "$aix_use_runtimelinking" = yes; then
9769 # Warning - without using the other runtime loading flags (-brtl),
9770 # -berok will link without error, but may produce a broken library.
9771 allow_undefined_flag='-berok'
9772 # Determine the default libpath from the value encoded in an
9774 if test "${lt_cv_aix_libpath+set}" = set; then
9775 aix_libpath=$lt_cv_aix_libpath
9777 if ${lt_cv_aix_libpath_+:} false; then :
9778 $as_echo_n "(cached) " >&6
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9791 if ac_fn_c_try_link "$LINENO"; then :
9793 lt_aix_libpath_sed='
9794 /Import File Strings/,/^$/ {
9796 s/^0 *\([^ ]*\) *$/\1/
9800 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9801 # Check for a 64-bit object if we didn't find anything.
9802 if test -z "$lt_cv_aix_libpath_"; then
9803 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9806 rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 if test -z "$lt_cv_aix_libpath_"; then
9809 lt_cv_aix_libpath_="/usr/lib:/lib"
9814 aix_libpath=$lt_cv_aix_libpath_
9817 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9818 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"
9820 if test "$host_cpu" = ia64; then
9821 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9822 allow_undefined_flag="-z nodefs"
9823 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"
9825 # Determine the default libpath from the value encoded in an
9827 if test "${lt_cv_aix_libpath+set}" = set; then
9828 aix_libpath=$lt_cv_aix_libpath
9830 if ${lt_cv_aix_libpath_+:} false; then :
9831 $as_echo_n "(cached) " >&6
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9844 if ac_fn_c_try_link "$LINENO"; then :
9846 lt_aix_libpath_sed='
9847 /Import File Strings/,/^$/ {
9849 s/^0 *\([^ ]*\) *$/\1/
9853 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9854 # Check for a 64-bit object if we didn't find anything.
9855 if test -z "$lt_cv_aix_libpath_"; then
9856 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9859 rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
9861 if test -z "$lt_cv_aix_libpath_"; then
9862 lt_cv_aix_libpath_="/usr/lib:/lib"
9867 aix_libpath=$lt_cv_aix_libpath_
9870 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9871 # Warning - without using the other run time loading flags,
9872 # -berok will link without error, but may produce a broken library.
9873 no_undefined_flag=' ${wl}-bernotok'
9874 allow_undefined_flag=' ${wl}-berok'
9875 if test "$with_gnu_ld" = yes; then
9876 # We only use this code for GNU lds that support --whole-archive.
9877 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9879 # Exported symbols can be pulled into shared objects from archives
9880 whole_archive_flag_spec='$convenience'
9882 archive_cmds_need_lc=yes
9883 # This is similar to how AIX traditionally builds its shared libraries.
9884 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'
9892 # see comment about AmigaOS4 .so support
9893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9894 archive_expsym_cmds=''
9897 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)'
9898 hardcode_libdir_flag_spec='-L$libdir'
9899 hardcode_minus_L=yes
9905 export_dynamic_flag_spec=-rdynamic
9908 cygwin* | mingw* | pw32* | cegcc*)
9909 # When not using gcc, we currently assume that we are using
9910 # Microsoft Visual C++.
9911 # hardcode_libdir_flag_spec is actually meaningless, as there is
9912 # no search path for DLLs.
9913 case $cc_basename in
9916 hardcode_libdir_flag_spec=' '
9917 allow_undefined_flag=unsupported
9918 always_export_symbols=yes
9920 # Tell ltmain to make .lib files, not .a files.
9922 # Tell ltmain to make .dll files, not .so files.
9924 # FIXME: Setting linknames here is a bad hack.
9925 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9926 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9927 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9929 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9931 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9933 # The linker will not automatically build a static lib if we build a DLL.
9934 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9935 enable_shared_with_static_runtimes=yes
9936 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9939 old_postinstall_cmds='chmod 644 $oldlib'
9940 postlink_cmds='lt_outputfile="@OUTPUT@"~
9941 lt_tool_outputfile="@TOOL_OUTPUT@"~
9942 case $lt_outputfile in
9945 lt_outputfile="$lt_outputfile.exe"
9946 lt_tool_outputfile="$lt_tool_outputfile.exe"
9949 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9950 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9951 $RM "$lt_outputfile.manifest";
9955 # Assume MSVC wrapper
9956 hardcode_libdir_flag_spec=' '
9957 allow_undefined_flag=unsupported
9958 # Tell ltmain to make .lib files, not .a files.
9960 # Tell ltmain to make .dll files, not .so files.
9962 # FIXME: Setting linknames here is a bad hack.
9963 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9964 # The linker will automatically build a .lib file if we build a DLL.
9965 old_archive_from_new_cmds='true'
9966 # FIXME: Should let the user specify the lib program.
9967 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9968 enable_shared_with_static_runtimes=yes
9973 darwin* | rhapsody*)
9976 archive_cmds_need_lc=no
9978 hardcode_automatic=yes
9979 hardcode_shlibpath_var=unsupported
9980 if test "$lt_cv_ld_force_load" = "yes"; then
9981 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\"`'
9984 whole_archive_flag_spec=''
9986 link_all_deplibs=yes
9987 allow_undefined_flag="$_lt_dar_allow_undefined"
9988 case $cc_basename in
9989 ifort*) _lt_dar_can_shared=yes ;;
9990 *) _lt_dar_can_shared=$GCC ;;
9992 if test "$_lt_dar_can_shared" = "yes"; then
9993 output_verbose_link_cmd=func_echo_all
9994 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9995 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9996 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}"
9997 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}"
10006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007 hardcode_libdir_flag_spec='-L$libdir'
10008 hardcode_shlibpath_var=no
10011 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10012 # support. Future versions do this automatically, but an explicit c++rt0.o
10013 # does not break anything, and helps significantly (at the cost of a little
10016 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10017 hardcode_libdir_flag_spec='-R$libdir'
10018 hardcode_direct=yes
10019 hardcode_shlibpath_var=no
10022 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10024 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10025 hardcode_direct=yes
10026 hardcode_minus_L=yes
10027 hardcode_shlibpath_var=no
10030 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10031 freebsd* | dragonfly*)
10032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10033 hardcode_libdir_flag_spec='-R$libdir'
10034 hardcode_direct=yes
10035 hardcode_shlibpath_var=no
10039 if test "$GCC" = yes; then
10040 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'
10042 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'
10044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10045 hardcode_libdir_separator=:
10046 hardcode_direct=yes
10048 # hardcode_minus_L: Not really in the search PATH,
10049 # but as the default location of the library.
10050 hardcode_minus_L=yes
10051 export_dynamic_flag_spec='${wl}-E'
10055 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10056 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10060 if test "$with_gnu_ld" = no; then
10061 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10062 hardcode_libdir_separator=:
10063 hardcode_direct=yes
10064 hardcode_direct_absolute=yes
10065 export_dynamic_flag_spec='${wl}-E'
10066 # hardcode_minus_L: Not really in the search PATH,
10067 # but as the default location of the library.
10068 hardcode_minus_L=yes
10073 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10076 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10095 # Older versions of the 11.00 compiler do not understand -b yet
10096 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10098 $as_echo_n "checking if $CC understands -b... " >&6; }
10099 if ${lt_cv_prog_compiler__b+:} false; then :
10100 $as_echo_n "(cached) " >&6
10102 lt_cv_prog_compiler__b=no
10103 save_LDFLAGS="$LDFLAGS"
10104 LDFLAGS="$LDFLAGS -b"
10105 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10106 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10107 # The linker can only warn and ignore the option if not recognized
10108 # So say no if there are warnings
10109 if test -s conftest.err; then
10110 # Append any errors to the config.log.
10111 cat conftest.err 1>&5
10112 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10114 if diff conftest.exp conftest.er2 >/dev/null; then
10115 lt_cv_prog_compiler__b=yes
10118 lt_cv_prog_compiler__b=yes
10122 LDFLAGS="$save_LDFLAGS"
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10126 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10128 if test x"$lt_cv_prog_compiler__b" = xyes; then
10129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10131 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10137 if test "$with_gnu_ld" = no; then
10138 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10139 hardcode_libdir_separator=:
10144 hardcode_shlibpath_var=no
10147 hardcode_direct=yes
10148 hardcode_direct_absolute=yes
10149 export_dynamic_flag_spec='${wl}-E'
10151 # hardcode_minus_L: Not really in the search PATH,
10152 # but as the default location of the library.
10153 hardcode_minus_L=yes
10159 irix5* | irix6* | nonstopux*)
10160 if test "$GCC" = yes; then
10161 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'
10162 # Try to use the -exported_symbol ld option, if it does not
10163 # work, assume that -exports_file does not work either and
10164 # implicitly export all symbols.
10165 # This should be the same for all languages, so no per-tag cache variable.
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10167 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10168 if ${lt_cv_irix_exported_symbol+:} false; then :
10169 $as_echo_n "(cached) " >&6
10171 save_LDFLAGS="$LDFLAGS"
10172 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175 int foo (void) { return 0; }
10177 if ac_fn_c_try_link "$LINENO"; then :
10178 lt_cv_irix_exported_symbol=yes
10180 lt_cv_irix_exported_symbol=no
10182 rm -f core conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
10184 LDFLAGS="$save_LDFLAGS"
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10187 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10188 if test "$lt_cv_irix_exported_symbol" = yes; then
10189 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'
10192 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'
10193 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'
10195 archive_cmds_need_lc='no'
10196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197 hardcode_libdir_separator=:
10199 link_all_deplibs=yes
10202 netbsd* | netbsdelf*-gnu)
10203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10208 hardcode_libdir_flag_spec='-R$libdir'
10209 hardcode_direct=yes
10210 hardcode_shlibpath_var=no
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_direct=yes
10216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10217 hardcode_libdir_separator=:
10218 hardcode_shlibpath_var=no
10225 if test -f /usr/libexec/ld.so; then
10226 hardcode_direct=yes
10227 hardcode_shlibpath_var=no
10228 hardcode_direct_absolute=yes
10229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10233 export_dynamic_flag_spec='${wl}-E'
10236 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_libdir_flag_spec='-R$libdir'
10241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_minus_L=yes
10254 allow_undefined_flag=unsupported
10255 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'
10256 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10260 if test "$GCC" = yes; then
10261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10262 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'
10264 allow_undefined_flag=' -expect_unresolved \*'
10265 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'
10267 archive_cmds_need_lc='no'
10268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269 hardcode_libdir_separator=:
10272 osf4* | osf5*) # as osf3* with the addition of -msym flag
10273 if test "$GCC" = yes; then
10274 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10275 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'
10276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10278 allow_undefined_flag=' -expect_unresolved \*'
10279 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'
10280 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~
10281 $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'
10283 # Both c and cxx compiler support -rpath directly
10284 hardcode_libdir_flag_spec='-rpath $libdir'
10286 archive_cmds_need_lc='no'
10287 hardcode_libdir_separator=:
10291 no_undefined_flag=' -z defs'
10292 if test "$GCC" = yes; then
10294 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296 $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'
10298 case `$CC -V 2>&1` in
10301 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10307 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10309 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10313 hardcode_libdir_flag_spec='-R$libdir'
10314 hardcode_shlibpath_var=no
10316 solaris2.[0-5] | solaris2.[0-5].*) ;;
10318 # The compiler driver will combine and reorder linker options,
10319 # but understands `-z linker_flag'. GCC discards it without `$wl',
10320 # but is careful enough not to reorder.
10321 # Supported since Solaris 2.6 (maybe 2.5.1?)
10322 if test "$GCC" = yes; then
10323 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10325 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10329 link_all_deplibs=yes
10333 if test "x$host_vendor" = xsequent; then
10334 # Use $CC to link under sequent, because it throws in some extra .o
10335 # files that make .init and .fini sections work.
10336 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10340 hardcode_libdir_flag_spec='-L$libdir'
10341 hardcode_direct=yes
10342 hardcode_minus_L=yes
10343 hardcode_shlibpath_var=no
10347 case $host_vendor in
10349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350 hardcode_direct=yes # is this really true???
10353 ## LD is ld it makes a PLAMLIB
10354 ## CC just makes a GrossModule.
10355 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10356 reload_cmds='$CC -r -o $output$reload_objs'
10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10364 runpath_var='LD_RUN_PATH'
10365 hardcode_shlibpath_var=no
10369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_shlibpath_var=no
10371 export_dynamic_flag_spec='-Bexport'
10375 if test -d /usr/nec; then
10376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10377 hardcode_shlibpath_var=no
10378 runpath_var=LD_RUN_PATH
10379 hardcode_runpath_var=yes
10384 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10385 no_undefined_flag='${wl}-z,text'
10386 archive_cmds_need_lc=no
10387 hardcode_shlibpath_var=no
10388 runpath_var='LD_RUN_PATH'
10390 if test "$GCC" = yes; then
10391 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 sysv5* | sco3.2v5* | sco5v6*)
10400 # Note: We can NOT use -z defs as we might desire, because we do not
10401 # link with -lc, and that would cause any symbols used from libc to
10402 # always be unresolved, which means just about no library would
10403 # ever link correctly. If we're not using GNU ld we use -z text
10404 # though, which does catch some bad symbols but isn't as heavy-handed
10406 no_undefined_flag='${wl}-z,text'
10407 allow_undefined_flag='${wl}-z,nodefs'
10408 archive_cmds_need_lc=no
10409 hardcode_shlibpath_var=no
10410 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10411 hardcode_libdir_separator=':'
10412 link_all_deplibs=yes
10413 export_dynamic_flag_spec='${wl}-Bexport'
10414 runpath_var='LD_RUN_PATH'
10416 if test "$GCC" = yes; then
10417 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 hardcode_libdir_flag_spec='-L$libdir'
10428 hardcode_shlibpath_var=no
10436 if test x$host_vendor = xsni; then
10438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10439 export_dynamic_flag_spec='${wl}-Blargedynsym'
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10446 $as_echo "$ld_shlibs" >&6; }
10447 test "$ld_shlibs" = no && can_build_shared=no
10449 with_gnu_ld=$with_gnu_ld
10466 # Do we need to explicitly link libc?
10468 case "x$archive_cmds_need_lc" in
10470 # Assume -lc should be added
10471 archive_cmds_need_lc=yes
10473 if test "$enable_shared" = yes && test "$GCC" = yes; then
10474 case $archive_cmds in
10476 # FIXME: we may have to deal with multi-command sequences.
10479 # Test whether the compiler implicitly links with -lc since on some
10480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10481 # to ld, don't add -lc before -lgcc.
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10483 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10484 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10485 $as_echo_n "(cached) " >&6
10488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10491 (eval $ac_compile) 2>&5
10493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494 test $ac_status = 0; } 2>conftest.err; then
10497 libobjs=conftest.$ac_objext
10499 wl=$lt_prog_compiler_wl
10500 pic_flag=$lt_prog_compiler_pic
10506 lt_save_allow_undefined_flag=$allow_undefined_flag
10507 allow_undefined_flag=
10508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10509 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10512 test $ac_status = 0; }
10514 lt_cv_archive_cmds_need_lc=no
10516 lt_cv_archive_cmds_need_lc=yes
10518 allow_undefined_flag=$lt_save_allow_undefined_flag
10520 cat conftest.err 1>&5
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10526 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10527 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10686 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10688 if test "$GCC" = yes; then
10690 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10691 *) lt_awk_arg="/^libraries:/" ;;
10694 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10695 *) lt_sed_strip_eq="s,=/,/,g" ;;
10697 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10698 case $lt_search_path_spec in
10700 # if the path contains ";" then we assume it to be the separator
10701 # otherwise default to the standard path separator (i.e. ":") - it is
10702 # assumed that no part of a normal pathname contains ";" but that should
10703 # okay in the real world where ";" in dirpaths is itself problematic.
10704 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10707 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10710 # Ok, now we have the path, separated by spaces, we can step through it
10711 # and add multilib dir if necessary.
10712 lt_tmp_lt_search_path_spec=
10713 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10714 for lt_sys_path in $lt_search_path_spec; do
10715 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10716 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10718 test -d "$lt_sys_path" && \
10719 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10722 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10723 BEGIN {RS=" "; FS="/|\n";} {
10726 for (lt_i = NF; lt_i > 0; lt_i--) {
10727 if ($lt_i != "" && $lt_i != ".") {
10728 if ($lt_i == "..") {
10731 if (lt_count == 0) {
10732 lt_foo="/" $lt_i lt_foo;
10739 if (lt_foo != "") { lt_freq[lt_foo]++; }
10740 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10742 # AWK program above erroneously prepends '/' to C:/dos/paths
10745 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10746 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10748 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10752 library_names_spec=
10753 libname_spec='lib$name'
10757 postuninstall_cmds=
10761 shlibpath_overrides_runpath=unknown
10763 dynamic_linker="$host_os ld.so"
10764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10765 need_lib_prefix=unknown
10766 hardcode_into_libs=no
10768 # when you set need_version to no, make sure it does not cause -set_version
10769 # flags to be left without arguments
10770 need_version=unknown
10774 version_type=linux # correct to gnu/linux during the next big refactor
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10776 shlibpath_var=LIBPATH
10778 # AIX 3 has no versioning support, so we append a major version to the name.
10779 soname_spec='${libname}${release}${shared_ext}$major'
10783 version_type=linux # correct to gnu/linux during the next big refactor
10786 hardcode_into_libs=yes
10787 if test "$host_cpu" = ia64; then
10788 # AIX 5 supports IA64
10789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10790 shlibpath_var=LD_LIBRARY_PATH
10792 # With GCC up to 2.95.x, collect2 would create an import file
10793 # for dependence libraries. The import file would start with
10794 # the line `#! .'. This would cause the generated library to
10795 # depend on `.', always an invalid library. This was fixed in
10796 # development snapshots of GCC prior to 3.0.
10798 aix4 | aix4.[01] | aix4.[01].*)
10799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10801 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10804 can_build_shared=no
10808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10809 # soname into executable. Probably we can add versioning support to
10810 # collect2, so additional links can be useful in future.
10811 if test "$aix_use_runtimelinking" = yes; then
10812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10813 # instead of lib<name>.a to let people know that these are not
10814 # typical AIX shared libraries.
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 # We preserve .a as extension for shared libraries through AIX4.2
10818 # and later when we are not doing run time linking.
10819 library_names_spec='${libname}${release}.a $libname.a'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10822 shlibpath_var=LIBPATH
10829 # Since July 2007 AmigaOS4 officially supports .so libraries.
10830 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834 library_names_spec='$libname.ixlibrary $libname.a'
10835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10836 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'
10842 library_names_spec='${libname}${shared_ext}'
10843 dynamic_linker="$host_os ld.so"
10844 shlibpath_var=LIBRARY_PATH
10848 version_type=linux # correct to gnu/linux during the next big refactor
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10853 shlibpath_var=LD_LIBRARY_PATH
10854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10856 # the default ld.so.conf also contains /usr/contrib/lib and
10857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10858 # libtool to hard-code these into programs
10861 cygwin* | mingw* | pw32* | cegcc*)
10862 version_type=windows
10867 case $GCC,$cc_basename in
10870 library_names_spec='$libname.dll.a'
10871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10872 postinstall_cmds='base_file=`basename \${file}`~
10873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10874 dldir=$destdir/`dirname \$dlpath`~
10875 test -d \$dldir || mkdir -p \$dldir~
10876 $install_prog $dir/$dlname \$dldir/$dlname~
10877 chmod a+x \$dldir/$dlname~
10878 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10879 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10882 dlpath=$dir/\$dldll~
10884 shlibpath_overrides_runpath=yes
10888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10889 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10891 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10894 # MinGW DLLs use traditional 'lib' prefix
10895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10898 # pw32 DLLs use 'pw' prefix rather than 'lib'
10899 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10902 dynamic_linker='Win32 ld.exe'
10907 libname_spec='$name'
10908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10909 library_names_spec='${libname}.dll.lib'
10913 sys_lib_search_path_spec=
10916 for lt_path in $LIB
10919 # Let DOS variable expansion print the short 8.3 style file name.
10920 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10921 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10924 # Convert to MSYS style.
10925 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10928 # Convert to unix form, then to dos form, then back to unix form
10929 # but this time dos style (no spaces!) so that the unix form looks
10930 # like /cygdrive/c/PROGRA~1:/cygdr...
10931 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10932 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10933 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10936 sys_lib_search_path_spec="$LIB"
10937 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10938 # It is most probably a Windows format PATH.
10939 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10941 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10943 # FIXME: find the short name or the path components, as spaces are
10944 # common. (e.g. "Program Files" -> "PROGRA~1")
10948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10949 postinstall_cmds='base_file=`basename \${file}`~
10950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10951 dldir=$destdir/`dirname \$dlpath`~
10952 test -d \$dldir || mkdir -p \$dldir~
10953 $install_prog $dir/$dlname \$dldir/$dlname'
10954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10955 dlpath=$dir/\$dldll~
10957 shlibpath_overrides_runpath=yes
10958 dynamic_linker='Win32 link.exe'
10962 # Assume MSVC wrapper
10963 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10964 dynamic_linker='Win32 ld.exe'
10967 # FIXME: first we should search . and the directory the executable is in
10971 darwin* | rhapsody*)
10972 dynamic_linker="$host_os dyld"
10973 version_type=darwin
10976 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10977 soname_spec='${libname}${release}${major}$shared_ext'
10978 shlibpath_overrides_runpath=yes
10979 shlibpath_var=DYLD_LIBRARY_PATH
10980 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10987 version_type=linux # correct to gnu/linux during the next big refactor
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 shlibpath_var=LD_LIBRARY_PATH
10995 freebsd* | dragonfly*)
10996 # DragonFly does not have aout. When/if they implement a new
10997 # versioning mechanism, adjust this.
10998 if test -x /usr/bin/objformat; then
10999 objformat=`/usr/bin/objformat`
11002 freebsd[23].*) objformat=aout ;;
11003 *) objformat=elf ;;
11006 version_type=freebsd-$objformat
11007 case $version_type in
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11018 shlibpath_var=LD_LIBRARY_PATH
11021 shlibpath_overrides_runpath=yes
11023 freebsd3.[01]* | freebsdelf3.[01]*)
11024 shlibpath_overrides_runpath=yes
11025 hardcode_into_libs=yes
11027 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11028 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11029 shlibpath_overrides_runpath=no
11030 hardcode_into_libs=yes
11032 *) # from 4.6 on, and DragonFly
11033 shlibpath_overrides_runpath=yes
11034 hardcode_into_libs=yes
11040 version_type=linux # correct to gnu/linux during the next big refactor
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=no
11047 hardcode_into_libs=yes
11051 version_type=linux # correct to gnu/linux during the next big refactor
11054 dynamic_linker="$host_os runtime_loader"
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 shlibpath_var=LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11059 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11060 hardcode_into_libs=yes
11063 hpux9* | hpux10* | hpux11*)
11064 # Give a soname corresponding to the major version so that dld.sl refuses to
11065 # link against other versions.
11072 hardcode_into_libs=yes
11073 dynamic_linker="$host_os dld.so"
11074 shlibpath_var=LD_LIBRARY_PATH
11075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 if test "X$HPUX_IA64_MODE" = X32; then
11079 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11081 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11087 hardcode_into_libs=yes
11088 dynamic_linker="$host_os dld.sl"
11089 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11098 dynamic_linker="$host_os dld.sl"
11099 shlibpath_var=SHLIB_PATH
11100 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11105 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11106 postinstall_cmds='chmod 555 $lib'
11107 # or fails outright, so override atomically:
11108 install_override_mode=555
11112 version_type=linux # correct to gnu/linux during the next big refactor
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 shlibpath_overrides_runpath=no
11120 hardcode_into_libs=yes
11123 irix5* | irix6* | nonstopux*)
11125 nonstopux*) version_type=nonstopux ;;
11127 if test "$lt_cv_prog_gnu_ld" = yes; then
11128 version_type=linux # correct to gnu/linux during the next big refactor
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11138 irix5* | nonstopux*)
11139 libsuff= shlibsuff=
11142 case $LD in # libtool.m4 will add one of these switches to LD
11143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11144 libsuff= shlibsuff= libmagic=32-bit;;
11145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11146 libsuff=32 shlibsuff=N32 libmagic=N32;;
11147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11149 *) libsuff= shlibsuff= libmagic=never-match;;
11153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11154 shlibpath_overrides_runpath=no
11155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11157 hardcode_into_libs=yes
11160 # No shared lib support for Linux oldld, aout, or coff.
11161 linux*oldld* | linux*aout* | linux*coff*)
11165 # This must be glibc/ELF.
11166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11167 version_type=linux # correct to gnu/linux during the next big refactor
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=no
11176 # Some binutils ld are patched to set DT_RUNPATH
11177 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11178 $as_echo_n "(cached) " >&6
11180 lt_cv_shlibpath_overrides_runpath=no
11181 save_LDFLAGS=$LDFLAGS
11182 save_libdir=$libdir
11183 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11184 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11186 /* end confdefs.h. */
11196 if ac_fn_c_try_link "$LINENO"; then :
11197 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11198 lt_cv_shlibpath_overrides_runpath=yes
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LDFLAGS=$save_LDFLAGS
11204 libdir=$save_libdir
11208 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11210 # This implies no fast_install, which is unacceptable.
11211 # Some rework will be needed to allow for fast_install
11212 # before this can be enabled.
11213 hardcode_into_libs=yes
11215 # Append ld.so.conf contents to the search path
11216 if test -f /etc/ld.so.conf; then
11217 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' ' '`
11218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11221 # We used to test for /lib/ld.so.1 and disable shared libraries on
11222 # powerpc, because MkLinux only supported shared libraries with the
11223 # GNU dynamic linker. Since this was broken with cross compilers,
11224 # most powerpc-linux boxes support dynamic linking these days and
11225 # people can always --disable-shared, the test was removed, and we
11226 # assume the GNU/Linux dynamic linker is in use.
11227 dynamic_linker='GNU/Linux ld.so'
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11235 soname_spec='${libname}${release}${shared_ext}$major'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 shlibpath_overrides_runpath=no
11238 hardcode_into_libs=yes
11239 dynamic_linker='NetBSD ld.elf_so'
11246 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11249 dynamic_linker='NetBSD (a.out) ld.so'
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 dynamic_linker='NetBSD ld.elf_so'
11255 shlibpath_var=LD_LIBRARY_PATH
11256 shlibpath_overrides_runpath=yes
11257 hardcode_into_libs=yes
11261 version_type=linux # correct to gnu/linux during the next big refactor
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=yes
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=no
11275 hardcode_into_libs=yes
11276 dynamic_linker='ldqnx.so'
11281 sys_lib_dlsearch_path_spec="/usr/lib"
11283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11286 *) need_version=no ;;
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11290 shlibpath_var=LD_LIBRARY_PATH
11291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11293 openbsd2.[89] | openbsd2.[89].*)
11294 shlibpath_overrides_runpath=no
11297 shlibpath_overrides_runpath=yes
11301 shlibpath_overrides_runpath=yes
11306 libname_spec='$name'
11309 library_names_spec='$libname${shared_ext} $libname.a'
11310 dynamic_linker='OS/2 ld.exe'
11311 shlibpath_var=LIBPATH
11314 osf3* | osf4* | osf5*)
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11330 version_type=linux # correct to gnu/linux during the next big refactor
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 shlibpath_overrides_runpath=yes
11337 hardcode_into_libs=yes
11338 # ldd complains unless libraries are executable
11339 postinstall_cmds='chmod +x $lib'
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11345 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 shlibpath_overrides_runpath=yes
11348 if test "$with_gnu_ld" = yes; then
11355 version_type=linux # correct to gnu/linux during the next big refactor
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 shlibpath_var=LD_LIBRARY_PATH
11359 case $host_vendor in
11361 shlibpath_overrides_runpath=no
11363 runpath_var=LD_RUN_PATH
11371 shlibpath_overrides_runpath=no
11372 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11378 if test -d /usr/nec ;then
11379 version_type=linux # correct to gnu/linux during the next big refactor
11380 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11381 soname_spec='$libname${shared_ext}.$major'
11382 shlibpath_var=LD_LIBRARY_PATH
11386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11387 version_type=freebsd-elf
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11391 soname_spec='${libname}${release}${shared_ext}$major'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 shlibpath_overrides_runpath=yes
11394 hardcode_into_libs=yes
11395 if test "$with_gnu_ld" = yes; then
11396 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11398 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11401 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11405 sys_lib_dlsearch_path_spec='/usr/lib'
11409 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11410 version_type=linux # correct to gnu/linux during the next big refactor
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 shlibpath_var=LD_LIBRARY_PATH
11415 shlibpath_overrides_runpath=no
11416 hardcode_into_libs=yes
11420 version_type=linux # correct to gnu/linux during the next big refactor
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422 soname_spec='${libname}${release}${shared_ext}$major'
11423 shlibpath_var=LD_LIBRARY_PATH
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11431 $as_echo "$dynamic_linker" >&6; }
11432 test "$dynamic_linker" = no && can_build_shared=no
11434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11435 if test "$GCC" = yes; then
11436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11439 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11440 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11442 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11443 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11538 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11540 if test -n "$hardcode_libdir_flag_spec" ||
11541 test -n "$runpath_var" ||
11542 test "X$hardcode_automatic" = "Xyes" ; then
11544 # We can hardcode non-existent directories.
11545 if test "$hardcode_direct" != no &&
11546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11547 # have to relink, otherwise we might link with an installed library
11548 # when we should be linking with a yet-to-be-installed one
11549 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11550 test "$hardcode_minus_L" != no; then
11551 # Linking always hardcodes the temporary library directory.
11552 hardcode_action=relink
11554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11555 hardcode_action=immediate
11558 # We cannot hardcode anything, or else we can only hardcode existing
11560 hardcode_action=unsupported
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11563 $as_echo "$hardcode_action" >&6; }
11565 if test "$hardcode_action" = relink ||
11566 test "$inherit_rpath" = yes; then
11567 # Fast installation is not supported
11568 enable_fast_install=no
11569 elif test "$shlibpath_overrides_runpath" = yes ||
11570 test "$enable_shared" = no; then
11571 # Fast installation is not necessary
11572 enable_fast_install=needless
11580 if test "x$enable_dlopen" != xyes; then
11581 enable_dlopen=unknown
11582 enable_dlopen_self=unknown
11583 enable_dlopen_self_static=unknown
11590 lt_cv_dlopen="load_add_on"
11592 lt_cv_dlopen_self=yes
11595 mingw* | pw32* | cegcc*)
11596 lt_cv_dlopen="LoadLibrary"
11601 lt_cv_dlopen="dlopen"
11606 # if libdl is installed we need to link against it
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11608 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11609 if ${ac_cv_lib_dl_dlopen+:} false; then :
11610 $as_echo_n "(cached) " >&6
11612 ac_check_lib_save_LIBS=$LIBS
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11632 if ac_fn_c_try_link "$LINENO"; then :
11633 ac_cv_lib_dl_dlopen=yes
11635 ac_cv_lib_dl_dlopen=no
11637 rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11642 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11643 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11647 lt_cv_dlopen="dyld"
11649 lt_cv_dlopen_self=yes
11656 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11657 if test "x$ac_cv_func_shl_load" = xyes; then :
11658 lt_cv_dlopen="shl_load"
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11661 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11662 if ${ac_cv_lib_dld_shl_load+:} false; then :
11663 $as_echo_n "(cached) " >&6
11665 ac_check_lib_save_LIBS=$LIBS
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11680 return shl_load ();
11685 if ac_fn_c_try_link "$LINENO"; then :
11686 ac_cv_lib_dld_shl_load=yes
11688 ac_cv_lib_dld_shl_load=no
11690 rm -f core conftest.err conftest.$ac_objext \
11691 conftest$ac_exeext conftest.$ac_ext
11692 LIBS=$ac_check_lib_save_LIBS
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11695 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11696 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11697 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11699 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11700 if test "x$ac_cv_func_dlopen" = xyes; then :
11701 lt_cv_dlopen="dlopen"
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11704 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11705 if ${ac_cv_lib_dl_dlopen+:} false; then :
11706 $as_echo_n "(cached) " >&6
11708 ac_check_lib_save_LIBS=$LIBS
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11728 if ac_fn_c_try_link "$LINENO"; then :
11729 ac_cv_lib_dl_dlopen=yes
11731 ac_cv_lib_dl_dlopen=no
11733 rm -f core conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11738 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11739 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11743 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11744 if ${ac_cv_lib_svld_dlopen+:} false; then :
11745 $as_echo_n "(cached) " >&6
11747 ac_check_lib_save_LIBS=$LIBS
11748 LIBS="-lsvld $LIBS"
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11752 /* Override any GCC internal prototype to avoid an error.
11753 Use char because int might match the return type of a GCC
11754 builtin and then its argument prototype would still apply. */
11767 if ac_fn_c_try_link "$LINENO"; then :
11768 ac_cv_lib_svld_dlopen=yes
11770 ac_cv_lib_svld_dlopen=no
11772 rm -f core conftest.err conftest.$ac_objext \
11773 conftest$ac_exeext conftest.$ac_ext
11774 LIBS=$ac_check_lib_save_LIBS
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11777 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11778 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11782 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11783 if ${ac_cv_lib_dld_dld_link+:} false; then :
11784 $as_echo_n "(cached) " >&6
11786 ac_check_lib_save_LIBS=$LIBS
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11791 /* Override any GCC internal prototype to avoid an error.
11792 Use char because int might match the return type of a GCC
11793 builtin and then its argument prototype would still apply. */
11801 return dld_link ();
11806 if ac_fn_c_try_link "$LINENO"; then :
11807 ac_cv_lib_dld_dld_link=yes
11809 ac_cv_lib_dld_dld_link=no
11811 rm -f core conftest.err conftest.$ac_objext \
11812 conftest$ac_exeext conftest.$ac_ext
11813 LIBS=$ac_check_lib_save_LIBS
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11816 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11817 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11818 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11839 if test "x$lt_cv_dlopen" != xno; then
11845 case $lt_cv_dlopen in
11847 save_CPPFLAGS="$CPPFLAGS"
11848 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11850 save_LDFLAGS="$LDFLAGS"
11851 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11854 LIBS="$lt_cv_dlopen_libs $LIBS"
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11857 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11858 if ${lt_cv_dlopen_self+:} false; then :
11859 $as_echo_n "(cached) " >&6
11861 if test "$cross_compiling" = yes; then :
11862 lt_cv_dlopen_self=cross
11864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11865 lt_status=$lt_dlunknown
11866 cat > conftest.$ac_ext <<_LT_EOF
11867 #line $LINENO "configure"
11868 #include "confdefs.h"
11877 # define LT_DLGLOBAL RTLD_GLOBAL
11880 # define LT_DLGLOBAL DL_GLOBAL
11882 # define LT_DLGLOBAL 0
11886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11887 find out it does not work in some platform. */
11888 #ifndef LT_DLLAZY_OR_NOW
11890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11893 # define LT_DLLAZY_OR_NOW DL_LAZY
11896 # define LT_DLLAZY_OR_NOW RTLD_NOW
11899 # define LT_DLLAZY_OR_NOW DL_NOW
11901 # define LT_DLLAZY_OR_NOW 0
11908 /* When -fvisbility=hidden is used, assume the code has been annotated
11909 correspondingly for the symbols needed. */
11910 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11911 int fnord () __attribute__((visibility("default")));
11914 int fnord () { return 42; }
11917 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11918 int status = $lt_dlunknown;
11922 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11925 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11926 else puts (dlerror ());
11928 /* dlclose (self); */
11936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11937 (eval $ac_link) 2>&5
11939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11940 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11941 (./conftest; exit; ) >&5 2>/dev/null
11943 case x$lt_status in
11944 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11945 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11946 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11949 # compilation failed
11950 lt_cv_dlopen_self=no
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11958 $as_echo "$lt_cv_dlopen_self" >&6; }
11960 if test "x$lt_cv_dlopen_self" = xyes; then
11961 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11963 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11964 if ${lt_cv_dlopen_self_static+:} false; then :
11965 $as_echo_n "(cached) " >&6
11967 if test "$cross_compiling" = yes; then :
11968 lt_cv_dlopen_self_static=cross
11970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11971 lt_status=$lt_dlunknown
11972 cat > conftest.$ac_ext <<_LT_EOF
11973 #line $LINENO "configure"
11974 #include "confdefs.h"
11983 # define LT_DLGLOBAL RTLD_GLOBAL
11986 # define LT_DLGLOBAL DL_GLOBAL
11988 # define LT_DLGLOBAL 0
11992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11993 find out it does not work in some platform. */
11994 #ifndef LT_DLLAZY_OR_NOW
11996 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11999 # define LT_DLLAZY_OR_NOW DL_LAZY
12002 # define LT_DLLAZY_OR_NOW RTLD_NOW
12005 # define LT_DLLAZY_OR_NOW DL_NOW
12007 # define LT_DLLAZY_OR_NOW 0
12014 /* When -fvisbility=hidden is used, assume the code has been annotated
12015 correspondingly for the symbols needed. */
12016 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12017 int fnord () __attribute__((visibility("default")));
12020 int fnord () { return 42; }
12023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12024 int status = $lt_dlunknown;
12028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12031 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12032 else puts (dlerror ());
12034 /* dlclose (self); */
12042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12043 (eval $ac_link) 2>&5
12045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12046 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12047 (./conftest; exit; ) >&5 2>/dev/null
12049 case x$lt_status in
12050 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12051 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12052 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12055 # compilation failed
12056 lt_cv_dlopen_self_static=no
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12064 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12067 CPPFLAGS="$save_CPPFLAGS"
12068 LDFLAGS="$save_LDFLAGS"
12073 case $lt_cv_dlopen_self in
12074 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12075 *) enable_dlopen_self=unknown ;;
12078 case $lt_cv_dlopen_self_static in
12079 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12080 *) enable_dlopen_self_static=unknown ;;
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12103 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12104 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12105 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12106 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12108 $as_echo "yes" >&6; }
12110 # FIXME - insert some real tests, host_os isn't really good enough
12113 if test -n "$STRIP" ; then
12114 striplib="$STRIP -x"
12115 old_striplib="$STRIP -S"
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12117 $as_echo "yes" >&6; }
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12141 # Report which library types will actually be built
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12143 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12145 $as_echo "$can_build_shared" >&6; }
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12148 $as_echo_n "checking whether to build shared libraries... " >&6; }
12149 test "$can_build_shared" = "no" && enable_shared=no
12151 # On AIX, shared libraries and static libraries use the same namespace, and
12152 # are all built from PIC.
12155 test "$enable_shared" = yes && enable_static=no
12156 if test -n "$RANLIB"; then
12157 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12158 postinstall_cmds='$RANLIB $lib'
12163 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12164 test "$enable_shared" = yes && enable_static=no
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12169 $as_echo "$enable_shared" >&6; }
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12172 $as_echo_n "checking whether to build static libraries... " >&6; }
12173 # Make sure either enable_shared or enable_static is yes.
12174 test "$enable_shared" = yes || enable_static=yes
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12176 $as_echo "$enable_static" >&6; }
12183 ac_cpp='$CXXCPP $CPPFLAGS'
12184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12190 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12191 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12192 (test "X$CXX" != "Xg++"))) ; then
12194 ac_cpp='$CXXCPP $CPPFLAGS'
12195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12199 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12200 if test -z "$CXXCPP"; then
12201 if ${ac_cv_prog_CXXCPP+:} false; then :
12202 $as_echo_n "(cached) " >&6
12204 # Double quotes because CXXCPP needs to be expanded
12205 for CXXCPP in "$CXX -E" "/lib/cpp"
12207 ac_preproc_ok=false
12208 for ac_cxx_preproc_warn_flag in '' yes
12210 # Use a header file that comes with gcc, so configuring glibc
12211 # with a fresh cross-compiler works.
12212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12213 # <limits.h> exists even on freestanding compilers.
12214 # On the NeXT, cc -E runs the code through the compiler's parser,
12215 # not just through cpp. "Syntax error" is here to catch this case.
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12219 # include <limits.h>
12221 # include <assert.h>
12225 if ac_fn_cxx_try_cpp "$LINENO"; then :
12228 # Broken: fails on valid input.
12231 rm -f conftest.err conftest.i conftest.$ac_ext
12233 # OK, works on sane cases. Now check whether nonexistent headers
12234 # can be detected and how.
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237 #include <ac_nonexistent.h>
12239 if ac_fn_cxx_try_cpp "$LINENO"; then :
12240 # Broken: success on invalid input.
12243 # Passes both tests.
12247 rm -f conftest.err conftest.i conftest.$ac_ext
12250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12251 rm -f conftest.i conftest.err conftest.$ac_ext
12252 if $ac_preproc_ok; then :
12257 ac_cv_prog_CXXCPP=$CXXCPP
12260 CXXCPP=$ac_cv_prog_CXXCPP
12262 ac_cv_prog_CXXCPP=$CXXCPP
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12265 $as_echo "$CXXCPP" >&6; }
12266 ac_preproc_ok=false
12267 for ac_cxx_preproc_warn_flag in '' yes
12269 # Use a header file that comes with gcc, so configuring glibc
12270 # with a fresh cross-compiler works.
12271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12272 # <limits.h> exists even on freestanding compilers.
12273 # On the NeXT, cc -E runs the code through the compiler's parser,
12274 # not just through cpp. "Syntax error" is here to catch this case.
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12278 # include <limits.h>
12280 # include <assert.h>
12284 if ac_fn_cxx_try_cpp "$LINENO"; then :
12287 # Broken: fails on valid input.
12290 rm -f conftest.err conftest.i conftest.$ac_ext
12292 # OK, works on sane cases. Now check whether nonexistent headers
12293 # can be detected and how.
12294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12296 #include <ac_nonexistent.h>
12298 if ac_fn_cxx_try_cpp "$LINENO"; then :
12299 # Broken: success on invalid input.
12302 # Passes both tests.
12306 rm -f conftest.err conftest.i conftest.$ac_ext
12309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12310 rm -f conftest.i conftest.err conftest.$ac_ext
12311 if $ac_preproc_ok; then :
12314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12316 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12317 See \`config.log' for more details" "$LINENO" 5; }
12321 ac_cpp='$CXXCPP $CPPFLAGS'
12322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12327 _lt_caught_CXX_error=yes
12331 ac_cpp='$CXXCPP $CPPFLAGS'
12332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12336 archive_cmds_need_lc_CXX=no
12337 allow_undefined_flag_CXX=
12338 always_export_symbols_CXX=no
12339 archive_expsym_cmds_CXX=
12340 compiler_needs_object_CXX=no
12341 export_dynamic_flag_spec_CXX=
12342 hardcode_direct_CXX=no
12343 hardcode_direct_absolute_CXX=no
12344 hardcode_libdir_flag_spec_CXX=
12345 hardcode_libdir_separator_CXX=
12346 hardcode_minus_L_CXX=no
12347 hardcode_shlibpath_var_CXX=unsupported
12348 hardcode_automatic_CXX=no
12349 inherit_rpath_CXX=no
12351 module_expsym_cmds_CXX=
12352 link_all_deplibs_CXX=unknown
12353 old_archive_cmds_CXX=$old_archive_cmds
12354 reload_flag_CXX=$reload_flag
12355 reload_cmds_CXX=$reload_cmds
12356 no_undefined_flag_CXX=
12357 whole_archive_flag_spec_CXX=
12358 enable_shared_with_static_runtimes_CXX=no
12360 # Source file extension for C++ test sources.
12363 # Object file extension for compiled C++ test sources.
12367 # No sense in running all these tests if we already determined that
12368 # the CXX compiler isn't working. Some variables (like enable_shared)
12369 # are currently assumed to apply to all compilers on this platform,
12370 # and will be corrupted by setting them based on a non-working compiler.
12371 if test "$_lt_caught_CXX_error" != yes; then
12372 # Code to be used in simple compile tests
12373 lt_simple_compile_test_code="int some_variable = 0;"
12375 # Code to be used in simple link tests
12376 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12385 # If no C compiler was specified, use CC.
12388 # If no C compiler flags were specified, use CFLAGS.
12389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12391 # Allow CC to be a program name with arguments.
12395 # save warnings/boilerplate of simple test code
12396 ac_outfile=conftest.$ac_objext
12397 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12398 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12399 _lt_compiler_boilerplate=`cat conftest.err`
12402 ac_outfile=conftest.$ac_objext
12403 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12404 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12405 _lt_linker_boilerplate=`cat conftest.err`
12409 # Allow CC to be a program name with arguments.
12411 lt_save_CFLAGS=$CFLAGS
12415 lt_save_with_gnu_ld=$with_gnu_ld
12416 lt_save_path_LD=$lt_cv_path_LD
12417 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12418 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12420 $as_unset lt_cv_prog_gnu_ld
12422 if test -n "${lt_cv_path_LDCXX+set}"; then
12423 lt_cv_path_LD=$lt_cv_path_LDCXX
12425 $as_unset lt_cv_path_LD
12427 test -z "${LDCXX+set}" || LD=$LDCXX
12432 for cc_temp in $compiler""; do
12434 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12435 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12440 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12443 if test -n "$compiler"; then
12444 # We don't want -fno-exception when compiling C++ code, so set the
12445 # no_builtin_flag separately
12446 if test "$GXX" = yes; then
12447 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12449 lt_prog_compiler_no_builtin_flag_CXX=
12452 if test "$GXX" = yes; then
12453 # Set up default GNU C++ configuration
12457 # Check whether --with-gnu-ld was given.
12458 if test "${with_gnu_ld+set}" = set; then :
12459 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12465 if test "$GCC" = yes; then
12466 # Check if gcc -print-prog-name=ld gives a path.
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12468 $as_echo_n "checking for ld used by $CC... " >&6; }
12471 # gcc leaves a trailing carriage return which upsets mingw
12472 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12474 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12477 # Accept absolute paths.
12479 re_direlt='/[^/][^/]*/\.\./'
12480 # Canonicalize the pathname of ld
12481 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12482 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12483 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12485 test -z "$LD" && LD="$ac_prog"
12488 # If it fails, then pretend we aren't using GCC.
12492 # If it is relative, then search for the first ld in PATH.
12493 with_gnu_ld=unknown
12496 elif test "$with_gnu_ld" = yes; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12498 $as_echo_n "checking for GNU ld... " >&6; }
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12501 $as_echo_n "checking for non-GNU ld... " >&6; }
12503 if ${lt_cv_path_LD+:} false; then :
12504 $as_echo_n "(cached) " >&6
12506 if test -z "$LD"; then
12507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12508 for ac_dir in $PATH; do
12510 test -z "$ac_dir" && ac_dir=.
12511 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12512 lt_cv_path_LD="$ac_dir/$ac_prog"
12513 # Check to see if the program is GNU ld. I'd rather use --version,
12514 # but apparently some variants of GNU ld only accept -v.
12515 # Break only if it was the GNU/non-GNU ld that we prefer.
12516 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12517 *GNU* | *'with BFD'*)
12518 test "$with_gnu_ld" != no && break
12521 test "$with_gnu_ld" != yes && break
12528 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12532 LD="$lt_cv_path_LD"
12533 if test -n "$LD"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12535 $as_echo "$LD" >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12540 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12542 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12543 if ${lt_cv_prog_gnu_ld+:} false; then :
12544 $as_echo_n "(cached) " >&6
12546 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12547 case `$LD -v 2>&1 </dev/null` in
12548 *GNU* | *'with BFD'*)
12549 lt_cv_prog_gnu_ld=yes
12552 lt_cv_prog_gnu_ld=no
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12557 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12558 with_gnu_ld=$lt_cv_prog_gnu_ld
12566 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12567 # archiving commands below assume that GNU ld is being used.
12568 if test "$with_gnu_ld" = yes; then
12569 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12570 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'
12572 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12575 # If archive_cmds runs LD, not CC, wlarc should be empty
12576 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12577 # investigate it a little bit more. (MM)
12580 # ancient GNU ld didn't support --whole-archive et. al.
12581 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12582 $GREP 'no-whole-archive' > /dev/null; then
12583 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12585 whole_archive_flag_spec_CXX=
12591 # A generic and very simple default shared library creation
12592 # command for GNU C++ for the case where it uses the native
12593 # linker, instead of GNU ld. If possible, this setting should
12594 # overridden to take advantage of the native linker features on
12595 # the platform it is being used on.
12596 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12599 # Commands to make compiler produce verbose output that lists
12600 # what "hidden" libraries, object files and flags are used when
12601 # linking a shared library.
12602 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12610 # PORTME: fill in a description of your system's C++ link characteristics
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12612 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12616 # FIXME: insert proper C++ library support
12620 if test "$host_cpu" = ia64; then
12621 # On IA64, the linker does run time linking by default, so we don't
12622 # have to do anything special.
12623 aix_use_runtimelinking=no
12624 exp_sym_flag='-Bexport'
12627 aix_use_runtimelinking=no
12629 # Test if we are trying to use run time linking or normal
12630 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12631 # need to do runtime linking.
12632 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12633 for ld_flag in $LDFLAGS; do
12636 aix_use_runtimelinking=yes
12644 exp_sym_flag='-bexport'
12645 no_entry_flag='-bnoentry'
12648 # When large executables or shared objects are built, AIX ld can
12649 # have problems creating the table of contents. If linking a library
12650 # or program results in "error TOC overflow" add -mminimal-toc to
12651 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12652 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12654 archive_cmds_CXX=''
12655 hardcode_direct_CXX=yes
12656 hardcode_direct_absolute_CXX=yes
12657 hardcode_libdir_separator_CXX=':'
12658 link_all_deplibs_CXX=yes
12659 file_list_spec_CXX='${wl}-f,'
12661 if test "$GXX" = yes; then
12662 case $host_os in aix4.[012]|aix4.[012].*)
12663 # We only want to do this on AIX 4.2 and lower, the check
12664 # below for broken collect2 doesn't work under 4.3+
12665 collect2name=`${CC} -print-prog-name=collect2`
12666 if test -f "$collect2name" &&
12667 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12669 # We have reworked collect2
12672 # We have old collect2
12673 hardcode_direct_CXX=unsupported
12674 # It fails to find uninstalled libraries when the uninstalled
12675 # path is not listed in the libpath. Setting hardcode_minus_L
12676 # to unsupported forces relinking
12677 hardcode_minus_L_CXX=yes
12678 hardcode_libdir_flag_spec_CXX='-L$libdir'
12679 hardcode_libdir_separator_CXX=
12682 shared_flag='-shared'
12683 if test "$aix_use_runtimelinking" = yes; then
12684 shared_flag="$shared_flag "'${wl}-G'
12688 if test "$host_cpu" = ia64; then
12689 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12690 # chokes on -Wl,-G. The following line is correct:
12693 if test "$aix_use_runtimelinking" = yes; then
12694 shared_flag='${wl}-G'
12696 shared_flag='${wl}-bM:SRE'
12701 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12702 # It seems that -bexpall does not export symbols beginning with
12703 # underscore (_), so it is better to generate a list of symbols to
12705 always_export_symbols_CXX=yes
12706 if test "$aix_use_runtimelinking" = yes; then
12707 # Warning - without using the other runtime loading flags (-brtl),
12708 # -berok will link without error, but may produce a broken library.
12709 allow_undefined_flag_CXX='-berok'
12710 # Determine the default libpath from the value encoded in an empty
12712 if test "${lt_cv_aix_libpath+set}" = set; then
12713 aix_libpath=$lt_cv_aix_libpath
12715 if ${lt_cv_aix_libpath__CXX+:} false; then :
12716 $as_echo_n "(cached) " >&6
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12729 if ac_fn_cxx_try_link "$LINENO"; then :
12731 lt_aix_libpath_sed='
12732 /Import File Strings/,/^$/ {
12734 s/^0 *\([^ ]*\) *$/\1/
12738 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12739 # Check for a 64-bit object if we didn't find anything.
12740 if test -z "$lt_cv_aix_libpath__CXX"; then
12741 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12744 rm -f core conftest.err conftest.$ac_objext \
12745 conftest$ac_exeext conftest.$ac_ext
12746 if test -z "$lt_cv_aix_libpath__CXX"; then
12747 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12752 aix_libpath=$lt_cv_aix_libpath__CXX
12755 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12757 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"
12759 if test "$host_cpu" = ia64; then
12760 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12761 allow_undefined_flag_CXX="-z nodefs"
12762 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"
12764 # Determine the default libpath from the value encoded in an
12765 # empty executable.
12766 if test "${lt_cv_aix_libpath+set}" = set; then
12767 aix_libpath=$lt_cv_aix_libpath
12769 if ${lt_cv_aix_libpath__CXX+:} false; then :
12770 $as_echo_n "(cached) " >&6
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12783 if ac_fn_cxx_try_link "$LINENO"; then :
12785 lt_aix_libpath_sed='
12786 /Import File Strings/,/^$/ {
12788 s/^0 *\([^ ]*\) *$/\1/
12792 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12793 # Check for a 64-bit object if we didn't find anything.
12794 if test -z "$lt_cv_aix_libpath__CXX"; then
12795 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12798 rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12800 if test -z "$lt_cv_aix_libpath__CXX"; then
12801 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12806 aix_libpath=$lt_cv_aix_libpath__CXX
12809 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12810 # Warning - without using the other run time loading flags,
12811 # -berok will link without error, but may produce a broken library.
12812 no_undefined_flag_CXX=' ${wl}-bernotok'
12813 allow_undefined_flag_CXX=' ${wl}-berok'
12814 if test "$with_gnu_ld" = yes; then
12815 # We only use this code for GNU lds that support --whole-archive.
12816 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12818 # Exported symbols can be pulled into shared objects from archives
12819 whole_archive_flag_spec_CXX='$convenience'
12821 archive_cmds_need_lc_CXX=yes
12822 # This is similar to how AIX traditionally builds its shared
12824 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'
12830 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12831 allow_undefined_flag_CXX=unsupported
12832 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12833 # support --undefined. This deserves some investigation. FIXME
12834 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12841 case $cc_basename in
12843 # FIXME: insert proper C++ library support
12849 cygwin* | mingw* | pw32* | cegcc*)
12850 case $GXX,$cc_basename in
12853 # hardcode_libdir_flag_spec is actually meaningless, as there is
12854 # no search path for DLLs.
12855 hardcode_libdir_flag_spec_CXX=' '
12856 allow_undefined_flag_CXX=unsupported
12857 always_export_symbols_CXX=yes
12858 file_list_spec_CXX='@'
12859 # Tell ltmain to make .lib files, not .a files.
12861 # Tell ltmain to make .dll files, not .so files.
12863 # FIXME: Setting linknames here is a bad hack.
12864 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12865 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12866 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12868 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12870 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12872 # The linker will not automatically build a static lib if we build a DLL.
12873 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12874 enable_shared_with_static_runtimes_CXX=yes
12876 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12877 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12878 lt_tool_outputfile="@TOOL_OUTPUT@"~
12879 case $lt_outputfile in
12882 lt_outputfile="$lt_outputfile.exe"
12883 lt_tool_outputfile="$lt_tool_outputfile.exe"
12886 func_to_tool_file "$lt_outputfile"~
12887 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12888 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12889 $RM "$lt_outputfile.manifest";
12894 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12895 # as there is no search path for DLLs.
12896 hardcode_libdir_flag_spec_CXX='-L$libdir'
12897 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12898 allow_undefined_flag_CXX=unsupported
12899 always_export_symbols_CXX=no
12900 enable_shared_with_static_runtimes_CXX=yes
12902 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12903 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'
12904 # If the export-symbols file already is a .def file (1st line
12905 # is EXPORTS), use it as is; otherwise, prepend...
12906 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12907 cp $export_symbols $output_objdir/$soname.def;
12909 echo EXPORTS > $output_objdir/$soname.def;
12910 cat $export_symbols >> $output_objdir/$soname.def;
12912 $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'
12919 darwin* | rhapsody*)
12922 archive_cmds_need_lc_CXX=no
12923 hardcode_direct_CXX=no
12924 hardcode_automatic_CXX=yes
12925 hardcode_shlibpath_var_CXX=unsupported
12926 if test "$lt_cv_ld_force_load" = "yes"; then
12927 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\"`'
12930 whole_archive_flag_spec_CXX=''
12932 link_all_deplibs_CXX=yes
12933 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12934 case $cc_basename in
12935 ifort*) _lt_dar_can_shared=yes ;;
12936 *) _lt_dar_can_shared=$GCC ;;
12938 if test "$_lt_dar_can_shared" = "yes"; then
12939 output_verbose_link_cmd=func_echo_all
12940 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}"
12941 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12942 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}"
12943 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}"
12944 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12945 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}"
12946 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}"
12956 case $cc_basename in
12958 # FIXME: insert proper C++ library support
12962 # Green Hills C++ Compiler
12963 # FIXME: insert proper C++ library support
12967 # FIXME: insert proper C++ library support
12974 # C++ shared libraries reported to be fairly broken before
12980 archive_cmds_need_lc_CXX=no
12983 freebsd* | dragonfly*)
12984 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12993 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12994 link_all_deplibs_CXX=yes
12998 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12999 hardcode_libdir_separator_CXX=:
13000 export_dynamic_flag_spec_CXX='${wl}-E'
13001 hardcode_direct_CXX=yes
13002 hardcode_minus_L_CXX=yes # Not in the search PATH,
13003 # but as the default
13004 # location of the library.
13006 case $cc_basename in
13008 # FIXME: insert proper C++ library support
13012 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'
13013 # Commands to make compiler produce verbose output that lists
13014 # what "hidden" libraries, object files and flags are used when
13015 # linking a shared library.
13017 # There doesn't appear to be a way to prevent this compiler from
13018 # explicitly linking system object files so we need to strip them
13019 # from the output so that they don't get included in the library
13021 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"'
13024 if test "$GXX" = yes; then
13025 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'
13027 # FIXME: insert proper C++ library support
13035 if test $with_gnu_ld = no; then
13036 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13037 hardcode_libdir_separator_CXX=:
13043 export_dynamic_flag_spec_CXX='${wl}-E'
13049 hardcode_direct_CXX=no
13050 hardcode_shlibpath_var_CXX=no
13053 hardcode_direct_CXX=yes
13054 hardcode_direct_absolute_CXX=yes
13055 hardcode_minus_L_CXX=yes # Not in the search PATH,
13056 # but as the default
13057 # location of the library.
13061 case $cc_basename in
13063 # FIXME: insert proper C++ library support
13069 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13078 # Commands to make compiler produce verbose output that lists
13079 # what "hidden" libraries, object files and flags are used when
13080 # linking a shared library.
13082 # There doesn't appear to be a way to prevent this compiler from
13083 # explicitly linking system object files so we need to strip them
13084 # from the output so that they don't get included in the library
13086 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"'
13089 if test "$GXX" = yes; then
13090 if test $with_gnu_ld = no; then
13093 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13096 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13099 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'
13104 # FIXME: insert proper C++ library support
13112 hardcode_direct_CXX=no
13113 hardcode_shlibpath_var_CXX=no
13114 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13115 export_dynamic_flag_spec_CXX='${wl}-E'
13116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13117 # Instead, shared libraries are loaded at an image base (0x10000000 by
13118 # default) and relocated if they conflict, which is a slow very memory
13119 # consuming and fragmenting process. To avoid this, we pick a random,
13120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13121 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13122 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'
13123 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'
13126 case $cc_basename in
13129 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'
13131 # Archives containing C++ object files must be created using
13132 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13133 # necessary to make sure instantiated templates are included
13135 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13138 if test "$GXX" = yes; then
13139 if test "$with_gnu_ld" = no; then
13140 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'
13142 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'
13145 link_all_deplibs_CXX=yes
13148 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13149 hardcode_libdir_separator_CXX=:
13150 inherit_rpath_CXX=yes
13153 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13154 case $cc_basename in
13156 # Kuck and Associates, Inc. (KAI) C++ Compiler
13158 # KCC will only create a shared library if the output file
13159 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13160 # to its proper name (with version) after linking.
13161 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'
13162 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'
13163 # Commands to make compiler produce verbose output that lists
13164 # what "hidden" libraries, object files and flags are used when
13165 # linking a shared library.
13167 # There doesn't appear to be a way to prevent this compiler from
13168 # explicitly linking system object files so we need to strip them
13169 # from the output so that they don't get included in the library
13171 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"'
13173 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13174 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13176 # Archives containing C++ object files must be created using
13177 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13178 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13183 # version 8.0 and above of icpc choke on multiply defined symbols
13184 # if we add $predep_objects and $postdep_objects, however 7.1 and
13185 # earlier do not add the objects themselves.
13186 case `$CC -V 2>&1` in
13188 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189 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'
13191 *) # Version 8.0 or newer
13194 ia64*) tmp_idyn=' -i_dynamic';;
13196 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13197 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'
13200 archive_cmds_need_lc_CXX=no
13201 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13202 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13203 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13206 # Portland Group C++ compiler
13208 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13209 prelink_cmds_CXX='tpldir=Template.dir~
13211 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13212 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13213 old_archive_cmds_CXX='tpldir=Template.dir~
13215 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13216 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13218 archive_cmds_CXX='tpldir=Template.dir~
13220 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13221 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13222 archive_expsym_cmds_CXX='tpldir=Template.dir~
13224 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13225 $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'
13227 *) # Version 6 and above use weak symbols
13228 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13229 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'
13233 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13235 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'
13239 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240 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'
13242 runpath_var=LD_RUN_PATH
13243 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13244 hardcode_libdir_separator_CXX=:
13246 # Commands to make compiler produce verbose output that lists
13247 # what "hidden" libraries, object files and flags are used when
13248 # linking a shared library.
13250 # There doesn't appear to be a way to prevent this compiler from
13251 # explicitly linking system object files so we need to strip them
13252 # from the output so that they don't get included in the library
13254 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'
13256 xl* | mpixl* | bgxl*)
13257 # IBM XL 8.0 on PPC, with GNU ld
13258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13260 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261 if test "x$supports_anon_versioning" = xyes; then
13262 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13264 echo "local: *; };" >> $output_objdir/$libname.ver~
13265 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13269 case `$CC -V 2>&1 | sed 5q` in
13272 no_undefined_flag_CXX=' -zdefs'
13273 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13274 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'
13275 hardcode_libdir_flag_spec_CXX='-R$libdir'
13276 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'
13277 compiler_needs_object_CXX=yes
13279 # Not sure whether something based on
13280 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13282 output_verbose_link_cmd='func_echo_all'
13284 # Archives containing C++ object files must be created using
13285 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13286 # necessary to make sure instantiated templates are included
13288 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13296 # FIXME: insert proper C++ library support
13301 # FIXME: insert proper C++ library support
13306 case $cc_basename in
13308 # FIXME: insert proper C++ library support
13312 # FIXME: insert proper C++ library support
13319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13320 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13322 hardcode_libdir_flag_spec_CXX='-R$libdir'
13323 hardcode_direct_CXX=yes
13324 hardcode_shlibpath_var_CXX=no
13326 # Workaround some broken pre-1.5 toolchains
13327 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13335 # C++ shared libraries are fairly broken
13340 if test -f /usr/libexec/ld.so; then
13341 hardcode_direct_CXX=yes
13342 hardcode_shlibpath_var_CXX=no
13343 hardcode_direct_absolute_CXX=yes
13344 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13347 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13348 export_dynamic_flag_spec_CXX='${wl}-E'
13349 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13351 output_verbose_link_cmd=func_echo_all
13357 osf3* | osf4* | osf5*)
13358 case $cc_basename in
13360 # Kuck and Associates, Inc. (KAI) C++ Compiler
13362 # KCC will only create a shared library if the output file
13363 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13364 # to its proper name (with version) after linking.
13365 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'
13367 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13368 hardcode_libdir_separator_CXX=:
13370 # Archives containing C++ object files must be created using
13371 # the KAI C++ compiler.
13373 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13374 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13378 # Rational C++ 2.4.1
13379 # FIXME: insert proper C++ library support
13385 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13386 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'
13387 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13390 allow_undefined_flag_CXX=' -expect_unresolved \*'
13391 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'
13392 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13393 echo "-hidden">> $lib.exp~
13394 $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~
13396 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13400 hardcode_libdir_separator_CXX=:
13402 # Commands to make compiler produce verbose output that lists
13403 # what "hidden" libraries, object files and flags are used when
13404 # linking a shared library.
13406 # There doesn't appear to be a way to prevent this compiler from
13407 # explicitly linking system object files so we need to strip them
13408 # from the output so that they don't get included in the library
13410 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"'
13413 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13414 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13417 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'
13420 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'
13424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13425 hardcode_libdir_separator_CXX=:
13427 # Commands to make compiler produce verbose output that lists
13428 # what "hidden" libraries, object files and flags are used when
13429 # linking a shared library.
13430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13433 # FIXME: insert proper C++ library support
13441 # FIXME: insert proper C++ library support
13446 case $cc_basename in
13449 # FIXME: insert proper C++ library support
13454 # FIXME: insert proper C++ library support
13458 # FIXME: insert proper C++ library support
13465 case $cc_basename in
13467 # Sun C++ 4.2, 5.x and Centerline C++
13468 archive_cmds_need_lc_CXX=yes
13469 no_undefined_flag_CXX=' -zdefs'
13470 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13471 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13472 $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'
13474 hardcode_libdir_flag_spec_CXX='-R$libdir'
13475 hardcode_shlibpath_var_CXX=no
13477 solaris2.[0-5] | solaris2.[0-5].*) ;;
13479 # The compiler driver will combine and reorder linker options,
13480 # but understands `-z linker_flag'.
13481 # Supported since Solaris 2.6 (maybe 2.5.1?)
13482 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13485 link_all_deplibs_CXX=yes
13487 output_verbose_link_cmd='func_echo_all'
13489 # Archives containing C++ object files must be created using
13490 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13491 # necessary to make sure instantiated templates are included
13493 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13496 # Green Hills C++ Compiler
13497 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13499 # The C++ compiler must be used to create the archive.
13500 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13503 # GNU C++ compiler with Solaris linker
13504 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13505 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13506 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13507 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13508 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13509 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13511 # Commands to make compiler produce verbose output that lists
13512 # what "hidden" libraries, object files and flags are used when
13513 # linking a shared library.
13514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13516 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13518 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13519 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13520 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13522 # Commands to make compiler produce verbose output that lists
13523 # what "hidden" libraries, object files and flags are used when
13524 # linking a shared library.
13525 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13528 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13530 solaris2.[0-5] | solaris2.[0-5].*) ;;
13532 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13541 no_undefined_flag_CXX='${wl}-z,text'
13542 archive_cmds_need_lc_CXX=no
13543 hardcode_shlibpath_var_CXX=no
13544 runpath_var='LD_RUN_PATH'
13546 case $cc_basename in
13548 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13549 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13552 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13553 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13558 sysv5* | sco3.2v5* | sco5v6*)
13559 # Note: We can NOT use -z defs as we might desire, because we do not
13560 # link with -lc, and that would cause any symbols used from libc to
13561 # always be unresolved, which means just about no library would
13562 # ever link correctly. If we're not using GNU ld we use -z text
13563 # though, which does catch some bad symbols but isn't as heavy-handed
13565 no_undefined_flag_CXX='${wl}-z,text'
13566 allow_undefined_flag_CXX='${wl}-z,nodefs'
13567 archive_cmds_need_lc_CXX=no
13568 hardcode_shlibpath_var_CXX=no
13569 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13570 hardcode_libdir_separator_CXX=':'
13571 link_all_deplibs_CXX=yes
13572 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13573 runpath_var='LD_RUN_PATH'
13575 case $cc_basename in
13577 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13578 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13579 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13580 '"$old_archive_cmds_CXX"
13581 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13582 '"$reload_cmds_CXX"
13585 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13586 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13592 case $cc_basename in
13594 # NonStop-UX NCC 3.20
13595 # FIXME: insert proper C++ library support
13599 # FIXME: insert proper C++ library support
13606 # FIXME: insert proper C++ library support
13611 # FIXME: insert proper C++ library support
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13617 $as_echo "$ld_shlibs_CXX" >&6; }
13618 test "$ld_shlibs_CXX" = no && can_build_shared=no
13624 ## There is no encapsulation within the following macros, do not change
13625 ## the running order or otherwise move them around unless you know exactly
13626 ## what you are doing...
13627 # Dependencies to place before and after the object being linked:
13628 predep_objects_CXX=
13629 postdep_objects_CXX=
13632 compiler_lib_search_path_CXX=
13634 cat > conftest.$ac_ext <<_LT_EOF
13638 Foo (void) { a = 0; }
13645 _lt_libdeps_save_CFLAGS=$CFLAGS
13646 case "$CC $CFLAGS " in #(
13647 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13648 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13649 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13653 (eval $ac_compile) 2>&5
13655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13656 test $ac_status = 0; }; then
13657 # Parse the compiler output and extract the necessary
13658 # objects, libraries and library flags.
13660 # Sentinel used to keep track of whether or not we are before
13661 # the conftest object file.
13662 pre_test_object_deps_done=no
13664 for p in `eval "$output_verbose_link_cmd"`; do
13665 case ${prev}${p} in
13668 # Some compilers place space between "-{L,R}" and the path.
13669 # Remove the space.
13670 if test $p = "-L" ||
13671 test $p = "-R"; then
13676 # Expand the sysroot to ease extracting the directories later.
13677 if test -z "$prev"; then
13679 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13680 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13681 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13685 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13687 if test "$pre_test_object_deps_done" = no; then
13690 # Internal compiler library paths should come after those
13691 # provided the user. The postdeps already come after the
13692 # user supplied libs so there is no need to process them.
13693 if test -z "$compiler_lib_search_path_CXX"; then
13694 compiler_lib_search_path_CXX="${prev}${p}"
13696 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13699 # The "-l" case would never come before the object being
13700 # linked, so don't bother handling this case.
13703 if test -z "$postdeps_CXX"; then
13704 postdeps_CXX="${prev}${p}"
13706 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13712 *.lto.$objext) ;; # Ignore GCC LTO objects
13714 # This assumes that the test object file only shows up
13715 # once in the compiler output.
13716 if test "$p" = "conftest.$objext"; then
13717 pre_test_object_deps_done=yes
13721 if test "$pre_test_object_deps_done" = no; then
13722 if test -z "$predep_objects_CXX"; then
13723 predep_objects_CXX="$p"
13725 predep_objects_CXX="$predep_objects_CXX $p"
13728 if test -z "$postdep_objects_CXX"; then
13729 postdep_objects_CXX="$p"
13731 postdep_objects_CXX="$postdep_objects_CXX $p"
13736 *) ;; # Ignore the rest.
13744 echo "libtool.m4: error: problem compiling CXX test program"
13747 $RM -f confest.$objext
13748 CFLAGS=$_lt_libdeps_save_CFLAGS
13750 # PORTME: override above test on systems where it is broken
13753 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13754 # hack all around it, let's just trust "g++" to DTRT.
13755 predep_objects_CXX=
13756 postdep_objects_CXX=
13761 case `$CC -V 2>&1 | sed 5q` in
13765 # The more standards-conforming stlport4 library is
13766 # incompatible with the Cstd library. Avoid specifying
13767 # it if it's in CXXFLAGS. Ignore libCrun as
13768 # -library=stlport4 depends on it.
13769 case " $CXX $CXXFLAGS " in
13770 *" -library=stlport4 "*)
13771 solaris_use_stlport4=yes
13775 if test "$solaris_use_stlport4" != yes; then
13776 postdeps_CXX='-library=Cstd -library=Crun'
13783 case $cc_basename in
13785 # The more standards-conforming stlport4 library is
13786 # incompatible with the Cstd library. Avoid specifying
13787 # it if it's in CXXFLAGS. Ignore libCrun as
13788 # -library=stlport4 depends on it.
13789 case " $CXX $CXXFLAGS " in
13790 *" -library=stlport4 "*)
13791 solaris_use_stlport4=yes
13795 # Adding this requires a known-good setup of shared libraries for
13796 # Sun compiler versions before 5.6, else PIC objects from an old
13797 # archive will be linked into the output, leading to subtle bugs.
13798 if test "$solaris_use_stlport4" != yes; then
13799 postdeps_CXX='-library=Cstd -library=Crun'
13807 case " $postdeps_CXX " in
13808 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13810 compiler_lib_search_dirs_CXX=
13811 if test -n "${compiler_lib_search_path_CXX}"; then
13812 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13845 lt_prog_compiler_wl_CXX=
13846 lt_prog_compiler_pic_CXX=
13847 lt_prog_compiler_static_CXX=
13850 # C++ specific cases for pic, static, wl, etc.
13851 if test "$GXX" = yes; then
13852 lt_prog_compiler_wl_CXX='-Wl,'
13853 lt_prog_compiler_static_CXX='-static'
13857 # All AIX code is PIC.
13858 if test "$host_cpu" = ia64; then
13859 # AIX 5 now supports IA64 processor
13860 lt_prog_compiler_static_CXX='-Bstatic'
13867 # see comment about AmigaOS4 .so support
13868 lt_prog_compiler_pic_CXX='-fPIC'
13871 # FIXME: we need at least 68020 code to build shared libraries, but
13872 # adding the `-m68020' flag to GCC prevents building anything better,
13874 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13879 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13880 # PIC is the default for these OSes.
13882 mingw* | cygwin* | os2* | pw32* | cegcc*)
13883 # This hack is so that the source file can tell whether it is being
13884 # built for inclusion in a dll (and should export symbols for example).
13885 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13886 # (--disable-auto-import) libraries
13887 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13889 darwin* | rhapsody*)
13890 # PIC is the default on this platform
13891 # Common symbols not allowed in MH_DYLIB files
13892 lt_prog_compiler_pic_CXX='-fno-common'
13895 # DJGPP does not support shared libraries at all
13896 lt_prog_compiler_pic_CXX=
13899 # PIC is the default for Haiku.
13900 # The "-static" flag exists, but is broken.
13901 lt_prog_compiler_static_CXX=
13904 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13905 # Instead, we relocate shared libraries at runtime.
13908 if test -d /usr/nec; then
13909 lt_prog_compiler_pic_CXX=-Kconform_pic
13913 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13914 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13915 # sets the default TLS model and affects inlining.
13920 lt_prog_compiler_pic_CXX='-fPIC'
13925 # QNX uses GNU C++, but need to define -shared option too, otherwise
13926 # it will coredump.
13927 lt_prog_compiler_pic_CXX='-fPIC -shared'
13930 lt_prog_compiler_pic_CXX='-fPIC'
13936 # All AIX code is PIC.
13937 if test "$host_cpu" = ia64; then
13938 # AIX 5 now supports IA64 processor
13939 lt_prog_compiler_static_CXX='-Bstatic'
13941 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13945 case $cc_basename in
13947 # Green Hills C++ Compiler
13948 # _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"
13952 mingw* | cygwin* | os2* | pw32* | cegcc*)
13953 # This hack is so that the source file can tell whether it is being
13954 # built for inclusion in a dll (and should export symbols for example).
13955 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13958 case $cc_basename in
13960 lt_prog_compiler_pic_CXX='-KPIC'
13963 # Green Hills C++ Compiler
13964 lt_prog_compiler_pic_CXX='-pic'
13970 freebsd* | dragonfly*)
13971 # FreeBSD uses GNU C++
13973 hpux9* | hpux10* | hpux11*)
13974 case $cc_basename in
13976 lt_prog_compiler_wl_CXX='-Wl,'
13977 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13978 if test "$host_cpu" != ia64; then
13979 lt_prog_compiler_pic_CXX='+Z'
13983 lt_prog_compiler_wl_CXX='-Wl,'
13984 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13990 lt_prog_compiler_pic_CXX='+Z'
13999 # This is c89, which is MS Visual C++ (no shared libs)
14000 # Anyone wants to do a port?
14002 irix5* | irix6* | nonstopux*)
14003 case $cc_basename in
14005 lt_prog_compiler_wl_CXX='-Wl,'
14006 lt_prog_compiler_static_CXX='-non_shared'
14007 # CC pic flag -KPIC is the default.
14013 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14014 case $cc_basename in
14017 lt_prog_compiler_wl_CXX='--backend -Wl,'
14018 lt_prog_compiler_pic_CXX='-fPIC'
14021 # old Intel C++ for x86_64 which still supported -KPIC.
14022 lt_prog_compiler_wl_CXX='-Wl,'
14023 lt_prog_compiler_pic_CXX='-KPIC'
14024 lt_prog_compiler_static_CXX='-static'
14027 # Intel C++, used to be incompatible with GCC.
14028 # ICC 10 doesn't accept -KPIC any more.
14029 lt_prog_compiler_wl_CXX='-Wl,'
14030 lt_prog_compiler_pic_CXX='-fPIC'
14031 lt_prog_compiler_static_CXX='-static'
14034 # Portland Group C++ compiler
14035 lt_prog_compiler_wl_CXX='-Wl,'
14036 lt_prog_compiler_pic_CXX='-fpic'
14037 lt_prog_compiler_static_CXX='-Bstatic'
14041 # Make sure the PIC flag is empty. It appears that all Alpha
14042 # Linux and Compaq Tru64 Unix objects are PIC.
14043 lt_prog_compiler_pic_CXX=
14044 lt_prog_compiler_static_CXX='-non_shared'
14046 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14047 # IBM XL 8.0, 9.0 on PPC and BlueGene
14048 lt_prog_compiler_wl_CXX='-Wl,'
14049 lt_prog_compiler_pic_CXX='-qpic'
14050 lt_prog_compiler_static_CXX='-qstaticlink'
14053 case `$CC -V 2>&1 | sed 5q` in
14056 lt_prog_compiler_pic_CXX='-KPIC'
14057 lt_prog_compiler_static_CXX='-Bstatic'
14058 lt_prog_compiler_wl_CXX='-Qoption ld '
14069 case $cc_basename in
14071 lt_prog_compiler_pic_CXX='-W c,exportall'
14077 netbsd* | netbsdelf*-gnu)
14080 # QNX uses GNU C++, but need to define -shared option too, otherwise
14081 # it will coredump.
14082 lt_prog_compiler_pic_CXX='-fPIC -shared'
14084 osf3* | osf4* | osf5*)
14085 case $cc_basename in
14087 lt_prog_compiler_wl_CXX='--backend -Wl,'
14090 # Rational C++ 2.4.1
14091 lt_prog_compiler_pic_CXX='-pic'
14094 # Digital/Compaq C++
14095 lt_prog_compiler_wl_CXX='-Wl,'
14096 # Make sure the PIC flag is empty. It appears that all Alpha
14097 # Linux and Compaq Tru64 Unix objects are PIC.
14098 lt_prog_compiler_pic_CXX=
14099 lt_prog_compiler_static_CXX='-non_shared'
14108 case $cc_basename in
14110 # Sun C++ 4.2, 5.x and Centerline C++
14111 lt_prog_compiler_pic_CXX='-KPIC'
14112 lt_prog_compiler_static_CXX='-Bstatic'
14113 lt_prog_compiler_wl_CXX='-Qoption ld '
14116 # Green Hills C++ Compiler
14117 lt_prog_compiler_pic_CXX='-PIC'
14124 case $cc_basename in
14127 lt_prog_compiler_pic_CXX='-pic'
14128 lt_prog_compiler_static_CXX='-Bstatic'
14132 lt_prog_compiler_pic_CXX='-pic'
14138 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14139 case $cc_basename in
14141 lt_prog_compiler_wl_CXX='-Wl,'
14142 lt_prog_compiler_pic_CXX='-KPIC'
14143 lt_prog_compiler_static_CXX='-Bstatic'
14148 case $cc_basename in
14150 # NonStop-UX NCC 3.20
14151 lt_prog_compiler_pic_CXX='-KPIC'
14160 lt_prog_compiler_can_build_shared_CXX=no
14166 # For platforms which do not support PIC, -DPIC is meaningless:
14168 lt_prog_compiler_pic_CXX=
14171 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14176 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14177 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14178 $as_echo_n "(cached) " >&6
14180 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14183 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14184 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14187 # Check to make sure the PIC flag actually works.
14189 if test -n "$lt_prog_compiler_pic_CXX"; then
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14191 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14192 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14193 $as_echo_n "(cached) " >&6
14195 lt_cv_prog_compiler_pic_works_CXX=no
14196 ac_outfile=conftest.$ac_objext
14197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14198 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14199 # Insert the option either (1) after the last *FLAGS variable, or
14200 # (2) before a word containing "conftest.", or (3) at the end.
14201 # Note that $ac_compile itself does not contain backslashes and begins
14202 # with a dollar sign (not a hyphen), so the echo should work correctly.
14203 # The option is referenced via a variable to avoid confusing sed.
14204 lt_compile=`echo "$ac_compile" | $SED \
14205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14207 -e 's:$: $lt_compiler_flag:'`
14208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14209 (eval "$lt_compile" 2>conftest.err)
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 if (exit $ac_status) && test -s "$ac_outfile"; then
14214 # The compiler can only warn and ignore the option if not recognized
14215 # So say no if there are warnings other than the usual output.
14216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14218 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14219 lt_cv_prog_compiler_pic_works_CXX=yes
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14226 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14228 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14229 case $lt_prog_compiler_pic_CXX in
14231 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14234 lt_prog_compiler_pic_CXX=
14235 lt_prog_compiler_can_build_shared_CXX=no
14245 # Check to make sure the static flag actually works.
14247 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14249 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14250 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14251 $as_echo_n "(cached) " >&6
14253 lt_cv_prog_compiler_static_works_CXX=no
14254 save_LDFLAGS="$LDFLAGS"
14255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14256 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14258 # The linker can only warn and ignore the option if not recognized
14259 # So say no if there are warnings
14260 if test -s conftest.err; then
14261 # Append any errors to the config.log.
14262 cat conftest.err 1>&5
14263 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14265 if diff conftest.exp conftest.er2 >/dev/null; then
14266 lt_cv_prog_compiler_static_works_CXX=yes
14269 lt_cv_prog_compiler_static_works_CXX=yes
14273 LDFLAGS="$save_LDFLAGS"
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14277 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14279 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14282 lt_prog_compiler_static_CXX=
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14290 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14291 $as_echo_n "(cached) " >&6
14293 lt_cv_prog_compiler_c_o_CXX=no
14294 $RM -r conftest 2>/dev/null
14298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14300 lt_compiler_flag="-o out/conftest2.$ac_objext"
14301 # Insert the option either (1) after the last *FLAGS variable, or
14302 # (2) before a word containing "conftest.", or (3) at the end.
14303 # Note that $ac_compile itself does not contain backslashes and begins
14304 # with a dollar sign (not a hyphen), so the echo should work correctly.
14305 lt_compile=`echo "$ac_compile" | $SED \
14306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14308 -e 's:$: $lt_compiler_flag:'`
14309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14310 (eval "$lt_compile" 2>out/conftest.err)
14312 cat out/conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14316 # The compiler can only warn and ignore the option if not recognized
14317 # So say no if there are warnings
14318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14321 lt_cv_prog_compiler_c_o_CXX=yes
14326 # SGI C++ compiler will create directory out/ii_files/ for
14327 # template instantiation
14328 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14329 $RM out/* && rmdir out
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14336 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14342 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14343 $as_echo_n "(cached) " >&6
14345 lt_cv_prog_compiler_c_o_CXX=no
14346 $RM -r conftest 2>/dev/null
14350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14352 lt_compiler_flag="-o out/conftest2.$ac_objext"
14353 # Insert the option either (1) after the last *FLAGS variable, or
14354 # (2) before a word containing "conftest.", or (3) at the end.
14355 # Note that $ac_compile itself does not contain backslashes and begins
14356 # with a dollar sign (not a hyphen), so the echo should work correctly.
14357 lt_compile=`echo "$ac_compile" | $SED \
14358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14360 -e 's:$: $lt_compiler_flag:'`
14361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14362 (eval "$lt_compile" 2>out/conftest.err)
14364 cat out/conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14368 # The compiler can only warn and ignore the option if not recognized
14369 # So say no if there are warnings
14370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14373 lt_cv_prog_compiler_c_o_CXX=yes
14378 # SGI C++ compiler will create directory out/ii_files/ for
14379 # template instantiation
14380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14381 $RM out/* && rmdir out
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14388 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14393 hard_links="nottested"
14394 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14395 # do not overwrite the value of need_locks provided by the user
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14397 $as_echo_n "checking if we can lock with hard links... " >&6; }
14400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14402 ln conftest.a conftest.b 2>&5 || hard_links=no
14403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14405 $as_echo "$hard_links" >&6; }
14406 if test "$hard_links" = no; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14408 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14418 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14420 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14421 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14424 # If we're using GNU nm, then we don't want the "-C" option.
14425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14426 # Also, AIX nm treats weak defined symbols like other global defined
14427 # symbols, whereas GNU nm marks them as "W".
14428 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14429 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'
14431 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'
14435 export_symbols_cmds_CXX="$ltdll_cmds"
14437 cygwin* | mingw* | cegcc*)
14438 case $cc_basename in
14440 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14443 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'
14444 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14448 linux* | k*bsd*-gnu | gnu*)
14449 link_all_deplibs_CXX=no
14452 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14457 $as_echo "$ld_shlibs_CXX" >&6; }
14458 test "$ld_shlibs_CXX" = no && can_build_shared=no
14460 with_gnu_ld_CXX=$with_gnu_ld
14468 # Do we need to explicitly link libc?
14470 case "x$archive_cmds_need_lc_CXX" in
14472 # Assume -lc should be added
14473 archive_cmds_need_lc_CXX=yes
14475 if test "$enable_shared" = yes && test "$GCC" = yes; then
14476 case $archive_cmds_CXX in
14478 # FIXME: we may have to deal with multi-command sequences.
14481 # Test whether the compiler implicitly links with -lc since on some
14482 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14483 # to ld, don't add -lc before -lgcc.
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14485 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14486 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14487 $as_echo_n "(cached) " >&6
14490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14493 (eval $ac_compile) 2>&5
14495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14496 test $ac_status = 0; } 2>conftest.err; then
14499 libobjs=conftest.$ac_objext
14501 wl=$lt_prog_compiler_wl_CXX
14502 pic_flag=$lt_prog_compiler_pic_CXX
14508 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14509 allow_undefined_flag_CXX=
14510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14511 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14514 test $ac_status = 0; }
14516 lt_cv_archive_cmds_need_lc_CXX=no
14518 lt_cv_archive_cmds_need_lc_CXX=yes
14520 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14522 cat conftest.err 1>&5
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14528 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14529 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14598 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14600 library_names_spec=
14601 libname_spec='lib$name'
14605 postuninstall_cmds=
14609 shlibpath_overrides_runpath=unknown
14611 dynamic_linker="$host_os ld.so"
14612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14613 need_lib_prefix=unknown
14614 hardcode_into_libs=no
14616 # when you set need_version to no, make sure it does not cause -set_version
14617 # flags to be left without arguments
14618 need_version=unknown
14622 version_type=linux # correct to gnu/linux during the next big refactor
14623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14624 shlibpath_var=LIBPATH
14626 # AIX 3 has no versioning support, so we append a major version to the name.
14627 soname_spec='${libname}${release}${shared_ext}$major'
14631 version_type=linux # correct to gnu/linux during the next big refactor
14634 hardcode_into_libs=yes
14635 if test "$host_cpu" = ia64; then
14636 # AIX 5 supports IA64
14637 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14638 shlibpath_var=LD_LIBRARY_PATH
14640 # With GCC up to 2.95.x, collect2 would create an import file
14641 # for dependence libraries. The import file would start with
14642 # the line `#! .'. This would cause the generated library to
14643 # depend on `.', always an invalid library. This was fixed in
14644 # development snapshots of GCC prior to 3.0.
14646 aix4 | aix4.[01] | aix4.[01].*)
14647 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14649 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14652 can_build_shared=no
14656 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14657 # soname into executable. Probably we can add versioning support to
14658 # collect2, so additional links can be useful in future.
14659 if test "$aix_use_runtimelinking" = yes; then
14660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14661 # instead of lib<name>.a to let people know that these are not
14662 # typical AIX shared libraries.
14663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665 # We preserve .a as extension for shared libraries through AIX4.2
14666 # and later when we are not doing run time linking.
14667 library_names_spec='${libname}${release}.a $libname.a'
14668 soname_spec='${libname}${release}${shared_ext}$major'
14670 shlibpath_var=LIBPATH
14677 # Since July 2007 AmigaOS4 officially supports .so libraries.
14678 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 library_names_spec='$libname.ixlibrary $libname.a'
14683 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14684 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'
14690 library_names_spec='${libname}${shared_ext}'
14691 dynamic_linker="$host_os ld.so"
14692 shlibpath_var=LIBRARY_PATH
14696 version_type=linux # correct to gnu/linux during the next big refactor
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699 soname_spec='${libname}${release}${shared_ext}$major'
14700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14704 # the default ld.so.conf also contains /usr/contrib/lib and
14705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14706 # libtool to hard-code these into programs
14709 cygwin* | mingw* | pw32* | cegcc*)
14710 version_type=windows
14715 case $GCC,$cc_basename in
14718 library_names_spec='$libname.dll.a'
14719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14720 postinstall_cmds='base_file=`basename \${file}`~
14721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14722 dldir=$destdir/`dirname \$dlpath`~
14723 test -d \$dldir || mkdir -p \$dldir~
14724 $install_prog $dir/$dlname \$dldir/$dlname~
14725 chmod a+x \$dldir/$dlname~
14726 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14727 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14729 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14730 dlpath=$dir/\$dldll~
14732 shlibpath_overrides_runpath=yes
14736 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14737 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14741 # MinGW DLLs use traditional 'lib' prefix
14742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14745 # pw32 DLLs use 'pw' prefix rather than 'lib'
14746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14749 dynamic_linker='Win32 ld.exe'
14754 libname_spec='$name'
14755 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14756 library_names_spec='${libname}.dll.lib'
14760 sys_lib_search_path_spec=
14763 for lt_path in $LIB
14766 # Let DOS variable expansion print the short 8.3 style file name.
14767 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14768 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14771 # Convert to MSYS style.
14772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14775 # Convert to unix form, then to dos form, then back to unix form
14776 # but this time dos style (no spaces!) so that the unix form looks
14777 # like /cygdrive/c/PROGRA~1:/cygdr...
14778 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14779 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14780 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14783 sys_lib_search_path_spec="$LIB"
14784 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14785 # It is most probably a Windows format PATH.
14786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14790 # FIXME: find the short name or the path components, as spaces are
14791 # common. (e.g. "Program Files" -> "PROGRA~1")
14795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14796 postinstall_cmds='base_file=`basename \${file}`~
14797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14798 dldir=$destdir/`dirname \$dlpath`~
14799 test -d \$dldir || mkdir -p \$dldir~
14800 $install_prog $dir/$dlname \$dldir/$dlname'
14801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14802 dlpath=$dir/\$dldll~
14804 shlibpath_overrides_runpath=yes
14805 dynamic_linker='Win32 link.exe'
14809 # Assume MSVC wrapper
14810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14811 dynamic_linker='Win32 ld.exe'
14814 # FIXME: first we should search . and the directory the executable is in
14818 darwin* | rhapsody*)
14819 dynamic_linker="$host_os dyld"
14820 version_type=darwin
14823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14824 soname_spec='${libname}${release}${major}$shared_ext'
14825 shlibpath_overrides_runpath=yes
14826 shlibpath_var=DYLD_LIBRARY_PATH
14827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14829 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14833 version_type=linux # correct to gnu/linux during the next big refactor
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14837 soname_spec='${libname}${release}${shared_ext}$major'
14838 shlibpath_var=LD_LIBRARY_PATH
14841 freebsd* | dragonfly*)
14842 # DragonFly does not have aout. When/if they implement a new
14843 # versioning mechanism, adjust this.
14844 if test -x /usr/bin/objformat; then
14845 objformat=`/usr/bin/objformat`
14848 freebsd[23].*) objformat=aout ;;
14849 *) objformat=elf ;;
14852 version_type=freebsd-$objformat
14853 case $version_type in
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14864 shlibpath_var=LD_LIBRARY_PATH
14867 shlibpath_overrides_runpath=yes
14869 freebsd3.[01]* | freebsdelf3.[01]*)
14870 shlibpath_overrides_runpath=yes
14871 hardcode_into_libs=yes
14873 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14874 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14875 shlibpath_overrides_runpath=no
14876 hardcode_into_libs=yes
14878 *) # from 4.6 on, and DragonFly
14879 shlibpath_overrides_runpath=yes
14880 hardcode_into_libs=yes
14886 version_type=linux # correct to gnu/linux during the next big refactor
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 shlibpath_overrides_runpath=no
14893 hardcode_into_libs=yes
14897 version_type=linux # correct to gnu/linux during the next big refactor
14900 dynamic_linker="$host_os runtime_loader"
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 shlibpath_var=LIBRARY_PATH
14904 shlibpath_overrides_runpath=yes
14905 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14906 hardcode_into_libs=yes
14909 hpux9* | hpux10* | hpux11*)
14910 # Give a soname corresponding to the major version so that dld.sl refuses to
14911 # link against other versions.
14918 hardcode_into_libs=yes
14919 dynamic_linker="$host_os dld.so"
14920 shlibpath_var=LD_LIBRARY_PATH
14921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923 soname_spec='${libname}${release}${shared_ext}$major'
14924 if test "X$HPUX_IA64_MODE" = X32; then
14925 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14927 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14933 hardcode_into_libs=yes
14934 dynamic_linker="$host_os dld.sl"
14935 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14944 dynamic_linker="$host_os dld.sl"
14945 shlibpath_var=SHLIB_PATH
14946 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948 soname_spec='${libname}${release}${shared_ext}$major'
14951 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14952 postinstall_cmds='chmod 555 $lib'
14953 # or fails outright, so override atomically:
14954 install_override_mode=555
14958 version_type=linux # correct to gnu/linux during the next big refactor
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14962 soname_spec='${libname}${release}${shared_ext}$major'
14963 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 shlibpath_overrides_runpath=no
14966 hardcode_into_libs=yes
14969 irix5* | irix6* | nonstopux*)
14971 nonstopux*) version_type=nonstopux ;;
14973 if test "$lt_cv_prog_gnu_ld" = yes; then
14974 version_type=linux # correct to gnu/linux during the next big refactor
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14984 irix5* | nonstopux*)
14985 libsuff= shlibsuff=
14988 case $LD in # libtool.m4 will add one of these switches to LD
14989 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14990 libsuff= shlibsuff= libmagic=32-bit;;
14991 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14992 libsuff=32 shlibsuff=N32 libmagic=N32;;
14993 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14994 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14995 *) libsuff= shlibsuff= libmagic=never-match;;
14999 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15000 shlibpath_overrides_runpath=no
15001 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15002 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15003 hardcode_into_libs=yes
15006 # No shared lib support for Linux oldld, aout, or coff.
15007 linux*oldld* | linux*aout* | linux*coff*)
15011 # This must be glibc/ELF.
15012 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15013 version_type=linux # correct to gnu/linux during the next big refactor
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017 soname_spec='${libname}${release}${shared_ext}$major'
15018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15019 shlibpath_var=LD_LIBRARY_PATH
15020 shlibpath_overrides_runpath=no
15022 # Some binutils ld are patched to set DT_RUNPATH
15023 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15024 $as_echo_n "(cached) " >&6
15026 lt_cv_shlibpath_overrides_runpath=no
15027 save_LDFLAGS=$LDFLAGS
15028 save_libdir=$libdir
15029 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15030 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15042 if ac_fn_cxx_try_link "$LINENO"; then :
15043 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15044 lt_cv_shlibpath_overrides_runpath=yes
15047 rm -f core conftest.err conftest.$ac_objext \
15048 conftest$ac_exeext conftest.$ac_ext
15049 LDFLAGS=$save_LDFLAGS
15050 libdir=$save_libdir
15054 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15056 # This implies no fast_install, which is unacceptable.
15057 # Some rework will be needed to allow for fast_install
15058 # before this can be enabled.
15059 hardcode_into_libs=yes
15061 # Append ld.so.conf contents to the search path
15062 if test -f /etc/ld.so.conf; then
15063 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' ' '`
15064 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15067 # We used to test for /lib/ld.so.1 and disable shared libraries on
15068 # powerpc, because MkLinux only supported shared libraries with the
15069 # GNU dynamic linker. Since this was broken with cross compilers,
15070 # most powerpc-linux boxes support dynamic linking these days and
15071 # people can always --disable-shared, the test was removed, and we
15072 # assume the GNU/Linux dynamic linker is in use.
15073 dynamic_linker='GNU/Linux ld.so'
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15081 soname_spec='${libname}${release}${shared_ext}$major'
15082 shlibpath_var=LD_LIBRARY_PATH
15083 shlibpath_overrides_runpath=no
15084 hardcode_into_libs=yes
15085 dynamic_linker='NetBSD ld.elf_so'
15092 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15095 dynamic_linker='NetBSD (a.out) ld.so'
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15098 soname_spec='${libname}${release}${shared_ext}$major'
15099 dynamic_linker='NetBSD ld.elf_so'
15101 shlibpath_var=LD_LIBRARY_PATH
15102 shlibpath_overrides_runpath=yes
15103 hardcode_into_libs=yes
15107 version_type=linux # correct to gnu/linux during the next big refactor
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109 shlibpath_var=LD_LIBRARY_PATH
15110 shlibpath_overrides_runpath=yes
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15118 soname_spec='${libname}${release}${shared_ext}$major'
15119 shlibpath_var=LD_LIBRARY_PATH
15120 shlibpath_overrides_runpath=no
15121 hardcode_into_libs=yes
15122 dynamic_linker='ldqnx.so'
15127 sys_lib_dlsearch_path_spec="/usr/lib"
15129 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15131 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15132 *) need_version=no ;;
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15136 shlibpath_var=LD_LIBRARY_PATH
15137 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15139 openbsd2.[89] | openbsd2.[89].*)
15140 shlibpath_overrides_runpath=no
15143 shlibpath_overrides_runpath=yes
15147 shlibpath_overrides_runpath=yes
15152 libname_spec='$name'
15155 library_names_spec='$libname${shared_ext} $libname.a'
15156 dynamic_linker='OS/2 ld.exe'
15157 shlibpath_var=LIBPATH
15160 osf3* | osf4* | osf5*)
15164 soname_spec='${libname}${release}${shared_ext}$major'
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15166 shlibpath_var=LD_LIBRARY_PATH
15167 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15168 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15176 version_type=linux # correct to gnu/linux during the next big refactor
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180 soname_spec='${libname}${release}${shared_ext}$major'
15181 shlibpath_var=LD_LIBRARY_PATH
15182 shlibpath_overrides_runpath=yes
15183 hardcode_into_libs=yes
15184 # ldd complains unless libraries are executable
15185 postinstall_cmds='chmod +x $lib'
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15191 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15192 shlibpath_var=LD_LIBRARY_PATH
15193 shlibpath_overrides_runpath=yes
15194 if test "$with_gnu_ld" = yes; then
15201 version_type=linux # correct to gnu/linux during the next big refactor
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 soname_spec='${libname}${release}${shared_ext}$major'
15204 shlibpath_var=LD_LIBRARY_PATH
15205 case $host_vendor in
15207 shlibpath_overrides_runpath=no
15209 runpath_var=LD_RUN_PATH
15217 shlibpath_overrides_runpath=no
15218 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15224 if test -d /usr/nec ;then
15225 version_type=linux # correct to gnu/linux during the next big refactor
15226 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15227 soname_spec='$libname${shared_ext}.$major'
15228 shlibpath_var=LD_LIBRARY_PATH
15232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15233 version_type=freebsd-elf
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 shlibpath_overrides_runpath=yes
15240 hardcode_into_libs=yes
15241 if test "$with_gnu_ld" = yes; then
15242 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15244 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15247 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15251 sys_lib_dlsearch_path_spec='/usr/lib'
15255 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15256 version_type=linux # correct to gnu/linux during the next big refactor
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath=no
15262 hardcode_into_libs=yes
15266 version_type=linux # correct to gnu/linux during the next big refactor
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 shlibpath_var=LD_LIBRARY_PATH
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15277 $as_echo "$dynamic_linker" >&6; }
15278 test "$dynamic_linker" = no && can_build_shared=no
15280 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15281 if test "$GCC" = yes; then
15282 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15285 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15286 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15288 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15289 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15330 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15331 hardcode_action_CXX=
15332 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15333 test -n "$runpath_var_CXX" ||
15334 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15336 # We can hardcode non-existent directories.
15337 if test "$hardcode_direct_CXX" != no &&
15338 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15339 # have to relink, otherwise we might link with an installed library
15340 # when we should be linking with a yet-to-be-installed one
15341 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15342 test "$hardcode_minus_L_CXX" != no; then
15343 # Linking always hardcodes the temporary library directory.
15344 hardcode_action_CXX=relink
15346 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15347 hardcode_action_CXX=immediate
15350 # We cannot hardcode anything, or else we can only hardcode existing
15352 hardcode_action_CXX=unsupported
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15355 $as_echo "$hardcode_action_CXX" >&6; }
15357 if test "$hardcode_action_CXX" = relink ||
15358 test "$inherit_rpath_CXX" = yes; then
15359 # Fast installation is not supported
15360 enable_fast_install=no
15361 elif test "$shlibpath_overrides_runpath" = yes ||
15362 test "$enable_shared" = no; then
15363 # Fast installation is not necessary
15364 enable_fast_install=needless
15373 fi # test -n "$compiler"
15376 CFLAGS=$lt_save_CFLAGS
15380 with_gnu_ld=$lt_save_with_gnu_ld
15381 lt_cv_path_LDCXX=$lt_cv_path_LD
15382 lt_cv_path_LD=$lt_save_path_LD
15383 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15384 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15385 fi # test "$_lt_caught_CXX_error" != yes
15388 ac_cpp='$CXXCPP $CPPFLAGS'
15389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15407 ac_config_commands="$ac_config_commands libtool"
15412 # Only expand once:
15417 # Check whether some low-level functions/files are available
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15420 $as_echo_n "checking for ANSI C header files... " >&6; }
15421 if ${ac_cv_header_stdc+:} false; then :
15422 $as_echo_n "(cached) " >&6
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426 #include <stdlib.h>
15427 #include <stdarg.h>
15428 #include <string.h>
15439 if ac_fn_cxx_try_compile "$LINENO"; then :
15440 ac_cv_header_stdc=yes
15442 ac_cv_header_stdc=no
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15446 if test $ac_cv_header_stdc = yes; then
15447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15450 #include <string.h>
15453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15454 $EGREP "memchr" >/dev/null 2>&1; then :
15457 ac_cv_header_stdc=no
15463 if test $ac_cv_header_stdc = yes; then
15464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15467 #include <stdlib.h>
15470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15471 $EGREP "free" >/dev/null 2>&1; then :
15474 ac_cv_header_stdc=no
15480 if test $ac_cv_header_stdc = yes; then
15481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15482 if test "$cross_compiling" = yes; then :
15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486 /* end confdefs.h. */
15488 #include <stdlib.h>
15489 #if ((' ' & 0x0FF) == 0x020)
15490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15493 # define ISLOWER(c) \
15494 (('a' <= (c) && (c) <= 'i') \
15495 || ('j' <= (c) && (c) <= 'r') \
15496 || ('s' <= (c) && (c) <= 'z'))
15497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15505 for (i = 0; i < 256; i++)
15506 if (XOR (islower (i), ISLOWER (i))
15507 || toupper (i) != TOUPPER (i))
15512 if ac_fn_cxx_try_run "$LINENO"; then :
15515 ac_cv_header_stdc=no
15517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15518 conftest.$ac_objext conftest.beam conftest.$ac_ext
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15524 $as_echo "$ac_cv_header_stdc" >&6; }
15525 if test $ac_cv_header_stdc = yes; then
15527 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15532 # These are tested for by AC_HEADER_STDC, but I check again to set the var
15533 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15534 if test "x$ac_cv_header_stdint_h" = xyes; then :
15535 ac_cv_have_stdint_h=1
15537 ac_cv_have_stdint_h=0
15541 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15542 if test "x$ac_cv_header_sys_types_h" = xyes; then :
15543 ac_cv_have_systypes_h=1
15545 ac_cv_have_systypes_h=0
15549 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15550 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15551 ac_cv_have_inttypes_h=1
15553 ac_cv_have_inttypes_h=0
15557 for ac_header in unistd.h
15559 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15560 if test "x$ac_cv_header_unistd_h" = xyes; then :
15561 cat >>confdefs.h <<_ACEOF
15562 #define HAVE_UNISTD_H 1
15564 ac_cv_have_unistd_h=1
15566 ac_cv_have_unistd_h=0
15571 for ac_header in syscall.h
15573 ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
15574 if test "x$ac_cv_header_syscall_h" = xyes; then :
15575 cat >>confdefs.h <<_ACEOF
15576 #define HAVE_SYSCALL_H 1
15583 for ac_header in sys/syscall.h
15585 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
15586 if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
15587 cat >>confdefs.h <<_ACEOF
15588 #define HAVE_SYS_SYSCALL_H 1
15595 # For backtrace with glibc.
15596 for ac_header in execinfo.h
15598 ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
15599 if test "x$ac_cv_header_execinfo_h" = xyes; then :
15600 cat >>confdefs.h <<_ACEOF
15601 #define HAVE_EXECINFO_H 1
15608 # For backtrace with libunwind.
15609 for ac_header in libunwind.h
15611 ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
15612 if test "x$ac_cv_header_libunwind_h" = xyes; then :
15613 cat >>confdefs.h <<_ACEOF
15614 #define HAVE_LIBUNWIND_H 1
15616 ac_cv_have_libunwind_h=1
15618 ac_cv_have_libunwind_h=0
15623 for ac_header in ucontext.h
15625 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
15626 if test "x$ac_cv_header_ucontext_h" = xyes; then :
15627 cat >>confdefs.h <<_ACEOF
15628 #define HAVE_UCONTEXT_H 1
15635 for ac_header in sys/utsname.h
15637 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
15638 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
15639 cat >>confdefs.h <<_ACEOF
15640 #define HAVE_SYS_UTSNAME_H 1
15647 for ac_header in pwd.h
15649 ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15650 if test "x$ac_cv_header_pwd_h" = xyes; then :
15651 cat >>confdefs.h <<_ACEOF
15652 #define HAVE_PWD_H 1
15659 for ac_header in syslog.h
15661 ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15662 if test "x$ac_cv_header_syslog_h" = xyes; then :
15663 cat >>confdefs.h <<_ACEOF
15664 #define HAVE_SYSLOG_H 1
15671 for ac_header in sys/time.h
15673 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15674 if test "x$ac_cv_header_sys_time_h" = xyes; then :
15675 cat >>confdefs.h <<_ACEOF
15676 #define HAVE_SYS_TIME_H 1
15683 for ac_header in glob.h
15685 ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
15686 if test "x$ac_cv_header_glob_h" = xyes; then :
15687 cat >>confdefs.h <<_ACEOF
15688 #define HAVE_GLOB_H 1
15695 # For backtrace with gcc.
15696 for ac_header in unwind.h
15698 ac_fn_cxx_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
15699 if test "x$ac_cv_header_unwind_h" = xyes; then :
15700 cat >>confdefs.h <<_ACEOF
15701 #define HAVE_UNWIND_H 1
15709 # The cast to long int works around a bug in the HP C Compiler
15710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15712 # This bug is HP SR number 8606223364.
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15714 $as_echo_n "checking size of void *... " >&6; }
15715 if ${ac_cv_sizeof_void_p+:} false; then :
15716 $as_echo_n "(cached) " >&6
15718 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15721 if test "$ac_cv_type_void_p" = yes; then
15722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15724 as_fn_error 77 "cannot compute sizeof (void *)
15725 See \`config.log' for more details" "$LINENO" 5; }
15727 ac_cv_sizeof_void_p=0
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15733 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15737 cat >>confdefs.h <<_ACEOF
15738 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15743 # These are the types I need. We look for them in either stdint.h,
15744 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15745 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15746 if test "x$ac_cv_type_uint16_t" = xyes; then :
15747 ac_cv_have_uint16_t=1
15749 ac_cv_have_uint16_t=0
15752 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15753 if test "x$ac_cv_type_u_int16_t" = xyes; then :
15754 ac_cv_have_u_int16_t=1
15756 ac_cv_have_u_int16_t=0
15759 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15760 if test "x$ac_cv_type___uint16" = xyes; then :
15761 ac_cv_have___uint16=1
15763 ac_cv_have___uint16=0
15767 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15768 if test "x$ac_cv_func_sigaltstack" = xyes; then :
15770 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15774 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15775 if test "x$ac_cv_func_dladdr" = xyes; then :
15777 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15781 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15782 if test "x$ac_cv_func_fcntl" = xyes; then :
15784 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15791 $as_echo_n "checking for __attribute__... " >&6; }
15792 if ${ac_cv___attribute__+:} false; then :
15793 $as_echo_n "(cached) " >&6
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 #include <stdlib.h>
15799 static void foo(void) __attribute__ ((unused));
15800 void foo(void) { exit(1); }
15809 if ac_fn_cxx_try_compile "$LINENO"; then :
15810 ac_cv___attribute__=yes
15812 ac_cv___attribute__=no
15815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15818 if test "$ac_cv___attribute__" = "yes"; then
15820 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15824 $as_echo "$ac_cv___attribute__" >&6; }
15826 # We only care about these two attributes.
15827 if test x"$ac_cv___attribute__" = x"yes"; then
15828 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15829 ac_cv___attribute___noinline="__attribute__ ((noinline))"
15830 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15832 ac_cv___attribute___noreturn=
15833 ac_cv___attribute___noinline=
15834 ac_cv___attribute___printf_4_5=
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15839 $as_echo_n "checking for __builtin_expect... " >&6; }
15840 if ${ac_cv___builtin_expect+:} false; then :
15841 $as_echo_n "(cached) " >&6
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15846 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15855 if ac_fn_cxx_try_compile "$LINENO"; then :
15856 ac_cv___builtin_expect=yes
15858 ac_cv___builtin_expect=no
15861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864 if test "$ac_cv___builtin_expect" = "yes"; then
15866 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15870 $as_echo "$ac_cv___builtin_expect" >&6; }
15872 if test x"$ac_cv___builtin_expect" = x"yes"; then
15873 ac_cv_have___builtin_expect=1
15875 ac_cv_have___builtin_expect=0
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15880 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15881 if ${ac_cv___sync_val_compare_and_swap+:} false; then :
15882 $as_echo_n "(cached) " >&6
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15891 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15896 if ac_fn_cxx_try_link "$LINENO"; then :
15897 ac_cv___sync_val_compare_and_swap=yes
15899 ac_cv___sync_val_compare_and_swap=no
15902 rm -f core conftest.err conftest.$ac_objext \
15903 conftest$ac_exeext conftest.$ac_ext
15906 if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15908 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15912 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15915 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15916 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15917 # Check whether --enable-frame_pointers was given.
15918 if test "${enable_frame_pointers+set}" = set; then :
15919 enableval=$enable_frame_pointers;
15921 enable_frame_pointers=no
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15930 return __x86_64__ == 1 ? 0 : 1
15935 if ac_fn_cxx_try_compile "$LINENO"; then :
15940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15941 if test "$enable_frame_pointers" = yes; then
15942 ENABLE_FRAME_POINTERS_TRUE=
15943 ENABLE_FRAME_POINTERS_FALSE='#'
15945 ENABLE_FRAME_POINTERS_TRUE='#'
15946 ENABLE_FRAME_POINTERS_FALSE=
15949 if test "$is_x86_64" = yes; then
15958 # Check whether --enable-rtti was given.
15959 if test "${enable_rtti+set}" = set; then :
15960 enableval=$enable_rtti;
15963 if test x"$enable_rtti" = x"no"; then
15965 DISABLE_RTTI_FALSE='#'
15967 DISABLE_RTTI_TRUE='#'
15968 DISABLE_RTTI_FALSE=
15971 if test x"$enable_rtti" = x"no"; then
15973 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
15977 # Some of the code in this directory depends on pthreads
15982 ac_cpp='$CPP $CPPFLAGS'
15983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15989 # We used to check for pthread.h first, but this fails if pthread.h
15990 # requires special compiler flags (e.g. on True64 or Sequent).
15991 # It gets checked for in the link test anyway.
15993 # First of all, check if the user has set any of the PTHREAD_LIBS,
15994 # etcetera environment variables, and if threads linking works using
15996 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15997 save_CFLAGS="$CFLAGS"
15998 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16000 LIBS="$PTHREAD_LIBS $LIBS"
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16002 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16006 /* Override any GCC internal prototype to avoid an error.
16007 Use char because int might match the return type of a GCC
16008 builtin and then its argument prototype would still apply. */
16012 char pthread_join ();
16016 return pthread_join ();
16021 if ac_fn_c_try_link "$LINENO"; then :
16024 rm -f core conftest.err conftest.$ac_objext \
16025 conftest$ac_exeext conftest.$ac_ext
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16027 $as_echo "$acx_pthread_ok" >&6; }
16028 if test x"$acx_pthread_ok" = xno; then
16033 CFLAGS="$save_CFLAGS"
16036 # We must check for the threads library under a number of different
16037 # names; the ordering is very important because some systems
16038 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16039 # libraries is broken (non-POSIX).
16041 # Create a list of thread flags to try. Items starting with a "-" are
16042 # C compiler flags, and other items are library names, except for "none"
16043 # which indicates that we try without any flags at all, and "pthread-config"
16044 # which is a program returning the flags for the Pth emulation library.
16046 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16048 # The ordering *is* (sometimes) important. Some notes on the
16049 # individual items follow:
16051 # pthreads: AIX (must check this before -lpthread)
16052 # none: in case threads are in libc; should be tried before -Kthread and
16053 # other compiler flags to prevent continual compiler warnings
16054 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16055 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16056 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16057 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16058 # -pthreads: Solaris/gcc
16059 # -mthreads: Mingw32/gcc, Lynx/gcc
16060 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16061 # doesn't hurt to check since this sometimes defines pthreads too;
16062 # also defines -D_REENTRANT)
16063 # ... -mt is also the pthreads flag for HP/aCC
16064 # pthread: Linux, etcetera
16065 # --thread-safe: KAI C++
16066 # pthread-config: use pthread-config program (for GNU Pth library)
16068 case "${host_cpu}-${host_os}" in
16071 # On Solaris (at least, for some versions), libc contains stubbed
16072 # (non-functional) versions of the pthreads routines, so link-based
16073 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16074 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16075 # a function called by this macro, so we could check for that, but
16076 # who knows whether they'll stub that too in a future libc.) So,
16077 # we'll just look for -pthreads and -lpthread first:
16079 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16083 if test x"$acx_pthread_ok" = xno; then
16084 for flag in $acx_pthread_flags; do
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16089 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16094 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16095 PTHREAD_CFLAGS="$flag"
16099 # Extract the first word of "pthread-config", so it can be a program name with args.
16100 set dummy pthread-config; ac_word=$2
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16102 $as_echo_n "checking for $ac_word... " >&6; }
16103 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16104 $as_echo_n "(cached) " >&6
16106 if test -n "$acx_pthread_config"; then
16107 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16110 for as_dir in $PATH
16113 test -z "$as_dir" && as_dir=.
16114 for ac_exec_ext in '' $ac_executable_extensions; do
16115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16116 ac_cv_prog_acx_pthread_config="yes"
16117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16124 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16127 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16128 if test -n "$acx_pthread_config"; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16130 $as_echo "$acx_pthread_config" >&6; }
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16133 $as_echo "no" >&6; }
16137 if test x"$acx_pthread_config" = xno; then continue; fi
16138 PTHREAD_CFLAGS="`pthread-config --cflags`"
16139 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16144 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16145 PTHREAD_LIBS="-l$flag"
16150 save_CFLAGS="$CFLAGS"
16151 LIBS="$PTHREAD_LIBS $LIBS"
16152 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16154 # Check for various functions. We must include pthread.h,
16155 # since some functions may be macros. (On the Sequent, we
16156 # need a special flag -Kthread to make this header compile.)
16157 # We check for pthread_join because it is in -lpthread on IRIX
16158 # while pthread_create is in libc. We check for pthread_attr_init
16159 # due to DEC craziness with -lpthreads. We check for
16160 # pthread_cleanup_push because it is one of the few pthread
16161 # functions on Solaris that doesn't have a non-functional libc stub.
16162 # We try pthread_create on general principles.
16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16165 #include <pthread.h>
16169 pthread_t th; pthread_join(th, 0);
16170 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16171 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16176 if ac_fn_c_try_link "$LINENO"; then :
16179 rm -f core conftest.err conftest.$ac_objext \
16180 conftest$ac_exeext conftest.$ac_ext
16183 CFLAGS="$save_CFLAGS"
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16186 $as_echo "$acx_pthread_ok" >&6; }
16187 if test "x$acx_pthread_ok" = xyes; then
16196 # Various other checks:
16197 if test "x$acx_pthread_ok" = xyes; then
16199 LIBS="$PTHREAD_LIBS $LIBS"
16200 save_CFLAGS="$CFLAGS"
16201 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16203 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16205 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16207 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16210 #include <pthread.h>
16214 int attr=$attr; return attr;
16219 if ac_fn_c_try_link "$LINENO"; then :
16220 attr_name=$attr; break
16222 rm -f core conftest.err conftest.$ac_objext \
16223 conftest$ac_exeext conftest.$ac_ext
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16226 $as_echo "$attr_name" >&6; }
16227 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define PTHREAD_CREATE_JOINABLE $attr_name
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16236 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16238 case "${host_cpu}-${host_os}" in
16239 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16240 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16243 $as_echo "${flag}" >&6; }
16244 if test "x$flag" != xno; then
16245 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16249 CFLAGS="$save_CFLAGS"
16250 # More AIX lossage: must compile with xlc_r or cc_r
16251 if test x"$GCC" != xyes; then
16252 for ac_prog in xlc_r cc_r
16254 # Extract the first word of "$ac_prog", so it can be a program name with args.
16255 set dummy $ac_prog; ac_word=$2
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16257 $as_echo_n "checking for $ac_word... " >&6; }
16258 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16259 $as_echo_n "(cached) " >&6
16261 if test -n "$PTHREAD_CC"; then
16262 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16265 for as_dir in $PATH
16268 test -z "$as_dir" && as_dir=.
16269 for ac_exec_ext in '' $ac_executable_extensions; do
16270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16271 ac_cv_prog_PTHREAD_CC="$ac_prog"
16272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16281 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16282 if test -n "$PTHREAD_CC"; then
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16284 $as_echo "$PTHREAD_CC" >&6; }
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287 $as_echo "no" >&6; }
16291 test -n "$PTHREAD_CC" && break
16293 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16299 # The next part tries to detect GCC inconsistency with -shared on some
16300 # architectures and systems. The problem is that in certain
16301 # configurations, when -shared is specified, GCC "forgets" to
16302 # internally use various flags which are still necessary.
16305 # Prepare the flags
16307 save_CFLAGS="$CFLAGS"
16311 # Try with the flags determined by the earlier checks.
16313 # -Wl,-z,defs forces link-time symbol resolution, so that the
16314 # linking checks with -shared actually have any value
16316 # FIXME: -fPIC is required for -shared on many architectures,
16317 # so we specify it here, but the right way would probably be to
16318 # properly detect whether it is actually required.
16319 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16320 LIBS="$PTHREAD_LIBS $LIBS"
16323 # In order not to create several levels of indentation, we test
16324 # the value of "$done" until we find the cure or run out of ideas.
16327 # First, make sure the CFLAGS we added are actually accepted by our
16328 # compiler. If not (and OS X's ld, for instance, does not accept -z),
16329 # then we can't do this test.
16330 if test x"$done" = xno; then
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16332 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334 /* end confdefs.h. */
16344 if ac_fn_c_try_link "$LINENO"; then :
16349 rm -f core conftest.err conftest.$ac_objext \
16350 conftest$ac_exeext conftest.$ac_ext
16352 if test "x$done" = xyes ; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16354 $as_echo "no" >&6; }
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16357 $as_echo "yes" >&6; }
16361 if test x"$done" = xno; then
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16363 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16366 #include <pthread.h>
16370 pthread_t th; pthread_join(th, 0);
16371 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16372 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16377 if ac_fn_c_try_link "$LINENO"; then :
16380 rm -f core conftest.err conftest.$ac_objext \
16381 conftest$ac_exeext conftest.$ac_ext
16383 if test "x$done" = xyes; then
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16385 $as_echo "yes" >&6; }
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16388 $as_echo "no" >&6; }
16393 # Linux gcc on some architectures such as mips/mipsel forgets
16396 if test x"$done" = xno; then
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16398 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
16399 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h. */
16402 #include <pthread.h>
16406 pthread_t th; pthread_join(th, 0);
16407 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16408 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16413 if ac_fn_c_try_link "$LINENO"; then :
16416 rm -f core conftest.err conftest.$ac_objext \
16417 conftest$ac_exeext conftest.$ac_ext
16419 if test "x$done" = xyes; then
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16421 $as_echo "yes" >&6; }
16422 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16425 $as_echo "no" >&6; }
16429 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16431 if test x"$done" = xno; then
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16433 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
16434 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16437 #include <pthread.h>
16441 pthread_t th; pthread_join(th, 0);
16442 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16443 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16448 if ac_fn_c_try_link "$LINENO"; then :
16451 rm -f core conftest.err conftest.$ac_objext \
16452 conftest$ac_exeext conftest.$ac_ext
16454 if test "x$done" = xyes; then
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16456 $as_echo "yes" >&6; }
16457 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16460 $as_echo "no" >&6; }
16463 if test x"$done" = xno; then
16464 # OK, we have run out of ideas
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16466 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16468 # so it's not safe to assume that we may use pthreads
16472 CFLAGS="$save_CFLAGS"
16483 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16484 if test x"$acx_pthread_ok" = xyes; then
16486 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16494 ac_cpp='$CXXCPP $CPPFLAGS'
16495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16500 if test x"$acx_pthread_ok" = x"yes"; then
16501 # To make libglog depend on libpthread on Linux, we need to add
16502 # -lpthread in addition to -pthread.
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
16504 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
16505 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
16506 $as_echo_n "(cached) " >&6
16508 ac_check_lib_save_LIBS=$LIBS
16509 LIBS="-lpthread $LIBS"
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16513 /* Override any GCC internal prototype to avoid an error.
16514 Use char because int might match the return type of a GCC
16515 builtin and then its argument prototype would still apply. */
16519 char pthread_self ();
16523 return pthread_self ();
16528 if ac_fn_cxx_try_link "$LINENO"; then :
16529 ac_cv_lib_pthread_pthread_self=yes
16531 ac_cv_lib_pthread_pthread_self=no
16533 rm -f core conftest.err conftest.$ac_objext \
16534 conftest$ac_exeext conftest.$ac_ext
16535 LIBS=$ac_check_lib_save_LIBS
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
16538 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
16539 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
16540 cat >>confdefs.h <<_ACEOF
16541 #define HAVE_LIBPTHREAD 1
16544 LIBS="-lpthread $LIBS"
16550 # Check if there is google-gflags library installed.
16551 SAVE_CFLAGS="$CFLAGS"
16554 # Check whether --with-gflags was given.
16555 if test "${with_gflags+set}" = set; then :
16556 withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
16557 GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
16558 CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
16559 LIBS="$LIBS $GFLAGS_LIBS"
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
16564 $as_echo_n "checking for main in -lgflags... " >&6; }
16565 if ${ac_cv_lib_gflags_main+:} false; then :
16566 $as_echo_n "(cached) " >&6
16568 ac_check_lib_save_LIBS=$LIBS
16569 LIBS="-lgflags $LIBS"
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16582 if ac_fn_cxx_try_link "$LINENO"; then :
16583 ac_cv_lib_gflags_main=yes
16585 ac_cv_lib_gflags_main=no
16587 rm -f core conftest.err conftest.$ac_objext \
16588 conftest$ac_exeext conftest.$ac_ext
16589 LIBS=$ac_check_lib_save_LIBS
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
16592 $as_echo "$ac_cv_lib_gflags_main" >&6; }
16593 if test "x$ac_cv_lib_gflags_main" = xyes; then :
16594 ac_cv_have_libgflags=1
16596 ac_cv_have_libgflags=0
16599 if test x"$ac_cv_have_libgflags" = x"1"; then
16601 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
16603 if test x"$GFLAGS_LIBS" = x""; then
16604 GFLAGS_LIBS="-lgflags"
16610 CFLAGS="$SAVE_CFLAGS"
16613 # TODO(hamaji): Use official m4 macros provided by testing libraries
16614 # once the m4 macro of Google Mocking becomes ready.
16615 # Check if there is Google Test library installed.
16616 # Extract the first word of "gtest-config", so it can be a program name with args.
16617 set dummy gtest-config; ac_word=$2
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16619 $as_echo_n "checking for $ac_word... " >&6; }
16620 if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
16621 $as_echo_n "(cached) " >&6
16623 if test -n "$GTEST_CONFIG"; then
16624 ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
16626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16627 for as_dir in $PATH
16630 test -z "$as_dir" && as_dir=.
16631 for ac_exec_ext in '' $ac_executable_extensions; do
16632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16633 ac_cv_prog_GTEST_CONFIG=""yes""
16634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16643 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
16644 if test -n "$GTEST_CONFIG"; then
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
16646 $as_echo "$GTEST_CONFIG" >&6; }
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16649 $as_echo "no" >&6; }
16653 if test x"$GTEST_CONFIG" = "xyes"; then
16654 GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
16655 GTEST_LIBS=`gtest-config --ldflags --libs`
16657 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
16660 # Check if there is Google Mocking library installed.
16661 # Extract the first word of "gmock-config", so it can be a program name with args.
16662 set dummy gmock-config; ac_word=$2
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16664 $as_echo_n "checking for $ac_word... " >&6; }
16665 if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
16666 $as_echo_n "(cached) " >&6
16668 if test -n "$GMOCK_CONFIG"; then
16669 ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
16671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16672 for as_dir in $PATH
16675 test -z "$as_dir" && as_dir=.
16676 for ac_exec_ext in '' $ac_executable_extensions; do
16677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16678 ac_cv_prog_GMOCK_CONFIG=""yes""
16679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16688 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
16689 if test -n "$GMOCK_CONFIG"; then
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
16691 $as_echo "$GMOCK_CONFIG" >&6; }
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694 $as_echo "no" >&6; }
16698 if test x"$GMOCK_CONFIG" = "xyes"; then
16699 GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
16700 GMOCK_LIBS=`gmock-config --ldflags --libs`
16702 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
16705 # We don't run test cases which use Google Mocking framework.
16710 # We'll use src/googletest.h for our unittests.
16714 if test x"$GMOCK_CONFIG" = "xyes"; then
16716 HAVE_GMOCK_FALSE='#'
16718 HAVE_GMOCK_TRUE='#'
16723 # We want to link in libunwind if it exists
16725 # Unfortunately, we need to check the header file in addition to the
16726 # lib file to check if libunwind is available since libunwind-0.98
16727 # doesn't install all necessary header files.
16728 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16730 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16731 if ${ac_cv_lib_unwind_backtrace+:} false; then :
16732 $as_echo_n "(cached) " >&6
16734 ac_check_lib_save_LIBS=$LIBS
16735 LIBS="-lunwind $LIBS"
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h. */
16739 /* Override any GCC internal prototype to avoid an error.
16740 Use char because int might match the return type of a GCC
16741 builtin and then its argument prototype would still apply. */
16749 return backtrace ();
16754 if ac_fn_cxx_try_link "$LINENO"; then :
16755 ac_cv_lib_unwind_backtrace=yes
16757 ac_cv_lib_unwind_backtrace=no
16759 rm -f core conftest.err conftest.$ac_objext \
16760 conftest$ac_exeext conftest.$ac_ext
16761 LIBS=$ac_check_lib_save_LIBS
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16764 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16765 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
16766 UNWIND_LIBS=-lunwind
16771 if test x"$UNWIND_LIBS" != x""; then
16773 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16777 # We'd like to use read/write locks in several places in the code.
16778 # See if our pthreads support extends to that. Note: for linux, it
16779 # does as long as you define _XOPEN_SOURCE appropriately.
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16781 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16782 if ${ac_cv_rwlock+:} false; then :
16783 $as_echo_n "(cached) " >&6
16787 ac_cpp='$CPP $CPPFLAGS'
16788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16794 #define _XOPEN_SOURCE 500
16795 #include <pthread.h>
16799 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16800 pthread_rwlock_rdlock(&l);
16806 if ac_fn_c_try_compile "$LINENO"; then :
16811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16813 ac_cpp='$CXXCPP $CPPFLAGS'
16814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16821 $as_echo "$ac_cv_rwlock" >&6; }
16822 if test "$ac_cv_rwlock" = yes; then
16824 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16829 # Find out what namespace 'normal' STL code lives in, and also what namespace
16830 # the user wants our classes to be defined in
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16832 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16833 if ${ac_cv_cxx_namespaces+:} false; then :
16834 $as_echo_n "(cached) " >&6
16838 ac_cpp='$CXXCPP $CPPFLAGS'
16839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16846 namespace Inner { int i = 0; }}
16850 using namespace Outer::Inner; return i;
16855 if ac_fn_cxx_try_compile "$LINENO"; then :
16856 ac_cv_cxx_namespaces=yes
16858 ac_cv_cxx_namespaces=no
16860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862 ac_cpp='$CXXCPP $CPPFLAGS'
16863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16869 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16870 if test "$ac_cv_cxx_namespaces" = yes; then
16872 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16876 $as_echo_n "checking what namespace STL code is in... " >&6; }
16877 if ${ac_cv_cxx_stl_namespace+:} false; then :
16878 $as_echo_n "(cached) " >&6
16883 ac_cpp='$CXXCPP $CPPFLAGS'
16884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16894 vector<int> t; return 0;
16899 if ac_fn_cxx_try_compile "$LINENO"; then :
16900 ac_cv_cxx_stl_namespace=none
16902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16909 std::vector<int> t; return 0;
16914 if ac_fn_cxx_try_compile "$LINENO"; then :
16915 ac_cv_cxx_stl_namespace=std
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16919 ac_cpp='$CXXCPP $CPPFLAGS'
16920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16926 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16927 if test "$ac_cv_cxx_stl_namespace" = none; then
16929 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16932 if test "$ac_cv_cxx_stl_namespace" = std; then
16934 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
16938 google_namespace_default=google
16939 # Check whether --enable-namespace was given.
16940 if test "${enable_namespace+set}" = set; then :
16941 enableval=$enable_namespace; case "$enableval" in
16942 yes) google_namespace="$google_namespace_default" ;;
16943 no) google_namespace="" ;;
16944 *) google_namespace="$enableval" ;;
16947 google_namespace="$google_namespace_default"
16950 if test -n "$google_namespace"; then
16951 ac_google_namespace="$google_namespace"
16952 ac_google_start_namespace="namespace $google_namespace {"
16953 ac_google_end_namespace="}"
16955 ac_google_namespace=""
16956 ac_google_start_namespace=""
16957 ac_google_end_namespace=""
16960 cat >>confdefs.h <<_ACEOF
16961 #define GOOGLE_NAMESPACE $ac_google_namespace
16965 cat >>confdefs.h <<_ACEOF
16966 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
16970 cat >>confdefs.h <<_ACEOF
16971 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
16977 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
16978 if ${ac_cv_cxx_using_operator+:} false; then :
16979 $as_echo_n "(cached) " >&6
16983 ac_cpp='$CXXCPP $CPPFLAGS'
16984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16990 #include <iostream>
16991 std::ostream& operator<<(std::ostream&, struct s);
16995 using ::operator<<; return 0;
17000 if ac_fn_cxx_try_compile "$LINENO"; then :
17001 ac_cv_cxx_using_operator=1
17003 ac_cv_cxx_using_operator=0
17005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007 ac_cpp='$CXXCPP $CPPFLAGS'
17008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
17014 $as_echo "$ac_cv_cxx_using_operator" >&6; }
17015 if test "$ac_cv_cxx_using_operator" = 1; then
17017 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
17021 for ac_header in ucontext.h
17023 ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
17024 if test "x$ac_cv_header_ucontext_h" = xyes; then :
17025 cat >>confdefs.h <<_ACEOF
17026 #define HAVE_UCONTEXT_H 1
17033 for ac_header in sys/ucontext.h
17035 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
17036 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
17037 cat >>confdefs.h <<_ACEOF
17038 #define HAVE_SYS_UCONTEXT_H 1
17044 # ucontext on OS X 10.6 (at least)
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
17046 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
17047 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
17048 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
17049 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
17050 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
17051 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
17052 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
17053 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
17054 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
17055 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
17056 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
17057 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
17058 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
17059 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
17060 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
17061 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
17062 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
17063 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
17064 pc_field_found=false
17065 for pc_field in $pc_fields; do
17066 if ! $pc_field_found; then
17067 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17070 #define _GNU_SOURCE 1
17071 #include <sys/ucontext.h>
17075 ucontext_t u; return u.$pc_field == 0;
17080 if ac_fn_cxx_try_compile "$LINENO"; then :
17082 cat >>confdefs.h <<_ACEOF
17083 #define PC_FROM_UCONTEXT $pc_field
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17087 $as_echo "$pc_field" >&6; }
17088 pc_field_found=true
17090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17094 #define _GNU_SOURCE 1
17095 #include <ucontext.h>
17099 ucontext_t u; return u.$pc_field == 0;
17104 if ac_fn_cxx_try_compile "$LINENO"; then :
17106 cat >>confdefs.h <<_ACEOF
17107 #define PC_FROM_UCONTEXT $pc_field
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17111 $as_echo "$pc_field" >&6; }
17112 pc_field_found=true
17114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17118 if ! $pc_field_found; then
17119 pc_fields=" sc_eip" # OpenBSD (i386)
17120 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
17121 for pc_field in $pc_fields; do
17122 if ! $pc_field_found; then
17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h. */
17125 #include <signal.h>
17129 ucontext_t u; return u.$pc_field == 0;
17134 if ac_fn_cxx_try_compile "$LINENO"; then :
17136 cat >>confdefs.h <<_ACEOF
17137 #define PC_FROM_UCONTEXT $pc_field
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
17141 $as_echo "$pc_field" >&6; }
17142 pc_field_found=true
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148 if ! $pc_field_found; then
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not output failed addresses..." >&5
17150 $as_echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
17154 cat >>confdefs.h <<_ACEOF
17155 #define TEST_SRC_DIR "$srcdir"
17159 # These are what's needed by logging.h.in and raw_logging.h.in
17183 # Write generated configuration file
17184 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"
17186 ac_config_files="$ac_config_files libglog.pc"
17188 cat >confcache <<\_ACEOF
17189 # This file is a shell script that caches the results of configure
17190 # tests run on this system so they can be shared between configure
17191 # scripts and configure runs, see configure's option --config-cache.
17192 # It is not useful on other systems. If it contains results you don't
17193 # want to keep, you may remove or edit it.
17195 # config.status only pays attention to the cache file if you give it
17196 # the --recheck option to rerun configure.
17198 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17199 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17200 # following values.
17204 # The following way of writing the cache mishandles newlines in values,
17205 # but we know of no workaround that is simple, portable, and efficient.
17206 # So, we kill variables containing newlines.
17207 # Ultrix sh set writes to stderr and can't be redirected directly,
17208 # and sets the high bit in the cache file unless we assign to the vars.
17210 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17211 eval ac_val=\$$ac_var
17215 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17219 _ | IFS | as_nl) ;; #(
17220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17221 *) { eval $ac_var=; unset $ac_var;} ;;
17227 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17228 *${as_nl}ac_space=\ *)
17229 # `set' does not quote correctly, so add quotes: double-quote
17230 # substitution turns \\\\ into \\, and sed turns \\ into \.
17233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17236 # `set' quotes correctly as required by POSIX, so do not add quotes.
17237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17250 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17251 if test -w "$cache_file"; then
17252 if test "x$cache_file" != "x/dev/null"; then
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17254 $as_echo "$as_me: updating cache $cache_file" >&6;}
17255 if test ! -f "$cache_file" || test -h "$cache_file"; then
17256 cat confcache >"$cache_file"
17258 case $cache_file in #(
17260 mv -f confcache "$cache_file"$$ &&
17261 mv -f "$cache_file"$$ "$cache_file" ;; #(
17263 mv -f confcache "$cache_file" ;;
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17269 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17274 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17275 # Let make expand exec_prefix.
17276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17278 DEFS=-DHAVE_CONFIG_H
17283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17284 # 1. Remove the extension, and $U if already installed.
17285 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17286 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17288 # will be set to the directory where LIBOBJS objects are built.
17289 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17290 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17292 LIBOBJS=$ac_libobjs
17294 LTLIBOBJS=$ac_ltlibobjs
17297 if test -n "$EXEEXT"; then
17299 am__EXEEXT_FALSE='#'
17301 am__EXEEXT_TRUE='#'
17305 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17306 as_fn_error $? "conditional \"AMDEP\" was never defined.
17307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17309 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17310 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17313 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17314 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17317 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17318 as_fn_error $? "conditional \"GCC\" was never defined.
17319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17321 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
17322 as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
17323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17325 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
17326 as_fn_error $? "conditional \"X86_64\" was never defined.
17327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17329 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
17330 as_fn_error $? "conditional \"DISABLE_RTTI\" was never defined.
17331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17333 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
17334 as_fn_error $? "conditional \"HAVE_GMOCK\" was never defined.
17335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17338 : "${CONFIG_STATUS=./config.status}"
17340 ac_clean_files_save=$ac_clean_files
17341 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17343 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17345 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17347 # Generated by $as_me.
17348 # Run this file to recreate the current configuration.
17349 # Compiler output produced by configure, useful for debugging
17350 # configure, is in config.log if it exists.
17353 ac_cs_recheck=false
17356 SHELL=\${CONFIG_SHELL-$SHELL}
17359 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17360 ## -------------------- ##
17361 ## M4sh Initialization. ##
17362 ## -------------------- ##
17364 # Be more Bourne compatible
17365 DUALCASE=1; export DUALCASE # for MKS sh
17366 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17369 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17370 # is contrary to our usage. Disable this feature.
17371 alias -g '${1+"$@"}'='"$@"'
17372 setopt NO_GLOB_SUBST
17374 case `(set -o) 2>/dev/null` in #(
17386 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17387 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17388 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17389 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17390 # Prefer a ksh shell builtin over an external printf program on Solaris,
17391 # but without wasting forks for bash or zsh.
17392 if test -z "$BASH_VERSION$ZSH_VERSION" \
17393 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17394 as_echo='print -r --'
17395 as_echo_n='print -rn --'
17396 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17397 as_echo='printf %s\n'
17398 as_echo_n='printf %s'
17400 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17401 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17402 as_echo_n='/usr/ucb/echo -n'
17404 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17405 as_echo_n_body='eval
17409 expr "X$arg" : "X\\(.*\\)$as_nl";
17410 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17412 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17414 export as_echo_n_body
17415 as_echo_n='sh -c $as_echo_n_body as_echo'
17417 export as_echo_body
17418 as_echo='sh -c $as_echo_body as_echo'
17421 # The user is always right.
17422 if test "${PATH_SEPARATOR+set}" != set; then
17424 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17425 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17432 # We need space, tab and new line, in precisely that order. Quoting is
17433 # there to prevent editors from complaining about space-tab.
17434 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17435 # splitting by setting IFS to empty value.)
17438 # Find who we are. Look in the path if we contain no directory separator.
17441 *[\\/]* ) as_myself=$0 ;;
17442 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17443 for as_dir in $PATH
17446 test -z "$as_dir" && as_dir=.
17447 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17453 # We did not find ourselves, most probably we were run as `sh COMMAND'
17454 # in which case we are not to be found in the path.
17455 if test "x$as_myself" = x; then
17458 if test ! -f "$as_myself"; then
17459 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17463 # Unset variables that we do not need and which cause bugs (e.g. in
17464 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17465 # suppresses any "Segmentation fault" message there. '((' could
17466 # trigger a bug in pdksh 5.2.14.
17467 for as_var in BASH_ENV ENV MAIL MAILPATH
17468 do eval test x\${$as_var+set} = xset \
17469 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17482 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17485 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17486 # ----------------------------------------
17487 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17488 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17489 # script with STATUS, using 1 if that was 0.
17492 as_status=$1; test $as_status -eq 0 && as_status=1
17494 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17495 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17497 $as_echo "$as_me: error: $2" >&2
17498 as_fn_exit $as_status
17502 # as_fn_set_status STATUS
17503 # -----------------------
17504 # Set $? to STATUS, without forking.
17505 as_fn_set_status ()
17508 } # as_fn_set_status
17510 # as_fn_exit STATUS
17511 # -----------------
17512 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17516 as_fn_set_status $1
17522 # Portably unset VAR.
17525 { eval $1=; unset $1;}
17527 as_unset=as_fn_unset
17528 # as_fn_append VAR VALUE
17529 # ----------------------
17530 # Append the text in VALUE to the end of the definition contained in VAR. Take
17531 # advantage of any shell optimizations that allow amortized linear growth over
17532 # repeated appends, instead of the typical quadratic growth present in naive
17534 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17535 eval 'as_fn_append ()
17546 # as_fn_arith ARG...
17547 # ------------------
17548 # Perform arithmetic evaluation on the ARGs, and store the result in the
17549 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17550 # must be portable across $(()) and expr.
17551 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17552 eval 'as_fn_arith ()
17559 as_val=`expr "$@" || test $? -eq 1`
17564 if expr a : '\(a\)' >/dev/null 2>&1 &&
17565 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17571 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17572 as_basename=basename
17577 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17583 as_me=`$as_basename -- "$0" ||
17584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17585 X"$0" : 'X\(//\)$' \| \
17586 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17588 sed '/^.*\/\([^/][^/]*\)\/*$/{
17602 # Avoid depending upon Character Ranges.
17603 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17604 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17605 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17606 as_cr_digits='0123456789'
17607 as_cr_alnum=$as_cr_Letters$as_cr_digits
17609 ECHO_C= ECHO_N= ECHO_T=
17610 case `echo -n x` in #(((((
17612 case `echo 'xy\c'` in
17613 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17615 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17622 rm -f conf$$ conf$$.exe conf$$.file
17623 if test -d conf$$.dir; then
17624 rm -f conf$$.dir/conf$$.file
17627 mkdir conf$$.dir 2>/dev/null
17629 if (echo >conf$$.file) 2>/dev/null; then
17630 if ln -s conf$$.file conf$$ 2>/dev/null; then
17632 # ... but there are two gotchas:
17633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17635 # In both cases, we have to default to `cp -p'.
17636 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17638 elif ln conf$$.file conf$$ 2>/dev/null; then
17646 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17647 rmdir conf$$.dir 2>/dev/null
17652 # Create "$as_dir" as a directory, including parents if necessary.
17657 -*) as_dir=./$as_dir;;
17659 test -d "$as_dir" || eval $as_mkdir_p || {
17663 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17664 *) as_qdir=$as_dir;;
17666 as_dirs="'$as_qdir' $as_dirs"
17667 as_dir=`$as_dirname -- "$as_dir" ||
17668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17669 X"$as_dir" : 'X\(//\)[^/]' \| \
17670 X"$as_dir" : 'X\(//\)$' \| \
17671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17672 $as_echo X"$as_dir" |
17673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17677 /^X\(\/\/\)[^/].*/{
17690 test -d "$as_dir" && break
17692 test -z "$as_dirs" || eval "mkdir $as_dirs"
17693 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17697 if mkdir -p . 2>/dev/null; then
17698 as_mkdir_p='mkdir -p "$as_dir"'
17700 test -d ./-p && rmdir ./-p
17704 if test -x / >/dev/null 2>&1; then
17705 as_test_x='test -x'
17707 if ls -dL / >/dev/null 2>&1; then
17714 if test -d "$1"; then
17720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17721 ???[sx]*):;;*)false;;esac;fi
17725 as_executable_p=$as_test_x
17727 # Sed expression to map a string onto a valid CPP name.
17728 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17730 # Sed expression to map a string onto a valid variable name.
17731 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17735 ## ----------------------------------- ##
17736 ## Main body of $CONFIG_STATUS script. ##
17737 ## ----------------------------------- ##
17739 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17742 # Save the log message, to keep $0 and so on meaningful, and to
17743 # report actual input values of CONFIG_FILES etc. instead of their
17744 # values after options handling.
17746 This file was extended by glog $as_me 0.3.2, which was
17747 generated by GNU Autoconf 2.68. Invocation command line was
17749 CONFIG_FILES = $CONFIG_FILES
17750 CONFIG_HEADERS = $CONFIG_HEADERS
17751 CONFIG_LINKS = $CONFIG_LINKS
17752 CONFIG_COMMANDS = $CONFIG_COMMANDS
17755 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17760 case $ac_config_files in *"
17761 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17764 case $ac_config_headers in *"
17765 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17770 # Files that config.status was made for.
17771 config_files="$ac_config_files"
17772 config_headers="$ac_config_headers"
17773 config_commands="$ac_config_commands"
17777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17779 \`$as_me' instantiates files and other configuration actions
17780 from templates according to the current configuration. Unless the files
17781 and actions are specified as TAGs, all are instantiated by default.
17783 Usage: $0 [OPTION]... [TAG]...
17785 -h, --help print this help, then exit
17786 -V, --version print version number and configuration settings, then exit
17787 --config print configuration, then exit
17788 -q, --quiet, --silent
17789 do not print progress messages
17790 -d, --debug don't remove temporary files
17791 --recheck update $as_me by reconfiguring in the same conditions
17792 --file=FILE[:TEMPLATE]
17793 instantiate the configuration file FILE
17794 --header=FILE[:TEMPLATE]
17795 instantiate the configuration header FILE
17797 Configuration files:
17800 Configuration headers:
17803 Configuration commands:
17806 Report bugs to <opensource@google.com>."
17809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17810 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17812 glog config.status 0.3.2
17813 configured by $0, generated by GNU Autoconf 2.68,
17814 with options \\"\$ac_cs_config\\"
17816 Copyright (C) 2010 Free Software Foundation, Inc.
17817 This config.status script is free software; the Free Software Foundation
17818 gives unlimited permission to copy, distribute and modify it."
17825 test -n "\$AWK" || AWK=awk
17828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17829 # The default lists apply if the user does not specify any file.
17835 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17836 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17840 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17852 # Handling of the options.
17853 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17855 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17856 $as_echo "$ac_cs_version"; exit ;;
17857 --config | --confi | --conf | --con | --co | --c )
17858 $as_echo "$ac_cs_config"; exit ;;
17859 --debug | --debu | --deb | --de | --d | -d )
17861 --file | --fil | --fi | --f )
17864 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17865 '') as_fn_error $? "missing file argument" ;;
17867 as_fn_append CONFIG_FILES " '$ac_optarg'"
17868 ac_need_defaults=false;;
17869 --header | --heade | --head | --hea )
17872 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17874 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17875 ac_need_defaults=false;;
17877 # Conflict between --help and --header
17878 as_fn_error $? "ambiguous option: \`$1'
17879 Try \`$0 --help' for more information.";;
17880 --help | --hel | -h )
17881 $as_echo "$ac_cs_usage"; exit ;;
17882 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17883 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17886 # This is an error.
17887 -*) as_fn_error $? "unrecognized option: \`$1'
17888 Try \`$0 --help' for more information." ;;
17890 *) as_fn_append ac_config_targets " $1"
17891 ac_need_defaults=false ;;
17897 ac_configure_extra_args=
17899 if $ac_cs_silent; then
17901 ac_configure_extra_args="$ac_configure_extra_args --silent"
17905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17906 if \$ac_cs_recheck; then
17907 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17909 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17910 CONFIG_SHELL='$SHELL'
17911 export CONFIG_SHELL
17916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17921 ## Running $as_me. ##
17927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17931 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17934 # The HP-UX ksh and POSIX shell print the target directory to stdout
17935 # if CDPATH is set.
17936 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17938 sed_quote_subst='$sed_quote_subst'
17939 double_quote_subst='$double_quote_subst'
17940 delay_variable_subst='$delay_variable_subst'
17941 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17942 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17943 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17944 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17945 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17946 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17947 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17948 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17949 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17950 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17951 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17952 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17953 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17954 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17955 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17956 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17957 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17958 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17959 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17960 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17961 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17962 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17963 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17964 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17965 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17966 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17967 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17968 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17969 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17970 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17971 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17972 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17973 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17974 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17975 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17976 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17977 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17978 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17979 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17980 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17981 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17982 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17983 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17984 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17985 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17986 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17987 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17988 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17989 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17990 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17991 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17992 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17993 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17994 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17995 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17996 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17997 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"`'
17998 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17999 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18000 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18001 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18002 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18003 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18004 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18005 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18006 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18007 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18008 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18009 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18010 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18011 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18012 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18013 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18014 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18015 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18016 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18017 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18018 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18019 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18020 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18021 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18022 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18023 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18024 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18025 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18026 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18027 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18028 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18029 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18030 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18031 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18032 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18033 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18034 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18035 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18036 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18037 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18038 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18039 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18040 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18041 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18042 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18043 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18044 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18045 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18046 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18047 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18048 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18049 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18050 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18051 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18052 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18053 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18054 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18055 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18056 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18057 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18058 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18059 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18060 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18061 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18062 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18063 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18064 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18065 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18066 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18067 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18068 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18069 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18070 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18071 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18072 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18073 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18074 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18075 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18076 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18077 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18078 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18079 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18080 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18081 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18082 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18083 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18084 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18085 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18086 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18087 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18088 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18089 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18090 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18091 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18092 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18093 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18094 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18095 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18096 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18097 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18098 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18099 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18100 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18101 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18102 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18103 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18104 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18105 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18106 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18107 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18108 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18109 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18110 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18111 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18112 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18113 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18114 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18115 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18116 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18117 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18118 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18119 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18120 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18121 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18122 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18123 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18124 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18127 LTCFLAGS='$LTCFLAGS'
18128 compiler='$compiler_DEFAULT'
18130 # A function that is used when there is no print builtin or printf.
18131 func_fallback_echo ()
18133 eval 'cat <<_LTECHO_EOF
18138 # Quote evaled strings.
18153 deplibs_check_method \
18158 sharedlib_from_linklib_cmd \
18161 archiver_list_spec \
18167 lt_cv_sys_global_symbol_pipe \
18168 lt_cv_sys_global_symbol_to_cdecl \
18169 lt_cv_sys_global_symbol_to_c_name_address \
18170 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18171 nm_file_list_spec \
18172 lt_prog_compiler_no_builtin_flag \
18173 lt_prog_compiler_pic \
18174 lt_prog_compiler_wl \
18175 lt_prog_compiler_static \
18176 lt_cv_prog_compiler_c_o \
18185 export_dynamic_flag_spec \
18186 whole_archive_flag_spec \
18187 compiler_needs_object \
18189 allow_undefined_flag \
18190 no_undefined_flag \
18191 hardcode_libdir_flag_spec \
18192 hardcode_libdir_separator \
18196 variables_saved_for_relink \
18198 library_names_spec \
18200 install_override_mode \
18204 compiler_lib_search_dirs \
18209 compiler_lib_search_path \
18213 lt_prog_compiler_no_builtin_flag_CXX \
18214 lt_prog_compiler_pic_CXX \
18215 lt_prog_compiler_wl_CXX \
18216 lt_prog_compiler_static_CXX \
18217 lt_cv_prog_compiler_c_o_CXX \
18218 export_dynamic_flag_spec_CXX \
18219 whole_archive_flag_spec_CXX \
18220 compiler_needs_object_CXX \
18222 allow_undefined_flag_CXX \
18223 no_undefined_flag_CXX \
18224 hardcode_libdir_flag_spec_CXX \
18225 hardcode_libdir_separator_CXX \
18226 exclude_expsyms_CXX \
18227 include_expsyms_CXX \
18228 file_list_spec_CXX \
18229 compiler_lib_search_dirs_CXX \
18230 predep_objects_CXX \
18231 postdep_objects_CXX \
18234 compiler_lib_search_path_CXX; do
18235 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18236 *[\\\\\\\`\\"\\\$]*)
18237 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18240 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18245 # Double-quote double-evaled strings.
18246 for var in reload_cmds \
18247 old_postinstall_cmds \
18248 old_postuninstall_cmds \
18250 extract_expsyms_cmds \
18251 old_archive_from_new_cmds \
18252 old_archive_from_expsyms_cmds \
18254 archive_expsym_cmds \
18256 module_expsym_cmds \
18257 export_symbols_cmds \
18261 postuninstall_cmds \
18263 sys_lib_search_path_spec \
18264 sys_lib_dlsearch_path_spec \
18266 old_archive_cmds_CXX \
18267 old_archive_from_new_cmds_CXX \
18268 old_archive_from_expsyms_cmds_CXX \
18270 archive_expsym_cmds_CXX \
18272 module_expsym_cmds_CXX \
18273 export_symbols_cmds_CXX \
18275 postlink_cmds_CXX; do
18276 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18277 *[\\\\\\\`\\"\\\$]*)
18278 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18281 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18286 ac_aux_dir='$ac_aux_dir'
18287 xsi_shell='$xsi_shell'
18288 lt_shell_append='$lt_shell_append'
18290 # See if we are running on zsh, and set the options which allow our
18291 # commands through without removal of \ escapes INIT.
18292 if test -n "\${ZSH_VERSION+set}" ; then
18293 setopt NO_GLOB_SUBST
18299 TIMESTAMP='$TIMESTAMP'
18310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18312 # Handling of arguments.
18313 for ac_config_target in $ac_config_targets
18315 case $ac_config_target in
18316 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18317 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18318 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18319 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18320 "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
18321 "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
18322 "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
18323 "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
18324 "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
18326 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18331 # If the user did not use the arguments to specify the items to instantiate,
18332 # then the envvar interface is used. Set only those that are not.
18333 # We use the long form for the default assignment because of an extremely
18334 # bizarre bug on SunOS 4.1.3.
18335 if $ac_need_defaults; then
18336 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18337 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18338 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18341 # Have a temporary directory for convenience. Make it in the build tree
18342 # simply because there is no reason against having it here, and in addition,
18343 # creating and moving files from /tmp can sometimes cause problems.
18344 # Hook for its removal unless debugging.
18345 # Note that there is a small window in which the directory will not be cleaned:
18346 # after its creation but before its name has been assigned to `$tmp'.
18350 trap 'exit_status=$?
18351 : "${ac_tmp:=$tmp}"
18352 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18354 trap 'as_fn_exit 1' 1 2 13 15
18356 # Create a (secure) tmp directory for tmp files.
18359 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18363 tmp=./conf$$-$RANDOM
18364 (umask 077 && mkdir "$tmp")
18365 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18368 # Set up the scripts for CONFIG_FILES section.
18369 # No need to generate them if there are no CONFIG_FILES.
18370 # This happens for instance with `./config.status config.h'.
18371 if test -n "$CONFIG_FILES"; then
18374 ac_cr=`echo X | tr X '\015'`
18375 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18376 # But we know of no other shell where ac_cr would be empty at this
18377 # point, so we can use a bashism as a fallback.
18378 if test "x$ac_cr" = x; then
18379 eval ac_cr=\$\'\\r\'
18381 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18382 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18385 ac_cs_awk_cr=$ac_cr
18388 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18393 echo "cat >conf$$subs.awk <<_ACEOF" &&
18394 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18396 } >conf$$subs.sh ||
18397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18398 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18400 for ac_last_try in false false false false false :; do
18401 . ./conf$$subs.sh ||
18402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18404 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18405 if test $ac_delim_n = $ac_delim_num; then
18407 elif $ac_last_try; then
18408 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18413 rm -f conf$$subs.sh
18415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18416 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18420 s/^/S["/; s/!.*/"]=/
18430 s/\(.\{148\}\)..*/\1/
18432 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18437 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18444 s/\(.\{148\}\)..*/\1/
18446 s/["\\]/\\&/g; s/^/"/; s/$/"/
18450 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18455 ' <conf$$subs.awk | sed '
18460 ' >>$CONFIG_STATUS || ac_write_fail=1
18461 rm -f conf$$subs.awk
18462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18464 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18465 for (key in S) S_is_set[key] = 1
18471 nfields = split(line, field, "@")
18473 len = length(field[1])
18474 for (i = 2; i < nfields; i++) {
18476 keylen = length(key)
18477 if (S_is_set[key]) {
18479 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18480 len += length(value) + length(field[++i])
18491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18492 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18493 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18496 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18497 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18500 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18501 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18502 # trailing colons and then remove the whole line if VPATH becomes empty
18503 # (actually we leave an empty line to preserve line numbers).
18504 if test "x$srcdir" = x.; then
18505 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18524 fi # test -n "$CONFIG_FILES"
18526 # Set up the scripts for CONFIG_HEADERS section.
18527 # No need to generate them if there are no CONFIG_HEADERS.
18528 # This happens for instance with `./config.status Makefile'.
18529 if test -n "$CONFIG_HEADERS"; then
18530 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18534 # Transform confdefs.h into an awk script `defines.awk', embedded as
18535 # here-document in config.status, that substitutes the proper values into
18536 # config.h.in to produce config.h.
18538 # Create a delimiter string that does not exist in confdefs.h, to ease
18539 # handling of long lines.
18541 for ac_last_try in false false :; do
18542 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18543 if test -z "$ac_tt"; then
18545 elif $ac_last_try; then
18546 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18548 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18552 # For the awk script, D is an array of macro values keyed by name,
18553 # likewise P contains macro parameters if any. Preserve backslash
18554 # newline sequences.
18556 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18558 s/.\{148\}/&'"$ac_delim"'/g
18561 s/^[ ]*#[ ]*define[ ][ ]*/ /
18568 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18570 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18574 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18575 D["\1"]=" \3\\\\\\n"\\/p
18577 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18582 s/.\{148\}/&'"$ac_delim"'/g
18587 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18590 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18592 ' <confdefs.h | sed '
18593 s/'"$ac_delim"'/"\\\
18594 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18597 for (key in D) D_is_set[key] = 1
18600 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18602 split(line, arg, " ")
18603 if (arg[1] == "#") {
18607 defundef = substr(arg[1], 2)
18610 split(mac1, mac2, "(") #)
18612 prefix = substr(line, 1, index(line, defundef) - 1)
18613 if (D_is_set[macro]) {
18614 # Preserve the white space surrounding the "#".
18615 print prefix "define", macro P[macro] D[macro]
18618 # Replace #undef with comments. This is necessary, for example,
18619 # in the case of _POSIX_SOURCE, which is predefined and required
18620 # on some systems where configure will not decide to define it.
18621 if (defundef == "undef") {
18622 print "/*", prefix defundef, macro, "*/"
18630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18631 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18632 fi # test -n "$CONFIG_HEADERS"
18635 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18640 :[FHLC]) ac_mode=$ac_tag; continue;;
18642 case $ac_mode$ac_tag in
18644 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18645 :[FH]-) ac_tag=-:-;;
18646 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18663 -) ac_f="$ac_tmp/stdin";;
18664 *) # Look for the file first in the build tree, then in the source tree
18665 # (if the path is not absolute). The absolute path cannot be DOS-style,
18666 # because $ac_f cannot contain `:'.
18670 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18672 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18674 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18675 as_fn_append ac_file_inputs " '$ac_f'"
18678 # Let's still pretend it is `configure' which instantiates (i.e., don't
18679 # use $as_me), people would be surprised to read:
18680 # /* config.h. Generated by config.status. */
18681 configure_input='Generated from '`
18682 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18684 if test x"$ac_file" != x-; then
18685 configure_input="$ac_file. $configure_input"
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18687 $as_echo "$as_me: creating $ac_file" >&6;}
18689 # Neutralize special characters interpreted by sed in replacement strings.
18690 case $configure_input in #(
18691 *\&* | *\|* | *\\* )
18692 ac_sed_conf_input=`$as_echo "$configure_input" |
18693 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18694 *) ac_sed_conf_input=$configure_input;;
18698 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18704 ac_dir=`$as_dirname -- "$ac_file" ||
18705 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18706 X"$ac_file" : 'X\(//\)[^/]' \| \
18707 X"$ac_file" : 'X\(//\)$' \| \
18708 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18709 $as_echo X"$ac_file" |
18710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18714 /^X\(\/\/\)[^/].*/{
18727 as_dir="$ac_dir"; as_fn_mkdir_p
18731 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18733 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18734 # A ".." for each directory in $ac_dir_suffix.
18735 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18736 case $ac_top_builddir_sub in
18737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18741 ac_abs_top_builddir=$ac_pwd
18742 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18743 # for backward compatibility:
18744 ac_top_builddir=$ac_top_build_prefix
18747 .) # We are building in place.
18749 ac_top_srcdir=$ac_top_builddir_sub
18750 ac_abs_top_srcdir=$ac_pwd ;;
18751 [\\/]* | ?:[\\/]* ) # Absolute name.
18752 ac_srcdir=$srcdir$ac_dir_suffix;
18753 ac_top_srcdir=$srcdir
18754 ac_abs_top_srcdir=$srcdir ;;
18755 *) # Relative name.
18756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18757 ac_top_srcdir=$ac_top_build_prefix$srcdir
18758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18760 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18771 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18773 ac_MKDIR_P=$MKDIR_P
18775 [\\/$]* | ?:[\\/]* ) ;;
18776 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18781 # If the template does not know about datarootdir, expand it.
18782 # FIXME: This hack should be removed a few years after 2.60.
18783 ac_datarootdir_hack=; ac_datarootdir_seen=
18794 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18795 *datarootdir*) ac_datarootdir_seen=yes;;
18796 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18798 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18801 ac_datarootdir_hack='
18802 s&@datadir@&$datadir&g
18803 s&@docdir@&$docdir&g
18804 s&@infodir@&$infodir&g
18805 s&@localedir@&$localedir&g
18806 s&@mandir@&$mandir&g
18807 s&\\\${datarootdir}&$datarootdir&g' ;;
18811 # Neutralize VPATH when `$srcdir' = `.'.
18812 # Shell code in configure.ac might set extrasub.
18813 # FIXME: do we really want to maintain this feature?
18814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18815 ac_sed_extra="$ac_vpsub
18818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18821 s|@configure_input@|$ac_sed_conf_input|;t t
18822 s&@top_builddir@&$ac_top_builddir_sub&;t t
18823 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18824 s&@srcdir@&$ac_srcdir&;t t
18825 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18826 s&@top_srcdir@&$ac_top_srcdir&;t t
18827 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18828 s&@builddir@&$ac_builddir&;t t
18829 s&@abs_builddir@&$ac_abs_builddir&;t t
18830 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18831 s&@INSTALL@&$ac_INSTALL&;t t
18832 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18833 $ac_datarootdir_hack
18835 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18836 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18838 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18839 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18840 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18841 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18843 which seems to be undefined. Please make sure it is defined" >&5
18844 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18845 which seems to be undefined. Please make sure it is defined" >&2;}
18847 rm -f "$ac_tmp/stdin"
18849 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18850 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18852 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18858 if test x"$ac_file" != x-; then
18860 $as_echo "/* $configure_input */" \
18861 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18862 } >"$ac_tmp/config.h" \
18863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18864 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18866 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18869 mv "$ac_tmp/config.h" "$ac_file" \
18870 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18873 $as_echo "/* $configure_input */" \
18874 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18875 || as_fn_error $? "could not create -" "$LINENO" 5
18877 # Compute "$ac_file"'s index in $config_headers.
18880 for _am_header in $config_headers :; do
18881 case $_am_header in
18882 $_am_arg | $_am_arg:* )
18885 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18888 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18889 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18890 X"$_am_arg" : 'X\(//\)[^/]' \| \
18891 X"$_am_arg" : 'X\(//\)$' \| \
18892 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18893 $as_echo X"$_am_arg" |
18894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18898 /^X\(\/\/\)[^/].*/{
18910 s/.*/./; q'`/stamp-h$_am_stamp_count
18913 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18914 $as_echo "$as_me: executing $ac_file commands" >&6;}
18919 case $ac_file$ac_mode in
18920 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18921 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18922 # are listed without --file. Let's play safe and only enable the eval
18923 # if we detect the quoting.
18924 case $CONFIG_FILES in
18925 *\'*) eval set x "$CONFIG_FILES" ;;
18926 *) set x $CONFIG_FILES ;;
18931 # Strip MF so we end up with the name of the file.
18932 mf=`echo "$mf" | sed -e 's/:.*$//'`
18933 # Check whether this is an Automake generated Makefile or not.
18934 # We used to match only the files named `Makefile.in', but
18935 # some people rename them; so instead we look at the file content.
18936 # Grep'ing the first line is not enough: some people post-process
18937 # each Makefile.in and add a new line on top of each file to say so.
18938 # Grep'ing the whole file is not good either: AIX grep has a line
18939 # limit of 2048, but all sed's we know have understand at least 4000.
18940 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18941 dirpart=`$as_dirname -- "$mf" ||
18942 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18943 X"$mf" : 'X\(//\)[^/]' \| \
18944 X"$mf" : 'X\(//\)$' \| \
18945 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18951 /^X\(\/\/\)[^/].*/{
18967 # Extract the definition of DEPDIR, am__include, and am__quote
18968 # from the Makefile without running `make'.
18969 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18970 test -z "$DEPDIR" && continue
18971 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18972 test -z "am__include" && continue
18973 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18974 # When using ansi2knr, U may be empty or an underscore; expand it
18975 U=`sed -n 's/^U = //p' < "$mf"`
18976 # Find all dependency output files, they are included files with
18977 # $(DEPDIR) in their names. We invoke sed twice because it is the
18978 # simplest approach to changing $(DEPDIR) to its actual value in the
18980 for file in `sed -n "
18981 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18982 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18983 # Make sure the directory exists.
18984 test -f "$dirpart/$file" && continue
18985 fdir=`$as_dirname -- "$file" ||
18986 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18987 X"$file" : 'X\(//\)[^/]' \| \
18988 X"$file" : 'X\(//\)$' \| \
18989 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18990 $as_echo X"$file" |
18991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18995 /^X\(\/\/\)[^/].*/{
19008 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19009 # echo "creating $dirpart/$file"
19010 echo '# dummy' > "$dirpart/$file"
19017 # See if we are running on zsh, and set the options which allow our
19018 # commands through without removal of \ escapes.
19019 if test -n "${ZSH_VERSION+set}" ; then
19020 setopt NO_GLOB_SUBST
19023 cfgfile="${ofile}T"
19024 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19027 cat <<_LT_EOF >> "$cfgfile"
19030 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19031 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19032 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19033 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19035 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19036 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19038 # Written by Gordon Matzigkeit, 1996
19040 # This file is part of GNU Libtool.
19042 # GNU Libtool is free software; you can redistribute it and/or
19043 # modify it under the terms of the GNU General Public License as
19044 # published by the Free Software Foundation; either version 2 of
19045 # the License, or (at your option) any later version.
19047 # As a special exception to the GNU General Public License,
19048 # if you distribute this file as part of a program or library that
19049 # is built using GNU Libtool, you may include this file under the
19050 # same distribution terms that you use for the rest of that program.
19052 # GNU Libtool is distributed in the hope that it will be useful,
19053 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19054 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19055 # GNU General Public License for more details.
19057 # You should have received a copy of the GNU General Public License
19058 # along with GNU Libtool; see the file COPYING. If not, a copy
19059 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19060 # obtained by writing to the Free Software Foundation, Inc.,
19061 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19064 # The names of the tagged configurations supported by this script.
19065 available_tags="CXX "
19067 # ### BEGIN LIBTOOL CONFIG
19069 # Which release of libtool.m4 was used?
19070 macro_version=$macro_version
19071 macro_revision=$macro_revision
19073 # Whether or not to build shared libraries.
19074 build_libtool_libs=$enable_shared
19076 # Whether or not to build static libraries.
19077 build_old_libs=$enable_static
19079 # What type of objects to build.
19082 # Whether or not to optimize for fast installation.
19083 fast_install=$enable_fast_install
19085 # Shell to use when invoking shell scripts.
19088 # An echo program that protects backslashes.
19091 # The PATH separator for the build system.
19092 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19095 host_alias=$host_alias
19099 # The build system.
19100 build_alias=$build_alias
19104 # A sed program that does not truncate output.
19107 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19108 Xsed="\$SED -e 1s/^X//"
19110 # A grep program that handles long lines.
19116 # A literal string matcher.
19119 # A BSD- or MS-compatible name lister.
19122 # Whether we need soft or hard links.
19125 # What is the maximum length of a command?
19126 max_cmd_len=$max_cmd_len
19128 # Object file suffix (normally "o").
19131 # Executable file suffix (normally "").
19134 # whether the shell understands "unset".
19137 # turn spaces into newlines.
19140 # turn newlines into spaces.
19143 # convert \$build file names to \$host format.
19144 to_host_file_cmd=$lt_cv_to_host_file_cmd
19146 # convert \$build files to toolchain format.
19147 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19149 # An object symbol dumper.
19150 OBJDUMP=$lt_OBJDUMP
19152 # Method to check whether dependent libraries are shared objects.
19153 deplibs_check_method=$lt_deplibs_check_method
19155 # Command to use when deplibs_check_method = "file_magic".
19156 file_magic_cmd=$lt_file_magic_cmd
19158 # How to find potential files when deplibs_check_method = "file_magic".
19159 file_magic_glob=$lt_file_magic_glob
19161 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19162 want_nocaseglob=$lt_want_nocaseglob
19164 # DLL creation program.
19165 DLLTOOL=$lt_DLLTOOL
19167 # Command to associate shared and link libraries.
19168 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19173 # Flags to create an archive.
19174 AR_FLAGS=$lt_AR_FLAGS
19176 # How to feed a file listing to the archiver.
19177 archiver_list_spec=$lt_archiver_list_spec
19179 # A symbol stripping program.
19182 # Commands used to install an old-style archive.
19184 old_postinstall_cmds=$lt_old_postinstall_cmds
19185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19187 # Whether to use a lock for old archive extraction.
19188 lock_old_archive_extraction=$lock_old_archive_extraction
19193 # LTCC compiler flags.
19194 LTCFLAGS=$lt_CFLAGS
19196 # Take the output of nm and produce a listing of raw symbols and C names.
19197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19199 # Transform the output of nm in a proper C declaration.
19200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19202 # Transform the output of nm in a C name address pair.
19203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19205 # Transform the output of nm in a C name address pair when lib prefix is needed.
19206 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19208 # Specify filename containing input files for \$NM.
19209 nm_file_list_spec=$lt_nm_file_list_spec
19211 # The root where to search for dependent libraries,and in which our libraries should be installed.
19212 lt_sysroot=$lt_sysroot
19214 # The name of the directory that contains temporary libtool files.
19217 # Used to examine libraries when file_magic_cmd begins with "file".
19218 MAGIC_CMD=$MAGIC_CMD
19220 # Must we lock files when doing compilation?
19221 need_locks=$lt_need_locks
19224 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19226 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19227 DSYMUTIL=$lt_DSYMUTIL
19229 # Tool to change global to local symbols on Mac OS X.
19232 # Tool to manipulate fat objects and archives on Mac OS X.
19235 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19238 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19239 OTOOL64=$lt_OTOOL64
19241 # Old archive suffix (normally "a").
19244 # Shared library suffix (normally ".so").
19245 shrext_cmds=$lt_shrext_cmds
19247 # The commands to extract the exported symbol list from a shared archive.
19248 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19250 # Variables whose values should be saved in libtool wrapper scripts and
19251 # restored at link time.
19252 variables_saved_for_relink=$lt_variables_saved_for_relink
19254 # Do we need the "lib" prefix for modules?
19255 need_lib_prefix=$need_lib_prefix
19257 # Do we need a version for libraries?
19258 need_version=$need_version
19260 # Library versioning type.
19261 version_type=$version_type
19263 # Shared library runtime path variable.
19264 runpath_var=$runpath_var
19266 # Shared library path variable.
19267 shlibpath_var=$shlibpath_var
19269 # Is shlibpath searched before the hard-coded library search path?
19270 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19272 # Format of library name prefix.
19273 libname_spec=$lt_libname_spec
19275 # List of archive names. First name is the real one, the rest are links.
19276 # The last name is the one that the linker finds with -lNAME
19277 library_names_spec=$lt_library_names_spec
19279 # The coded name of the library, if different from the real name.
19280 soname_spec=$lt_soname_spec
19282 # Permission mode override for installation of shared libraries.
19283 install_override_mode=$lt_install_override_mode
19285 # Command to use after installation of a shared archive.
19286 postinstall_cmds=$lt_postinstall_cmds
19288 # Command to use after uninstallation of a shared archive.
19289 postuninstall_cmds=$lt_postuninstall_cmds
19291 # Commands used to finish a libtool library installation in a directory.
19292 finish_cmds=$lt_finish_cmds
19294 # As "finish_cmds", except a single script fragment to be evaled but
19296 finish_eval=$lt_finish_eval
19298 # Whether we should hardcode library paths into libraries.
19299 hardcode_into_libs=$hardcode_into_libs
19301 # Compile-time system search path for libraries.
19302 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19304 # Run-time system search path for libraries.
19305 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19307 # Whether dlopen is supported.
19308 dlopen_support=$enable_dlopen
19310 # Whether dlopen of programs is supported.
19311 dlopen_self=$enable_dlopen_self
19313 # Whether dlopen of statically linked programs is supported.
19314 dlopen_self_static=$enable_dlopen_self_static
19316 # Commands to strip libraries.
19317 old_striplib=$lt_old_striplib
19318 striplib=$lt_striplib
19321 # The linker used to build libraries.
19324 # How to create reloadable object files.
19325 reload_flag=$lt_reload_flag
19326 reload_cmds=$lt_reload_cmds
19328 # Commands used to build an old-style archive.
19329 old_archive_cmds=$lt_old_archive_cmds
19331 # A language specific compiler.
19334 # Is the compiler the GNU compiler?
19337 # Compiler flag to turn off builtin functions.
19338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19340 # Additional compiler flags for building library objects.
19341 pic_flag=$lt_lt_prog_compiler_pic
19343 # How to pass a linker flag through the compiler.
19344 wl=$lt_lt_prog_compiler_wl
19346 # Compiler flag to prevent dynamic linking.
19347 link_static_flag=$lt_lt_prog_compiler_static
19349 # Does compiler simultaneously support -c and -o options?
19350 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19352 # Whether or not to add -lc for building shared libraries.
19353 build_libtool_need_lc=$archive_cmds_need_lc
19355 # Whether or not to disallow shared libs when runtime libs are static.
19356 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19358 # Compiler flag to allow reflexive dlopens.
19359 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19361 # Compiler flag to generate shared objects directly from archives.
19362 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19364 # Whether the compiler copes with passing no objects directly.
19365 compiler_needs_object=$lt_compiler_needs_object
19367 # Create an old-style archive from a shared archive.
19368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19370 # Create a temporary old-style archive to link instead of a shared archive.
19371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19373 # Commands used to build a shared archive.
19374 archive_cmds=$lt_archive_cmds
19375 archive_expsym_cmds=$lt_archive_expsym_cmds
19377 # Commands used to build a loadable module if different from building
19378 # a shared archive.
19379 module_cmds=$lt_module_cmds
19380 module_expsym_cmds=$lt_module_expsym_cmds
19382 # Whether we are building with GNU ld or not.
19383 with_gnu_ld=$lt_with_gnu_ld
19385 # Flag that allows shared libraries with undefined symbols to be built.
19386 allow_undefined_flag=$lt_allow_undefined_flag
19388 # Flag that enforces no undefined symbols.
19389 no_undefined_flag=$lt_no_undefined_flag
19391 # Flag to hardcode \$libdir into a binary during linking.
19392 # This must work even if \$libdir does not exist
19393 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19395 # Whether we need a single "-rpath" flag with a separated argument.
19396 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19398 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19399 # DIR into the resulting binary.
19400 hardcode_direct=$hardcode_direct
19402 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19403 # DIR into the resulting binary and the resulting library dependency is
19404 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19405 # library is relocated.
19406 hardcode_direct_absolute=$hardcode_direct_absolute
19408 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19409 # into the resulting binary.
19410 hardcode_minus_L=$hardcode_minus_L
19412 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19413 # into the resulting binary.
19414 hardcode_shlibpath_var=$hardcode_shlibpath_var
19416 # Set to "yes" if building a shared library automatically hardcodes DIR
19417 # into the library and all subsequent libraries and executables linked
19419 hardcode_automatic=$hardcode_automatic
19421 # Set to yes if linker adds runtime paths of dependent libraries
19422 # to runtime path list.
19423 inherit_rpath=$inherit_rpath
19425 # Whether libtool must link a program against all its dependency libraries.
19426 link_all_deplibs=$link_all_deplibs
19428 # Set to "yes" if exported symbols are required.
19429 always_export_symbols=$always_export_symbols
19431 # The commands to list exported symbols.
19432 export_symbols_cmds=$lt_export_symbols_cmds
19434 # Symbols that should not be listed in the preloaded symbols.
19435 exclude_expsyms=$lt_exclude_expsyms
19437 # Symbols that must always be exported.
19438 include_expsyms=$lt_include_expsyms
19440 # Commands necessary for linking programs (against libraries) with templates.
19441 prelink_cmds=$lt_prelink_cmds
19443 # Commands necessary for finishing linking programs.
19444 postlink_cmds=$lt_postlink_cmds
19446 # Specify filename containing input files.
19447 file_list_spec=$lt_file_list_spec
19449 # How to hardcode a shared library path into an executable.
19450 hardcode_action=$hardcode_action
19452 # The directories searched by this compiler when creating a shared library.
19453 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19455 # Dependencies to place before and after the objects being linked to
19456 # create a shared library.
19457 predep_objects=$lt_predep_objects
19458 postdep_objects=$lt_postdep_objects
19459 predeps=$lt_predeps
19460 postdeps=$lt_postdeps
19462 # The library search path used internally by the compiler when linking
19463 # a shared library.
19464 compiler_lib_search_path=$lt_compiler_lib_search_path
19466 # ### END LIBTOOL CONFIG
19472 cat <<\_LT_EOF >> "$cfgfile"
19473 # AIX sometimes has problems with the GCC collect2 program. For some
19474 # reason, if we set the COLLECT_NAMES environment variable, the problems
19475 # vanish in a puff of smoke.
19476 if test "X${COLLECT_NAMES+set}" != Xset; then
19478 export COLLECT_NAMES
19485 ltmain="$ac_aux_dir/ltmain.sh"
19488 # We use sed instead of cat because bash on DJGPP gets confused if
19489 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19490 # text mode, it properly converts lines to CR/LF. This bash problem
19491 # is reportedly fixed, but why not run on old versions too?
19492 sed '$q' "$ltmain" >> "$cfgfile" \
19493 || (rm -f "$cfgfile"; exit 1)
19495 if test x"$xsi_shell" = xyes; then
19496 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19500 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19501 \ * ) func_dirname_result="${3}" ;;\
19503 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19504 && mv -f "$cfgfile.tmp" "$cfgfile" \
19505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19506 test 0 -eq $? || _lt_function_replace_fail=:
19509 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19512 \ func_basename_result="${1##*/}"\
19513 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19514 && mv -f "$cfgfile.tmp" "$cfgfile" \
19515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19516 test 0 -eq $? || _lt_function_replace_fail=:
19519 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19520 func_dirname_and_basename ()\
19523 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19524 \ * ) func_dirname_result="${3}" ;;\
19526 \ func_basename_result="${1##*/}"\
19527 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19528 && mv -f "$cfgfile.tmp" "$cfgfile" \
19529 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19530 test 0 -eq $? || _lt_function_replace_fail=:
19533 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19536 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19537 \ # positional parameters, so assign one to ordinary parameter first.\
19538 \ func_stripname_result=${3}\
19539 \ func_stripname_result=${func_stripname_result#"${1}"}\
19540 \ func_stripname_result=${func_stripname_result%"${2}"}\
19541 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19542 && mv -f "$cfgfile.tmp" "$cfgfile" \
19543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19544 test 0 -eq $? || _lt_function_replace_fail=:
19547 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19548 func_split_long_opt ()\
19550 \ func_split_long_opt_name=${1%%=*}\
19551 \ func_split_long_opt_arg=${1#*=}\
19552 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19553 && mv -f "$cfgfile.tmp" "$cfgfile" \
19554 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19555 test 0 -eq $? || _lt_function_replace_fail=:
19558 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19559 func_split_short_opt ()\
19561 \ func_split_short_opt_arg=${1#??}\
19562 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19563 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19564 && mv -f "$cfgfile.tmp" "$cfgfile" \
19565 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19566 test 0 -eq $? || _lt_function_replace_fail=:
19569 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19573 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19574 \ *) func_lo2o_result=${1} ;;\
19576 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19577 && mv -f "$cfgfile.tmp" "$cfgfile" \
19578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19579 test 0 -eq $? || _lt_function_replace_fail=:
19582 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19585 func_xform_result=${1%.*}.lo\
19586 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19587 && mv -f "$cfgfile.tmp" "$cfgfile" \
19588 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19589 test 0 -eq $? || _lt_function_replace_fail=:
19592 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19595 func_arith_result=$(( $* ))\
19596 } # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
19605 func_len_result=${#1}\
19606 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19607 && mv -f "$cfgfile.tmp" "$cfgfile" \
19608 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19609 test 0 -eq $? || _lt_function_replace_fail=:
19613 if test x"$lt_shell_append" = xyes; then
19614 sed -e '/^func_append ()$/,/^} # func_append /c\
19617 eval "${1}+=\\${2}"\
19618 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19619 && mv -f "$cfgfile.tmp" "$cfgfile" \
19620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19621 test 0 -eq $? || _lt_function_replace_fail=:
19624 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19625 func_append_quoted ()\
19627 \ func_quote_for_eval "${2}"\
19628 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19629 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19630 && mv -f "$cfgfile.tmp" "$cfgfile" \
19631 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19632 test 0 -eq $? || _lt_function_replace_fail=:
19635 # Save a `func_append' function call where possible by direct use of '+='
19636 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19637 && mv -f "$cfgfile.tmp" "$cfgfile" \
19638 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19639 test 0 -eq $? || _lt_function_replace_fail=:
19641 # Save a `func_append' function call even when '+=' is not available
19642 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19643 && mv -f "$cfgfile.tmp" "$cfgfile" \
19644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19645 test 0 -eq $? || _lt_function_replace_fail=:
19648 if test x"$_lt_function_replace_fail" = x":"; then
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19650 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19654 mv -f "$cfgfile" "$ofile" ||
19655 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19659 cat <<_LT_EOF >> "$ofile"
19661 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19663 # The linker used to build libraries.
19666 # How to create reloadable object files.
19667 reload_flag=$lt_reload_flag_CXX
19668 reload_cmds=$lt_reload_cmds_CXX
19670 # Commands used to build an old-style archive.
19671 old_archive_cmds=$lt_old_archive_cmds_CXX
19673 # A language specific compiler.
19674 CC=$lt_compiler_CXX
19676 # Is the compiler the GNU compiler?
19679 # Compiler flag to turn off builtin functions.
19680 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19682 # Additional compiler flags for building library objects.
19683 pic_flag=$lt_lt_prog_compiler_pic_CXX
19685 # How to pass a linker flag through the compiler.
19686 wl=$lt_lt_prog_compiler_wl_CXX
19688 # Compiler flag to prevent dynamic linking.
19689 link_static_flag=$lt_lt_prog_compiler_static_CXX
19691 # Does compiler simultaneously support -c and -o options?
19692 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19694 # Whether or not to add -lc for building shared libraries.
19695 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19697 # Whether or not to disallow shared libs when runtime libs are static.
19698 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19700 # Compiler flag to allow reflexive dlopens.
19701 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19703 # Compiler flag to generate shared objects directly from archives.
19704 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19706 # Whether the compiler copes with passing no objects directly.
19707 compiler_needs_object=$lt_compiler_needs_object_CXX
19709 # Create an old-style archive from a shared archive.
19710 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19712 # Create a temporary old-style archive to link instead of a shared archive.
19713 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19715 # Commands used to build a shared archive.
19716 archive_cmds=$lt_archive_cmds_CXX
19717 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19719 # Commands used to build a loadable module if different from building
19720 # a shared archive.
19721 module_cmds=$lt_module_cmds_CXX
19722 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19724 # Whether we are building with GNU ld or not.
19725 with_gnu_ld=$lt_with_gnu_ld_CXX
19727 # Flag that allows shared libraries with undefined symbols to be built.
19728 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19730 # Flag that enforces no undefined symbols.
19731 no_undefined_flag=$lt_no_undefined_flag_CXX
19733 # Flag to hardcode \$libdir into a binary during linking.
19734 # This must work even if \$libdir does not exist
19735 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19737 # Whether we need a single "-rpath" flag with a separated argument.
19738 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19741 # DIR into the resulting binary.
19742 hardcode_direct=$hardcode_direct_CXX
19744 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19745 # DIR into the resulting binary and the resulting library dependency is
19746 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19747 # library is relocated.
19748 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19750 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19751 # into the resulting binary.
19752 hardcode_minus_L=$hardcode_minus_L_CXX
19754 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19755 # into the resulting binary.
19756 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19758 # Set to "yes" if building a shared library automatically hardcodes DIR
19759 # into the library and all subsequent libraries and executables linked
19761 hardcode_automatic=$hardcode_automatic_CXX
19763 # Set to yes if linker adds runtime paths of dependent libraries
19764 # to runtime path list.
19765 inherit_rpath=$inherit_rpath_CXX
19767 # Whether libtool must link a program against all its dependency libraries.
19768 link_all_deplibs=$link_all_deplibs_CXX
19770 # Set to "yes" if exported symbols are required.
19771 always_export_symbols=$always_export_symbols_CXX
19773 # The commands to list exported symbols.
19774 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19776 # Symbols that should not be listed in the preloaded symbols.
19777 exclude_expsyms=$lt_exclude_expsyms_CXX
19779 # Symbols that must always be exported.
19780 include_expsyms=$lt_include_expsyms_CXX
19782 # Commands necessary for linking programs (against libraries) with templates.
19783 prelink_cmds=$lt_prelink_cmds_CXX
19785 # Commands necessary for finishing linking programs.
19786 postlink_cmds=$lt_postlink_cmds_CXX
19788 # Specify filename containing input files.
19789 file_list_spec=$lt_file_list_spec_CXX
19791 # How to hardcode a shared library path into an executable.
19792 hardcode_action=$hardcode_action_CXX
19794 # The directories searched by this compiler when creating a shared library.
19795 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19797 # Dependencies to place before and after the objects being linked to
19798 # create a shared library.
19799 predep_objects=$lt_predep_objects_CXX
19800 postdep_objects=$lt_postdep_objects_CXX
19801 predeps=$lt_predeps_CXX
19802 postdeps=$lt_postdeps_CXX
19804 # The library search path used internally by the compiler when linking
19805 # a shared library.
19806 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19808 # ### END LIBTOOL TAG CONFIG: CXX
19819 ac_clean_files=$ac_clean_files_save
19821 test $ac_write_fail = 0 ||
19822 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19825 # configure is writing to config.log, and then calls config.status.
19826 # config.status does its own redirection, appending to config.log.
19827 # Unfortunately, on DOS this fails, as config.log is still kept open
19828 # by configure, so config.status won't be able to write to it; its
19829 # output is simply discarded. So we exec the FD to /dev/null,
19830 # effectively closing config.log, so it can be properly (re)opened and
19831 # appended to by config.status. When coming back to configure, we
19832 # need to make the FD available again.
19833 if test "$no_create" != yes; then
19835 ac_config_status_args=
19836 test "$silent" = yes &&
19837 ac_config_status_args="$ac_config_status_args --quiet"
19839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19842 # would make configure fail if this is the last instruction.
19843 $ac_cs_success || as_fn_exit 1
19845 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19847 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}