2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bullet 2.81.
5 # Report bugs to <bullet@erwincoumans.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: bullet@erwincoumans.com about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a 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.
294 # as_fn_append VAR VALUE
295 # ----------------------
296 # Append the text in VALUE to the end of the definition contained in VAR. Take
297 # advantage of any shell optimizations that allow amortized linear growth over
298 # repeated appends, instead of the typical quadratic growth present in naive
300 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
301 eval 'as_fn_append ()
314 # Perform arithmetic evaluation on the ARGs, and store the result in the
315 # global $as_val. Take advantage of shells that can avoid forks. The arguments
316 # must be portable across $(()) and expr.
317 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
325 as_val=`expr "$@" || test $? -eq 1`
330 # as_fn_error STATUS ERROR [LINENO LOG_FD]
331 # ----------------------------------------
332 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
333 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
334 # script with STATUS, using 1 if that was 0.
337 as_status=$1; test $as_status -eq 0 && as_status=1
339 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
340 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
342 $as_echo "$as_me: error: $2" >&2
343 as_fn_exit $as_status
346 if expr a : '\(a\)' >/dev/null 2>&1 &&
347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
365 as_me=`$as_basename -- "$0" ||
366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
367 X"$0" : 'X\(//\)$' \| \
368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
370 sed '/^.*\/\([^/][^/]*\)\/*$/{
384 # Avoid depending upon Character Ranges.
385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
388 as_cr_digits='0123456789'
389 as_cr_alnum=$as_cr_Letters$as_cr_digits
392 as_lineno_1=$LINENO as_lineno_1a=$LINENO
393 as_lineno_2=$LINENO as_lineno_2a=$LINENO
394 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
395 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
396 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
408 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
412 chmod +x "$as_me.lineno" ||
413 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
415 # Don't try to exec as it changes $[0], causing all sort of problems
416 # (the dirname of $[0] is not the place where we might find the
417 # original and so on. Autoconf is especially sensitive to this).
419 # Exit status is that of the last command.
423 ECHO_C= ECHO_N= ECHO_T=
424 case `echo -n x` in #(((((
426 case `echo 'xy\c'` in
427 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
429 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
436 rm -f conf$$ conf$$.exe conf$$.file
437 if test -d conf$$.dir; then
438 rm -f conf$$.dir/conf$$.file
441 mkdir conf$$.dir 2>/dev/null
443 if (echo >conf$$.file) 2>/dev/null; then
444 if ln -s conf$$.file conf$$ 2>/dev/null; then
446 # ... but there are two gotchas:
447 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
448 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
449 # In both cases, we have to default to `cp -p'.
450 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
452 elif ln conf$$.file conf$$ 2>/dev/null; then
460 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
461 rmdir conf$$.dir 2>/dev/null
463 if mkdir -p . 2>/dev/null; then
464 as_mkdir_p='mkdir -p'
465 elif mkdirs . 2>/dev/null; then
470 test -d ./-p && rmdir ./-p
472 if test -x / >/dev/null 2>&1; then
475 if ls -dL / >/dev/null 2>&1; then
482 if test -d "$1"; then
488 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
489 ???[sx]*):;;*)false;;esac;fi
493 as_executable_p=$as_test_x
495 # Sed expression to map a string onto a valid CPP name.
496 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
498 # Sed expression to map a string onto a valid variable name.
499 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
501 SHELL=${CONFIG_SHELL-/bin/sh}
504 test -n "$DJDIR" || exec 7<&0 </dev/null
508 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
509 # so uname gets run too.
510 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
515 ac_default_prefix=/usr/local
517 ac_config_libobj_dir=.
524 # Identity of this package.
525 PACKAGE_NAME='bullet'
526 PACKAGE_TARNAME='bullet'
527 PACKAGE_VERSION='2.81'
528 PACKAGE_STRING='bullet 2.81'
529 PACKAGE_BUGREPORT='bullet@erwincoumans.com'
532 ac_unique_file="configure.ac"
533 # Factoring default headers for most tests.
534 ac_includes_default="\
536 #ifdef HAVE_SYS_TYPES_H
537 # include <sys/types.h>
539 #ifdef HAVE_SYS_STAT_H
540 # include <sys/stat.h>
546 # ifdef HAVE_STDLIB_H
551 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
556 #ifdef HAVE_STRINGS_H
557 # include <strings.h>
559 #ifdef HAVE_INTTYPES_H
560 # include <inttypes.h>
569 ac_subst_vars='am__EXEEXT_FALSE
574 CONDITIONAL_BUILD_DEMOS_FALSE
575 CONDITIONAL_BUILD_DEMOS_TRUE
576 CONDITIONAL_BUILD_MULTITHREADED_FALSE
577 CONDITIONAL_BUILD_MULTITHREADED_TRUE
632 INSTALL_STRIP_PROGRAM
682 program_transform_name
695 enable_option_checking
696 enable_dependency_tracking
708 ac_precious_vars='build_alias
723 # Initialize some variables set by options.
725 ac_init_version=false
726 ac_unrecognized_opts=
728 # The variables have the same names as the options, with
729 # dashes changed to underlines.
737 program_transform_name=s,x,x,
745 # Installation directory options.
746 # These are left unexpanded so users can "make install exec_prefix=/foo"
747 # and all the variables that are supposed to be based on exec_prefix
748 # by default will actually change.
749 # Use braces instead of parens because sh, perl, etc. also accept them.
750 # (The list follows the same order as the GNU Coding Standards.)
751 bindir='${exec_prefix}/bin'
752 sbindir='${exec_prefix}/sbin'
753 libexecdir='${exec_prefix}/libexec'
754 datarootdir='${prefix}/share'
755 datadir='${datarootdir}'
756 sysconfdir='${prefix}/etc'
757 sharedstatedir='${prefix}/com'
758 localstatedir='${prefix}/var'
759 includedir='${prefix}/include'
760 oldincludedir='/usr/include'
761 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
762 infodir='${datarootdir}/info'
767 libdir='${exec_prefix}/lib'
768 localedir='${datarootdir}/locale'
769 mandir='${datarootdir}/man'
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
777 eval $ac_prev=\$ac_option
783 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
794 -bindir | --bindir | --bindi | --bind | --bin | --bi)
796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799 -build | --build | --buil | --bui | --bu)
800 ac_prev=build_alias ;;
801 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802 build_alias=$ac_optarg ;;
804 -cache-file | --cache-file | --cache-fil | --cache-fi \
805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806 ac_prev=cache_file ;;
807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809 cache_file=$ac_optarg ;;
812 cache_file=config.cache ;;
814 -datadir | --datadir | --datadi | --datad)
816 -datadir=* | --datadir=* | --datadi=* | --datad=*)
817 datadir=$ac_optarg ;;
819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820 | --dataroo | --dataro | --datar)
821 ac_prev=datarootdir ;;
822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824 datarootdir=$ac_optarg ;;
826 -disable-* | --disable-*)
827 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
830 as_fn_error $? "invalid feature name: $ac_useropt"
831 ac_useropt_orig=$ac_useropt
832 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
833 case $ac_user_opts in
837 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
838 ac_unrecognized_sep=', ';;
840 eval enable_$ac_useropt=no ;;
842 -docdir | --docdir | --docdi | --doc | --do)
844 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 -enable-* | --enable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error $? "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
866 eval enable_$ac_useropt=\$ac_optarg ;;
868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870 | --exec | --exe | --ex)
871 ac_prev=exec_prefix ;;
872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874 | --exec=* | --exe=* | --ex=*)
875 exec_prefix=$ac_optarg ;;
877 -gas | --gas | --ga | --g)
878 # Obsolete; use --with-gas.
881 -help | --help | --hel | --he | -h)
883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884 ac_init_help=recursive ;;
885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886 ac_init_help=short ;;
888 -host | --host | --hos | --ho)
889 ac_prev=host_alias ;;
890 -host=* | --host=* | --hos=* | --ho=*)
891 host_alias=$ac_optarg ;;
893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 htmldir=$ac_optarg ;;
899 -includedir | --includedir | --includedi | --included | --include \
900 | --includ | --inclu | --incl | --inc)
901 ac_prev=includedir ;;
902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903 | --includ=* | --inclu=* | --incl=* | --inc=*)
904 includedir=$ac_optarg ;;
906 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909 infodir=$ac_optarg ;;
911 -libdir | --libdir | --libdi | --libd)
913 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917 | --libexe | --libex | --libe)
918 ac_prev=libexecdir ;;
919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920 | --libexe=* | --libex=* | --libe=*)
921 libexecdir=$ac_optarg ;;
923 -localedir | --localedir | --localedi | --localed | --locale)
925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926 localedir=$ac_optarg ;;
928 -localstatedir | --localstatedir | --localstatedi | --localstated \
929 | --localstate | --localstat | --localsta | --localst | --locals)
930 ac_prev=localstatedir ;;
931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933 localstatedir=$ac_optarg ;;
935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 # Obsolete; use --without-fp.
944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945 | --no-cr | --no-c | -n)
948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954 | --oldin | --oldi | --old | --ol | --o)
955 ac_prev=oldincludedir ;;
956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959 oldincludedir=$ac_optarg ;;
961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 -program-prefix | --program-prefix | --program-prefi | --program-pref \
967 | --program-pre | --program-pr | --program-p)
968 ac_prev=program_prefix ;;
969 -program-prefix=* | --program-prefix=* | --program-prefi=* \
970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971 program_prefix=$ac_optarg ;;
973 -program-suffix | --program-suffix | --program-suffi | --program-suff \
974 | --program-suf | --program-su | --program-s)
975 ac_prev=program_suffix ;;
976 -program-suffix=* | --program-suffix=* | --program-suffi=* \
977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978 program_suffix=$ac_optarg ;;
980 -program-transform-name | --program-transform-name \
981 | --program-transform-nam | --program-transform-na \
982 | --program-transform-n | --program-transform- \
983 | --program-transform | --program-transfor \
984 | --program-transfo | --program-transf \
985 | --program-trans | --program-tran \
986 | --progr-tra | --program-tr | --program-t)
987 ac_prev=program_transform_name ;;
988 -program-transform-name=* | --program-transform-name=* \
989 | --program-transform-nam=* | --program-transform-na=* \
990 | --program-transform-n=* | --program-transform-=* \
991 | --program-transform=* | --program-transfor=* \
992 | --program-transfo=* | --program-transf=* \
993 | --program-trans=* | --program-tran=* \
994 | --progr-tra=* | --program-tr=* | --program-t=*)
995 program_transform_name=$ac_optarg ;;
997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000 pdfdir=$ac_optarg ;;
1002 -psdir | --psdir | --psdi | --psd | --ps)
1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 sbindir=$ac_optarg ;;
1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019 | --sharedst | --shareds | --shared | --share | --shar \
1021 ac_prev=sharedstatedir ;;
1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 sharedstatedir=$ac_optarg ;;
1028 -site | --site | --sit)
1030 -site=* | --site=* | --sit=*)
1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036 srcdir=$ac_optarg ;;
1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039 | --syscon | --sysco | --sysc | --sys | --sy)
1040 ac_prev=sysconfdir ;;
1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043 sysconfdir=$ac_optarg ;;
1045 -target | --target | --targe | --targ | --tar | --ta | --t)
1046 ac_prev=target_alias ;;
1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048 target_alias=$ac_optarg ;;
1050 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 -version | --version | --versio | --versi | --vers | -V)
1054 ac_init_version=: ;;
1057 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error $? "invalid package name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1070 eval with_$ac_useropt=\$ac_optarg ;;
1072 -without-* | --without-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval with_$ac_useropt=no ;;
1089 # Obsolete; use --with-x.
1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093 | --x-incl | --x-inc | --x-in | --x-i)
1094 ac_prev=x_includes ;;
1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097 x_includes=$ac_optarg ;;
1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101 ac_prev=x_libraries ;;
1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104 x_libraries=$ac_optarg ;;
1106 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1107 Try \`$0 --help' for more information"
1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 case $ac_envvar in #(
1114 '' | [0-9]* | *[!_$as_cr_alnum]* )
1115 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1117 eval $ac_envvar=\$ac_optarg
1118 export $ac_envvar ;;
1121 # FIXME: should be removed in autoconf 3.0.
1122 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1131 if test -n "$ac_prev"; then
1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133 as_fn_error $? "missing argument to $ac_option"
1136 if test -n "$ac_unrecognized_opts"; then
1137 case $enable_option_checking in
1139 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1140 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1144 # Check all directory arguments for consistency.
1145 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1146 datadir sysconfdir sharedstatedir localstatedir includedir \
1147 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1148 libdir localedir mandir
1150 eval ac_val=\$$ac_var
1151 # Remove trailing slashes.
1154 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1155 eval $ac_var=\$ac_val;;
1157 # Be sure to have absolute directory names.
1159 [\\/$]* | ?:[\\/]* ) continue;;
1160 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1165 # There might be people who depend on the old broken behavior: `$host'
1166 # used to hold the argument of --host etc.
1167 # FIXME: To remove some day.
1170 target=$target_alias
1172 # FIXME: To remove some day.
1173 if test "x$host_alias" != x; then
1174 if test "x$build_alias" = x; then
1175 cross_compiling=maybe
1176 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1177 If a cross compiler is detected then cross compile mode will be used" >&2
1178 elif test "x$build_alias" != "x$host_alias"; then
1184 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1186 test "$silent" = yes && exec 6>/dev/null
1189 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190 ac_ls_di=`ls -di .` &&
1191 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192 as_fn_error $? "working directory cannot be determined"
1193 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194 as_fn_error $? "pwd does not report name of working directory"
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$as_myself" ||
1202 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$as_myself" : 'X\(//\)[^/]' \| \
1204 X"$as_myself" : 'X\(//\)$' \| \
1205 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206 $as_echo X"$as_myself" |
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1229 ac_srcdir_defaulted=no
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257 # Report the --help message.
1259 if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1263 \`configure' configures bullet 2.81 to adapt to many kinds of systems.
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE. See below for descriptions of some of the useful variables.
1270 Defaults for the options are specified in brackets.
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
1277 -q, --quiet, --silent do not print \`checking ...' messages
1278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for \`--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283 Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
1285 [$ac_default_prefix]
1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1294 For better control, use the options below.
1296 Fine tuning of the installation directories:
1297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --libdir=DIR object code libraries [EPREFIX/lib]
1304 --includedir=DIR C header files [PREFIX/include]
1305 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308 --infodir=DIR info documentation [DATAROOTDIR/info]
1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310 --mandir=DIR man documentation [DATAROOTDIR/man]
1311 --docdir=DIR documentation root [DATAROOTDIR/doc/bullet]
1312 --htmldir=DIR html documentation [DOCDIR]
1313 --dvidir=DIR dvi documentation [DOCDIR]
1314 --pdfdir=DIR pdf documentation [DOCDIR]
1315 --psdir=DIR ps documentation [DOCDIR]
1321 --program-prefix=PREFIX prepend PREFIX to installed program names
1322 --program-suffix=SUFFIX append SUFFIX to installed program names
1323 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of bullet 2.81:";;
1338 --disable-option-checking ignore unrecognized --enable/--with options
1339 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1340 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1341 --disable-dependency-tracking speeds up one-time build
1342 --enable-dependency-tracking do not reject slow dependency extractors
1343 --enable-shared[=PKGS] build shared libraries [default=yes]
1344 --enable-static[=PKGS] build static libraries [default=yes]
1345 --enable-fast-install[=PKGS]
1346 optimize for fast installation [default=yes]
1347 --disable-libtool-lock avoid locking (might break parallel builds)
1348 --enable-multithreaded build BulletMultiThreaded (default NO)
1349 --disable-demos disable Bullet demos
1350 --enable-debug build with debugging information (default NO)
1353 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1354 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1355 --with-pic try to use only PIC/non-PIC objects [default=use
1357 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1358 --with-sysroot=DIR Search for dependent libraries within DIR
1359 (or the compiler's sysroot if not specified).
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CXX C++ compiler command
1370 CXXFLAGS C++ compiler flags
1372 CXXCPP C++ preprocessor
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1377 Report bugs to <bullet@erwincoumans.com>.
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" ||
1386 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1407 .) # We are building in place.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1431 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1440 bullet configure 2.81
1441 generated by GNU Autoconf 2.68
1443 Copyright (C) 2010 Free Software Foundation, Inc.
1444 This configure script is free software; the Free Software Foundation
1445 gives unlimited permission to copy, distribute and modify it.
1450 ## ------------------------ ##
1451 ## Autoconf initialization. ##
1452 ## ------------------------ ##
1454 # ac_fn_c_try_compile LINENO
1455 # --------------------------
1456 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1457 ac_fn_c_try_compile ()
1459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1460 rm -f conftest.$ac_objext
1461 if { { ac_try="$ac_compile"
1463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1464 *) ac_try_echo=$ac_try;;
1466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467 $as_echo "$ac_try_echo"; } >&5
1468 (eval "$ac_compile") 2>conftest.err
1470 if test -s conftest.err; then
1471 grep -v '^ *+' conftest.err >conftest.er1
1472 cat conftest.er1 >&5
1473 mv -f conftest.er1 conftest.err
1475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1476 test $ac_status = 0; } && {
1477 test -z "$ac_c_werror_flag" ||
1478 test ! -s conftest.err
1479 } && test -s conftest.$ac_objext; then :
1482 $as_echo "$as_me: failed program was:" >&5
1483 sed 's/^/| /' conftest.$ac_ext >&5
1487 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1488 as_fn_set_status $ac_retval
1490 } # ac_fn_c_try_compile
1492 # ac_fn_cxx_try_compile LINENO
1493 # ----------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_cxx_try_compile ()
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_cxx_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status $ac_retval
1528 } # ac_fn_cxx_try_compile
1530 # ac_fn_c_try_link LINENO
1531 # -----------------------
1532 # Try to link conftest.$ac_ext, and return whether this succeeded.
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext conftest$ac_exeext
1537 if { { ac_try="$ac_link"
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_link") 2>conftest.err
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest$ac_exeext && {
1556 test "$cross_compiling" = yes ||
1557 $as_test_x conftest$ac_exeext
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1566 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1567 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1568 # interfere with the next link command; also delete a directory that is
1569 # left behind by Apple's compiler. We do this before executing the actions.
1570 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1574 } # ac_fn_c_try_link
1576 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1577 # -------------------------------------------------------
1578 # Tests whether HEADER exists and can be compiled using the include files in
1579 # INCLUDES, setting the cache variable VAR accordingly.
1580 ac_fn_c_check_header_compile ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if eval \${$3+:} false; then :
1586 $as_echo_n "(cached) " >&6
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1593 if ac_fn_c_try_compile "$LINENO"; then :
1598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1602 $as_echo "$ac_res" >&6; }
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 } # ac_fn_c_check_header_compile
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } > conftest.i && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1644 # ac_fn_c_try_run LINENO
1645 # ----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1647 # that executables *can* be run.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_link"
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>&5
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1662 { { case "(($ac_try" in
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_try") 2>&5
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; }; }; then :
1674 $as_echo "$as_me: program exited with status $ac_status" >&5
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1678 ac_retval=$ac_status
1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1686 # ac_fn_c_check_func LINENO FUNC VAR
1687 # ----------------------------------
1688 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1689 ac_fn_c_check_func ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1701 #define $2 innocuous_$2
1703 /* System header to define __stub macros and hopefully few prototypes,
1704 which can conflict with char $2 (); below.
1705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1706 <limits.h> exists even on freestanding compilers. */
1709 # include <limits.h>
1711 # include <assert.h>
1716 /* Override any GCC internal prototype to avoid an error.
1717 Use char because int might match the return type of a GCC
1718 builtin and then its argument prototype would still apply. */
1723 /* The GNU C library defines this for functions which it implements
1724 to always fail with ENOSYS. Some functions are actually named
1725 something starting with __ and the normal name is an alias. */
1726 #if defined __stub_$2 || defined __stub___$2
1738 if ac_fn_c_try_link "$LINENO"; then :
1743 rm -f core conftest.err conftest.$ac_objext \
1744 conftest$ac_exeext conftest.$ac_ext
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 } # ac_fn_c_check_func
1753 # ac_fn_cxx_try_cpp LINENO
1754 # ------------------------
1755 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_cxx_try_cpp ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_cpp conftest.$ac_ext"
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } > conftest.i && {
1775 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1776 test ! -s conftest.err
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1788 } # ac_fn_cxx_try_cpp
1790 # ac_fn_cxx_try_link LINENO
1791 # -------------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_link ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest$ac_exeext
1797 if { { ac_try="$ac_link"
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>conftest.err
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest$ac_exeext && {
1816 test "$cross_compiling" = yes ||
1817 $as_test_x conftest$ac_exeext
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1834 } # ac_fn_cxx_try_link
1835 cat >config.log <<_ACEOF
1836 This file contains any messages produced by compilers while
1837 running configure, to aid debugging if configure makes a mistake.
1839 It was created by bullet $as_me 2.81, which was
1840 generated by GNU Autoconf 2.68. Invocation command line was
1852 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1853 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1854 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1855 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1856 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1858 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1859 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1861 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1862 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1863 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1864 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1865 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1866 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1867 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 test -z "$as_dir" && as_dir=.
1876 $as_echo "PATH: $as_dir"
1892 # Keep a trace of the command line.
1893 # Strip out --no-create and --no-recursion so they do not pile up.
1894 # Strip out --silent because we don't want to record it for future runs.
1895 # Also quote any args containing shell meta-characters.
1896 # Make two passes to allow for proper duplicate-argument suppression.
1900 ac_must_keep_next=false
1906 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1908 | -silent | --silent | --silen | --sile | --sil)
1911 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1914 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1916 as_fn_append ac_configure_args1 " '$ac_arg'"
1917 if test $ac_must_keep_next = true; then
1918 ac_must_keep_next=false # Got value, back to normal.
1921 *=* | --config-cache | -C | -disable-* | --disable-* \
1922 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1923 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1924 | -with-* | --with-* | -without-* | --without-* | --x)
1925 case "$ac_configure_args0 " in
1926 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1929 -* ) ac_must_keep_next=true ;;
1932 as_fn_append ac_configure_args " '$ac_arg'"
1937 { ac_configure_args0=; unset ac_configure_args0;}
1938 { ac_configure_args1=; unset ac_configure_args1;}
1940 # When interrupted or exit'd, cleanup temporary files, and complete
1941 # config.log. We remove comments because anyway the quotes in there
1942 # would cause problems or look ugly.
1943 # WARNING: Use '\'' to represent an apostrophe within the trap.
1944 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1945 trap 'exit_status=$?
1946 # Save into config.log some information that might help in debugging.
1950 $as_echo "## ---------------- ##
1951 ## Cache variables. ##
1952 ## ---------------- ##"
1954 # The following way of writing the cache mishandles newlines in values,
1956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1957 eval ac_val=\$$ac_var
1961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1965 _ | IFS | as_nl) ;; #(
1966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1967 *) { eval $ac_var=; unset $ac_var;} ;;
1972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973 *${as_nl}ac_space=\ *)
1975 "s/'\''/'\''\\\\'\'''\''/g;
1976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1986 $as_echo "## ----------------- ##
1987 ## Output variables. ##
1988 ## ----------------- ##"
1990 for ac_var in $ac_subst_vars
1992 eval ac_val=\$$ac_var
1994 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996 $as_echo "$ac_var='\''$ac_val'\''"
2000 if test -n "$ac_subst_files"; then
2001 $as_echo "## ------------------- ##
2002 ## File substitutions. ##
2003 ## ------------------- ##"
2005 for ac_var in $ac_subst_files
2007 eval ac_val=\$$ac_var
2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 $as_echo "$ac_var='\''$ac_val'\''"
2016 if test -s confdefs.h; then
2017 $as_echo "## ----------- ##
2024 test "$ac_signal" != 0 &&
2025 $as_echo "$as_me: caught signal $ac_signal"
2026 $as_echo "$as_me: exit $exit_status"
2028 rm -f core *.core core.conftest.* &&
2029 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2032 for ac_signal in 1 2 13 15; do
2033 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2037 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2038 rm -f -r conftest* confdefs.h
2040 $as_echo "/* confdefs.h */" > confdefs.h
2042 # Predefined preprocessor variables.
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_NAME "$PACKAGE_NAME"
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_STRING "$PACKAGE_STRING"
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_URL "$PACKAGE_URL"
2069 # Let the site file select an alternate cache file if it wants to.
2070 # Prefer an explicitly selected file to automatically selected ones.
2073 if test -n "$CONFIG_SITE"; then
2074 # We do not want a PATH search for config.site.
2075 case $CONFIG_SITE in #((
2076 -*) ac_site_file1=./$CONFIG_SITE;;
2077 */*) ac_site_file1=$CONFIG_SITE;;
2078 *) ac_site_file1=./$CONFIG_SITE;;
2080 elif test "x$prefix" != xNONE; then
2081 ac_site_file1=$prefix/share/config.site
2082 ac_site_file2=$prefix/etc/config.site
2084 ac_site_file1=$ac_default_prefix/share/config.site
2085 ac_site_file2=$ac_default_prefix/etc/config.site
2087 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2089 test "x$ac_site_file" = xNONE && continue
2090 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2092 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2093 sed 's/^/| /' "$ac_site_file" >&5
2095 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097 as_fn_error $? "failed to load site script $ac_site_file
2098 See \`config.log' for more details" "$LINENO" 5; }
2102 if test -r "$cache_file"; then
2103 # Some versions of bash will fail to source /dev/null (special files
2104 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2105 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2107 $as_echo "$as_me: loading cache $cache_file" >&6;}
2109 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2110 *) . "./$cache_file";;
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2115 $as_echo "$as_me: creating cache $cache_file" >&6;}
2119 # Check that the precious variables saved in the cache have kept the same
2121 ac_cache_corrupted=false
2122 for ac_var in $ac_precious_vars; do
2123 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2124 eval ac_new_set=\$ac_env_${ac_var}_set
2125 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2126 eval ac_new_val=\$ac_env_${ac_var}_value
2127 case $ac_old_set,$ac_new_set in
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2131 ac_cache_corrupted=: ;;
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2134 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2135 ac_cache_corrupted=: ;;
2138 if test "x$ac_old_val" != "x$ac_new_val"; then
2139 # differences in whitespace do not lead to failure.
2140 ac_old_val_w=`echo x $ac_old_val`
2141 ac_new_val_w=`echo x $ac_new_val`
2142 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2144 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145 ac_cache_corrupted=:
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2148 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2149 eval $ac_var=\$ac_old_val
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2152 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2154 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2157 # Pass precious variables to config.status.
2158 if test "$ac_new_set" = set; then
2160 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2161 *) ac_arg=$ac_var=$ac_new_val ;;
2163 case " $ac_configure_args " in
2164 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2165 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2169 if $ac_cache_corrupted; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2173 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2174 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2176 ## -------------------- ##
2177 ## Main body of script. ##
2178 ## -------------------- ##
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2189 if test -f "$ac_dir/install-sh"; then
2191 ac_install_sh="$ac_aux_dir/install-sh -c"
2193 elif test -f "$ac_dir/install.sh"; then
2195 ac_install_sh="$ac_aux_dir/install.sh -c"
2197 elif test -f "$ac_dir/shtool"; then
2199 ac_install_sh="$ac_aux_dir/shtool install -c"
2203 if test -z "$ac_aux_dir"; then
2204 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2207 # These three variables are undocumented and unsupported,
2208 # and are intended to be withdrawn in a future Autoconf release.
2209 # They can cause serious problems if a builder's source tree is in a directory
2210 # whose full name contains unusual characters.
2211 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2212 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2213 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2216 # Make sure we can run config.sub.
2217 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2218 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2221 $as_echo_n "checking build system type... " >&6; }
2222 if ${ac_cv_build+:} false; then :
2223 $as_echo_n "(cached) " >&6
2225 ac_build_alias=$build_alias
2226 test "x$ac_build_alias" = x &&
2227 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2228 test "x$ac_build_alias" = x &&
2229 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2230 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2231 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2235 $as_echo "$ac_cv_build" >&6; }
2236 case $ac_cv_build in
2238 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2241 ac_save_IFS=$IFS; IFS='-'
2247 # Remember, the first character of IFS is used to create $*,
2248 # except with old shells:
2251 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2255 $as_echo_n "checking host system type... " >&6; }
2256 if ${ac_cv_host+:} false; then :
2257 $as_echo_n "(cached) " >&6
2259 if test "x$host_alias" = x; then
2260 ac_cv_host=$ac_cv_build
2262 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2263 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2268 $as_echo "$ac_cv_host" >&6; }
2271 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2274 ac_save_IFS=$IFS; IFS='-'
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2288 am__api_version='1.11'
2290 # Find a good install program. We prefer a C program (faster),
2291 # so one script is as good as another. But avoid the broken or
2292 # incompatible versions:
2293 # SysV /etc/install, /usr/sbin/install
2294 # SunOS /usr/etc/install
2295 # IRIX /sbin/install
2297 # AmigaOS /C/install, which installs bootblocks on floppy discs
2298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2301 # OS/2's system install, which has a completely different semantic
2302 # ./install, which can be erroneously created by make from ./install.sh.
2303 # Reject install programs that cannot install multiple files.
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2305 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2306 if test -z "$INSTALL"; then
2307 if ${ac_cv_path_install+:} false; then :
2308 $as_echo_n "(cached) " >&6
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 test -z "$as_dir" && as_dir=.
2315 # Account for people who put trailing slashes in PATH elements.
2316 case $as_dir/ in #((
2317 ./ | .// | /[cC]/* | \
2318 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2319 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2322 # OSF1 and SCO ODT 3.0 have their own names for install.
2323 # Don't use installbsd from OSF since it installs stuff as root
2325 for ac_prog in ginstall scoinst install; do
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2328 if test $ac_prog = install &&
2329 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2330 # AIX install. It has an incompatible calling convention.
2332 elif test $ac_prog = install &&
2333 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2334 # program-specific install script used by HP pwplus--don't use.
2337 rm -rf conftest.one conftest.two conftest.dir
2338 echo one > conftest.one
2339 echo two > conftest.two
2341 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2342 test -s conftest.one && test -s conftest.two &&
2343 test -s conftest.dir/conftest.one &&
2344 test -s conftest.dir/conftest.two
2346 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2359 rm -rf conftest.one conftest.two conftest.dir
2362 if test "${ac_cv_path_install+set}" = set; then
2363 INSTALL=$ac_cv_path_install
2365 # As a last resort, use the slow shell script. Don't cache a
2366 # value for INSTALL within a source directory, because that will
2367 # break other packages using the cache if that directory is
2368 # removed, or if the value is a relative name.
2369 INSTALL=$ac_install_sh
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2373 $as_echo "$INSTALL" >&6; }
2375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2376 # It thinks the first close brace ends the variable substitution.
2377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2384 $as_echo_n "checking whether build environment is sane... " >&6; }
2387 echo timestamp > conftest.file
2388 # Reject unsafe characters in $srcdir or the absolute working directory
2389 # name. Accept space and tab only in the latter.
2393 *[\\\"\#\$\&\'\`$am_lf]*)
2394 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2397 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2398 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2401 # Do `set' in a subshell so we don't clobber the current shell's
2402 # arguments. Must try -L first in case configure is actually a
2403 # symlink; some systems play weird games with the mod time of symlinks
2404 # (eg FreeBSD returns the mod time of the symlink's containing
2407 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2408 if test "$*" = "X"; then
2410 set X `ls -t "$srcdir/configure" conftest.file`
2413 if test "$*" != "X $srcdir/configure conftest.file" \
2414 && test "$*" != "X conftest.file $srcdir/configure"; then
2416 # If neither matched, then we have a broken ls. This can happen
2417 # if, for instance, CONFIG_SHELL is bash and it inherits a
2418 # broken ls alias from the environment. This has actually
2419 # happened. Such a system could not be considered "sane".
2420 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2421 alias in your environment" "$LINENO" 5
2424 test "$2" = conftest.file
2430 as_fn_error $? "newly created file is older than distributed files!
2431 Check your system clock" "$LINENO" 5
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2434 $as_echo "yes" >&6; }
2435 test "$program_prefix" != NONE &&
2436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2437 # Use a double $ so make ignores it.
2438 test "$program_suffix" != NONE &&
2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440 # Double any \ or $.
2441 # By default was `s,x,x', remove it if useless.
2442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2445 # expand $ac_aux_dir to an absolute path
2446 am_aux_dir=`cd $ac_aux_dir && pwd`
2448 if test x"${MISSING+set}" != xset; then
2451 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2453 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2456 # Use eval to expand $SHELL
2457 if eval "$MISSING --run true"; then
2458 am_missing_run="$MISSING --run "
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2462 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2465 if test x"${install_sh}" != xset; then
2468 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2470 install_sh="\${SHELL} $am_aux_dir/install-sh"
2474 # Installed binaries are usually stripped using `strip' when the user
2475 # run `make install-strip'. However `strip' might not be the right
2476 # tool to use in cross-compilation environments, therefore Automake
2477 # will honor the `STRIP' environment variable to overrule this program.
2478 if test "$cross_compiling" != no; then
2479 if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}strip; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_STRIP+:} false; then :
2485 $as_echo_n "(cached) " >&6
2487 if test -n "$STRIP"; then
2488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 STRIP=$ac_cv_prog_STRIP
2508 if test -n "$STRIP"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2510 $as_echo "$STRIP" >&6; }
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2518 if test -z "$ac_cv_prog_STRIP"; then
2520 # Extract the first word of "strip", so it can be a program name with args.
2521 set dummy strip; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2525 $as_echo_n "(cached) " >&6
2527 if test -n "$ac_ct_STRIP"; then
2528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_ac_ct_STRIP="strip"
2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2548 if test -n "$ac_ct_STRIP"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2550 $as_echo "$ac_ct_STRIP" >&6; }
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2556 if test "x$ac_ct_STRIP" = x; then
2559 case $cross_compiling:$ac_tool_warned in
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2563 ac_tool_warned=yes ;;
2568 STRIP="$ac_cv_prog_STRIP"
2572 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2575 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2576 if test -z "$MKDIR_P"; then
2577 if ${ac_cv_path_mkdir+:} false; then :
2578 $as_echo_n "(cached) " >&6
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2584 test -z "$as_dir" && as_dir=.
2585 for ac_prog in mkdir gmkdir; do
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2588 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2589 'mkdir (GNU coreutils) '* | \
2590 'mkdir (coreutils) '* | \
2591 'mkdir (fileutils) '4.1*)
2592 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2602 test -d ./--version && rmdir ./--version
2603 if test "${ac_cv_path_mkdir+set}" = set; then
2604 MKDIR_P="$ac_cv_path_mkdir -p"
2606 # As a last resort, use the slow shell script. Don't cache a
2607 # value for MKDIR_P within a source directory, because that will
2608 # break other packages using the cache if that directory is
2609 # removed, or if the value is a relative name.
2610 MKDIR_P="$ac_install_sh -d"
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2614 $as_echo "$MKDIR_P" >&6; }
2618 [\\/$]* | ?:[\\/]*) ;;
2619 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2622 for ac_prog in gawk mawk nawk awk
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_AWK+:} false; then :
2629 $as_echo_n "(cached) " >&6
2631 if test -n "$AWK"; then
2632 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_AWK="$ac_prog"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 if test -n "$AWK"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2654 $as_echo "$AWK" >&6; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2661 test -n "$AWK" && break
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2665 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2667 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2668 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2669 $as_echo_n "(cached) " >&6
2671 cat >conftest.make <<\_ACEOF
2674 @echo '@@@%%%=$(MAKE)=@@@%%%'
2676 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2677 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2679 eval ac_cv_prog_make_${ac_make}_set=yes;;
2681 eval ac_cv_prog_make_${ac_make}_set=no;;
2685 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2687 $as_echo "yes" >&6; }
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 SET_MAKE="MAKE=${MAKE-make}"
2695 rm -rf .tst 2>/dev/null
2696 mkdir .tst 2>/dev/null
2697 if test -d .tst; then
2702 rmdir .tst 2>/dev/null
2704 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2705 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2706 # is not polluted with repeated "-I."
2707 am__isrc=' -I$(srcdir)'
2708 # test to see if srcdir already configured
2709 if test -f $srcdir/config.status; then
2710 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2714 # test whether we have cygpath
2715 if test -z "$CYGPATH_W"; then
2716 if (cygpath --version) >/dev/null 2>/dev/null; then
2717 CYGPATH_W='cygpath -w'
2724 # Define the identity of the package.
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE "$PACKAGE"
2734 cat >>confdefs.h <<_ACEOF
2735 #define VERSION "$VERSION"
2738 # Some tools Automake needs.
2740 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2743 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2746 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2749 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2752 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2754 # We need awk for the "check" target. The system "awk" is bad on
2756 # Always define AMTAR for backward compatibility.
2758 AMTAR=${AMTAR-"${am_missing_run}tar"}
2760 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2766 DEPDIR="${am__leading_dot}deps"
2768 ac_config_commands="$ac_config_commands depfiles"
2771 am_make=${MAKE-make}
2772 cat > confinc << 'END'
2774 @echo this is the am__doit target
2777 # If we don't find an include directive, just comment out the code.
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2779 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2783 # First try GNU make style include.
2784 echo "include confinc" > confmf
2785 # Ignore all kinds of additional output from `make'.
2786 case `$am_make -s -f confmf 2> /dev/null` in #(
2787 *the\ am__doit\ target*)
2793 # Now try BSD make style include.
2794 if test "$am__include" = "#"; then
2795 echo '.include "confinc"' > confmf
2796 case `$am_make -s -f confmf 2> /dev/null` in #(
2797 *the\ am__doit\ target*)
2798 am__include=.include
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2807 $as_echo "$_am_result" >&6; }
2808 rm -f confinc confmf
2810 # Check whether --enable-dependency-tracking was given.
2811 if test "${enable_dependency_tracking+set}" = set; then :
2812 enableval=$enable_dependency_tracking;
2815 if test "x$enable_dependency_tracking" != xno; then
2816 am_depcomp="$ac_aux_dir/depcomp"
2819 if test "x$enable_dependency_tracking" != xno; then
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833 if test -n "$ac_tool_prefix"; then
2834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2835 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_CC+:} false; then :
2839 $as_echo_n "(cached) " >&6
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 if test -n "$CC"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864 $as_echo "$CC" >&6; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2872 if test -z "$ac_cv_prog_CC"; then
2874 # Extract the first word of "gcc", so it can be a program name with args.
2875 set dummy gcc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2879 $as_echo_n "(cached) " >&6
2881 if test -n "$ac_ct_CC"; then
2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_ac_ct_CC="gcc"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902 if test -n "$ac_ct_CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904 $as_echo "$ac_ct_CC" >&6; }
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2910 if test "x$ac_ct_CC" = x; then
2913 case $cross_compiling:$ac_tool_warned in
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2917 ac_tool_warned=yes ;;
2925 if test -z "$CC"; then
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}cc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_CC="${ac_tool_prefix}cc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2966 if test -z "$CC"; then
2967 # Extract the first word of "cc", so it can be a program name with args.
2968 set dummy cc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2986 ac_prog_rejected=yes
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 if test $ac_prog_rejected = yes; then
2998 # We found a bogon in the path, so make sure we never use it.
2999 set dummy $ac_cv_prog_CC
3001 if test $# != 0; then
3002 # We chose a different compiler from the bogus one.
3003 # However, it has the same basename, so the bogon will be chosen
3004 # first if we set CC to just the basename; use the full file name.
3006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3012 if test -n "$CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3022 if test -z "$CC"; then
3023 if test -n "$ac_tool_prefix"; then
3024 for ac_prog in cl.exe
3026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 if test -n "$CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3063 test -n "$CC" && break
3066 if test -z "$CC"; then
3068 for ac_prog in cl.exe
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071 set dummy $ac_prog; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3075 $as_echo_n "(cached) " >&6
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_ac_ct_CC="$ac_prog"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3107 test -n "$ac_ct_CC" && break
3110 if test "x$ac_ct_CC" = x; then
3113 case $cross_compiling:$ac_tool_warned in
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3117 ac_tool_warned=yes ;;
3126 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error $? "no acceptable C compiler found in \$PATH
3129 See \`config.log' for more details" "$LINENO" 5; }
3131 # Provide some information about the compiler.
3132 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3135 for ac_option in --version -v -V -qversion; do
3136 { { ac_try="$ac_compiler $ac_option >&5"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3145 if test -s conftest.err; then
3147 ... rest of stderr output deleted ...
3148 10q' conftest.err >conftest.er1
3149 cat conftest.er1 >&5
3151 rm -f conftest.er1 conftest.err
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3167 ac_clean_files_save=$ac_clean_files
3168 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3169 # Try to create an executable without -o first, disregard a.out.
3170 # It will help us diagnose broken compilers, and finding out an intuition
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3173 $as_echo_n "checking whether the C compiler works... " >&6; }
3174 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3176 # The possible output files:
3177 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3180 for ac_file in $ac_files
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3189 if { { ac_try="$ac_link_default"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link_default") 2>&5
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3203 # so that the user can short-circuit this test for compilers unknown to
3205 for ac_file in $ac_files ''
3207 test -f "$ac_file" || continue
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3212 # We found the default executable, but exeext='' is most
3216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220 # We set ac_cv_exeext here because the later test for it is not
3221 # safe: cross compilers may not add the suffix if given an `-o'
3222 # argument, so we may need to know it at that point already.
3223 # Even if this section looks crufty: it has the advantage of
3230 test "$ac_cv_exeext" = no && ac_cv_exeext=
3235 if test -z "$ac_file"; then :
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error 77 "C compiler cannot create executables
3244 See \`config.log' for more details" "$LINENO" 5; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3250 $as_echo_n "checking for C compiler default output file name... " >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3252 $as_echo "$ac_file" >&6; }
3253 ac_exeext=$ac_cv_exeext
3255 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3256 ac_clean_files=$ac_clean_files_save
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3258 $as_echo_n "checking for suffix of executables... " >&6; }
3259 if { { ac_try="$ac_link"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3271 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3272 # work properly (i.e., refer to `conftest.exe'), while it won't with
3274 for ac_file in conftest.exe conftest conftest.*; do
3275 test -f "$ac_file" || continue
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3287 See \`config.log' for more details" "$LINENO" 5; }
3289 rm -f conftest conftest$ac_cv_exeext
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3291 $as_echo "$ac_cv_exeext" >&6; }
3293 rm -f conftest.$ac_ext
3294 EXEEXT=$ac_cv_exeext
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3302 FILE *f = fopen ("conftest.out", "w");
3303 return ferror (f) || fclose (f) != 0;
3309 ac_clean_files="$ac_clean_files conftest.out"
3310 # Check that the compiler produces executables we can run. If not, either
3311 # the compiler is broken, or we cross compile.
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3313 $as_echo_n "checking whether we are cross compiling... " >&6; }
3314 if test "$cross_compiling" != yes; then
3315 { { ac_try="$ac_link"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }
3326 if { ac_try='./conftest$ac_cv_exeext'
3327 { { case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_try") 2>&5
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; }; then
3339 if test "$cross_compiling" = maybe; then
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot run C compiled programs.
3345 If you meant to cross compile, use \`--host'.
3346 See \`config.log' for more details" "$LINENO" 5; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351 $as_echo "$cross_compiling" >&6; }
3353 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3354 ac_clean_files=$ac_clean_files_save
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3356 $as_echo_n "checking for suffix of object files... " >&6; }
3357 if ${ac_cv_objext+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3371 rm -f conftest.o conftest.obj
3372 if { { ac_try="$ac_compile"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_compile") 2>&5
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 for ac_file in conftest.o conftest.obj conftest.*; do
3384 test -f "$ac_file" || continue;
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of object files: cannot compile
3398 See \`config.log' for more details" "$LINENO" 5; }
3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3403 $as_echo "$ac_cv_objext" >&6; }
3404 OBJEXT=$ac_cv_objext
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3407 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3408 if ${ac_cv_c_compiler_gnu+:} false; then :
3409 $as_echo_n "(cached) " >&6
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3425 if ac_fn_c_try_compile "$LINENO"; then :
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3435 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3436 if test $ac_compiler_gnu = yes; then
3441 ac_test_CFLAGS=${CFLAGS+set}
3442 ac_save_CFLAGS=$CFLAGS
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3444 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3445 if ${ac_cv_prog_cc_g+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 ac_save_c_werror_flag=$ac_c_werror_flag
3449 ac_c_werror_flag=yes
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3463 if ac_fn_c_try_compile "$LINENO"; then :
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3478 if ac_fn_c_try_compile "$LINENO"; then :
3481 ac_c_werror_flag=$ac_save_c_werror_flag
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3494 if ac_fn_c_try_compile "$LINENO"; then :
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_c_werror_flag=$ac_save_c_werror_flag
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3505 $as_echo "$ac_cv_prog_cc_g" >&6; }
3506 if test "$ac_test_CFLAGS" = set; then
3507 CFLAGS=$ac_save_CFLAGS
3508 elif test $ac_cv_prog_cc_g = yes; then
3509 if test "$GCC" = yes; then
3515 if test "$GCC" = yes; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3522 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3523 if ${ac_cv_prog_cc_c89+:} false; then :
3524 $as_echo_n "(cached) " >&6
3526 ac_cv_prog_cc_c89=no
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3532 #include <sys/types.h>
3533 #include <sys/stat.h>
3534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3535 struct buf { int x; };
3536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537 static char *e (p, i)
3543 static char *f (char * (*g) (char **, int), char **p, ...)
3548 s = g (p, va_arg (v,int));
3553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3554 function prototypes and stuff, but not '\xHH' hex character constants.
3555 These don't provoke an error unfortunately, instead are silently treated
3556 as 'x'. The following induces an error, until -std is added to get
3557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3558 array size at least. It's necessary to write '\x00'==0 to get something
3559 that's true only with -std. */
3560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3562 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563 inside strings and character constants. */
3565 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3584 CC="$ac_save_CC $ac_arg"
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586 ac_cv_prog_cc_c89=$ac_arg
3588 rm -f core conftest.err conftest.$ac_objext
3589 test "x$ac_cv_prog_cc_c89" != "xno" && break
3591 rm -f conftest.$ac_ext
3596 case "x$ac_cv_prog_cc_c89" in
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3599 $as_echo "none needed" >&6; } ;;
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3602 $as_echo "unsupported" >&6; } ;;
3604 CC="$CC $ac_cv_prog_cc_c89"
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3606 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3608 if test "x$ac_cv_prog_cc_c89" != xno; then :
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618 depcc="$CC" am_compiler_list=
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3621 $as_echo_n "checking dependency style of $depcc... " >&6; }
3622 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3623 $as_echo_n "(cached) " >&6
3625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3626 # We make a subdir and do the tests there. Otherwise we can end up
3627 # making bogus files that we don't know about and never remove. For
3628 # instance it was reported that on HP-UX the gcc test will end up
3629 # making a dummy file named `D' -- because `-MD' means `put the output
3632 # Copy depcomp to subdir because otherwise we won't find it if we're
3633 # using a relative directory.
3634 cp "$am_depcomp" conftest.dir
3636 # We will build objects and dependencies in a subdirectory because
3637 # it helps to detect inapplicable dependency modes. For instance
3638 # both Tru64's cc and ICC support -MD to output dependencies as a
3639 # side effect of compilation, but ICC will put the dependencies in
3640 # the current directory while Tru64 will put them in the object
3644 am_cv_CC_dependencies_compiler_type=none
3645 if test "$am_compiler_list" = ""; then
3646 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3649 case " $depcc " in #(
3650 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3653 for depmode in $am_compiler_list; do
3654 # Setup a source with many dependencies, because some compilers
3655 # like to wrap large dependency lists on column 80 (with \), and
3656 # we should not choose a depcomp mode which is confused by this.
3658 # We need to recreate these files for each test, as the compiler may
3659 # overwrite some of them when testing with obscure command lines.
3660 # This happens at least with the AIX C compiler.
3662 for i in 1 2 3 4 5 6; do
3663 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3664 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3665 # Solaris 8's {/usr,}/bin/sh.
3666 touch sub/conftst$i.h
3668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3670 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3671 # mode. It turns out that the SunPro C++ compiler does not properly
3672 # handle `-M -o', and we need to detect this. Also, some Intel
3673 # versions had trouble with output in subdirs
3674 am__obj=sub/conftest.${OBJEXT-o}
3675 am__minus_obj="-o $am__obj"
3678 # This depmode causes a compiler race in universal mode.
3679 test "$am__universal" = false || continue
3682 # after this tag, mechanisms are not by side-effect, so they'll
3683 # only be used when explicitly requested
3684 if test "x$enable_dependency_tracking" = xyes; then
3690 msvisualcpp | msvcmsys)
3691 # This compiler won't grok `-c -o', but also, the minuso test has
3692 # not run yet. These depmodes are late enough in the game, and
3693 # so weak that their functioning should not be impacted.
3694 am__obj=conftest.${OBJEXT-o}
3699 if depmode=$depmode \
3700 source=sub/conftest.c object=$am__obj \
3701 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3702 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3703 >/dev/null 2>conftest.err &&
3704 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3705 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3706 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3707 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3708 # icc doesn't choke on unknown options, it will just issue warnings
3709 # or remarks (even with -Werror). So we grep stderr for any message
3710 # that says an option was ignored or not supported.
3711 # When given -MP, icc 7.0 and 7.1 complain thusly:
3712 # icc: Command line warning: ignoring option '-M'; no argument required
3713 # The diagnosis changed in icc 8.0:
3714 # icc: Command line remark: option '-MP' not supported
3715 if (grep 'ignoring option' conftest.err ||
3716 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3717 am_cv_CC_dependencies_compiler_type=$depmode
3726 am_cv_CC_dependencies_compiler_type=none
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3731 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3732 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3735 test "x$enable_dependency_tracking" != xno \
3736 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3738 am__fastdepCC_FALSE='#'
3740 am__fastdepCC_TRUE='#'
3741 am__fastdepCC_FALSE=
3745 if test "x$CC" != xcc; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3747 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3750 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3752 set dummy $CC; ac_cc=`$as_echo "$2" |
3753 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3754 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3755 $as_echo_n "(cached) " >&6
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3768 # Make sure it works both with $CC and with simple cc.
3769 # We do the test twice because some compilers refuse to overwrite an
3770 # existing .o file with -o, though they will create one.
3771 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3773 if { { case "(($ac_try" in
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_try") 2>&5
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; } &&
3783 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_try") 2>&5
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; };
3794 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3795 if test "x$CC" != xcc; then
3796 # Test first that cc exists at all.
3797 if { ac_try='cc -c conftest.$ac_ext >&5'
3798 { { case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_try") 2>&5
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }; }; then
3808 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3810 if { { case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_try") 2>&5
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; } &&
3820 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_try") 2>&5
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; };
3834 # cc exists but doesn't like -o.
3835 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3840 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3842 rm -f core conftest*
3845 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3847 $as_echo "yes" >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3852 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3856 # FIXME: we rely on the cache variable name because
3857 # there is no other way.
3859 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3860 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3861 if test "$am_t" != yes; then
3862 # Losing compiler, so override with the script.
3863 # FIXME: It is wrong to rewrite CC.
3864 # But if we don't then we get into trouble of one sort or another.
3865 # A longer-term fix would be to have automake use am__CC in this case,
3866 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3867 CC="$am_aux_dir/compile $CC"
3872 ac_cpp='$CXXCPP $CPPFLAGS'
3873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3876 if test -z "$CXX"; then
3877 if test -n "$CCC"; then
3880 if test -n "$ac_tool_prefix"; then
3881 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_CXX+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$CXX"; then
3891 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 if test -n "$CXX"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3913 $as_echo "$CXX" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3920 test -n "$CXX" && break
3923 if test -z "$CXX"; then
3925 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3927 # Extract the first word of "$ac_prog", so it can be a program name with args.
3928 set dummy $ac_prog; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3932 $as_echo_n "(cached) " >&6
3934 if test -n "$ac_ct_CXX"; then
3935 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_ac_ct_CXX="$ac_prog"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3955 if test -n "$ac_ct_CXX"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3957 $as_echo "$ac_ct_CXX" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3964 test -n "$ac_ct_CXX" && break
3967 if test "x$ac_ct_CXX" = x; then
3970 case $cross_compiling:$ac_tool_warned in
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974 ac_tool_warned=yes ;;
3982 # Provide some information about the compiler.
3983 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3986 for ac_option in --version -v -V -qversion; do
3987 { { ac_try="$ac_compiler $ac_option >&5"
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3996 if test -s conftest.err; then
3998 ... rest of stderr output deleted ...
3999 10q' conftest.err >conftest.er1
4000 cat conftest.er1 >&5
4002 rm -f conftest.er1 conftest.err
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4008 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4009 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4010 $as_echo_n "(cached) " >&6
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4026 if ac_fn_cxx_try_compile "$LINENO"; then :
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4036 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4037 if test $ac_compiler_gnu = yes; then
4042 ac_test_CXXFLAGS=${CXXFLAGS+set}
4043 ac_save_CXXFLAGS=$CXXFLAGS
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4045 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4046 if ${ac_cv_prog_cxx_g+:} false; then :
4047 $as_echo_n "(cached) " >&6
4049 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4050 ac_cxx_werror_flag=yes
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4064 if ac_fn_cxx_try_compile "$LINENO"; then :
4065 ac_cv_prog_cxx_g=yes
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4079 if ac_fn_cxx_try_compile "$LINENO"; then :
4082 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4095 if ac_fn_cxx_try_compile "$LINENO"; then :
4096 ac_cv_prog_cxx_g=yes
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4106 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4107 if test "$ac_test_CXXFLAGS" = set; then
4108 CXXFLAGS=$ac_save_CXXFLAGS
4109 elif test $ac_cv_prog_cxx_g = yes; then
4110 if test "$GXX" = yes; then
4116 if test "$GXX" = yes; then
4123 ac_cpp='$CPP $CPPFLAGS'
4124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128 depcc="$CXX" am_compiler_list=
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4131 $as_echo_n "checking dependency style of $depcc... " >&6; }
4132 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4133 $as_echo_n "(cached) " >&6
4135 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4136 # We make a subdir and do the tests there. Otherwise we can end up
4137 # making bogus files that we don't know about and never remove. For
4138 # instance it was reported that on HP-UX the gcc test will end up
4139 # making a dummy file named `D' -- because `-MD' means `put the output
4142 # Copy depcomp to subdir because otherwise we won't find it if we're
4143 # using a relative directory.
4144 cp "$am_depcomp" conftest.dir
4146 # We will build objects and dependencies in a subdirectory because
4147 # it helps to detect inapplicable dependency modes. For instance
4148 # both Tru64's cc and ICC support -MD to output dependencies as a
4149 # side effect of compilation, but ICC will put the dependencies in
4150 # the current directory while Tru64 will put them in the object
4154 am_cv_CXX_dependencies_compiler_type=none
4155 if test "$am_compiler_list" = ""; then
4156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4159 case " $depcc " in #(
4160 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4163 for depmode in $am_compiler_list; do
4164 # Setup a source with many dependencies, because some compilers
4165 # like to wrap large dependency lists on column 80 (with \), and
4166 # we should not choose a depcomp mode which is confused by this.
4168 # We need to recreate these files for each test, as the compiler may
4169 # overwrite some of them when testing with obscure command lines.
4170 # This happens at least with the AIX C compiler.
4172 for i in 1 2 3 4 5 6; do
4173 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4174 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4175 # Solaris 8's {/usr,}/bin/sh.
4176 touch sub/conftst$i.h
4178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4180 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4181 # mode. It turns out that the SunPro C++ compiler does not properly
4182 # handle `-M -o', and we need to detect this. Also, some Intel
4183 # versions had trouble with output in subdirs
4184 am__obj=sub/conftest.${OBJEXT-o}
4185 am__minus_obj="-o $am__obj"
4188 # This depmode causes a compiler race in universal mode.
4189 test "$am__universal" = false || continue
4192 # after this tag, mechanisms are not by side-effect, so they'll
4193 # only be used when explicitly requested
4194 if test "x$enable_dependency_tracking" = xyes; then
4200 msvisualcpp | msvcmsys)
4201 # This compiler won't grok `-c -o', but also, the minuso test has
4202 # not run yet. These depmodes are late enough in the game, and
4203 # so weak that their functioning should not be impacted.
4204 am__obj=conftest.${OBJEXT-o}
4209 if depmode=$depmode \
4210 source=sub/conftest.c object=$am__obj \
4211 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4212 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4213 >/dev/null 2>conftest.err &&
4214 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4216 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4218 # icc doesn't choke on unknown options, it will just issue warnings
4219 # or remarks (even with -Werror). So we grep stderr for any message
4220 # that says an option was ignored or not supported.
4221 # When given -MP, icc 7.0 and 7.1 complain thusly:
4222 # icc: Command line warning: ignoring option '-M'; no argument required
4223 # The diagnosis changed in icc 8.0:
4224 # icc: Command line remark: option '-MP' not supported
4225 if (grep 'ignoring option' conftest.err ||
4226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4227 am_cv_CXX_dependencies_compiler_type=$depmode
4236 am_cv_CXX_dependencies_compiler_type=none
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4241 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4242 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4245 test "x$enable_dependency_tracking" != xno \
4246 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4247 am__fastdepCXX_TRUE=
4248 am__fastdepCXX_FALSE='#'
4250 am__fastdepCXX_TRUE='#'
4251 am__fastdepCXX_FALSE=
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4258 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4264 macro_revision='1.3293'
4278 ltmain="$ac_aux_dir/ltmain.sh"
4280 # Backslashify metacharacters that are still active within
4281 # double-quoted strings.
4282 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4284 # Same as above, but do not quote variable references.
4285 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4287 # Sed substitution to delay expansion of an escaped shell variable in a
4288 # double_quote_subst'ed string.
4289 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4291 # Sed substitution to delay expansion of an escaped single quote.
4292 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4294 # Sed substitution to avoid accidental globbing in evaled expressions
4295 no_glob_subst='s/\*/\\\*/g'
4297 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4298 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4299 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4302 $as_echo_n "checking how to print strings... " >&6; }
4303 # Test print first, because it will be a builtin if present.
4304 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4305 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4307 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4310 # Use this function as a fallback that always works.
4311 func_fallback_echo ()
4313 eval 'cat <<_LTECHO_EOF
4317 ECHO='func_fallback_echo'
4320 # func_echo_all arg...
4321 # Invoke $ECHO with all args, space-separated.
4328 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4329 $as_echo "printf" >&6; } ;;
4330 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4331 $as_echo "print -r" >&6; } ;;
4332 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4333 $as_echo "cat" >&6; } ;;
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4350 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4351 if ${ac_cv_path_SED+:} false; then :
4352 $as_echo_n "(cached) " >&6
4354 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4355 for ac_i in 1 2 3 4 5 6 7; do
4356 ac_script="$ac_script$as_nl$ac_script"
4358 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4359 { ac_script=; unset ac_script;}
4360 if test -z "$SED"; then
4361 ac_path_SED_found=false
4362 # Loop through the user's path and test for each of PROGNAME-LIST
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_prog in sed gsed; do
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4371 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4372 # Check for GNU ac_path_SED and select it if it is found.
4373 # Check for GNU $ac_path_SED
4374 case `"$ac_path_SED" --version 2>&1` in
4376 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4379 $as_echo_n 0123456789 >"conftest.in"
4382 cat "conftest.in" "conftest.in" >"conftest.tmp"
4383 mv "conftest.tmp" "conftest.in"
4384 cp "conftest.in" "conftest.nl"
4385 $as_echo '' >> "conftest.nl"
4386 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388 as_fn_arith $ac_count + 1 && ac_count=$as_val
4389 if test $ac_count -gt ${ac_path_SED_max-0}; then
4390 # Best one so far, save it but keep looking for a better one
4391 ac_cv_path_SED="$ac_path_SED"
4392 ac_path_SED_max=$ac_count
4394 # 10*(2^10) chars as input seems more than enough
4395 test $ac_count -gt 10 && break
4397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 $ac_path_SED_found && break 3
4405 if test -z "$ac_cv_path_SED"; then
4406 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4414 $as_echo "$ac_cv_path_SED" >&6; }
4415 SED="$ac_cv_path_SED"
4418 test -z "$SED" && SED=sed
4419 Xsed="$SED -e 1s/^X//"
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4432 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4433 if ${ac_cv_path_GREP+:} false; then :
4434 $as_echo_n "(cached) " >&6
4436 if test -z "$GREP"; then
4437 ac_path_GREP_found=false
4438 # Loop through the user's path and test for each of PROGNAME-LIST
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443 test -z "$as_dir" && as_dir=.
4444 for ac_prog in grep ggrep; do
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4447 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4448 # Check for GNU ac_path_GREP and select it if it is found.
4449 # Check for GNU $ac_path_GREP
4450 case `"$ac_path_GREP" --version 2>&1` in
4452 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4455 $as_echo_n 0123456789 >"conftest.in"
4458 cat "conftest.in" "conftest.in" >"conftest.tmp"
4459 mv "conftest.tmp" "conftest.in"
4460 cp "conftest.in" "conftest.nl"
4461 $as_echo 'GREP' >> "conftest.nl"
4462 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464 as_fn_arith $ac_count + 1 && ac_count=$as_val
4465 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4466 # Best one so far, save it but keep looking for a better one
4467 ac_cv_path_GREP="$ac_path_GREP"
4468 ac_path_GREP_max=$ac_count
4470 # 10*(2^10) chars as input seems more than enough
4471 test $ac_count -gt 10 && break
4473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476 $ac_path_GREP_found && break 3
4481 if test -z "$ac_cv_path_GREP"; then
4482 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4485 ac_cv_path_GREP=$GREP
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4490 $as_echo "$ac_cv_path_GREP" >&6; }
4491 GREP="$ac_cv_path_GREP"
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4495 $as_echo_n "checking for egrep... " >&6; }
4496 if ${ac_cv_path_EGREP+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4500 then ac_cv_path_EGREP="$GREP -E"
4502 if test -z "$EGREP"; then
4503 ac_path_EGREP_found=false
4504 # Loop through the user's path and test for each of PROGNAME-LIST
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4509 test -z "$as_dir" && as_dir=.
4510 for ac_prog in egrep; do
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4513 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4514 # Check for GNU ac_path_EGREP and select it if it is found.
4515 # Check for GNU $ac_path_EGREP
4516 case `"$ac_path_EGREP" --version 2>&1` in
4518 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4521 $as_echo_n 0123456789 >"conftest.in"
4524 cat "conftest.in" "conftest.in" >"conftest.tmp"
4525 mv "conftest.tmp" "conftest.in"
4526 cp "conftest.in" "conftest.nl"
4527 $as_echo 'EGREP' >> "conftest.nl"
4528 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530 as_fn_arith $ac_count + 1 && ac_count=$as_val
4531 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4532 # Best one so far, save it but keep looking for a better one
4533 ac_cv_path_EGREP="$ac_path_EGREP"
4534 ac_path_EGREP_max=$ac_count
4536 # 10*(2^10) chars as input seems more than enough
4537 test $ac_count -gt 10 && break
4539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4542 $ac_path_EGREP_found && break 3
4547 if test -z "$ac_cv_path_EGREP"; then
4548 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4551 ac_cv_path_EGREP=$EGREP
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4557 $as_echo "$ac_cv_path_EGREP" >&6; }
4558 EGREP="$ac_cv_path_EGREP"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4562 $as_echo_n "checking for fgrep... " >&6; }
4563 if ${ac_cv_path_FGREP+:} false; then :
4564 $as_echo_n "(cached) " >&6
4566 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4567 then ac_cv_path_FGREP="$GREP -F"
4569 if test -z "$FGREP"; then
4570 ac_path_FGREP_found=false
4571 # Loop through the user's path and test for each of PROGNAME-LIST
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4576 test -z "$as_dir" && as_dir=.
4577 for ac_prog in fgrep; do
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4580 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4581 # Check for GNU ac_path_FGREP and select it if it is found.
4582 # Check for GNU $ac_path_FGREP
4583 case `"$ac_path_FGREP" --version 2>&1` in
4585 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4588 $as_echo_n 0123456789 >"conftest.in"
4591 cat "conftest.in" "conftest.in" >"conftest.tmp"
4592 mv "conftest.tmp" "conftest.in"
4593 cp "conftest.in" "conftest.nl"
4594 $as_echo 'FGREP' >> "conftest.nl"
4595 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597 as_fn_arith $ac_count + 1 && ac_count=$as_val
4598 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4599 # Best one so far, save it but keep looking for a better one
4600 ac_cv_path_FGREP="$ac_path_FGREP"
4601 ac_path_FGREP_max=$ac_count
4603 # 10*(2^10) chars as input seems more than enough
4604 test $ac_count -gt 10 && break
4606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4609 $ac_path_FGREP_found && break 3
4614 if test -z "$ac_cv_path_FGREP"; then
4615 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4618 ac_cv_path_FGREP=$FGREP
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4624 $as_echo "$ac_cv_path_FGREP" >&6; }
4625 FGREP="$ac_cv_path_FGREP"
4628 test -z "$GREP" && GREP=grep
4648 # Check whether --with-gnu-ld was given.
4649 if test "${with_gnu_ld+set}" = set; then :
4650 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4656 if test "$GCC" = yes; then
4657 # Check if gcc -print-prog-name=ld gives a path.
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4659 $as_echo_n "checking for ld used by $CC... " >&6; }
4662 # gcc leaves a trailing carriage return which upsets mingw
4663 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4665 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4668 # Accept absolute paths.
4670 re_direlt='/[^/][^/]*/\.\./'
4671 # Canonicalize the pathname of ld
4672 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4673 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4674 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4676 test -z "$LD" && LD="$ac_prog"
4679 # If it fails, then pretend we aren't using GCC.
4683 # If it is relative, then search for the first ld in PATH.
4687 elif test "$with_gnu_ld" = yes; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4689 $as_echo_n "checking for GNU ld... " >&6; }
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4692 $as_echo_n "checking for non-GNU ld... " >&6; }
4694 if ${lt_cv_path_LD+:} false; then :
4695 $as_echo_n "(cached) " >&6
4697 if test -z "$LD"; then
4698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4699 for ac_dir in $PATH; do
4701 test -z "$ac_dir" && ac_dir=.
4702 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4703 lt_cv_path_LD="$ac_dir/$ac_prog"
4704 # Check to see if the program is GNU ld. I'd rather use --version,
4705 # but apparently some variants of GNU ld only accept -v.
4706 # Break only if it was the GNU/non-GNU ld that we prefer.
4707 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4708 *GNU* | *'with BFD'*)
4709 test "$with_gnu_ld" != no && break
4712 test "$with_gnu_ld" != yes && break
4719 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4724 if test -n "$LD"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4726 $as_echo "$LD" >&6; }
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4731 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4733 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4734 if ${lt_cv_prog_gnu_ld+:} false; then :
4735 $as_echo_n "(cached) " >&6
4737 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4738 case `$LD -v 2>&1 </dev/null` in
4739 *GNU* | *'with BFD'*)
4740 lt_cv_prog_gnu_ld=yes
4743 lt_cv_prog_gnu_ld=no
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4748 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4749 with_gnu_ld=$lt_cv_prog_gnu_ld
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4760 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4761 if ${lt_cv_path_NM+:} false; then :
4762 $as_echo_n "(cached) " >&6
4764 if test -n "$NM"; then
4765 # Let the user override the test.
4768 lt_nm_to_check="${ac_tool_prefix}nm"
4769 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4770 lt_nm_to_check="$lt_nm_to_check nm"
4772 for lt_tmp_nm in $lt_nm_to_check; do
4773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4774 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4776 test -z "$ac_dir" && ac_dir=.
4777 tmp_nm="$ac_dir/$lt_tmp_nm"
4778 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4779 # Check to see if the nm accepts a BSD-compat flag.
4780 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4781 # nm: unknown option "B" ignored
4782 # Tru64's nm complains that /dev/null is an invalid object file
4783 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4784 */dev/null* | *'Invalid file or object type'*)
4785 lt_cv_path_NM="$tmp_nm -B"
4789 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4791 lt_cv_path_NM="$tmp_nm -p"
4795 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4796 continue # so that we can try to find one that supports BSD flags
4805 : ${lt_cv_path_NM=no}
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4809 $as_echo "$lt_cv_path_NM" >&6; }
4810 if test "$lt_cv_path_NM" != "no"; then
4813 # Didn't find any BSD compatible name lister, look for dumpbin.
4814 if test -n "$DUMPBIN"; then :
4815 # Let the user override the test.
4817 if test -n "$ac_tool_prefix"; then
4818 for ac_prog in dumpbin "link -dump"
4820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_prog_DUMPBIN+:} false; then :
4825 $as_echo_n "(cached) " >&6
4827 if test -n "$DUMPBIN"; then
4828 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 DUMPBIN=$ac_cv_prog_DUMPBIN
4848 if test -n "$DUMPBIN"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4850 $as_echo "$DUMPBIN" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4857 test -n "$DUMPBIN" && break
4860 if test -z "$DUMPBIN"; then
4861 ac_ct_DUMPBIN=$DUMPBIN
4862 for ac_prog in dumpbin "link -dump"
4864 # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy $ac_prog; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4869 $as_echo_n "(cached) " >&6
4871 if test -n "$ac_ct_DUMPBIN"; then
4872 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4892 if test -n "$ac_ct_DUMPBIN"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4894 $as_echo "$ac_ct_DUMPBIN" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4901 test -n "$ac_ct_DUMPBIN" && break
4904 if test "x$ac_ct_DUMPBIN" = x; then
4907 case $cross_compiling:$ac_tool_warned in
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4913 DUMPBIN=$ac_ct_DUMPBIN
4917 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4919 DUMPBIN="$DUMPBIN -symbols"
4927 if test "$DUMPBIN" != ":"; then
4931 test -z "$NM" && NM=nm
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4939 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4940 if ${lt_cv_nm_interface+:} false; then :
4941 $as_echo_n "(cached) " >&6
4943 lt_cv_nm_interface="BSD nm"
4944 echo "int some_variable = 0;" > conftest.$ac_ext
4945 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4946 (eval "$ac_compile" 2>conftest.err)
4947 cat conftest.err >&5
4948 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4949 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4950 cat conftest.err >&5
4951 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4952 cat conftest.out >&5
4953 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4954 lt_cv_nm_interface="MS dumpbin"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4959 $as_echo "$lt_cv_nm_interface" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4962 $as_echo_n "checking whether ln -s works... " >&6; }
4964 if test "$LN_S" = "ln -s"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966 $as_echo "yes" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4969 $as_echo "no, using $LN_S" >&6; }
4972 # find the maximum length of command line arguments
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4974 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4975 if ${lt_cv_sys_max_cmd_len+:} false; then :
4976 $as_echo_n "(cached) " >&6
4983 # On DJGPP, this test can blow up pretty badly due to problems in libc
4984 # (any single argument exceeding 2000 bytes causes a buffer overrun
4985 # during glob expansion). Even if it were fixed, the result of this
4986 # check would be larger than it should be.
4987 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4991 # Under GNU Hurd, this test is not required because there is
4992 # no limit to the length of command line arguments.
4993 # Libtool will interpret -1 as no limit whatsoever
4994 lt_cv_sys_max_cmd_len=-1;
4997 cygwin* | mingw* | cegcc*)
4998 # On Win9x/ME, this test blows up -- it succeeds, but takes
4999 # about 5 minutes as the teststring grows exponentially.
5000 # Worse, since 9x/ME are not pre-emptively multitasking,
5001 # you end up with a "frozen" computer, even though with patience
5002 # the test eventually succeeds (with a max line length of 256k).
5003 # Instead, let's just punt: use the minimum linelength reported by
5004 # all of the supported platforms: 8192 (on NT/2K/XP).
5005 lt_cv_sys_max_cmd_len=8192;
5009 # On MiNT this can take a long time and run out of memory.
5010 lt_cv_sys_max_cmd_len=8192;
5014 # On AmigaOS with pdksh, this test takes hours, literally.
5015 # So we just punt and use a minimum line length of 8192.
5016 lt_cv_sys_max_cmd_len=8192;
5019 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5020 # This has been around since 386BSD, at least. Likely further.
5021 if test -x /sbin/sysctl; then
5022 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5023 elif test -x /usr/sbin/sysctl; then
5024 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5026 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5028 # And add a safety zone
5029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5034 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5035 lt_cv_sys_max_cmd_len=196608
5039 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5040 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5041 # nice to cause kernel panics so lets avoid the loop below.
5042 # First set a reasonable default.
5043 lt_cv_sys_max_cmd_len=16384
5045 if test -x /sbin/sysconfig; then
5046 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5047 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5052 lt_cv_sys_max_cmd_len=102400
5054 sysv5* | sco5v6* | sysv4.2uw2*)
5055 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5056 if test -n "$kargmax"; then
5057 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5059 lt_cv_sys_max_cmd_len=32768
5063 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5064 if test -n "$lt_cv_sys_max_cmd_len"; then
5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5068 # Make teststring a little bigger before we do anything with it.
5069 # a 1K string should be a reasonable start.
5070 for i in 1 2 3 4 5 6 7 8 ; do
5071 teststring=$teststring$teststring
5073 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5074 # If test is not a shell built-in, we'll probably end up computing a
5075 # maximum length that is only half of the actual maximum length, but
5077 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5078 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5079 test $i != 17 # 1/2 MB should be enough
5082 teststring=$teststring$teststring
5084 # Only check the string length outside the loop.
5085 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5087 # Add a significant safety factor because C++ compilers can tack on
5088 # massive amounts of additional arguments before passing them to the
5089 # linker. It appears as though 1/2 is a usable value.
5090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5097 if test -n $lt_cv_sys_max_cmd_len ; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5099 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5102 $as_echo "none" >&6; }
5104 max_cmd_len=$lt_cv_sys_max_cmd_len
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5116 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5117 # Try some XSI features
5120 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5122 && eval 'test $(( 1 + 1 )) -eq 2 \
5123 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5126 $as_echo "$xsi_shell" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5130 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5132 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5134 && lt_shell_append=yes
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5136 $as_echo "$lt_shell_append" >&6; }
5139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5149 # test EBCDIC or ASCII
5150 case `echo X|tr X '\101'` in
5151 A) # ASCII based system
5152 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5153 lt_SP2NL='tr \040 \012'
5154 lt_NL2SP='tr \015\012 \040\040'
5156 *) # EBCDIC based system
5157 lt_SP2NL='tr \100 \n'
5158 lt_NL2SP='tr \r\n \100\100'
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5171 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5172 if ${lt_cv_to_host_file_cmd+:} false; then :
5173 $as_echo_n "(cached) " >&6
5178 *-*-mingw* ) # actually msys
5179 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5182 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5184 * ) # otherwise, assume *nix
5185 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5191 *-*-mingw* ) # actually msys
5192 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5195 lt_cv_to_host_file_cmd=func_convert_file_noop
5197 * ) # otherwise, assume *nix
5198 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5202 * ) # unhandled hosts (and "normal" native builds)
5203 lt_cv_to_host_file_cmd=func_convert_file_noop
5209 to_host_file_cmd=$lt_cv_to_host_file_cmd
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5211 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5218 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5219 if ${lt_cv_to_tool_file_cmd+:} false; then :
5220 $as_echo_n "(cached) " >&6
5222 #assume ordinary cross tools, or native build.
5223 lt_cv_to_tool_file_cmd=func_convert_file_noop
5227 *-*-mingw* ) # actually msys
5228 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5236 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5238 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5245 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5246 if ${lt_cv_ld_reload_flag+:} false; then :
5247 $as_echo_n "(cached) " >&6
5249 lt_cv_ld_reload_flag='-r'
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5252 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5253 reload_flag=$lt_cv_ld_reload_flag
5254 case $reload_flag in
5256 *) reload_flag=" $reload_flag" ;;
5258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5260 cygwin* | mingw* | pw32* | cegcc*)
5261 if test "$GCC" != yes; then
5266 if test "$GCC" = yes; then
5267 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_OBJDUMP+:} false; then :
5288 $as_echo_n "(cached) " >&6
5290 if test -n "$OBJDUMP"; then
5291 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 OBJDUMP=$ac_cv_prog_OBJDUMP
5311 if test -n "$OBJDUMP"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5313 $as_echo "$OBJDUMP" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5321 if test -z "$ac_cv_prog_OBJDUMP"; then
5322 ac_ct_OBJDUMP=$OBJDUMP
5323 # Extract the first word of "objdump", so it can be a program name with args.
5324 set dummy objdump; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5328 $as_echo_n "(cached) " >&6
5330 if test -n "$ac_ct_OBJDUMP"; then
5331 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5351 if test -n "$ac_ct_OBJDUMP"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5353 $as_echo "$ac_ct_OBJDUMP" >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5359 if test "x$ac_ct_OBJDUMP" = x; then
5362 case $cross_compiling:$ac_tool_warned in
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5368 OBJDUMP=$ac_ct_OBJDUMP
5371 OBJDUMP="$ac_cv_prog_OBJDUMP"
5374 test -z "$OBJDUMP" && OBJDUMP=objdump
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5385 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5386 if ${lt_cv_deplibs_check_method+:} false; then :
5387 $as_echo_n "(cached) " >&6
5389 lt_cv_file_magic_cmd='$MAGIC_CMD'
5390 lt_cv_file_magic_test_file=
5391 lt_cv_deplibs_check_method='unknown'
5392 # Need to set the preceding variable on all platforms that support
5393 # interlibrary dependencies.
5394 # 'none' -- dependencies not supported.
5395 # `unknown' -- same as none, but documents that we really don't know.
5396 # 'pass_all' -- all dependencies passed with no checks.
5397 # 'test_compile' -- check by making test program.
5398 # 'file_magic [[regex]]' -- check by looking for files in library path
5399 # which responds to the $file_magic_cmd with a given extended regex.
5400 # If you have `file' or equivalent on your system and you're not sure
5401 # whether `pass_all' will *always* work, you probably want this one.
5405 lt_cv_deplibs_check_method=pass_all
5409 lt_cv_deplibs_check_method=pass_all
5413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5414 lt_cv_file_magic_cmd='/usr/bin/file -L'
5415 lt_cv_file_magic_test_file=/shlib/libc.so
5419 # func_win32_libid is a shell function defined in ltmain.sh
5420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5421 lt_cv_file_magic_cmd='func_win32_libid'
5425 # Base MSYS/MinGW do not provide the 'file' command needed by
5426 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5427 # unless we find 'file', for example because we are cross-compiling.
5428 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5429 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431 lt_cv_file_magic_cmd='func_win32_libid'
5433 # Keep this pattern in sync with the one in func_win32_libid.
5434 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5435 lt_cv_file_magic_cmd='$OBJDUMP -f'
5440 # use the weaker test based on 'objdump'. See mingw*.
5441 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5442 lt_cv_file_magic_cmd='$OBJDUMP -f'
5445 darwin* | rhapsody*)
5446 lt_cv_deplibs_check_method=pass_all
5449 freebsd* | dragonfly*)
5450 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5453 # Not sure whether the presence of OpenBSD here was a mistake.
5454 # Let's accept both of them until this is cleared up.
5455 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5456 lt_cv_file_magic_cmd=/usr/bin/file
5457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5461 lt_cv_deplibs_check_method=pass_all
5466 lt_cv_deplibs_check_method=pass_all
5470 lt_cv_deplibs_check_method=pass_all
5473 hpux10.20* | hpux11*)
5474 lt_cv_file_magic_cmd=/usr/bin/file
5477 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5478 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5481 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]'
5482 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5485 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5486 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5492 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5496 irix5* | irix6* | nonstopux*)
5498 *-32|*"-32 ") libmagic=32-bit;;
5499 *-n32|*"-n32 ") libmagic=N32;;
5500 *-64|*"-64 ") libmagic=64-bit;;
5501 *) libmagic=never-match;;
5503 lt_cv_deplibs_check_method=pass_all
5506 # This must be Linux ELF.
5507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5508 lt_cv_deplibs_check_method=pass_all
5512 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5521 lt_cv_file_magic_cmd=/usr/bin/file
5522 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5526 lt_cv_deplibs_check_method=pass_all
5530 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5537 osf3* | osf4* | osf5*)
5538 lt_cv_deplibs_check_method=pass_all
5542 lt_cv_deplibs_check_method=pass_all
5546 lt_cv_deplibs_check_method=pass_all
5549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5550 lt_cv_deplibs_check_method=pass_all
5554 case $host_vendor in
5556 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]'
5557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5560 lt_cv_deplibs_check_method=pass_all
5563 lt_cv_file_magic_cmd='/bin/file'
5564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5567 lt_cv_file_magic_cmd='/bin/file'
5568 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5569 lt_cv_file_magic_test_file=/lib/libc.so
5572 lt_cv_deplibs_check_method=pass_all
5575 lt_cv_deplibs_check_method=pass_all
5581 lt_cv_deplibs_check_method=pass_all
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5587 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5591 if test "$build" = "$host"; then
5594 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5597 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5603 file_magic_cmd=$lt_cv_file_magic_cmd
5604 deplibs_check_method=$lt_cv_deplibs_check_method
5605 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5628 if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_DLLTOOL+:} false; then :
5634 $as_echo_n "(cached) " >&6
5636 if test -n "$DLLTOOL"; then
5637 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 DLLTOOL=$ac_cv_prog_DLLTOOL
5657 if test -n "$DLLTOOL"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5659 $as_echo "$DLLTOOL" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5667 if test -z "$ac_cv_prog_DLLTOOL"; then
5668 ac_ct_DLLTOOL=$DLLTOOL
5669 # Extract the first word of "dlltool", so it can be a program name with args.
5670 set dummy dlltool; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5674 $as_echo_n "(cached) " >&6
5676 if test -n "$ac_ct_DLLTOOL"; then
5677 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5697 if test -n "$ac_ct_DLLTOOL"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5699 $as_echo "$ac_ct_DLLTOOL" >&6; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5705 if test "x$ac_ct_DLLTOOL" = x; then
5708 case $cross_compiling:$ac_tool_warned in
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712 ac_tool_warned=yes ;;
5714 DLLTOOL=$ac_ct_DLLTOOL
5717 DLLTOOL="$ac_cv_prog_DLLTOOL"
5720 test -z "$DLLTOOL" && DLLTOOL=dlltool
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5732 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5733 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5734 $as_echo_n "(cached) " >&6
5736 lt_cv_sharedlib_from_linklib_cmd='unknown'
5739 cygwin* | mingw* | pw32* | cegcc*)
5740 # two different shell functions defined in ltmain.sh
5741 # decide which to use based on capabilities of $DLLTOOL
5742 case `$DLLTOOL --help 2>&1` in
5743 *--identify-strict*)
5744 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5747 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5752 # fallback: assume linklib IS sharedlib
5753 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5759 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5760 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5761 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5770 if test -n "$ac_tool_prefix"; then
5773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if ${ac_cv_prog_AR+:} false; then :
5778 $as_echo_n "(cached) " >&6
5780 if test -n "$AR"; then
5781 ac_cv_prog_AR="$AR" # Let the user override the test.
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 if test -n "$AR"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5803 $as_echo "$AR" >&6; }
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5810 test -n "$AR" && break
5813 if test -z "$AR"; then
5817 # Extract the first word of "$ac_prog", so it can be a program name with args.
5818 set dummy $ac_prog; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5822 $as_echo_n "(cached) " >&6
5824 if test -n "$ac_ct_AR"; then
5825 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834 ac_cv_prog_ac_ct_AR="$ac_prog"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5845 if test -n "$ac_ct_AR"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5847 $as_echo "$ac_ct_AR" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5854 test -n "$ac_ct_AR" && break
5857 if test "x$ac_ct_AR" = x; then
5860 case $cross_compiling:$ac_tool_warned in
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5864 ac_tool_warned=yes ;;
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5884 $as_echo_n "checking for archiver @FILE support... " >&6; }
5885 if ${lt_cv_ar_at_file+:} false; then :
5886 $as_echo_n "(cached) " >&6
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901 echo conftest.$ac_objext > conftest.lst
5902 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5904 (eval $lt_ar_try) 2>&5
5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; }
5908 if test "$ac_status" -eq 0; then
5909 # Ensure the archiver fails upon bogus file names.
5910 rm -f conftest.$ac_objext libconftest.a
5911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5912 (eval $lt_ar_try) 2>&5
5914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915 test $ac_status = 0; }
5916 if test "$ac_status" -ne 0; then
5920 rm -f conftest.* libconftest.a
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5927 $as_echo "$lt_cv_ar_at_file" >&6; }
5929 if test "x$lt_cv_ar_at_file" = xno; then
5932 archiver_list_spec=$lt_cv_ar_at_file
5941 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}strip; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_STRIP+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 if test -n "$STRIP"; then
5950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 STRIP=$ac_cv_prog_STRIP
5970 if test -n "$STRIP"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5972 $as_echo "$STRIP" >&6; }
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5980 if test -z "$ac_cv_prog_STRIP"; then
5982 # Extract the first word of "strip", so it can be a program name with args.
5983 set dummy strip; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5987 $as_echo_n "(cached) " >&6
5989 if test -n "$ac_ct_STRIP"; then
5990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_ac_ct_STRIP="strip"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6010 if test -n "$ac_ct_STRIP"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6012 $as_echo "$ac_ct_STRIP" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6018 if test "x$ac_ct_STRIP" = x; then
6021 case $cross_compiling:$ac_tool_warned in
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6030 STRIP="$ac_cv_prog_STRIP"
6033 test -z "$STRIP" && STRIP=:
6040 if test -n "$ac_tool_prefix"; then
6041 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_RANLIB+:} false; then :
6046 $as_echo_n "(cached) " >&6
6048 if test -n "$RANLIB"; then
6049 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 RANLIB=$ac_cv_prog_RANLIB
6069 if test -n "$RANLIB"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6071 $as_echo "$RANLIB" >&6; }
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6079 if test -z "$ac_cv_prog_RANLIB"; then
6080 ac_ct_RANLIB=$RANLIB
6081 # Extract the first word of "ranlib", so it can be a program name with args.
6082 set dummy ranlib; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6086 $as_echo_n "(cached) " >&6
6088 if test -n "$ac_ct_RANLIB"; then
6089 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098 ac_cv_prog_ac_ct_RANLIB="ranlib"
6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6109 if test -n "$ac_ct_RANLIB"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6111 $as_echo "$ac_ct_RANLIB" >&6; }
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6117 if test "x$ac_ct_RANLIB" = x; then
6120 case $cross_compiling:$ac_tool_warned in
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6126 RANLIB=$ac_ct_RANLIB
6129 RANLIB="$ac_cv_prog_RANLIB"
6132 test -z "$RANLIB" && RANLIB=:
6139 # Determine commands to create old-style static archives.
6140 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6141 old_postinstall_cmds='chmod 644 $oldlib'
6142 old_postuninstall_cmds=
6144 if test -n "$RANLIB"; then
6147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6150 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6153 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6158 lock_old_archive_extraction=yes ;;
6160 lock_old_archive_extraction=no ;;
6201 # If no C compiler was specified, use CC.
6204 # If no C compiler flags were specified, use CFLAGS.
6205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6207 # Allow CC to be a program name with arguments.
6211 # Check for command to grab the raw symbol name followed by C symbol from nm.
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6213 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6214 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6215 $as_echo_n "(cached) " >&6
6218 # These are sane defaults that work on at least a few old systems.
6219 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6221 # Character class describing NM global symbol codes.
6222 symcode='[BCDEGRST]'
6224 # Regexp to match symbols that can be accessed directly from C.
6225 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6227 # Define system-specific variables.
6232 cygwin* | mingw* | pw32* | cegcc*)
6233 symcode='[ABCDGISTW]'
6236 if test "$host_cpu" = ia64; then
6237 symcode='[ABCDEGRST]'
6241 symcode='[BCDEGRST]'
6244 symcode='[BCDEGQRST]'
6255 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6263 # If we're using GNU nm, then use its standard symbol codes.
6264 case `$NM -V 2>&1` in
6265 *GNU* | *'with BFD'*)
6266 symcode='[ABCDGIRSTW]' ;;
6269 # Transform an extracted symbol line into a proper C declaration.
6270 # Some systems (esp. on ia64) link data and code symbols differently,
6271 # so use this general approach.
6272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6274 # Transform an extracted symbol line into symbol name and symbol address
6275 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6276 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'"
6278 # Handle CRLF in mingw tool chain
6282 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6286 # Try without a prefix underscore, then with it.
6287 for ac_symprfx in "" "_"; do
6289 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6290 symxfrm="\\1 $ac_symprfx\\2 \\2"
6292 # Write the raw and C identifiers.
6293 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6294 # Fake it for dumpbin and say T for any non-static function
6295 # and D for any global variable.
6296 # Also find C++ and __fastcall symbols from MSVC++,
6297 # which start with @ or ?.
6298 lt_cv_sys_global_symbol_pipe="$AWK '"\
6299 " {last_section=section; section=\$ 3};"\
6300 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6301 " \$ 0!~/External *\|/{next};"\
6302 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6303 " {if(hide[section]) next};"\
6304 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6305 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6306 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6307 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6308 " ' prfx=^$ac_symprfx"
6310 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6312 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6314 # Check to see that the pipe works correctly.
6318 cat > conftest.$ac_ext <<_LT_EOF
6323 void nm_test_func(void);
6324 void nm_test_func(void){}
6328 int main(){nm_test_var='a';nm_test_func();return(0);}
6331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6332 (eval $ac_compile) 2>&5
6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335 test $ac_status = 0; }; then
6336 # Now try to grab the symbols.
6338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6339 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; } && test -s "$nlist"; then
6343 # Try sorting and uniquifying the output.
6344 if sort "$nlist" | uniq > "$nlist"T; then
6345 mv -f "$nlist"T "$nlist"
6350 # Make sure that we snagged all the symbols we need.
6351 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6352 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6353 cat <<_LT_EOF > conftest.$ac_ext
6354 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6355 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6356 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6357 relocations are performed -- see ld's documentation on pseudo-relocs. */
6358 # define LT_DLSYM_CONST
6359 #elif defined(__osf__)
6360 /* This system does not cope well with relocations in const data. */
6361 # define LT_DLSYM_CONST
6363 # define LT_DLSYM_CONST const
6371 # Now generate the symbol file.
6372 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6374 cat <<_LT_EOF >> conftest.$ac_ext
6376 /* The mapping between symbol names and symbols. */
6377 LT_DLSYM_CONST struct {
6381 lt__PROGRAM__LTX_preloaded_symbols[] =
6383 { "@PROGRAM@", (void *) 0 },
6385 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6386 cat <<\_LT_EOF >> conftest.$ac_ext
6390 /* This works around a problem in FreeBSD linker */
6391 #ifdef FREEBSD_WORKAROUND
6392 static const void *lt_preloaded_setup() {
6393 return lt__PROGRAM__LTX_preloaded_symbols;
6401 # Now try linking the two files.
6402 mv conftest.$ac_objext conftstm.$ac_objext
6403 lt_globsym_save_LIBS=$LIBS
6404 lt_globsym_save_CFLAGS=$CFLAGS
6405 LIBS="conftstm.$ac_objext"
6406 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6408 (eval $ac_link) 2>&5
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6414 LIBS=$lt_globsym_save_LIBS
6415 CFLAGS=$lt_globsym_save_CFLAGS
6417 echo "cannot find nm_test_func in $nlist" >&5
6420 echo "cannot find nm_test_var in $nlist" >&5
6423 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6426 echo "$progname: failed program was:" >&5
6427 cat conftest.$ac_ext >&5
6429 rm -rf conftest* conftst*
6431 # Do not use the global_symbol_pipe unless it works.
6432 if test "$pipe_works" = yes; then
6435 lt_cv_sys_global_symbol_pipe=
6441 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6442 lt_cv_sys_global_symbol_to_cdecl=
6444 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6446 $as_echo "failed" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6449 $as_echo "ok" >&6; }
6452 # Response file support.
6453 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6454 nm_file_list_spec='@'
6455 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6456 nm_file_list_spec='@'
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6486 $as_echo_n "checking for sysroot... " >&6; }
6488 # Check whether --with-sysroot was given.
6489 if test "${with_sysroot+set}" = set; then :
6490 withval=$with_sysroot;
6497 case ${with_sysroot} in #(
6499 if test "$GCC" = yes; then
6500 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6504 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6510 $as_echo "${with_sysroot}" >&6; }
6511 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6516 $as_echo "${lt_sysroot:-no}" >&6; }
6522 # Check whether --enable-libtool-lock was given.
6523 if test "${enable_libtool_lock+set}" = set; then :
6524 enableval=$enable_libtool_lock;
6527 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6529 # Some flags need to be propagated to the compiler or linker for good
6533 # Find out which ABI we are using.
6534 echo 'int i;' > conftest.$ac_ext
6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6536 (eval $ac_compile) 2>&5
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; }; then
6540 case `/usr/bin/file conftest.$ac_objext` in
6552 # Find out which ABI we are using.
6553 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6555 (eval $ac_compile) 2>&5
6557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6558 test $ac_status = 0; }; then
6559 if test "$lt_cv_prog_gnu_ld" = yes; then
6560 case `/usr/bin/file conftest.$ac_objext` in
6562 LD="${LD-ld} -melf32bsmip"
6565 LD="${LD-ld} -melf32bmipn32"
6568 LD="${LD-ld} -melf64bmip"
6572 case `/usr/bin/file conftest.$ac_objext` in
6588 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6589 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6590 # Find out which ABI we are using.
6591 echo 'int i;' > conftest.$ac_ext
6592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593 (eval $ac_compile) 2>&5
6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596 test $ac_status = 0; }; then
6597 case `/usr/bin/file conftest.o` in
6600 x86_64-*kfreebsd*-gnu)
6601 LD="${LD-ld} -m elf_i386_fbsd"
6604 LD="${LD-ld} -m elf_i386"
6606 ppc64-*linux*|powerpc64-*linux*)
6607 LD="${LD-ld} -m elf32ppclinux"
6610 LD="${LD-ld} -m elf_s390"
6613 LD="${LD-ld} -m elf32_sparc"
6619 x86_64-*kfreebsd*-gnu)
6620 LD="${LD-ld} -m elf_x86_64_fbsd"
6623 LD="${LD-ld} -m elf_x86_64"
6625 ppc*-*linux*|powerpc*-*linux*)
6626 LD="${LD-ld} -m elf64ppc"
6628 s390*-*linux*|s390*-*tpf*)
6629 LD="${LD-ld} -m elf64_s390"
6632 LD="${LD-ld} -m elf64_sparc"
6642 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6643 SAVE_CFLAGS="$CFLAGS"
6644 CFLAGS="$CFLAGS -belf"
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6646 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6647 if ${lt_cv_cc_needs_belf+:} false; then :
6648 $as_echo_n "(cached) " >&6
6651 ac_cpp='$CPP $CPPFLAGS'
6652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6667 if ac_fn_c_try_link "$LINENO"; then :
6668 lt_cv_cc_needs_belf=yes
6670 lt_cv_cc_needs_belf=no
6672 rm -f core conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
6675 ac_cpp='$CPP $CPPFLAGS'
6676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6682 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6683 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6684 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6685 CFLAGS="$SAVE_CFLAGS"
6689 # Find out which ABI we are using.
6690 echo 'int i;' > conftest.$ac_ext
6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692 (eval $ac_compile) 2>&5
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }; then
6696 case `/usr/bin/file conftest.o` in
6698 case $lt_cv_prog_gnu_ld in
6699 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6701 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6713 need_locks="$enable_libtool_lock"
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}mt; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 if test -n "$MANIFEST_TOOL"; then
6724 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6744 if test -n "$MANIFEST_TOOL"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6746 $as_echo "$MANIFEST_TOOL" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6754 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6755 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6756 # Extract the first word of "mt", so it can be a program name with args.
6757 set dummy mt; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6761 $as_echo_n "(cached) " >&6
6763 if test -n "$ac_ct_MANIFEST_TOOL"; then
6764 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6784 if test -n "$ac_ct_MANIFEST_TOOL"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6786 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6792 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6795 case $cross_compiling:$ac_tool_warned in
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6801 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6804 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6807 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6809 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6810 if ${lt_cv_path_mainfest_tool+:} false; then :
6811 $as_echo_n "(cached) " >&6
6813 lt_cv_path_mainfest_tool=no
6814 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6815 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6816 cat conftest.err >&5
6817 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6818 lt_cv_path_mainfest_tool=yes
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6823 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6824 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6834 rhapsody* | darwin*)
6835 if test -n "$ac_tool_prefix"; then
6836 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 if test -n "$DSYMUTIL"; then
6844 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6864 if test -n "$DSYMUTIL"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6866 $as_echo "$DSYMUTIL" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6874 if test -z "$ac_cv_prog_DSYMUTIL"; then
6875 ac_ct_DSYMUTIL=$DSYMUTIL
6876 # Extract the first word of "dsymutil", so it can be a program name with args.
6877 set dummy dsymutil; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 if test -n "$ac_ct_DSYMUTIL"; then
6884 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6904 if test -n "$ac_ct_DSYMUTIL"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6906 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6912 if test "x$ac_ct_DSYMUTIL" = x; then
6915 case $cross_compiling:$ac_tool_warned in
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6921 DSYMUTIL=$ac_ct_DSYMUTIL
6924 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6927 if test -n "$ac_tool_prefix"; then
6928 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if ${ac_cv_prog_NMEDIT+:} false; then :
6933 $as_echo_n "(cached) " >&6
6935 if test -n "$NMEDIT"; then
6936 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 NMEDIT=$ac_cv_prog_NMEDIT
6956 if test -n "$NMEDIT"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6958 $as_echo "$NMEDIT" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6966 if test -z "$ac_cv_prog_NMEDIT"; then
6967 ac_ct_NMEDIT=$NMEDIT
6968 # Extract the first word of "nmedit", so it can be a program name with args.
6969 set dummy nmedit; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6973 $as_echo_n "(cached) " >&6
6975 if test -n "$ac_ct_NMEDIT"; then
6976 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6996 if test -n "$ac_ct_NMEDIT"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6998 $as_echo "$ac_ct_NMEDIT" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7004 if test "x$ac_ct_NMEDIT" = x; then
7007 case $cross_compiling:$ac_tool_warned in
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011 ac_tool_warned=yes ;;
7013 NMEDIT=$ac_ct_NMEDIT
7016 NMEDIT="$ac_cv_prog_NMEDIT"
7019 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_LIPO+:} false; then :
7025 $as_echo_n "(cached) " >&6
7027 if test -n "$LIPO"; then
7028 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 LIPO=$ac_cv_prog_LIPO
7048 if test -n "$LIPO"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7050 $as_echo "$LIPO" >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7058 if test -z "$ac_cv_prog_LIPO"; then
7060 # Extract the first word of "lipo", so it can be a program name with args.
7061 set dummy lipo; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7065 $as_echo_n "(cached) " >&6
7067 if test -n "$ac_ct_LIPO"; then
7068 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_ac_ct_LIPO="lipo"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7088 if test -n "$ac_ct_LIPO"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7090 $as_echo "$ac_ct_LIPO" >&6; }
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7096 if test "x$ac_ct_LIPO" = x; then
7099 case $cross_compiling:$ac_tool_warned in
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7108 LIPO="$ac_cv_prog_LIPO"
7111 if test -n "$ac_tool_prefix"; then
7112 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}otool; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_prog_OTOOL+:} false; then :
7117 $as_echo_n "(cached) " >&6
7119 if test -n "$OTOOL"; then
7120 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 OTOOL=$ac_cv_prog_OTOOL
7140 if test -n "$OTOOL"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7142 $as_echo "$OTOOL" >&6; }
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7150 if test -z "$ac_cv_prog_OTOOL"; then
7152 # Extract the first word of "otool", so it can be a program name with args.
7153 set dummy otool; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7157 $as_echo_n "(cached) " >&6
7159 if test -n "$ac_ct_OTOOL"; then
7160 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_prog_ac_ct_OTOOL="otool"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7180 if test -n "$ac_ct_OTOOL"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7182 $as_echo "$ac_ct_OTOOL" >&6; }
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7188 if test "x$ac_ct_OTOOL" = x; then
7191 case $cross_compiling:$ac_tool_warned in
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195 ac_tool_warned=yes ;;
7200 OTOOL="$ac_cv_prog_OTOOL"
7203 if test -n "$ac_tool_prefix"; then
7204 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7205 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_OTOOL64+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 if test -n "$OTOOL64"; then
7212 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 OTOOL64=$ac_cv_prog_OTOOL64
7232 if test -n "$OTOOL64"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7234 $as_echo "$OTOOL64" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7242 if test -z "$ac_cv_prog_OTOOL64"; then
7243 ac_ct_OTOOL64=$OTOOL64
7244 # Extract the first word of "otool64", so it can be a program name with args.
7245 set dummy otool64; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7249 $as_echo_n "(cached) " >&6
7251 if test -n "$ac_ct_OTOOL64"; then
7252 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_prog_ac_ct_OTOOL64="otool64"
7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7272 if test -n "$ac_ct_OTOOL64"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7274 $as_echo "$ac_ct_OTOOL64" >&6; }
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7280 if test "x$ac_ct_OTOOL64" = x; then
7283 case $cross_compiling:$ac_tool_warned in
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287 ac_tool_warned=yes ;;
7289 OTOOL64=$ac_ct_OTOOL64
7292 OTOOL64="$ac_cv_prog_OTOOL64"
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7322 $as_echo_n "checking for -single_module linker flag... " >&6; }
7323 if ${lt_cv_apple_cc_single_mod+:} false; then :
7324 $as_echo_n "(cached) " >&6
7326 lt_cv_apple_cc_single_mod=no
7327 if test -z "${LT_MULTI_MODULE}"; then
7328 # By default we will add the -single_module flag. You can override
7329 # by either setting the environment variable LT_MULTI_MODULE
7330 # non-empty at configure time, or by adding -multi_module to the
7332 rm -rf libconftest.dylib*
7333 echo "int foo(void){return 1;}" > conftest.c
7334 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7335 -dynamiclib -Wl,-single_module conftest.c" >&5
7336 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7337 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7339 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7340 lt_cv_apple_cc_single_mod=yes
7342 cat conftest.err >&5
7344 rm -rf libconftest.dylib*
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7349 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7351 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7352 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7353 $as_echo_n "(cached) " >&6
7355 lt_cv_ld_exported_symbols_list=no
7356 save_LDFLAGS=$LDFLAGS
7357 echo "_main" > conftest.sym
7358 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7370 if ac_fn_c_try_link "$LINENO"; then :
7371 lt_cv_ld_exported_symbols_list=yes
7373 lt_cv_ld_exported_symbols_list=no
7375 rm -f core conftest.err conftest.$ac_objext \
7376 conftest$ac_exeext conftest.$ac_ext
7377 LDFLAGS="$save_LDFLAGS"
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7381 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7383 $as_echo_n "checking for -force_load linker flag... " >&6; }
7384 if ${lt_cv_ld_force_load+:} false; then :
7385 $as_echo_n "(cached) " >&6
7387 lt_cv_ld_force_load=no
7388 cat > conftest.c << _LT_EOF
7389 int forced_loaded() { return 2;}
7391 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7392 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7393 echo "$AR cru libconftest.a conftest.o" >&5
7394 $AR cru libconftest.a conftest.o 2>&5
7395 echo "$RANLIB libconftest.a" >&5
7396 $RANLIB libconftest.a 2>&5
7397 cat > conftest.c << _LT_EOF
7398 int main() { return 0;}
7400 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7401 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7403 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7404 lt_cv_ld_force_load=yes
7406 cat conftest.err >&5
7408 rm -f conftest.err libconftest.a conftest conftest.c
7409 rm -rf conftest.dSYM
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7413 $as_echo "$lt_cv_ld_force_load" >&6; }
7415 rhapsody* | darwin1.[012])
7416 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7418 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7419 darwin*) # darwin 5.x on
7420 # if running on 10.5 or later, the deployment target defaults
7421 # to the OS version, if on x86, and 10.4, the deployment
7422 # target defaults to 10.4. Don't you love it?
7423 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7424 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7425 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7427 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7429 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7433 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7434 _lt_dar_single_mod='$single_module'
7436 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7437 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7439 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7441 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7442 _lt_dsymutil='~$DSYMUTIL $lib || :'
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7456 # On Suns, sometimes $CPP names a directory.
7457 if test -n "$CPP" && test -d "$CPP"; then
7460 if test -z "$CPP"; then
7461 if ${ac_cv_prog_CPP+:} false; then :
7462 $as_echo_n "(cached) " >&6
7464 # Double quotes because CPP needs to be expanded
7465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7468 for ac_c_preproc_warn_flag in '' yes
7470 # Use a header file that comes with gcc, so configuring glibc
7471 # with a fresh cross-compiler works.
7472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7473 # <limits.h> exists even on freestanding compilers.
7474 # On the NeXT, cc -E runs the code through the compiler's parser,
7475 # not just through cpp. "Syntax error" is here to catch this case.
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7479 # include <limits.h>
7481 # include <assert.h>
7485 if ac_fn_c_try_cpp "$LINENO"; then :
7488 # Broken: fails on valid input.
7491 rm -f conftest.err conftest.i conftest.$ac_ext
7493 # OK, works on sane cases. Now check whether nonexistent headers
7494 # can be detected and how.
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 #include <ac_nonexistent.h>
7499 if ac_fn_c_try_cpp "$LINENO"; then :
7500 # Broken: success on invalid input.
7503 # Passes both tests.
7507 rm -f conftest.err conftest.i conftest.$ac_ext
7510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7511 rm -f conftest.i conftest.err conftest.$ac_ext
7512 if $ac_preproc_ok; then :
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7525 $as_echo "$CPP" >&6; }
7527 for ac_c_preproc_warn_flag in '' yes
7529 # Use a header file that comes with gcc, so configuring glibc
7530 # with a fresh cross-compiler works.
7531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7532 # <limits.h> exists even on freestanding compilers.
7533 # On the NeXT, cc -E runs the code through the compiler's parser,
7534 # not just through cpp. "Syntax error" is here to catch this case.
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7538 # include <limits.h>
7540 # include <assert.h>
7544 if ac_fn_c_try_cpp "$LINENO"; then :
7547 # Broken: fails on valid input.
7550 rm -f conftest.err conftest.i conftest.$ac_ext
7552 # OK, works on sane cases. Now check whether nonexistent headers
7553 # can be detected and how.
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 #include <ac_nonexistent.h>
7558 if ac_fn_c_try_cpp "$LINENO"; then :
7559 # Broken: success on invalid input.
7562 # Passes both tests.
7566 rm -f conftest.err conftest.i conftest.$ac_ext
7569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7570 rm -f conftest.i conftest.err conftest.$ac_ext
7571 if $ac_preproc_ok; then :
7574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7576 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7577 See \`config.log' for more details" "$LINENO" 5; }
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7588 $as_echo_n "checking for ANSI C header files... " >&6; }
7589 if ${ac_cv_header_stdc+:} false; then :
7590 $as_echo_n "(cached) " >&6
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7607 if ac_fn_c_try_compile "$LINENO"; then :
7608 ac_cv_header_stdc=yes
7610 ac_cv_header_stdc=no
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614 if test $ac_cv_header_stdc = yes; then
7615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7622 $EGREP "memchr" >/dev/null 2>&1; then :
7625 ac_cv_header_stdc=no
7631 if test $ac_cv_header_stdc = yes; then
7632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7639 $EGREP "free" >/dev/null 2>&1; then :
7642 ac_cv_header_stdc=no
7648 if test $ac_cv_header_stdc = yes; then
7649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7650 if test "$cross_compiling" = yes; then :
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7657 #if ((' ' & 0x0FF) == 0x020)
7658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7661 # define ISLOWER(c) \
7662 (('a' <= (c) && (c) <= 'i') \
7663 || ('j' <= (c) && (c) <= 'r') \
7664 || ('s' <= (c) && (c) <= 'z'))
7665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7673 for (i = 0; i < 256; i++)
7674 if (XOR (islower (i), ISLOWER (i))
7675 || toupper (i) != TOUPPER (i))
7680 if ac_fn_c_try_run "$LINENO"; then :
7683 ac_cv_header_stdc=no
7685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7686 conftest.$ac_objext conftest.beam conftest.$ac_ext
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7692 $as_echo "$ac_cv_header_stdc" >&6; }
7693 if test $ac_cv_header_stdc = yes; then
7695 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7700 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7701 inttypes.h stdint.h unistd.h
7703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7704 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7707 cat >>confdefs.h <<_ACEOF
7708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7716 for ac_header in dlfcn.h
7718 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7720 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7721 cat >>confdefs.h <<_ACEOF
7722 #define HAVE_DLFCN_H 1
7732 func_stripname_cnf ()
7735 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7736 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7738 } # func_stripname_cnf
7754 # Check whether --enable-shared was given.
7755 if test "${enable_shared+set}" = set; then :
7756 enableval=$enable_shared; p=${PACKAGE-default}
7758 yes) enable_shared=yes ;;
7759 no) enable_shared=no ;;
7762 # Look at the argument we got. We use all the common list separators.
7763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7764 for pkg in $enableval; do
7766 if test "X$pkg" = "X$p"; then
7785 # Check whether --enable-static was given.
7786 if test "${enable_static+set}" = set; then :
7787 enableval=$enable_static; p=${PACKAGE-default}
7789 yes) enable_static=yes ;;
7790 no) enable_static=no ;;
7793 # Look at the argument we got. We use all the common list separators.
7794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7795 for pkg in $enableval; do
7797 if test "X$pkg" = "X$p"; then
7817 # Check whether --with-pic was given.
7818 if test "${with_pic+set}" = set; then :
7819 withval=$with_pic; pic_mode="$withval"
7825 test -z "$pic_mode" && pic_mode=default
7833 # Check whether --enable-fast-install was given.
7834 if test "${enable_fast_install+set}" = set; then :
7835 enableval=$enable_fast_install; p=${PACKAGE-default}
7837 yes) enable_fast_install=yes ;;
7838 no) enable_fast_install=no ;;
7840 enable_fast_install=no
7841 # Look at the argument we got. We use all the common list separators.
7842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7843 for pkg in $enableval; do
7845 if test "X$pkg" = "X$p"; then
7846 enable_fast_install=yes
7853 enable_fast_install=yes
7866 # This can be used to rebuild libtool when needed
7867 LIBTOOL_DEPS="$ltmain"
7869 # Always use our own libtool.
7870 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7897 test -z "$LN_S" && LN_S="ln -s"
7912 if test -n "${ZSH_VERSION+set}" ; then
7913 setopt NO_GLOB_SUBST
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7917 $as_echo_n "checking for objdir... " >&6; }
7918 if ${lt_cv_objdir+:} false; then :
7919 $as_echo_n "(cached) " >&6
7921 rm -f .libs 2>/dev/null
7922 mkdir .libs 2>/dev/null
7923 if test -d .libs; then
7926 # MS-DOS does not allow filenames that begin with a dot.
7929 rmdir .libs 2>/dev/null
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7932 $as_echo "$lt_cv_objdir" >&6; }
7933 objdir=$lt_cv_objdir
7939 cat >>confdefs.h <<_ACEOF
7940 #define LT_OBJDIR "$lt_cv_objdir/"
7948 # AIX sometimes has problems with the GCC collect2 program. For some
7949 # reason, if we set the COLLECT_NAMES environment variable, the problems
7950 # vanish in a puff of smoke.
7951 if test "X${COLLECT_NAMES+set}" != Xset; then
7953 export COLLECT_NAMES
7960 can_build_shared=yes
7962 # All known linkers require a `.a' archive for static linking (except MSVC,
7963 # which needs '.lib').
7966 with_gnu_ld="$lt_cv_prog_gnu_ld"
7969 old_CFLAGS="$CFLAGS"
7971 # Set sane defaults for various variables
7972 test -z "$CC" && CC=cc
7973 test -z "$LTCC" && LTCC=$CC
7974 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7975 test -z "$LD" && LD=ld
7976 test -z "$ac_objext" && ac_objext=o
7978 for cc_temp in $compiler""; do
7980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7986 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7989 # Only perform the check for file, if the check method requires it
7990 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7991 case $deplibs_check_method in
7993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7996 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7997 $as_echo_n "(cached) " >&6
8001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8004 lt_save_MAGIC_CMD="$MAGIC_CMD"
8005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8007 for ac_dir in $ac_dummy; do
8009 test -z "$ac_dir" && ac_dir=.
8010 if test -f $ac_dir/${ac_tool_prefix}file; then
8011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8012 if test -n "$file_magic_test_file"; then
8013 case $deplibs_check_method in
8015 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8018 $EGREP "$file_magic_regex" > /dev/null; then
8023 *** Warning: the command libtool uses to detect shared libraries,
8024 *** $file_magic_cmd, produces output that libtool cannot recognize.
8025 *** The result is that libtool may fail to recognize shared libraries
8026 *** as such. This will affect the creation of libtool libraries that
8027 *** depend on shared libraries, but programs linked with such libtool
8028 *** libraries will work regardless of this problem. Nevertheless, you
8029 *** may want to report the problem to your system manager and/or to
8030 *** bug-libtool@gnu.org
8040 MAGIC_CMD="$lt_save_MAGIC_CMD"
8045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8046 if test -n "$MAGIC_CMD"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8048 $as_echo "$MAGIC_CMD" >&6; }
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8058 if test -z "$lt_cv_path_MAGIC_CMD"; then
8059 if test -n "$ac_tool_prefix"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8061 $as_echo_n "checking for file... " >&6; }
8062 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8063 $as_echo_n "(cached) " >&6
8067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8070 lt_save_MAGIC_CMD="$MAGIC_CMD"
8071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8073 for ac_dir in $ac_dummy; do
8075 test -z "$ac_dir" && ac_dir=.
8076 if test -f $ac_dir/file; then
8077 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8078 if test -n "$file_magic_test_file"; then
8079 case $deplibs_check_method in
8081 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8084 $EGREP "$file_magic_regex" > /dev/null; then
8089 *** Warning: the command libtool uses to detect shared libraries,
8090 *** $file_magic_cmd, produces output that libtool cannot recognize.
8091 *** The result is that libtool may fail to recognize shared libraries
8092 *** as such. This will affect the creation of libtool libraries that
8093 *** depend on shared libraries, but programs linked with such libtool
8094 *** libraries will work regardless of this problem. Nevertheless, you
8095 *** may want to report the problem to your system manager and/or to
8096 *** bug-libtool@gnu.org
8106 MAGIC_CMD="$lt_save_MAGIC_CMD"
8111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8112 if test -n "$MAGIC_CMD"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8114 $as_echo "$MAGIC_CMD" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8130 # Use C for the default configuration in the libtool script
8134 ac_cpp='$CPP $CPPFLAGS'
8135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8140 # Source file extension for C test sources.
8143 # Object file extension for compiled C test sources.
8147 # Code to be used in simple compile tests
8148 lt_simple_compile_test_code="int some_variable = 0;"
8150 # Code to be used in simple link tests
8151 lt_simple_link_test_code='int main(){return(0);}'
8159 # If no C compiler was specified, use CC.
8162 # If no C compiler flags were specified, use CFLAGS.
8163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8165 # Allow CC to be a program name with arguments.
8168 # Save the default compiler, since it gets overwritten when the other
8169 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8170 compiler_DEFAULT=$CC
8172 # save warnings/boilerplate of simple test code
8173 ac_outfile=conftest.$ac_objext
8174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8176 _lt_compiler_boilerplate=`cat conftest.err`
8179 ac_outfile=conftest.$ac_objext
8180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8182 _lt_linker_boilerplate=`cat conftest.err`
8186 if test -n "$compiler"; then
8188 lt_prog_compiler_no_builtin_flag=
8190 if test "$GCC" = yes; then
8191 case $cc_basename in
8193 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8195 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8199 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8200 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8201 $as_echo_n "(cached) " >&6
8203 lt_cv_prog_compiler_rtti_exceptions=no
8204 ac_outfile=conftest.$ac_objext
8205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206 lt_compiler_flag="-fno-rtti -fno-exceptions"
8207 # Insert the option either (1) after the last *FLAGS variable, or
8208 # (2) before a word containing "conftest.", or (3) at the end.
8209 # Note that $ac_compile itself does not contain backslashes and begins
8210 # with a dollar sign (not a hyphen), so the echo should work correctly.
8211 # The option is referenced via a variable to avoid confusing sed.
8212 lt_compile=`echo "$ac_compile" | $SED \
8213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215 -e 's:$: $lt_compiler_flag:'`
8216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217 (eval "$lt_compile" 2>conftest.err)
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 if (exit $ac_status) && test -s "$ac_outfile"; then
8222 # The compiler can only warn and ignore the option if not recognized
8223 # So say no if there are warnings other than the usual output.
8224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8227 lt_cv_prog_compiler_rtti_exceptions=yes
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8234 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8236 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8237 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8249 lt_prog_compiler_wl=
8250 lt_prog_compiler_pic=
8251 lt_prog_compiler_static=
8254 if test "$GCC" = yes; then
8255 lt_prog_compiler_wl='-Wl,'
8256 lt_prog_compiler_static='-static'
8260 # All AIX code is PIC.
8261 if test "$host_cpu" = ia64; then
8262 # AIX 5 now supports IA64 processor
8263 lt_prog_compiler_static='-Bstatic'
8270 # see comment about AmigaOS4 .so support
8271 lt_prog_compiler_pic='-fPIC'
8274 # FIXME: we need at least 68020 code to build shared libraries, but
8275 # adding the `-m68020' flag to GCC prevents building anything better,
8277 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8282 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8283 # PIC is the default for these OSes.
8286 mingw* | cygwin* | pw32* | os2* | cegcc*)
8287 # This hack is so that the source file can tell whether it is being
8288 # built for inclusion in a dll (and should export symbols for example).
8289 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8290 # (--disable-auto-import) libraries
8291 lt_prog_compiler_pic='-DDLL_EXPORT'
8294 darwin* | rhapsody*)
8295 # PIC is the default on this platform
8296 # Common symbols not allowed in MH_DYLIB files
8297 lt_prog_compiler_pic='-fno-common'
8301 # PIC is the default for Haiku.
8302 # The "-static" flag exists, but is broken.
8303 lt_prog_compiler_static=
8307 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8308 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8309 # sets the default TLS model and affects inlining.
8315 lt_prog_compiler_pic='-fPIC'
8321 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8322 # Instead, we relocate shared libraries at runtime.
8326 # Just because we use GCC doesn't mean we suddenly get shared libraries
8327 # on systems that don't support them.
8328 lt_prog_compiler_can_build_shared=no
8333 # QNX uses GNU C++, but need to define -shared option too, otherwise
8335 lt_prog_compiler_pic='-fPIC -shared'
8339 if test -d /usr/nec; then
8340 lt_prog_compiler_pic=-Kconform_pic
8345 lt_prog_compiler_pic='-fPIC'
8349 case $cc_basename in
8350 nvcc*) # Cuda Compiler Driver 2.2
8351 lt_prog_compiler_wl='-Xlinker '
8352 lt_prog_compiler_pic='-Xcompiler -fPIC'
8356 # PORTME Check for flag to pass linker flags through the system compiler.
8359 lt_prog_compiler_wl='-Wl,'
8360 if test "$host_cpu" = ia64; then
8361 # AIX 5 now supports IA64 processor
8362 lt_prog_compiler_static='-Bstatic'
8364 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8368 mingw* | cygwin* | pw32* | os2* | cegcc*)
8369 # This hack is so that the source file can tell whether it is being
8370 # built for inclusion in a dll (and should export symbols for example).
8371 lt_prog_compiler_pic='-DDLL_EXPORT'
8374 hpux9* | hpux10* | hpux11*)
8375 lt_prog_compiler_wl='-Wl,'
8376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8383 lt_prog_compiler_pic='+Z'
8386 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8387 lt_prog_compiler_static='${wl}-a ${wl}archive'
8390 irix5* | irix6* | nonstopux*)
8391 lt_prog_compiler_wl='-Wl,'
8392 # PIC (with -KPIC) is the default.
8393 lt_prog_compiler_static='-non_shared'
8396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8397 case $cc_basename in
8398 # old Intel for x86_64 which still supported -KPIC.
8400 lt_prog_compiler_wl='-Wl,'
8401 lt_prog_compiler_pic='-KPIC'
8402 lt_prog_compiler_static='-static'
8404 # icc used to be incompatible with GCC.
8405 # ICC 10 doesn't accept -KPIC any more.
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_pic='-fPIC'
8409 lt_prog_compiler_static='-static'
8411 # Lahey Fortran 8.1.
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='--shared'
8415 lt_prog_compiler_static='--static'
8418 # NAG Fortran compiler
8419 lt_prog_compiler_wl='-Wl,-Wl,,'
8420 lt_prog_compiler_pic='-PIC'
8421 lt_prog_compiler_static='-Bstatic'
8423 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8424 # Portland Group compilers (*not* the Pentium gcc compiler,
8425 # which looks to be a dead project)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-fpic'
8428 lt_prog_compiler_static='-Bstatic'
8431 lt_prog_compiler_wl='-Wl,'
8432 # All Alpha code is PIC.
8433 lt_prog_compiler_static='-non_shared'
8435 xl* | bgxl* | bgf* | mpixl*)
8436 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8437 lt_prog_compiler_wl='-Wl,'
8438 lt_prog_compiler_pic='-qpic'
8439 lt_prog_compiler_static='-qstaticlink'
8442 case `$CC -V 2>&1 | sed 5q` in
8443 *Sun\ F* | *Sun*Fortran*)
8444 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8445 lt_prog_compiler_pic='-KPIC'
8446 lt_prog_compiler_static='-Bstatic'
8447 lt_prog_compiler_wl=''
8451 lt_prog_compiler_pic='-KPIC'
8452 lt_prog_compiler_static='-Bstatic'
8453 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_pic='-KPIC'
8462 lt_prog_compiler_static='-Bstatic'
8466 # QNX uses GNU C++, but need to define -shared option too, otherwise
8468 lt_prog_compiler_pic='-fPIC -shared'
8471 osf3* | osf4* | osf5*)
8472 lt_prog_compiler_wl='-Wl,'
8473 # All OSF/1 code is PIC.
8474 lt_prog_compiler_static='-non_shared'
8478 lt_prog_compiler_static='-non_shared'
8482 lt_prog_compiler_pic='-KPIC'
8483 lt_prog_compiler_static='-Bstatic'
8484 case $cc_basename in
8485 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8486 lt_prog_compiler_wl='-Qoption ld ';;
8488 lt_prog_compiler_wl='-Wl,';;
8493 lt_prog_compiler_wl='-Qoption ld '
8494 lt_prog_compiler_pic='-PIC'
8495 lt_prog_compiler_static='-Bstatic'
8498 sysv4 | sysv4.2uw2* | sysv4.3*)
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_pic='-KPIC'
8501 lt_prog_compiler_static='-Bstatic'
8505 if test -d /usr/nec ;then
8506 lt_prog_compiler_pic='-Kconform_pic'
8507 lt_prog_compiler_static='-Bstatic'
8511 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='-KPIC'
8514 lt_prog_compiler_static='-Bstatic'
8518 lt_prog_compiler_wl='-Wl,'
8519 lt_prog_compiler_can_build_shared=no
8523 lt_prog_compiler_pic='-pic'
8524 lt_prog_compiler_static='-Bstatic'
8528 lt_prog_compiler_can_build_shared=no
8534 # For platforms which do not support PIC, -DPIC is meaningless:
8536 lt_prog_compiler_pic=
8539 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8544 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8545 if ${lt_cv_prog_compiler_pic+:} false; then :
8546 $as_echo_n "(cached) " >&6
8548 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8551 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8552 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8555 # Check to make sure the PIC flag actually works.
8557 if test -n "$lt_prog_compiler_pic"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8559 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8560 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8561 $as_echo_n "(cached) " >&6
8563 lt_cv_prog_compiler_pic_works=no
8564 ac_outfile=conftest.$ac_objext
8565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8566 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8567 # Insert the option either (1) after the last *FLAGS variable, or
8568 # (2) before a word containing "conftest.", or (3) at the end.
8569 # Note that $ac_compile itself does not contain backslashes and begins
8570 # with a dollar sign (not a hyphen), so the echo should work correctly.
8571 # The option is referenced via a variable to avoid confusing sed.
8572 lt_compile=`echo "$ac_compile" | $SED \
8573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8575 -e 's:$: $lt_compiler_flag:'`
8576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8577 (eval "$lt_compile" 2>conftest.err)
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 if (exit $ac_status) && test -s "$ac_outfile"; then
8582 # The compiler can only warn and ignore the option if not recognized
8583 # So say no if there are warnings other than the usual output.
8584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8586 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8587 lt_cv_prog_compiler_pic_works=yes
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8594 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8596 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8597 case $lt_prog_compiler_pic in
8599 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8602 lt_prog_compiler_pic=
8603 lt_prog_compiler_can_build_shared=no
8619 # Check to make sure the static flag actually works.
8621 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8623 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8624 if ${lt_cv_prog_compiler_static_works+:} false; then :
8625 $as_echo_n "(cached) " >&6
8627 lt_cv_prog_compiler_static_works=no
8628 save_LDFLAGS="$LDFLAGS"
8629 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8630 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8632 # The linker can only warn and ignore the option if not recognized
8633 # So say no if there are warnings
8634 if test -s conftest.err; then
8635 # Append any errors to the config.log.
8636 cat conftest.err 1>&5
8637 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8639 if diff conftest.exp conftest.er2 >/dev/null; then
8640 lt_cv_prog_compiler_static_works=yes
8643 lt_cv_prog_compiler_static_works=yes
8647 LDFLAGS="$save_LDFLAGS"
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8651 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8653 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8656 lt_prog_compiler_static=
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8666 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8667 if ${lt_cv_prog_compiler_c_o+:} false; then :
8668 $as_echo_n "(cached) " >&6
8670 lt_cv_prog_compiler_c_o=no
8671 $RM -r conftest 2>/dev/null
8675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8677 lt_compiler_flag="-o out/conftest2.$ac_objext"
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 lt_compile=`echo "$ac_compile" | $SED \
8683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8685 -e 's:$: $lt_compiler_flag:'`
8686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8687 (eval "$lt_compile" 2>out/conftest.err)
8689 cat out/conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8693 # The compiler can only warn and ignore the option if not recognized
8694 # So say no if there are warnings
8695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8696 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8697 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8698 lt_cv_prog_compiler_c_o=yes
8703 # SGI C++ compiler will create directory out/ii_files/ for
8704 # template instantiation
8705 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8706 $RM out/* && rmdir out
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8713 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8721 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8722 if ${lt_cv_prog_compiler_c_o+:} false; then :
8723 $as_echo_n "(cached) " >&6
8725 lt_cv_prog_compiler_c_o=no
8726 $RM -r conftest 2>/dev/null
8730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8732 lt_compiler_flag="-o out/conftest2.$ac_objext"
8733 # Insert the option either (1) after the last *FLAGS variable, or
8734 # (2) before a word containing "conftest.", or (3) at the end.
8735 # Note that $ac_compile itself does not contain backslashes and begins
8736 # with a dollar sign (not a hyphen), so the echo should work correctly.
8737 lt_compile=`echo "$ac_compile" | $SED \
8738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8740 -e 's:$: $lt_compiler_flag:'`
8741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8742 (eval "$lt_compile" 2>out/conftest.err)
8744 cat out/conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8748 # The compiler can only warn and ignore the option if not recognized
8749 # So say no if there are warnings
8750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8753 lt_cv_prog_compiler_c_o=yes
8758 # SGI C++ compiler will create directory out/ii_files/ for
8759 # template instantiation
8760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8761 $RM out/* && rmdir out
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8768 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8773 hard_links="nottested"
8774 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8775 # do not overwrite the value of need_locks provided by the user
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8777 $as_echo_n "checking if we can lock with hard links... " >&6; }
8780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8782 ln conftest.a conftest.b 2>&5 || hard_links=no
8783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8785 $as_echo "$hard_links" >&6; }
8786 if test "$hard_links" = no; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8788 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8801 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8804 allow_undefined_flag=
8805 always_export_symbols=no
8807 archive_expsym_cmds=
8808 compiler_needs_object=no
8809 enable_shared_with_static_runtimes=no
8810 export_dynamic_flag_spec=
8811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8812 hardcode_automatic=no
8814 hardcode_direct_absolute=no
8815 hardcode_libdir_flag_spec=
8816 hardcode_libdir_flag_spec_ld=
8817 hardcode_libdir_separator=
8819 hardcode_shlibpath_var=unsupported
8821 link_all_deplibs=unknown
8824 old_archive_from_new_cmds=
8825 old_archive_from_expsyms_cmds=
8826 thread_safe_flag_spec=
8827 whole_archive_flag_spec=
8828 # include_expsyms should be a list of space-separated symbols to be *always*
8829 # included in the symbol list
8831 # exclude_expsyms can be an extended regexp of symbols to exclude
8832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8834 # as well as any symbol that contains `d'.
8835 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8837 # platforms (ab)use it in PIC code, but their linkers get confused if
8838 # the symbol is explicitly referenced. Since portable code cannot
8839 # rely on this symbol name, it's probably fine to never include it in
8840 # preloaded symbol tables.
8841 # Exclude shared library initialization/finalization symbols.
8842 extract_expsyms_cmds=
8845 cygwin* | mingw* | pw32* | cegcc*)
8846 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8847 # When not using gcc, we currently assume that we are using
8848 # Microsoft Visual C++.
8849 if test "$GCC" != yes; then
8854 # we just hope/assume this is gcc and not c89 (= MSVC++)
8864 # On some targets, GNU ld is compatible enough with the native linker
8865 # that we're better off using the native interface for both.
8866 lt_use_gnu_ld_interface=no
8867 if test "$with_gnu_ld" = yes; then
8870 # The AIX port of GNU ld has always aspired to compatibility
8871 # with the native linker. However, as the warning in the GNU ld
8872 # block says, versions before 2.19.5* couldn't really create working
8873 # shared libraries, regardless of the interface used.
8874 case `$LD -v 2>&1` in
8875 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8876 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8877 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8879 lt_use_gnu_ld_interface=yes
8884 lt_use_gnu_ld_interface=yes
8889 if test "$lt_use_gnu_ld_interface" = yes; then
8890 # If archive_cmds runs LD, not CC, wlarc should be empty
8893 # Set some defaults for GNU ld with shared library support. These
8894 # are reset later if shared libraries are not supported. Putting them
8895 # here allows them to be overridden if necessary.
8896 runpath_var=LD_RUN_PATH
8897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8898 export_dynamic_flag_spec='${wl}--export-dynamic'
8899 # ancient GNU ld didn't support --whole-archive et. al.
8900 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8901 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8903 whole_archive_flag_spec=
8905 supports_anon_versioning=no
8906 case `$LD -v 2>&1` in
8907 *GNU\ gold*) supports_anon_versioning=yes ;;
8908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8911 *\ 2.11.*) ;; # other 2.11 versions
8912 *) supports_anon_versioning=yes ;;
8915 # See if GNU ld supports shared libraries.
8918 # On AIX/PPC, the GNU linker is very broken
8919 if test "$host_cpu" != ia64; then
8923 *** Warning: the GNU linker, at least up to release 2.19, is reported
8924 *** to be unable to reliably create shared libraries on AIX.
8925 *** Therefore, libtool is disabling shared libraries support. If you
8926 *** really care for shared libraries, you may want to install binutils
8927 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8928 *** You will then need to restart the configuration process.
8937 # see comment about AmigaOS4 .so support
8938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 archive_expsym_cmds=''
8942 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)'
8943 hardcode_libdir_flag_spec='-L$libdir'
8944 hardcode_minus_L=yes
8950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8951 allow_undefined_flag=unsupported
8952 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8953 # support --undefined. This deserves some investigation. FIXME
8954 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960 cygwin* | mingw* | pw32* | cegcc*)
8961 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8962 # as there is no search path for DLLs.
8963 hardcode_libdir_flag_spec='-L$libdir'
8964 export_dynamic_flag_spec='${wl}--export-all-symbols'
8965 allow_undefined_flag=unsupported
8966 always_export_symbols=no
8967 enable_shared_with_static_runtimes=yes
8968 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'
8969 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8971 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8973 # If the export-symbols file already is a .def file (1st line
8974 # is EXPORTS), use it as is; otherwise, prepend...
8975 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8976 cp $export_symbols $output_objdir/$soname.def;
8978 echo EXPORTS > $output_objdir/$soname.def;
8979 cat $export_symbols >> $output_objdir/$soname.def;
8981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 link_all_deplibs=yes
8994 hardcode_shlibpath_var=no
8995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8996 export_dynamic_flag_spec='${wl}-E'
8997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8998 # Instead, shared libraries are loaded at an image base (0x10000000 by
8999 # default) and relocated if they conflict, which is a slow very memory
9000 # consuming and fragmenting process. To avoid this, we pick a random,
9001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9002 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9004 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'
9007 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9009 if test "$host_os" = linux-dietlibc; then
9010 case $cc_basename in
9011 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9014 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9015 && test "$tmp_diet" = no
9017 tmp_addflag=' $pic_flag'
9018 tmp_sharedflag='-shared'
9019 case $cc_basename,$host_cpu in
9020 pgcc*) # Portland Group C compiler
9021 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'
9022 tmp_addflag=' $pic_flag'
9024 pgf77* | pgf90* | pgf95* | pgfortran*)
9025 # Portland Group f77 and f90 compilers
9026 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'
9027 tmp_addflag=' $pic_flag -Mnomain' ;;
9028 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9029 tmp_addflag=' -i_dynamic' ;;
9030 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9031 tmp_addflag=' -i_dynamic -nofor_main' ;;
9032 ifc* | ifort*) # Intel Fortran compiler
9033 tmp_addflag=' -nofor_main' ;;
9034 lf95*) # Lahey Fortran 8.1
9035 whole_archive_flag_spec=
9036 tmp_sharedflag='--shared' ;;
9037 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9038 tmp_sharedflag='-qmkshrobj'
9040 nvcc*) # Cuda Compiler Driver 2.2
9041 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'
9042 compiler_needs_object=yes
9045 case `$CC -V 2>&1 | sed 5q` in
9046 *Sun\ C*) # Sun C 5.9
9047 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'
9048 compiler_needs_object=yes
9049 tmp_sharedflag='-G' ;;
9050 *Sun\ F*) # Sun Fortran 8.3
9051 tmp_sharedflag='-G' ;;
9053 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055 if test "x$supports_anon_versioning" = xyes; then
9056 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9058 echo "local: *; };" >> $output_objdir/$libname.ver~
9059 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9062 case $cc_basename in
9063 xlf* | bgf* | bgxlf* | mpixlf*)
9064 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9065 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9066 hardcode_libdir_flag_spec=
9067 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9068 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9069 if test "x$supports_anon_versioning" = xyes; then
9070 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9072 echo "local: *; };" >> $output_objdir/$libname.ver~
9073 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9083 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9084 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9087 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9093 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9098 *** create shared libraries on Solaris systems. Therefore, libtool
9099 *** is disabling shared libraries support. We urge you to upgrade GNU
9100 *** binutils to release 2.9.1 or newer. Another option is to modify
9101 *** your PATH or compiler configuration so that the native linker is
9102 *** used, and then restart.
9105 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9114 case `$LD -v 2>&1` in
9115 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9119 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9120 *** reliably create shared libraries on SCO systems. Therefore, libtool
9121 *** is disabling shared libraries support. We urge you to upgrade GNU
9122 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9123 *** your PATH or compiler configuration so that the native linker is
9124 *** used, and then restart.
9129 # For security reasons, it is highly recommended that you always
9130 # use absolute paths for naming shared libraries, and exclude the
9131 # DT_RUNPATH tag from executables and libraries. But doing so
9132 # requires that you compile everything twice, which is a pain.
9133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9145 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9148 hardcode_shlibpath_var=no
9152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9154 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9161 if test "$ld_shlibs" = no; then
9163 hardcode_libdir_flag_spec=
9164 export_dynamic_flag_spec=
9165 whole_archive_flag_spec=
9168 # PORTME fill in a description of your system's linker (not GNU ld)
9171 allow_undefined_flag=unsupported
9172 always_export_symbols=yes
9173 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'
9174 # Note: this linker hardcodes the directories in LIBPATH if there
9175 # are no directories specified by -L.
9176 hardcode_minus_L=yes
9177 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9178 # Neither direct hardcoding nor static linking is supported with a
9180 hardcode_direct=unsupported
9185 if test "$host_cpu" = ia64; then
9186 # On IA64, the linker does run time linking by default, so we don't
9187 # have to do anything special.
9188 aix_use_runtimelinking=no
9189 exp_sym_flag='-Bexport'
9192 # If we're using GNU nm, then we don't want the "-C" option.
9193 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9194 # Also, AIX nm treats weak defined symbols like other global
9195 # defined symbols, whereas GNU nm marks them as "W".
9196 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9197 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'
9199 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'
9201 aix_use_runtimelinking=no
9203 # Test if we are trying to use run time linking or normal
9204 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9205 # need to do runtime linking.
9206 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9207 for ld_flag in $LDFLAGS; do
9208 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9209 aix_use_runtimelinking=yes
9216 exp_sym_flag='-bexport'
9217 no_entry_flag='-bnoentry'
9220 # When large executables or shared objects are built, AIX ld can
9221 # have problems creating the table of contents. If linking a library
9222 # or program results in "error TOC overflow" add -mminimal-toc to
9223 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9224 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9228 hardcode_direct_absolute=yes
9229 hardcode_libdir_separator=':'
9230 link_all_deplibs=yes
9231 file_list_spec='${wl}-f,'
9233 if test "$GCC" = yes; then
9234 case $host_os in aix4.[012]|aix4.[012].*)
9235 # We only want to do this on AIX 4.2 and lower, the check
9236 # below for broken collect2 doesn't work under 4.3+
9237 collect2name=`${CC} -print-prog-name=collect2`
9238 if test -f "$collect2name" &&
9239 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9241 # We have reworked collect2
9244 # We have old collect2
9245 hardcode_direct=unsupported
9246 # It fails to find uninstalled libraries when the uninstalled
9247 # path is not listed in the libpath. Setting hardcode_minus_L
9248 # to unsupported forces relinking
9249 hardcode_minus_L=yes
9250 hardcode_libdir_flag_spec='-L$libdir'
9251 hardcode_libdir_separator=
9255 shared_flag='-shared'
9256 if test "$aix_use_runtimelinking" = yes; then
9257 shared_flag="$shared_flag "'${wl}-G'
9261 if test "$host_cpu" = ia64; then
9262 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9263 # chokes on -Wl,-G. The following line is correct:
9266 if test "$aix_use_runtimelinking" = yes; then
9267 shared_flag='${wl}-G'
9269 shared_flag='${wl}-bM:SRE'
9274 export_dynamic_flag_spec='${wl}-bexpall'
9275 # It seems that -bexpall does not export symbols beginning with
9276 # underscore (_), so it is better to generate a list of symbols to export.
9277 always_export_symbols=yes
9278 if test "$aix_use_runtimelinking" = yes; then
9279 # Warning - without using the other runtime loading flags (-brtl),
9280 # -berok will link without error, but may produce a broken library.
9281 allow_undefined_flag='-berok'
9282 # Determine the default libpath from the value encoded in an
9284 if test "${lt_cv_aix_libpath+set}" = set; then
9285 aix_libpath=$lt_cv_aix_libpath
9287 if ${lt_cv_aix_libpath_+:} false; then :
9288 $as_echo_n "(cached) " >&6
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9301 if ac_fn_c_try_link "$LINENO"; then :
9303 lt_aix_libpath_sed='
9304 /Import File Strings/,/^$/ {
9306 s/^0 *\([^ ]*\) *$/\1/
9310 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9311 # Check for a 64-bit object if we didn't find anything.
9312 if test -z "$lt_cv_aix_libpath_"; then
9313 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9316 rm -f core conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext conftest.$ac_ext
9318 if test -z "$lt_cv_aix_libpath_"; then
9319 lt_cv_aix_libpath_="/usr/lib:/lib"
9324 aix_libpath=$lt_cv_aix_libpath_
9327 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9328 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"
9330 if test "$host_cpu" = ia64; then
9331 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9332 allow_undefined_flag="-z nodefs"
9333 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"
9335 # Determine the default libpath from the value encoded in an
9337 if test "${lt_cv_aix_libpath+set}" = set; then
9338 aix_libpath=$lt_cv_aix_libpath
9340 if ${lt_cv_aix_libpath_+:} false; then :
9341 $as_echo_n "(cached) " >&6
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9354 if ac_fn_c_try_link "$LINENO"; then :
9356 lt_aix_libpath_sed='
9357 /Import File Strings/,/^$/ {
9359 s/^0 *\([^ ]*\) *$/\1/
9363 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9364 # Check for a 64-bit object if we didn't find anything.
9365 if test -z "$lt_cv_aix_libpath_"; then
9366 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9369 rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9371 if test -z "$lt_cv_aix_libpath_"; then
9372 lt_cv_aix_libpath_="/usr/lib:/lib"
9377 aix_libpath=$lt_cv_aix_libpath_
9380 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9381 # Warning - without using the other run time loading flags,
9382 # -berok will link without error, but may produce a broken library.
9383 no_undefined_flag=' ${wl}-bernotok'
9384 allow_undefined_flag=' ${wl}-berok'
9385 if test "$with_gnu_ld" = yes; then
9386 # We only use this code for GNU lds that support --whole-archive.
9387 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9389 # Exported symbols can be pulled into shared objects from archives
9390 whole_archive_flag_spec='$convenience'
9392 archive_cmds_need_lc=yes
9393 # This is similar to how AIX traditionally builds its shared libraries.
9394 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'
9402 # see comment about AmigaOS4 .so support
9403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 archive_expsym_cmds=''
9407 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)'
9408 hardcode_libdir_flag_spec='-L$libdir'
9409 hardcode_minus_L=yes
9415 export_dynamic_flag_spec=-rdynamic
9418 cygwin* | mingw* | pw32* | cegcc*)
9419 # When not using gcc, we currently assume that we are using
9420 # Microsoft Visual C++.
9421 # hardcode_libdir_flag_spec is actually meaningless, as there is
9422 # no search path for DLLs.
9423 case $cc_basename in
9426 hardcode_libdir_flag_spec=' '
9427 allow_undefined_flag=unsupported
9428 always_export_symbols=yes
9430 # Tell ltmain to make .lib files, not .a files.
9432 # Tell ltmain to make .dll files, not .so files.
9434 # FIXME: Setting linknames here is a bad hack.
9435 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9436 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9437 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9439 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9441 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9443 # The linker will not automatically build a static lib if we build a DLL.
9444 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9445 enable_shared_with_static_runtimes=yes
9446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9448 old_postinstall_cmds='chmod 644 $oldlib'
9449 postlink_cmds='lt_outputfile="@OUTPUT@"~
9450 lt_tool_outputfile="@TOOL_OUTPUT@"~
9451 case $lt_outputfile in
9454 lt_outputfile="$lt_outputfile.exe"
9455 lt_tool_outputfile="$lt_tool_outputfile.exe"
9458 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9459 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9460 $RM "$lt_outputfile.manifest";
9464 # Assume MSVC wrapper
9465 hardcode_libdir_flag_spec=' '
9466 allow_undefined_flag=unsupported
9467 # Tell ltmain to make .lib files, not .a files.
9469 # Tell ltmain to make .dll files, not .so files.
9471 # FIXME: Setting linknames here is a bad hack.
9472 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9473 # The linker will automatically build a .lib file if we build a DLL.
9474 old_archive_from_new_cmds='true'
9475 # FIXME: Should let the user specify the lib program.
9476 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9477 enable_shared_with_static_runtimes=yes
9482 darwin* | rhapsody*)
9485 archive_cmds_need_lc=no
9487 hardcode_automatic=yes
9488 hardcode_shlibpath_var=unsupported
9489 if test "$lt_cv_ld_force_load" = "yes"; then
9490 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\"`'
9492 whole_archive_flag_spec=''
9494 link_all_deplibs=yes
9495 allow_undefined_flag="$_lt_dar_allow_undefined"
9496 case $cc_basename in
9497 ifort*) _lt_dar_can_shared=yes ;;
9498 *) _lt_dar_can_shared=$GCC ;;
9500 if test "$_lt_dar_can_shared" = "yes"; then
9501 output_verbose_link_cmd=func_echo_all
9502 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9503 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9504 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}"
9505 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}"
9514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9515 hardcode_libdir_flag_spec='-L$libdir'
9516 hardcode_shlibpath_var=no
9523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9524 # support. Future versions do this automatically, but an explicit c++rt0.o
9525 # does not break anything, and helps significantly (at the cost of a little
9528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9529 hardcode_libdir_flag_spec='-R$libdir'
9531 hardcode_shlibpath_var=no
9534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9538 hardcode_minus_L=yes
9539 hardcode_shlibpath_var=no
9542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9543 freebsd* | dragonfly*)
9544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9545 hardcode_libdir_flag_spec='-R$libdir'
9547 hardcode_shlibpath_var=no
9551 if test "$GCC" = yes; then
9552 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'
9554 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'
9556 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9557 hardcode_libdir_separator=:
9560 # hardcode_minus_L: Not really in the search PATH,
9561 # but as the default location of the library.
9562 hardcode_minus_L=yes
9563 export_dynamic_flag_spec='${wl}-E'
9567 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9568 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9570 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9572 if test "$with_gnu_ld" = no; then
9573 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9574 hardcode_libdir_flag_spec_ld='+b $libdir'
9575 hardcode_libdir_separator=:
9577 hardcode_direct_absolute=yes
9578 export_dynamic_flag_spec='${wl}-E'
9579 # hardcode_minus_L: Not really in the search PATH,
9580 # but as the default location of the library.
9581 hardcode_minus_L=yes
9586 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9589 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9592 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9595 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9601 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9608 # Older versions of the 11.00 compiler do not understand -b yet
9609 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9611 $as_echo_n "checking if $CC understands -b... " >&6; }
9612 if ${lt_cv_prog_compiler__b+:} false; then :
9613 $as_echo_n "(cached) " >&6
9615 lt_cv_prog_compiler__b=no
9616 save_LDFLAGS="$LDFLAGS"
9617 LDFLAGS="$LDFLAGS -b"
9618 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9619 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9620 # The linker can only warn and ignore the option if not recognized
9621 # So say no if there are warnings
9622 if test -s conftest.err; then
9623 # Append any errors to the config.log.
9624 cat conftest.err 1>&5
9625 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9627 if diff conftest.exp conftest.er2 >/dev/null; then
9628 lt_cv_prog_compiler__b=yes
9631 lt_cv_prog_compiler__b=yes
9635 LDFLAGS="$save_LDFLAGS"
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9639 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9641 if test x"$lt_cv_prog_compiler__b" = xyes; then
9642 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9644 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9650 if test "$with_gnu_ld" = no; then
9651 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9652 hardcode_libdir_separator=:
9657 hardcode_shlibpath_var=no
9661 hardcode_direct_absolute=yes
9662 export_dynamic_flag_spec='${wl}-E'
9664 # hardcode_minus_L: Not really in the search PATH,
9665 # but as the default location of the library.
9666 hardcode_minus_L=yes
9672 irix5* | irix6* | nonstopux*)
9673 if test "$GCC" = yes; then
9674 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'
9675 # Try to use the -exported_symbol ld option, if it does not
9676 # work, assume that -exports_file does not work either and
9677 # implicitly export all symbols.
9678 # This should be the same for all languages, so no per-tag cache variable.
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9680 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9681 if ${lt_cv_irix_exported_symbol+:} false; then :
9682 $as_echo_n "(cached) " >&6
9684 save_LDFLAGS="$LDFLAGS"
9685 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9688 int foo (void) { return 0; }
9690 if ac_fn_c_try_link "$LINENO"; then :
9691 lt_cv_irix_exported_symbol=yes
9693 lt_cv_irix_exported_symbol=no
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697 LDFLAGS="$save_LDFLAGS"
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9700 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9701 if test "$lt_cv_irix_exported_symbol" = yes; then
9702 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'
9705 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'
9706 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'
9708 archive_cmds_need_lc='no'
9709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9710 hardcode_libdir_separator=:
9712 link_all_deplibs=yes
9716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9719 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9721 hardcode_libdir_flag_spec='-R$libdir'
9723 hardcode_shlibpath_var=no
9727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9730 hardcode_libdir_separator=:
9731 hardcode_shlibpath_var=no
9738 if test -f /usr/libexec/ld.so; then
9740 hardcode_shlibpath_var=no
9741 hardcode_direct_absolute=yes
9742 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9743 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9744 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9745 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9746 export_dynamic_flag_spec='${wl}-E'
9749 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_libdir_flag_spec='-R$libdir'
9754 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9755 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9765 hardcode_libdir_flag_spec='-L$libdir'
9766 hardcode_minus_L=yes
9767 allow_undefined_flag=unsupported
9768 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'
9769 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9773 if test "$GCC" = yes; then
9774 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9775 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'
9777 allow_undefined_flag=' -expect_unresolved \*'
9778 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'
9780 archive_cmds_need_lc='no'
9781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782 hardcode_libdir_separator=:
9785 osf4* | osf5*) # as osf3* with the addition of -msym flag
9786 if test "$GCC" = yes; then
9787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9788 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'
9789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9791 allow_undefined_flag=' -expect_unresolved \*'
9792 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'
9793 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~
9794 $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'
9796 # Both c and cxx compiler support -rpath directly
9797 hardcode_libdir_flag_spec='-rpath $libdir'
9799 archive_cmds_need_lc='no'
9800 hardcode_libdir_separator=:
9804 no_undefined_flag=' -z defs'
9805 if test "$GCC" = yes; then
9807 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9809 $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'
9811 case `$CC -V 2>&1` in
9814 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9816 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9820 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9822 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9826 hardcode_libdir_flag_spec='-R$libdir'
9827 hardcode_shlibpath_var=no
9829 solaris2.[0-5] | solaris2.[0-5].*) ;;
9831 # The compiler driver will combine and reorder linker options,
9832 # but understands `-z linker_flag'. GCC discards it without `$wl',
9833 # but is careful enough not to reorder.
9834 # Supported since Solaris 2.6 (maybe 2.5.1?)
9835 if test "$GCC" = yes; then
9836 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9838 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9842 link_all_deplibs=yes
9846 if test "x$host_vendor" = xsequent; then
9847 # Use $CC to link under sequent, because it throws in some extra .o
9848 # files that make .init and .fini sections work.
9849 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9853 hardcode_libdir_flag_spec='-L$libdir'
9855 hardcode_minus_L=yes
9856 hardcode_shlibpath_var=no
9860 case $host_vendor in
9862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9863 hardcode_direct=yes # is this really true???
9866 ## LD is ld it makes a PLAMLIB
9867 ## CC just makes a GrossModule.
9868 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9869 reload_cmds='$CC -r -o $output$reload_objs'
9873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9874 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9877 runpath_var='LD_RUN_PATH'
9878 hardcode_shlibpath_var=no
9882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9883 hardcode_shlibpath_var=no
9884 export_dynamic_flag_spec='-Bexport'
9888 if test -d /usr/nec; then
9889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9890 hardcode_shlibpath_var=no
9891 runpath_var=LD_RUN_PATH
9892 hardcode_runpath_var=yes
9897 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9898 no_undefined_flag='${wl}-z,text'
9899 archive_cmds_need_lc=no
9900 hardcode_shlibpath_var=no
9901 runpath_var='LD_RUN_PATH'
9903 if test "$GCC" = yes; then
9904 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9907 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9908 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9912 sysv5* | sco3.2v5* | sco5v6*)
9913 # Note: We can NOT use -z defs as we might desire, because we do not
9914 # link with -lc, and that would cause any symbols used from libc to
9915 # always be unresolved, which means just about no library would
9916 # ever link correctly. If we're not using GNU ld we use -z text
9917 # though, which does catch some bad symbols but isn't as heavy-handed
9919 no_undefined_flag='${wl}-z,text'
9920 allow_undefined_flag='${wl}-z,nodefs'
9921 archive_cmds_need_lc=no
9922 hardcode_shlibpath_var=no
9923 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9924 hardcode_libdir_separator=':'
9925 link_all_deplibs=yes
9926 export_dynamic_flag_spec='${wl}-Bexport'
9927 runpath_var='LD_RUN_PATH'
9929 if test "$GCC" = yes; then
9930 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9931 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9933 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9940 hardcode_libdir_flag_spec='-L$libdir'
9941 hardcode_shlibpath_var=no
9949 if test x$host_vendor = xsni; then
9951 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9952 export_dynamic_flag_spec='${wl}-Blargedynsym'
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9959 $as_echo "$ld_shlibs" >&6; }
9960 test "$ld_shlibs" = no && can_build_shared=no
9962 with_gnu_ld=$with_gnu_ld
9979 # Do we need to explicitly link libc?
9981 case "x$archive_cmds_need_lc" in
9983 # Assume -lc should be added
9984 archive_cmds_need_lc=yes
9986 if test "$enable_shared" = yes && test "$GCC" = yes; then
9987 case $archive_cmds in
9989 # FIXME: we may have to deal with multi-command sequences.
9992 # Test whether the compiler implicitly links with -lc since on some
9993 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9994 # to ld, don't add -lc before -lgcc.
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9996 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9997 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9998 $as_echo_n "(cached) " >&6
10001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10004 (eval $ac_compile) 2>&5
10006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10007 test $ac_status = 0; } 2>conftest.err; then
10010 libobjs=conftest.$ac_objext
10012 wl=$lt_prog_compiler_wl
10013 pic_flag=$lt_prog_compiler_pic
10019 lt_save_allow_undefined_flag=$allow_undefined_flag
10020 allow_undefined_flag=
10021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10022 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10025 test $ac_status = 0; }
10027 lt_cv_archive_cmds_need_lc=no
10029 lt_cv_archive_cmds_need_lc=yes
10031 allow_undefined_flag=$lt_save_allow_undefined_flag
10033 cat conftest.err 1>&5
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10039 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10040 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10204 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10206 if test "$GCC" = yes; then
10208 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10209 *) lt_awk_arg="/^libraries:/" ;;
10212 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10213 *) lt_sed_strip_eq="s,=/,/,g" ;;
10215 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10216 case $lt_search_path_spec in
10218 # if the path contains ";" then we assume it to be the separator
10219 # otherwise default to the standard path separator (i.e. ":") - it is
10220 # assumed that no part of a normal pathname contains ";" but that should
10221 # okay in the real world where ";" in dirpaths is itself problematic.
10222 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10225 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10228 # Ok, now we have the path, separated by spaces, we can step through it
10229 # and add multilib dir if necessary.
10230 lt_tmp_lt_search_path_spec=
10231 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10232 for lt_sys_path in $lt_search_path_spec; do
10233 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10234 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10236 test -d "$lt_sys_path" && \
10237 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10240 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10241 BEGIN {RS=" "; FS="/|\n";} {
10244 for (lt_i = NF; lt_i > 0; lt_i--) {
10245 if ($lt_i != "" && $lt_i != ".") {
10246 if ($lt_i == "..") {
10249 if (lt_count == 0) {
10250 lt_foo="/" $lt_i lt_foo;
10257 if (lt_foo != "") { lt_freq[lt_foo]++; }
10258 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10260 # AWK program above erroneously prepends '/' to C:/dos/paths
10263 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10264 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10266 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10268 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10270 library_names_spec=
10271 libname_spec='lib$name'
10275 postuninstall_cmds=
10279 shlibpath_overrides_runpath=unknown
10281 dynamic_linker="$host_os ld.so"
10282 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10283 need_lib_prefix=unknown
10284 hardcode_into_libs=no
10286 # when you set need_version to no, make sure it does not cause -set_version
10287 # flags to be left without arguments
10288 need_version=unknown
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10294 shlibpath_var=LIBPATH
10296 # AIX 3 has no versioning support, so we append a major version to the name.
10297 soname_spec='${libname}${release}${shared_ext}$major'
10304 hardcode_into_libs=yes
10305 if test "$host_cpu" = ia64; then
10306 # AIX 5 supports IA64
10307 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10308 shlibpath_var=LD_LIBRARY_PATH
10310 # With GCC up to 2.95.x, collect2 would create an import file
10311 # for dependence libraries. The import file would start with
10312 # the line `#! .'. This would cause the generated library to
10313 # depend on `.', always an invalid library. This was fixed in
10314 # development snapshots of GCC prior to 3.0.
10316 aix4 | aix4.[01] | aix4.[01].*)
10317 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10319 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10322 can_build_shared=no
10326 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10327 # soname into executable. Probably we can add versioning support to
10328 # collect2, so additional links can be useful in future.
10329 if test "$aix_use_runtimelinking" = yes; then
10330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10331 # instead of lib<name>.a to let people know that these are not
10332 # typical AIX shared libraries.
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 # We preserve .a as extension for shared libraries through AIX4.2
10336 # and later when we are not doing run time linking.
10337 library_names_spec='${libname}${release}.a $libname.a'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10340 shlibpath_var=LIBPATH
10347 # Since July 2007 AmigaOS4 officially supports .so libraries.
10348 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 library_names_spec='$libname.ixlibrary $libname.a'
10353 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10354 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'
10360 library_names_spec='${libname}${shared_ext}'
10361 dynamic_linker="$host_os ld.so"
10362 shlibpath_var=LIBRARY_PATH
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10373 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10374 # the default ld.so.conf also contains /usr/contrib/lib and
10375 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10376 # libtool to hard-code these into programs
10379 cygwin* | mingw* | pw32* | cegcc*)
10380 version_type=windows
10385 case $GCC,$cc_basename in
10388 library_names_spec='$libname.dll.a'
10389 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10390 postinstall_cmds='base_file=`basename \${file}`~
10391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10392 dldir=$destdir/`dirname \$dlpath`~
10393 test -d \$dldir || mkdir -p \$dldir~
10394 $install_prog $dir/$dlname \$dldir/$dlname~
10395 chmod a+x \$dldir/$dlname~
10396 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10397 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10400 dlpath=$dir/\$dldll~
10402 shlibpath_overrides_runpath=yes
10406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10409 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10412 # MinGW DLLs use traditional 'lib' prefix
10413 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10416 # pw32 DLLs use 'pw' prefix rather than 'lib'
10417 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10420 dynamic_linker='Win32 ld.exe'
10425 libname_spec='$name'
10426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10427 library_names_spec='${libname}.dll.lib'
10431 sys_lib_search_path_spec=
10434 for lt_path in $LIB
10437 # Let DOS variable expansion print the short 8.3 style file name.
10438 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10439 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10442 # Convert to MSYS style.
10443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10446 # Convert to unix form, then to dos form, then back to unix form
10447 # but this time dos style (no spaces!) so that the unix form looks
10448 # like /cygdrive/c/PROGRA~1:/cygdr...
10449 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10450 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10451 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10454 sys_lib_search_path_spec="$LIB"
10455 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10456 # It is most probably a Windows format PATH.
10457 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10459 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10461 # FIXME: find the short name or the path components, as spaces are
10462 # common. (e.g. "Program Files" -> "PROGRA~1")
10466 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10467 postinstall_cmds='base_file=`basename \${file}`~
10468 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10469 dldir=$destdir/`dirname \$dlpath`~
10470 test -d \$dldir || mkdir -p \$dldir~
10471 $install_prog $dir/$dlname \$dldir/$dlname'
10472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10473 dlpath=$dir/\$dldll~
10475 shlibpath_overrides_runpath=yes
10476 dynamic_linker='Win32 link.exe'
10480 # Assume MSVC wrapper
10481 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10482 dynamic_linker='Win32 ld.exe'
10485 # FIXME: first we should search . and the directory the executable is in
10489 darwin* | rhapsody*)
10490 dynamic_linker="$host_os dyld"
10491 version_type=darwin
10494 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10495 soname_spec='${libname}${release}${major}$shared_ext'
10496 shlibpath_overrides_runpath=yes
10497 shlibpath_var=DYLD_LIBRARY_PATH
10498 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10500 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10501 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 shlibpath_var=LD_LIBRARY_PATH
10517 freebsd* | dragonfly*)
10518 # DragonFly does not have aout. When/if they implement a new
10519 # versioning mechanism, adjust this.
10520 if test -x /usr/bin/objformat; then
10521 objformat=`/usr/bin/objformat`
10524 freebsd[123]*) objformat=aout ;;
10525 *) objformat=elf ;;
10528 version_type=freebsd-$objformat
10529 case $version_type in
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10540 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10545 freebsd3.[01]* | freebsdelf3.[01]*)
10546 shlibpath_overrides_runpath=yes
10547 hardcode_into_libs=yes
10549 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10550 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10551 shlibpath_overrides_runpath=no
10552 hardcode_into_libs=yes
10554 *) # from 4.6 on, and DragonFly
10555 shlibpath_overrides_runpath=yes
10556 hardcode_into_libs=yes
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10566 soname_spec='${libname}${release}${shared_ext}$major'
10567 shlibpath_var=LD_LIBRARY_PATH
10568 hardcode_into_libs=yes
10575 dynamic_linker="$host_os runtime_loader"
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 shlibpath_var=LIBRARY_PATH
10579 shlibpath_overrides_runpath=yes
10580 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10581 hardcode_into_libs=yes
10584 hpux9* | hpux10* | hpux11*)
10585 # Give a soname corresponding to the major version so that dld.sl refuses to
10586 # link against other versions.
10593 hardcode_into_libs=yes
10594 dynamic_linker="$host_os dld.so"
10595 shlibpath_var=LD_LIBRARY_PATH
10596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 if test "X$HPUX_IA64_MODE" = X32; then
10600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10602 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10608 hardcode_into_libs=yes
10609 dynamic_linker="$host_os dld.sl"
10610 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10619 dynamic_linker="$host_os dld.sl"
10620 shlibpath_var=SHLIB_PATH
10621 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10626 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10627 postinstall_cmds='chmod 555 $lib'
10628 # or fails outright, so override atomically:
10629 install_override_mode=555
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10637 soname_spec='${libname}${release}${shared_ext}$major'
10638 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=no
10641 hardcode_into_libs=yes
10644 irix5* | irix6* | nonstopux*)
10646 nonstopux*) version_type=nonstopux ;;
10648 if test "$lt_cv_prog_gnu_ld" = yes; then
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10659 irix5* | nonstopux*)
10660 libsuff= shlibsuff=
10663 case $LD in # libtool.m4 will add one of these switches to LD
10664 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10665 libsuff= shlibsuff= libmagic=32-bit;;
10666 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10667 libsuff=32 shlibsuff=N32 libmagic=N32;;
10668 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10669 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10670 *) libsuff= shlibsuff= libmagic=never-match;;
10674 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10675 shlibpath_overrides_runpath=no
10676 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10677 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10678 hardcode_into_libs=yes
10681 # No shared lib support for Linux oldld, aout, or coff.
10682 linux*oldld* | linux*aout* | linux*coff*)
10686 # This must be Linux ELF.
10687 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath=no
10697 # Some binutils ld are patched to set DT_RUNPATH
10698 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10699 $as_echo_n "(cached) " >&6
10701 lt_cv_shlibpath_overrides_runpath=no
10702 save_LDFLAGS=$LDFLAGS
10703 save_libdir=$libdir
10704 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10705 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10717 if ac_fn_c_try_link "$LINENO"; then :
10718 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10719 lt_cv_shlibpath_overrides_runpath=yes
10722 rm -f core conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10724 LDFLAGS=$save_LDFLAGS
10725 libdir=$save_libdir
10729 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10731 # This implies no fast_install, which is unacceptable.
10732 # Some rework will be needed to allow for fast_install
10733 # before this can be enabled.
10734 hardcode_into_libs=yes
10736 # Append ld.so.conf contents to the search path
10737 if test -f /etc/ld.so.conf; then
10738 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' ' '`
10739 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10742 # We used to test for /lib/ld.so.1 and disable shared libraries on
10743 # powerpc, because MkLinux only supported shared libraries with the
10744 # GNU dynamic linker. Since this was broken with cross compilers,
10745 # most powerpc-linux boxes support dynamic linking these days and
10746 # people can always --disable-shared, the test was removed, and we
10747 # assume the GNU/Linux dynamic linker is in use.
10748 dynamic_linker='GNU/Linux ld.so'
10755 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10758 dynamic_linker='NetBSD (a.out) ld.so'
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 dynamic_linker='NetBSD ld.elf_so'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 shlibpath_overrides_runpath=yes
10766 hardcode_into_libs=yes
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=yes
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 shlibpath_var=LD_LIBRARY_PATH
10783 shlibpath_overrides_runpath=no
10784 hardcode_into_libs=yes
10785 dynamic_linker='ldqnx.so'
10790 sys_lib_dlsearch_path_spec="/usr/lib"
10792 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10794 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10795 *) need_version=no ;;
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10802 openbsd2.[89] | openbsd2.[89].*)
10803 shlibpath_overrides_runpath=no
10806 shlibpath_overrides_runpath=yes
10810 shlibpath_overrides_runpath=yes
10815 libname_spec='$name'
10818 library_names_spec='$libname${shared_ext} $libname.a'
10819 dynamic_linker='OS/2 ld.exe'
10820 shlibpath_var=LIBPATH
10823 osf3* | osf4* | osf5*)
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10831 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843 soname_spec='${libname}${release}${shared_ext}$major'
10844 shlibpath_var=LD_LIBRARY_PATH
10845 shlibpath_overrides_runpath=yes
10846 hardcode_into_libs=yes
10847 # ldd complains unless libraries are executable
10848 postinstall_cmds='chmod +x $lib'
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10854 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 shlibpath_overrides_runpath=yes
10857 if test "$with_gnu_ld" = yes; then
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 soname_spec='${libname}${release}${shared_ext}$major'
10867 shlibpath_var=LD_LIBRARY_PATH
10868 case $host_vendor in
10870 shlibpath_overrides_runpath=no
10872 runpath_var=LD_RUN_PATH
10880 shlibpath_overrides_runpath=no
10881 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10887 if test -d /usr/nec ;then
10889 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10890 soname_spec='$libname${shared_ext}.$major'
10891 shlibpath_var=LD_LIBRARY_PATH
10895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10896 version_type=freebsd-elf
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath=yes
10903 hardcode_into_libs=yes
10904 if test "$with_gnu_ld" = yes; then
10905 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10907 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10910 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10914 sys_lib_dlsearch_path_spec='/usr/lib'
10918 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 shlibpath_overrides_runpath=no
10925 hardcode_into_libs=yes
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931 soname_spec='${libname}${release}${shared_ext}$major'
10932 shlibpath_var=LD_LIBRARY_PATH
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10940 $as_echo "$dynamic_linker" >&6; }
10941 test "$dynamic_linker" = no && can_build_shared=no
10943 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10944 if test "$GCC" = yes; then
10945 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10948 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10949 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10951 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10952 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11047 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11049 if test -n "$hardcode_libdir_flag_spec" ||
11050 test -n "$runpath_var" ||
11051 test "X$hardcode_automatic" = "Xyes" ; then
11053 # We can hardcode non-existent directories.
11054 if test "$hardcode_direct" != no &&
11055 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11056 # have to relink, otherwise we might link with an installed library
11057 # when we should be linking with a yet-to-be-installed one
11058 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11059 test "$hardcode_minus_L" != no; then
11060 # Linking always hardcodes the temporary library directory.
11061 hardcode_action=relink
11063 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11064 hardcode_action=immediate
11067 # We cannot hardcode anything, or else we can only hardcode existing
11069 hardcode_action=unsupported
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11072 $as_echo "$hardcode_action" >&6; }
11074 if test "$hardcode_action" = relink ||
11075 test "$inherit_rpath" = yes; then
11076 # Fast installation is not supported
11077 enable_fast_install=no
11078 elif test "$shlibpath_overrides_runpath" = yes ||
11079 test "$enable_shared" = no; then
11080 # Fast installation is not necessary
11081 enable_fast_install=needless
11089 if test "x$enable_dlopen" != xyes; then
11090 enable_dlopen=unknown
11091 enable_dlopen_self=unknown
11092 enable_dlopen_self_static=unknown
11099 lt_cv_dlopen="load_add_on"
11101 lt_cv_dlopen_self=yes
11104 mingw* | pw32* | cegcc*)
11105 lt_cv_dlopen="LoadLibrary"
11110 lt_cv_dlopen="dlopen"
11115 # if libdl is installed we need to link against it
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11117 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11118 if ${ac_cv_lib_dl_dlopen+:} false; then :
11119 $as_echo_n "(cached) " >&6
11121 ac_check_lib_save_LIBS=$LIBS
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h. */
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11141 if ac_fn_c_try_link "$LINENO"; then :
11142 ac_cv_lib_dl_dlopen=yes
11144 ac_cv_lib_dl_dlopen=no
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148 LIBS=$ac_check_lib_save_LIBS
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11151 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11152 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11156 lt_cv_dlopen="dyld"
11158 lt_cv_dlopen_self=yes
11165 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11166 if test "x$ac_cv_func_shl_load" = xyes; then :
11167 lt_cv_dlopen="shl_load"
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11170 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11171 if ${ac_cv_lib_dld_shl_load+:} false; then :
11172 $as_echo_n "(cached) " >&6
11174 ac_check_lib_save_LIBS=$LIBS
11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11179 /* Override any GCC internal prototype to avoid an error.
11180 Use char because int might match the return type of a GCC
11181 builtin and then its argument prototype would still apply. */
11189 return shl_load ();
11194 if ac_fn_c_try_link "$LINENO"; then :
11195 ac_cv_lib_dld_shl_load=yes
11197 ac_cv_lib_dld_shl_load=no
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 LIBS=$ac_check_lib_save_LIBS
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11204 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11205 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11206 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11208 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11209 if test "x$ac_cv_func_dlopen" = xyes; then :
11210 lt_cv_dlopen="dlopen"
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11213 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11214 if ${ac_cv_lib_dl_dlopen+:} false; then :
11215 $as_echo_n "(cached) " >&6
11217 ac_check_lib_save_LIBS=$LIBS
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11222 /* Override any GCC internal prototype to avoid an error.
11223 Use char because int might match the return type of a GCC
11224 builtin and then its argument prototype would still apply. */
11237 if ac_fn_c_try_link "$LINENO"; then :
11238 ac_cv_lib_dl_dlopen=yes
11240 ac_cv_lib_dl_dlopen=no
11242 rm -f core conftest.err conftest.$ac_objext \
11243 conftest$ac_exeext conftest.$ac_ext
11244 LIBS=$ac_check_lib_save_LIBS
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11247 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11248 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11252 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11253 if ${ac_cv_lib_svld_dlopen+:} false; then :
11254 $as_echo_n "(cached) " >&6
11256 ac_check_lib_save_LIBS=$LIBS
11257 LIBS="-lsvld $LIBS"
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11261 /* Override any GCC internal prototype to avoid an error.
11262 Use char because int might match the return type of a GCC
11263 builtin and then its argument prototype would still apply. */
11276 if ac_fn_c_try_link "$LINENO"; then :
11277 ac_cv_lib_svld_dlopen=yes
11279 ac_cv_lib_svld_dlopen=no
11281 rm -f core conftest.err conftest.$ac_objext \
11282 conftest$ac_exeext conftest.$ac_ext
11283 LIBS=$ac_check_lib_save_LIBS
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11286 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11287 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11288 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11291 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11292 if ${ac_cv_lib_dld_dld_link+:} false; then :
11293 $as_echo_n "(cached) " >&6
11295 ac_check_lib_save_LIBS=$LIBS
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11300 /* Override any GCC internal prototype to avoid an error.
11301 Use char because int might match the return type of a GCC
11302 builtin and then its argument prototype would still apply. */
11310 return dld_link ();
11315 if ac_fn_c_try_link "$LINENO"; then :
11316 ac_cv_lib_dld_dld_link=yes
11318 ac_cv_lib_dld_dld_link=no
11320 rm -f core conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11325 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11326 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11327 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11348 if test "x$lt_cv_dlopen" != xno; then
11354 case $lt_cv_dlopen in
11356 save_CPPFLAGS="$CPPFLAGS"
11357 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11359 save_LDFLAGS="$LDFLAGS"
11360 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11363 LIBS="$lt_cv_dlopen_libs $LIBS"
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11366 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11367 if ${lt_cv_dlopen_self+:} false; then :
11368 $as_echo_n "(cached) " >&6
11370 if test "$cross_compiling" = yes; then :
11371 lt_cv_dlopen_self=cross
11373 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11374 lt_status=$lt_dlunknown
11375 cat > conftest.$ac_ext <<_LT_EOF
11376 #line $LINENO "configure"
11377 #include "confdefs.h"
11386 # define LT_DLGLOBAL RTLD_GLOBAL
11389 # define LT_DLGLOBAL DL_GLOBAL
11391 # define LT_DLGLOBAL 0
11395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11396 find out it does not work in some platform. */
11397 #ifndef LT_DLLAZY_OR_NOW
11399 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11402 # define LT_DLLAZY_OR_NOW DL_LAZY
11405 # define LT_DLLAZY_OR_NOW RTLD_NOW
11408 # define LT_DLLAZY_OR_NOW DL_NOW
11410 # define LT_DLLAZY_OR_NOW 0
11417 /* When -fvisbility=hidden is used, assume the code has been annotated
11418 correspondingly for the symbols needed. */
11419 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11420 int fnord () __attribute__((visibility("default")));
11423 int fnord () { return 42; }
11426 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11427 int status = $lt_dlunknown;
11431 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11434 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11435 else puts (dlerror ());
11437 /* dlclose (self); */
11445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11446 (eval $ac_link) 2>&5
11448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11449 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11450 (./conftest; exit; ) >&5 2>/dev/null
11452 case x$lt_status in
11453 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11454 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11455 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11458 # compilation failed
11459 lt_cv_dlopen_self=no
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11467 $as_echo "$lt_cv_dlopen_self" >&6; }
11469 if test "x$lt_cv_dlopen_self" = xyes; then
11470 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11472 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11473 if ${lt_cv_dlopen_self_static+:} false; then :
11474 $as_echo_n "(cached) " >&6
11476 if test "$cross_compiling" = yes; then :
11477 lt_cv_dlopen_self_static=cross
11479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11480 lt_status=$lt_dlunknown
11481 cat > conftest.$ac_ext <<_LT_EOF
11482 #line $LINENO "configure"
11483 #include "confdefs.h"
11492 # define LT_DLGLOBAL RTLD_GLOBAL
11495 # define LT_DLGLOBAL DL_GLOBAL
11497 # define LT_DLGLOBAL 0
11501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11502 find out it does not work in some platform. */
11503 #ifndef LT_DLLAZY_OR_NOW
11505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11508 # define LT_DLLAZY_OR_NOW DL_LAZY
11511 # define LT_DLLAZY_OR_NOW RTLD_NOW
11514 # define LT_DLLAZY_OR_NOW DL_NOW
11516 # define LT_DLLAZY_OR_NOW 0
11523 /* When -fvisbility=hidden is used, assume the code has been annotated
11524 correspondingly for the symbols needed. */
11525 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11526 int fnord () __attribute__((visibility("default")));
11529 int fnord () { return 42; }
11532 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11533 int status = $lt_dlunknown;
11537 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11540 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11541 else puts (dlerror ());
11543 /* dlclose (self); */
11551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11552 (eval $ac_link) 2>&5
11554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11555 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11556 (./conftest; exit; ) >&5 2>/dev/null
11558 case x$lt_status in
11559 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11560 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11561 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11564 # compilation failed
11565 lt_cv_dlopen_self_static=no
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11573 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11576 CPPFLAGS="$save_CPPFLAGS"
11577 LDFLAGS="$save_LDFLAGS"
11582 case $lt_cv_dlopen_self in
11583 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11584 *) enable_dlopen_self=unknown ;;
11587 case $lt_cv_dlopen_self_static in
11588 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11589 *) enable_dlopen_self_static=unknown ;;
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11612 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11613 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11617 $as_echo "yes" >&6; }
11619 # FIXME - insert some real tests, host_os isn't really good enough
11622 if test -n "$STRIP" ; then
11623 striplib="$STRIP -x"
11624 old_striplib="$STRIP -S"
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626 $as_echo "yes" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11650 # Report which library types will actually be built
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11652 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11654 $as_echo "$can_build_shared" >&6; }
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11657 $as_echo_n "checking whether to build shared libraries... " >&6; }
11658 test "$can_build_shared" = "no" && enable_shared=no
11660 # On AIX, shared libraries and static libraries use the same namespace, and
11661 # are all built from PIC.
11664 test "$enable_shared" = yes && enable_static=no
11665 if test -n "$RANLIB"; then
11666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11667 postinstall_cmds='$RANLIB $lib'
11672 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11673 test "$enable_shared" = yes && enable_static=no
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11678 $as_echo "$enable_shared" >&6; }
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11681 $as_echo_n "checking whether to build static libraries... " >&6; }
11682 # Make sure either enable_shared or enable_static is yes.
11683 test "$enable_shared" = yes || enable_static=yes
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11685 $as_echo "$enable_static" >&6; }
11692 ac_cpp='$CPP $CPPFLAGS'
11693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11699 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11700 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11701 (test "X$CXX" != "Xg++"))) ; then
11703 ac_cpp='$CXXCPP $CPPFLAGS'
11704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11708 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11709 if test -z "$CXXCPP"; then
11710 if ${ac_cv_prog_CXXCPP+:} false; then :
11711 $as_echo_n "(cached) " >&6
11713 # Double quotes because CXXCPP needs to be expanded
11714 for CXXCPP in "$CXX -E" "/lib/cpp"
11716 ac_preproc_ok=false
11717 for ac_cxx_preproc_warn_flag in '' yes
11719 # Use a header file that comes with gcc, so configuring glibc
11720 # with a fresh cross-compiler works.
11721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11722 # <limits.h> exists even on freestanding compilers.
11723 # On the NeXT, cc -E runs the code through the compiler's parser,
11724 # not just through cpp. "Syntax error" is here to catch this case.
11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11728 # include <limits.h>
11730 # include <assert.h>
11734 if ac_fn_cxx_try_cpp "$LINENO"; then :
11737 # Broken: fails on valid input.
11740 rm -f conftest.err conftest.i conftest.$ac_ext
11742 # OK, works on sane cases. Now check whether nonexistent headers
11743 # can be detected and how.
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746 #include <ac_nonexistent.h>
11748 if ac_fn_cxx_try_cpp "$LINENO"; then :
11749 # Broken: success on invalid input.
11752 # Passes both tests.
11756 rm -f conftest.err conftest.i conftest.$ac_ext
11759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11760 rm -f conftest.i conftest.err conftest.$ac_ext
11761 if $ac_preproc_ok; then :
11766 ac_cv_prog_CXXCPP=$CXXCPP
11769 CXXCPP=$ac_cv_prog_CXXCPP
11771 ac_cv_prog_CXXCPP=$CXXCPP
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11774 $as_echo "$CXXCPP" >&6; }
11775 ac_preproc_ok=false
11776 for ac_cxx_preproc_warn_flag in '' yes
11778 # Use a header file that comes with gcc, so configuring glibc
11779 # with a fresh cross-compiler works.
11780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11781 # <limits.h> exists even on freestanding compilers.
11782 # On the NeXT, cc -E runs the code through the compiler's parser,
11783 # not just through cpp. "Syntax error" is here to catch this case.
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11787 # include <limits.h>
11789 # include <assert.h>
11793 if ac_fn_cxx_try_cpp "$LINENO"; then :
11796 # Broken: fails on valid input.
11799 rm -f conftest.err conftest.i conftest.$ac_ext
11801 # OK, works on sane cases. Now check whether nonexistent headers
11802 # can be detected and how.
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11805 #include <ac_nonexistent.h>
11807 if ac_fn_cxx_try_cpp "$LINENO"; then :
11808 # Broken: success on invalid input.
11811 # Passes both tests.
11815 rm -f conftest.err conftest.i conftest.$ac_ext
11818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11819 rm -f conftest.i conftest.err conftest.$ac_ext
11820 if $ac_preproc_ok; then :
11823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11825 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11826 See \`config.log' for more details" "$LINENO" 5; }
11830 ac_cpp='$CPP $CPPFLAGS'
11831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11836 _lt_caught_CXX_error=yes
11840 ac_cpp='$CXXCPP $CPPFLAGS'
11841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11845 archive_cmds_need_lc_CXX=no
11846 allow_undefined_flag_CXX=
11847 always_export_symbols_CXX=no
11848 archive_expsym_cmds_CXX=
11849 compiler_needs_object_CXX=no
11850 export_dynamic_flag_spec_CXX=
11851 hardcode_direct_CXX=no
11852 hardcode_direct_absolute_CXX=no
11853 hardcode_libdir_flag_spec_CXX=
11854 hardcode_libdir_flag_spec_ld_CXX=
11855 hardcode_libdir_separator_CXX=
11856 hardcode_minus_L_CXX=no
11857 hardcode_shlibpath_var_CXX=unsupported
11858 hardcode_automatic_CXX=no
11859 inherit_rpath_CXX=no
11861 module_expsym_cmds_CXX=
11862 link_all_deplibs_CXX=unknown
11863 old_archive_cmds_CXX=$old_archive_cmds
11864 reload_flag_CXX=$reload_flag
11865 reload_cmds_CXX=$reload_cmds
11866 no_undefined_flag_CXX=
11867 whole_archive_flag_spec_CXX=
11868 enable_shared_with_static_runtimes_CXX=no
11870 # Source file extension for C++ test sources.
11873 # Object file extension for compiled C++ test sources.
11877 # No sense in running all these tests if we already determined that
11878 # the CXX compiler isn't working. Some variables (like enable_shared)
11879 # are currently assumed to apply to all compilers on this platform,
11880 # and will be corrupted by setting them based on a non-working compiler.
11881 if test "$_lt_caught_CXX_error" != yes; then
11882 # Code to be used in simple compile tests
11883 lt_simple_compile_test_code="int some_variable = 0;"
11885 # Code to be used in simple link tests
11886 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11888 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11895 # If no C compiler was specified, use CC.
11898 # If no C compiler flags were specified, use CFLAGS.
11899 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11901 # Allow CC to be a program name with arguments.
11905 # save warnings/boilerplate of simple test code
11906 ac_outfile=conftest.$ac_objext
11907 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11908 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11909 _lt_compiler_boilerplate=`cat conftest.err`
11912 ac_outfile=conftest.$ac_objext
11913 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11914 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11915 _lt_linker_boilerplate=`cat conftest.err`
11919 # Allow CC to be a program name with arguments.
11921 lt_save_CFLAGS=$CFLAGS
11925 lt_save_with_gnu_ld=$with_gnu_ld
11926 lt_save_path_LD=$lt_cv_path_LD
11927 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11928 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11930 $as_unset lt_cv_prog_gnu_ld
11932 if test -n "${lt_cv_path_LDCXX+set}"; then
11933 lt_cv_path_LD=$lt_cv_path_LDCXX
11935 $as_unset lt_cv_path_LD
11937 test -z "${LDCXX+set}" || LD=$LDCXX
11942 for cc_temp in $compiler""; do
11944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11950 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11953 if test -n "$compiler"; then
11954 # We don't want -fno-exception when compiling C++ code, so set the
11955 # no_builtin_flag separately
11956 if test "$GXX" = yes; then
11957 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11959 lt_prog_compiler_no_builtin_flag_CXX=
11962 if test "$GXX" = yes; then
11963 # Set up default GNU C++ configuration
11967 # Check whether --with-gnu-ld was given.
11968 if test "${with_gnu_ld+set}" = set; then :
11969 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11975 if test "$GCC" = yes; then
11976 # Check if gcc -print-prog-name=ld gives a path.
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11978 $as_echo_n "checking for ld used by $CC... " >&6; }
11981 # gcc leaves a trailing carriage return which upsets mingw
11982 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11984 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11987 # Accept absolute paths.
11989 re_direlt='/[^/][^/]*/\.\./'
11990 # Canonicalize the pathname of ld
11991 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11992 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11993 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11995 test -z "$LD" && LD="$ac_prog"
11998 # If it fails, then pretend we aren't using GCC.
12002 # If it is relative, then search for the first ld in PATH.
12003 with_gnu_ld=unknown
12006 elif test "$with_gnu_ld" = yes; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12008 $as_echo_n "checking for GNU ld... " >&6; }
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12011 $as_echo_n "checking for non-GNU ld... " >&6; }
12013 if ${lt_cv_path_LD+:} false; then :
12014 $as_echo_n "(cached) " >&6
12016 if test -z "$LD"; then
12017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12018 for ac_dir in $PATH; do
12020 test -z "$ac_dir" && ac_dir=.
12021 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12022 lt_cv_path_LD="$ac_dir/$ac_prog"
12023 # Check to see if the program is GNU ld. I'd rather use --version,
12024 # but apparently some variants of GNU ld only accept -v.
12025 # Break only if it was the GNU/non-GNU ld that we prefer.
12026 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12027 *GNU* | *'with BFD'*)
12028 test "$with_gnu_ld" != no && break
12031 test "$with_gnu_ld" != yes && break
12038 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12042 LD="$lt_cv_path_LD"
12043 if test -n "$LD"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12045 $as_echo "$LD" >&6; }
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12050 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12052 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12053 if ${lt_cv_prog_gnu_ld+:} false; then :
12054 $as_echo_n "(cached) " >&6
12056 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12057 case `$LD -v 2>&1 </dev/null` in
12058 *GNU* | *'with BFD'*)
12059 lt_cv_prog_gnu_ld=yes
12062 lt_cv_prog_gnu_ld=no
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12067 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12068 with_gnu_ld=$lt_cv_prog_gnu_ld
12076 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12077 # archiving commands below assume that GNU ld is being used.
12078 if test "$with_gnu_ld" = yes; then
12079 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12080 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'
12082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12083 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12085 # If archive_cmds runs LD, not CC, wlarc should be empty
12086 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12087 # investigate it a little bit more. (MM)
12090 # ancient GNU ld didn't support --whole-archive et. al.
12091 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12092 $GREP 'no-whole-archive' > /dev/null; then
12093 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12095 whole_archive_flag_spec_CXX=
12101 # A generic and very simple default shared library creation
12102 # command for GNU C++ for the case where it uses the native
12103 # linker, instead of GNU ld. If possible, this setting should
12104 # overridden to take advantage of the native linker features on
12105 # the platform it is being used on.
12106 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12109 # Commands to make compiler produce verbose output that lists
12110 # what "hidden" libraries, object files and flags are used when
12111 # linking a shared library.
12112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12120 # PORTME: fill in a description of your system's C++ link characteristics
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12126 # FIXME: insert proper C++ library support
12130 if test "$host_cpu" = ia64; then
12131 # On IA64, the linker does run time linking by default, so we don't
12132 # have to do anything special.
12133 aix_use_runtimelinking=no
12134 exp_sym_flag='-Bexport'
12137 aix_use_runtimelinking=no
12139 # Test if we are trying to use run time linking or normal
12140 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12141 # need to do runtime linking.
12142 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12143 for ld_flag in $LDFLAGS; do
12146 aix_use_runtimelinking=yes
12154 exp_sym_flag='-bexport'
12155 no_entry_flag='-bnoentry'
12158 # When large executables or shared objects are built, AIX ld can
12159 # have problems creating the table of contents. If linking a library
12160 # or program results in "error TOC overflow" add -mminimal-toc to
12161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12164 archive_cmds_CXX=''
12165 hardcode_direct_CXX=yes
12166 hardcode_direct_absolute_CXX=yes
12167 hardcode_libdir_separator_CXX=':'
12168 link_all_deplibs_CXX=yes
12169 file_list_spec_CXX='${wl}-f,'
12171 if test "$GXX" = yes; then
12172 case $host_os in aix4.[012]|aix4.[012].*)
12173 # We only want to do this on AIX 4.2 and lower, the check
12174 # below for broken collect2 doesn't work under 4.3+
12175 collect2name=`${CC} -print-prog-name=collect2`
12176 if test -f "$collect2name" &&
12177 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12179 # We have reworked collect2
12182 # We have old collect2
12183 hardcode_direct_CXX=unsupported
12184 # It fails to find uninstalled libraries when the uninstalled
12185 # path is not listed in the libpath. Setting hardcode_minus_L
12186 # to unsupported forces relinking
12187 hardcode_minus_L_CXX=yes
12188 hardcode_libdir_flag_spec_CXX='-L$libdir'
12189 hardcode_libdir_separator_CXX=
12192 shared_flag='-shared'
12193 if test "$aix_use_runtimelinking" = yes; then
12194 shared_flag="$shared_flag "'${wl}-G'
12198 if test "$host_cpu" = ia64; then
12199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12200 # chokes on -Wl,-G. The following line is correct:
12203 if test "$aix_use_runtimelinking" = yes; then
12204 shared_flag='${wl}-G'
12206 shared_flag='${wl}-bM:SRE'
12211 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12212 # It seems that -bexpall does not export symbols beginning with
12213 # underscore (_), so it is better to generate a list of symbols to
12215 always_export_symbols_CXX=yes
12216 if test "$aix_use_runtimelinking" = yes; then
12217 # Warning - without using the other runtime loading flags (-brtl),
12218 # -berok will link without error, but may produce a broken library.
12219 allow_undefined_flag_CXX='-berok'
12220 # Determine the default libpath from the value encoded in an empty
12222 if test "${lt_cv_aix_libpath+set}" = set; then
12223 aix_libpath=$lt_cv_aix_libpath
12225 if ${lt_cv_aix_libpath__CXX+:} false; then :
12226 $as_echo_n "(cached) " >&6
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12239 if ac_fn_cxx_try_link "$LINENO"; then :
12241 lt_aix_libpath_sed='
12242 /Import File Strings/,/^$/ {
12244 s/^0 *\([^ ]*\) *$/\1/
12248 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12249 # Check for a 64-bit object if we didn't find anything.
12250 if test -z "$lt_cv_aix_libpath__CXX"; then
12251 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12254 rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12256 if test -z "$lt_cv_aix_libpath__CXX"; then
12257 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12262 aix_libpath=$lt_cv_aix_libpath__CXX
12265 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12267 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"
12269 if test "$host_cpu" = ia64; then
12270 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12271 allow_undefined_flag_CXX="-z nodefs"
12272 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"
12274 # Determine the default libpath from the value encoded in an
12275 # empty executable.
12276 if test "${lt_cv_aix_libpath+set}" = set; then
12277 aix_libpath=$lt_cv_aix_libpath
12279 if ${lt_cv_aix_libpath__CXX+:} false; then :
12280 $as_echo_n "(cached) " >&6
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12293 if ac_fn_cxx_try_link "$LINENO"; then :
12295 lt_aix_libpath_sed='
12296 /Import File Strings/,/^$/ {
12298 s/^0 *\([^ ]*\) *$/\1/
12302 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12303 # Check for a 64-bit object if we didn't find anything.
12304 if test -z "$lt_cv_aix_libpath__CXX"; then
12305 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12308 rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 if test -z "$lt_cv_aix_libpath__CXX"; then
12311 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12316 aix_libpath=$lt_cv_aix_libpath__CXX
12319 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12320 # Warning - without using the other run time loading flags,
12321 # -berok will link without error, but may produce a broken library.
12322 no_undefined_flag_CXX=' ${wl}-bernotok'
12323 allow_undefined_flag_CXX=' ${wl}-berok'
12324 if test "$with_gnu_ld" = yes; then
12325 # We only use this code for GNU lds that support --whole-archive.
12326 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12328 # Exported symbols can be pulled into shared objects from archives
12329 whole_archive_flag_spec_CXX='$convenience'
12331 archive_cmds_need_lc_CXX=yes
12332 # This is similar to how AIX traditionally builds its shared
12334 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'
12340 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12341 allow_undefined_flag_CXX=unsupported
12342 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12343 # support --undefined. This deserves some investigation. FIXME
12344 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12351 case $cc_basename in
12353 # FIXME: insert proper C++ library support
12359 cygwin* | mingw* | pw32* | cegcc*)
12360 case $GXX,$cc_basename in
12363 # hardcode_libdir_flag_spec is actually meaningless, as there is
12364 # no search path for DLLs.
12365 hardcode_libdir_flag_spec_CXX=' '
12366 allow_undefined_flag_CXX=unsupported
12367 always_export_symbols_CXX=yes
12368 file_list_spec_CXX='@'
12369 # Tell ltmain to make .lib files, not .a files.
12371 # Tell ltmain to make .dll files, not .so files.
12373 # FIXME: Setting linknames here is a bad hack.
12374 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12375 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12376 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12378 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12380 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12382 # The linker will not automatically build a static lib if we build a DLL.
12383 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12384 enable_shared_with_static_runtimes_CXX=yes
12386 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12387 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12388 lt_tool_outputfile="@TOOL_OUTPUT@"~
12389 case $lt_outputfile in
12392 lt_outputfile="$lt_outputfile.exe"
12393 lt_tool_outputfile="$lt_tool_outputfile.exe"
12396 func_to_tool_file "$lt_outputfile"~
12397 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12398 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12399 $RM "$lt_outputfile.manifest";
12404 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12405 # as there is no search path for DLLs.
12406 hardcode_libdir_flag_spec_CXX='-L$libdir'
12407 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12408 allow_undefined_flag_CXX=unsupported
12409 always_export_symbols_CXX=no
12410 enable_shared_with_static_runtimes_CXX=yes
12412 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12413 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'
12414 # If the export-symbols file already is a .def file (1st line
12415 # is EXPORTS), use it as is; otherwise, prepend...
12416 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12417 cp $export_symbols $output_objdir/$soname.def;
12419 echo EXPORTS > $output_objdir/$soname.def;
12420 cat $export_symbols >> $output_objdir/$soname.def;
12422 $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'
12429 darwin* | rhapsody*)
12432 archive_cmds_need_lc_CXX=no
12433 hardcode_direct_CXX=no
12434 hardcode_automatic_CXX=yes
12435 hardcode_shlibpath_var_CXX=unsupported
12436 if test "$lt_cv_ld_force_load" = "yes"; then
12437 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\"`'
12439 whole_archive_flag_spec_CXX=''
12441 link_all_deplibs_CXX=yes
12442 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12443 case $cc_basename in
12444 ifort*) _lt_dar_can_shared=yes ;;
12445 *) _lt_dar_can_shared=$GCC ;;
12447 if test "$_lt_dar_can_shared" = "yes"; then
12448 output_verbose_link_cmd=func_echo_all
12449 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}"
12450 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12451 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}"
12452 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}"
12453 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12454 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}"
12455 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}"
12465 case $cc_basename in
12467 # FIXME: insert proper C++ library support
12471 # Green Hills C++ Compiler
12472 # FIXME: insert proper C++ library support
12476 # FIXME: insert proper C++ library support
12483 # C++ shared libraries reported to be fairly broken before
12489 archive_cmds_need_lc_CXX=no
12492 freebsd* | dragonfly*)
12493 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12502 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12503 link_all_deplibs_CXX=yes
12507 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12508 hardcode_libdir_separator_CXX=:
12509 export_dynamic_flag_spec_CXX='${wl}-E'
12510 hardcode_direct_CXX=yes
12511 hardcode_minus_L_CXX=yes # Not in the search PATH,
12512 # but as the default
12513 # location of the library.
12515 case $cc_basename in
12517 # FIXME: insert proper C++ library support
12521 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'
12522 # Commands to make compiler produce verbose output that lists
12523 # what "hidden" libraries, object files and flags are used when
12524 # linking a shared library.
12526 # There doesn't appear to be a way to prevent this compiler from
12527 # explicitly linking system object files so we need to strip them
12528 # from the output so that they don't get included in the library
12530 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"'
12533 if test "$GXX" = yes; then
12534 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'
12536 # FIXME: insert proper C++ library support
12544 if test $with_gnu_ld = no; then
12545 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12546 hardcode_libdir_separator_CXX=:
12552 export_dynamic_flag_spec_CXX='${wl}-E'
12558 hardcode_direct_CXX=no
12559 hardcode_shlibpath_var_CXX=no
12562 hardcode_direct_CXX=yes
12563 hardcode_direct_absolute_CXX=yes
12564 hardcode_minus_L_CXX=yes # Not in the search PATH,
12565 # but as the default
12566 # location of the library.
12570 case $cc_basename in
12572 # FIXME: insert proper C++ library support
12578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12581 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12584 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12587 # Commands to make compiler produce verbose output that lists
12588 # what "hidden" libraries, object files and flags are used when
12589 # linking a shared library.
12591 # There doesn't appear to be a way to prevent this compiler from
12592 # explicitly linking system object files so we need to strip them
12593 # from the output so that they don't get included in the library
12595 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"'
12598 if test "$GXX" = yes; then
12599 if test $with_gnu_ld = no; then
12602 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12605 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12608 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'
12613 # FIXME: insert proper C++ library support
12621 hardcode_direct_CXX=no
12622 hardcode_shlibpath_var_CXX=no
12623 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12624 export_dynamic_flag_spec_CXX='${wl}-E'
12625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12626 # Instead, shared libraries are loaded at an image base (0x10000000 by
12627 # default) and relocated if they conflict, which is a slow very memory
12628 # consuming and fragmenting process. To avoid this, we pick a random,
12629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12631 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'
12632 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'
12635 case $cc_basename in
12638 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'
12640 # Archives containing C++ object files must be created using
12641 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12642 # necessary to make sure instantiated templates are included
12644 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12647 if test "$GXX" = yes; then
12648 if test "$with_gnu_ld" = no; then
12649 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'
12651 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'
12654 link_all_deplibs_CXX=yes
12657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12658 hardcode_libdir_separator_CXX=:
12659 inherit_rpath_CXX=yes
12662 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12663 case $cc_basename in
12665 # Kuck and Associates, Inc. (KAI) C++ Compiler
12667 # KCC will only create a shared library if the output file
12668 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12669 # to its proper name (with version) after linking.
12670 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'
12671 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'
12672 # Commands to make compiler produce verbose output that lists
12673 # what "hidden" libraries, object files and flags are used when
12674 # linking a shared library.
12676 # There doesn't appear to be a way to prevent this compiler from
12677 # explicitly linking system object files so we need to strip them
12678 # from the output so that they don't get included in the library
12680 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"'
12682 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12683 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12685 # Archives containing C++ object files must be created using
12686 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12687 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12692 # version 8.0 and above of icpc choke on multiply defined symbols
12693 # if we add $predep_objects and $postdep_objects, however 7.1 and
12694 # earlier do not add the objects themselves.
12695 case `$CC -V 2>&1` in
12697 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12698 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'
12700 *) # Version 8.0 or newer
12703 ia64*) tmp_idyn=' -i_dynamic';;
12705 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12706 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'
12709 archive_cmds_need_lc_CXX=no
12710 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12712 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12715 # Portland Group C++ compiler
12717 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12718 prelink_cmds_CXX='tpldir=Template.dir~
12720 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12721 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12722 old_archive_cmds_CXX='tpldir=Template.dir~
12724 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12725 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12727 archive_cmds_CXX='tpldir=Template.dir~
12729 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12730 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12731 archive_expsym_cmds_CXX='tpldir=Template.dir~
12733 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12734 $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'
12736 *) # Version 6 and above use weak symbols
12737 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12738 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'
12742 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12743 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12744 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'
12748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12749 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'
12751 runpath_var=LD_RUN_PATH
12752 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12753 hardcode_libdir_separator_CXX=:
12755 # Commands to make compiler produce verbose output that lists
12756 # what "hidden" libraries, object files and flags are used when
12757 # linking a shared library.
12759 # There doesn't appear to be a way to prevent this compiler from
12760 # explicitly linking system object files so we need to strip them
12761 # from the output so that they don't get included in the library
12763 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'
12765 xl* | mpixl* | bgxl*)
12766 # IBM XL 8.0 on PPC, with GNU ld
12767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12768 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12769 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12770 if test "x$supports_anon_versioning" = xyes; then
12771 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12773 echo "local: *; };" >> $output_objdir/$libname.ver~
12774 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12778 case `$CC -V 2>&1 | sed 5q` in
12781 no_undefined_flag_CXX=' -zdefs'
12782 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12783 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'
12784 hardcode_libdir_flag_spec_CXX='-R$libdir'
12785 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'
12786 compiler_needs_object_CXX=yes
12788 # Not sure whether something based on
12789 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12791 output_verbose_link_cmd='func_echo_all'
12793 # Archives containing C++ object files must be created using
12794 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12795 # necessary to make sure instantiated templates are included
12797 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12805 # FIXME: insert proper C++ library support
12810 # FIXME: insert proper C++ library support
12815 case $cc_basename in
12817 # FIXME: insert proper C++ library support
12821 # FIXME: insert proper C++ library support
12828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12829 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12831 hardcode_libdir_flag_spec_CXX='-R$libdir'
12832 hardcode_direct_CXX=yes
12833 hardcode_shlibpath_var_CXX=no
12835 # Workaround some broken pre-1.5 toolchains
12836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12844 # C++ shared libraries are fairly broken
12849 if test -f /usr/libexec/ld.so; then
12850 hardcode_direct_CXX=yes
12851 hardcode_shlibpath_var_CXX=no
12852 hardcode_direct_absolute_CXX=yes
12853 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12856 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12857 export_dynamic_flag_spec_CXX='${wl}-E'
12858 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12860 output_verbose_link_cmd=func_echo_all
12866 osf3* | osf4* | osf5*)
12867 case $cc_basename in
12869 # Kuck and Associates, Inc. (KAI) C++ Compiler
12871 # KCC will only create a shared library if the output file
12872 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12873 # to its proper name (with version) after linking.
12874 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'
12876 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12877 hardcode_libdir_separator_CXX=:
12879 # Archives containing C++ object files must be created using
12880 # the KAI C++ compiler.
12882 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12883 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12887 # Rational C++ 2.4.1
12888 # FIXME: insert proper C++ library support
12894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12895 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'
12896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12899 allow_undefined_flag_CXX=' -expect_unresolved \*'
12900 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'
12901 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12902 echo "-hidden">> $lib.exp~
12903 $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~
12905 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12909 hardcode_libdir_separator_CXX=:
12911 # Commands to make compiler produce verbose output that lists
12912 # what "hidden" libraries, object files and flags are used when
12913 # linking a shared library.
12915 # There doesn't appear to be a way to prevent this compiler from
12916 # explicitly linking system object files so we need to strip them
12917 # from the output so that they don't get included in the library
12919 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"'
12922 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12923 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12926 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'
12929 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'
12933 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12934 hardcode_libdir_separator_CXX=:
12936 # Commands to make compiler produce verbose output that lists
12937 # what "hidden" libraries, object files and flags are used when
12938 # linking a shared library.
12939 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12942 # FIXME: insert proper C++ library support
12950 # FIXME: insert proper C++ library support
12955 case $cc_basename in
12958 # FIXME: insert proper C++ library support
12963 # FIXME: insert proper C++ library support
12967 # FIXME: insert proper C++ library support
12974 case $cc_basename in
12976 # Sun C++ 4.2, 5.x and Centerline C++
12977 archive_cmds_need_lc_CXX=yes
12978 no_undefined_flag_CXX=' -zdefs'
12979 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12980 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12981 $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'
12983 hardcode_libdir_flag_spec_CXX='-R$libdir'
12984 hardcode_shlibpath_var_CXX=no
12986 solaris2.[0-5] | solaris2.[0-5].*) ;;
12988 # The compiler driver will combine and reorder linker options,
12989 # but understands `-z linker_flag'.
12990 # Supported since Solaris 2.6 (maybe 2.5.1?)
12991 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12994 link_all_deplibs_CXX=yes
12996 output_verbose_link_cmd='func_echo_all'
12998 # Archives containing C++ object files must be created using
12999 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13000 # necessary to make sure instantiated templates are included
13002 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13005 # Green Hills C++ Compiler
13006 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13008 # The C++ compiler must be used to create the archive.
13009 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13012 # GNU C++ compiler with Solaris linker
13013 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13014 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13015 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13016 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13017 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13018 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13020 # Commands to make compiler produce verbose output that lists
13021 # what "hidden" libraries, object files and flags are used when
13022 # linking a shared library.
13023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13025 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13027 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13028 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13029 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13031 # Commands to make compiler produce verbose output that lists
13032 # what "hidden" libraries, object files and flags are used when
13033 # linking a shared library.
13034 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13037 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13039 solaris2.[0-5] | solaris2.[0-5].*) ;;
13041 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13050 no_undefined_flag_CXX='${wl}-z,text'
13051 archive_cmds_need_lc_CXX=no
13052 hardcode_shlibpath_var_CXX=no
13053 runpath_var='LD_RUN_PATH'
13055 case $cc_basename in
13057 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13058 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13061 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13067 sysv5* | sco3.2v5* | sco5v6*)
13068 # Note: We can NOT use -z defs as we might desire, because we do not
13069 # link with -lc, and that would cause any symbols used from libc to
13070 # always be unresolved, which means just about no library would
13071 # ever link correctly. If we're not using GNU ld we use -z text
13072 # though, which does catch some bad symbols but isn't as heavy-handed
13074 no_undefined_flag_CXX='${wl}-z,text'
13075 allow_undefined_flag_CXX='${wl}-z,nodefs'
13076 archive_cmds_need_lc_CXX=no
13077 hardcode_shlibpath_var_CXX=no
13078 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13079 hardcode_libdir_separator_CXX=':'
13080 link_all_deplibs_CXX=yes
13081 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13082 runpath_var='LD_RUN_PATH'
13084 case $cc_basename in
13086 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13087 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13088 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13089 '"$old_archive_cmds_CXX"
13090 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13091 '"$reload_cmds_CXX"
13094 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13095 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13101 case $cc_basename in
13103 # NonStop-UX NCC 3.20
13104 # FIXME: insert proper C++ library support
13108 # FIXME: insert proper C++ library support
13115 # FIXME: insert proper C++ library support
13120 # FIXME: insert proper C++ library support
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13126 $as_echo "$ld_shlibs_CXX" >&6; }
13127 test "$ld_shlibs_CXX" = no && can_build_shared=no
13133 ## There is no encapsulation within the following macros, do not change
13134 ## the running order or otherwise move them around unless you know exactly
13135 ## what you are doing...
13136 # Dependencies to place before and after the object being linked:
13137 predep_objects_CXX=
13138 postdep_objects_CXX=
13141 compiler_lib_search_path_CXX=
13143 cat > conftest.$ac_ext <<_LT_EOF
13147 Foo (void) { a = 0; }
13154 _lt_libdeps_save_CFLAGS=$CFLAGS
13155 case "$CC $CFLAGS " in #(
13156 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13157 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13161 (eval $ac_compile) 2>&5
13163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164 test $ac_status = 0; }; then
13165 # Parse the compiler output and extract the necessary
13166 # objects, libraries and library flags.
13168 # Sentinel used to keep track of whether or not we are before
13169 # the conftest object file.
13170 pre_test_object_deps_done=no
13172 for p in `eval "$output_verbose_link_cmd"`; do
13173 case ${prev}${p} in
13176 # Some compilers place space between "-{L,R}" and the path.
13177 # Remove the space.
13178 if test $p = "-L" ||
13179 test $p = "-R"; then
13184 # Expand the sysroot to ease extracting the directories later.
13185 if test -z "$prev"; then
13187 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13188 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13189 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13193 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13195 if test "$pre_test_object_deps_done" = no; then
13198 # Internal compiler library paths should come after those
13199 # provided the user. The postdeps already come after the
13200 # user supplied libs so there is no need to process them.
13201 if test -z "$compiler_lib_search_path_CXX"; then
13202 compiler_lib_search_path_CXX="${prev}${p}"
13204 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13207 # The "-l" case would never come before the object being
13208 # linked, so don't bother handling this case.
13211 if test -z "$postdeps_CXX"; then
13212 postdeps_CXX="${prev}${p}"
13214 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13220 *.lto.$objext) ;; # Ignore GCC LTO objects
13222 # This assumes that the test object file only shows up
13223 # once in the compiler output.
13224 if test "$p" = "conftest.$objext"; then
13225 pre_test_object_deps_done=yes
13229 if test "$pre_test_object_deps_done" = no; then
13230 if test -z "$predep_objects_CXX"; then
13231 predep_objects_CXX="$p"
13233 predep_objects_CXX="$predep_objects_CXX $p"
13236 if test -z "$postdep_objects_CXX"; then
13237 postdep_objects_CXX="$p"
13239 postdep_objects_CXX="$postdep_objects_CXX $p"
13244 *) ;; # Ignore the rest.
13252 echo "libtool.m4: error: problem compiling CXX test program"
13255 $RM -f confest.$objext
13256 CFLAGS=$_lt_libdeps_save_CFLAGS
13258 # PORTME: override above test on systems where it is broken
13261 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13262 # hack all around it, let's just trust "g++" to DTRT.
13263 predep_objects_CXX=
13264 postdep_objects_CXX=
13269 case `$CC -V 2>&1 | sed 5q` in
13273 # The more standards-conforming stlport4 library is
13274 # incompatible with the Cstd library. Avoid specifying
13275 # it if it's in CXXFLAGS. Ignore libCrun as
13276 # -library=stlport4 depends on it.
13277 case " $CXX $CXXFLAGS " in
13278 *" -library=stlport4 "*)
13279 solaris_use_stlport4=yes
13283 if test "$solaris_use_stlport4" != yes; then
13284 postdeps_CXX='-library=Cstd -library=Crun'
13291 case $cc_basename in
13293 # The more standards-conforming stlport4 library is
13294 # incompatible with the Cstd library. Avoid specifying
13295 # it if it's in CXXFLAGS. Ignore libCrun as
13296 # -library=stlport4 depends on it.
13297 case " $CXX $CXXFLAGS " in
13298 *" -library=stlport4 "*)
13299 solaris_use_stlport4=yes
13303 # Adding this requires a known-good setup of shared libraries for
13304 # Sun compiler versions before 5.6, else PIC objects from an old
13305 # archive will be linked into the output, leading to subtle bugs.
13306 if test "$solaris_use_stlport4" != yes; then
13307 postdeps_CXX='-library=Cstd -library=Crun'
13315 case " $postdeps_CXX " in
13316 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13318 compiler_lib_search_dirs_CXX=
13319 if test -n "${compiler_lib_search_path_CXX}"; then
13320 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13353 lt_prog_compiler_wl_CXX=
13354 lt_prog_compiler_pic_CXX=
13355 lt_prog_compiler_static_CXX=
13358 # C++ specific cases for pic, static, wl, etc.
13359 if test "$GXX" = yes; then
13360 lt_prog_compiler_wl_CXX='-Wl,'
13361 lt_prog_compiler_static_CXX='-static'
13365 # All AIX code is PIC.
13366 if test "$host_cpu" = ia64; then
13367 # AIX 5 now supports IA64 processor
13368 lt_prog_compiler_static_CXX='-Bstatic'
13375 # see comment about AmigaOS4 .so support
13376 lt_prog_compiler_pic_CXX='-fPIC'
13379 # FIXME: we need at least 68020 code to build shared libraries, but
13380 # adding the `-m68020' flag to GCC prevents building anything better,
13382 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13387 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13388 # PIC is the default for these OSes.
13390 mingw* | cygwin* | os2* | pw32* | cegcc*)
13391 # This hack is so that the source file can tell whether it is being
13392 # built for inclusion in a dll (and should export symbols for example).
13393 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13394 # (--disable-auto-import) libraries
13395 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13397 darwin* | rhapsody*)
13398 # PIC is the default on this platform
13399 # Common symbols not allowed in MH_DYLIB files
13400 lt_prog_compiler_pic_CXX='-fno-common'
13403 # DJGPP does not support shared libraries at all
13404 lt_prog_compiler_pic_CXX=
13407 # PIC is the default for Haiku.
13408 # The "-static" flag exists, but is broken.
13409 lt_prog_compiler_static_CXX=
13412 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13413 # Instead, we relocate shared libraries at runtime.
13416 if test -d /usr/nec; then
13417 lt_prog_compiler_pic_CXX=-Kconform_pic
13421 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13422 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13423 # sets the default TLS model and affects inlining.
13428 lt_prog_compiler_pic_CXX='-fPIC'
13433 # QNX uses GNU C++, but need to define -shared option too, otherwise
13434 # it will coredump.
13435 lt_prog_compiler_pic_CXX='-fPIC -shared'
13438 lt_prog_compiler_pic_CXX='-fPIC'
13444 # All AIX code is PIC.
13445 if test "$host_cpu" = ia64; then
13446 # AIX 5 now supports IA64 processor
13447 lt_prog_compiler_static_CXX='-Bstatic'
13449 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13453 case $cc_basename in
13455 # Green Hills C++ Compiler
13456 # _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"
13460 mingw* | cygwin* | os2* | pw32* | cegcc*)
13461 # This hack is so that the source file can tell whether it is being
13462 # built for inclusion in a dll (and should export symbols for example).
13463 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13466 case $cc_basename in
13468 lt_prog_compiler_pic_CXX='-KPIC'
13471 # Green Hills C++ Compiler
13472 lt_prog_compiler_pic_CXX='-pic'
13478 freebsd* | dragonfly*)
13479 # FreeBSD uses GNU C++
13481 hpux9* | hpux10* | hpux11*)
13482 case $cc_basename in
13484 lt_prog_compiler_wl_CXX='-Wl,'
13485 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13486 if test "$host_cpu" != ia64; then
13487 lt_prog_compiler_pic_CXX='+Z'
13491 lt_prog_compiler_wl_CXX='-Wl,'
13492 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13498 lt_prog_compiler_pic_CXX='+Z'
13507 # This is c89, which is MS Visual C++ (no shared libs)
13508 # Anyone wants to do a port?
13510 irix5* | irix6* | nonstopux*)
13511 case $cc_basename in
13513 lt_prog_compiler_wl_CXX='-Wl,'
13514 lt_prog_compiler_static_CXX='-non_shared'
13515 # CC pic flag -KPIC is the default.
13521 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13522 case $cc_basename in
13525 lt_prog_compiler_wl_CXX='--backend -Wl,'
13526 lt_prog_compiler_pic_CXX='-fPIC'
13529 # old Intel C++ for x86_64 which still supported -KPIC.
13530 lt_prog_compiler_wl_CXX='-Wl,'
13531 lt_prog_compiler_pic_CXX='-KPIC'
13532 lt_prog_compiler_static_CXX='-static'
13535 # Intel C++, used to be incompatible with GCC.
13536 # ICC 10 doesn't accept -KPIC any more.
13537 lt_prog_compiler_wl_CXX='-Wl,'
13538 lt_prog_compiler_pic_CXX='-fPIC'
13539 lt_prog_compiler_static_CXX='-static'
13542 # Portland Group C++ compiler
13543 lt_prog_compiler_wl_CXX='-Wl,'
13544 lt_prog_compiler_pic_CXX='-fpic'
13545 lt_prog_compiler_static_CXX='-Bstatic'
13549 # Make sure the PIC flag is empty. It appears that all Alpha
13550 # Linux and Compaq Tru64 Unix objects are PIC.
13551 lt_prog_compiler_pic_CXX=
13552 lt_prog_compiler_static_CXX='-non_shared'
13554 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13555 # IBM XL 8.0, 9.0 on PPC and BlueGene
13556 lt_prog_compiler_wl_CXX='-Wl,'
13557 lt_prog_compiler_pic_CXX='-qpic'
13558 lt_prog_compiler_static_CXX='-qstaticlink'
13561 case `$CC -V 2>&1 | sed 5q` in
13564 lt_prog_compiler_pic_CXX='-KPIC'
13565 lt_prog_compiler_static_CXX='-Bstatic'
13566 lt_prog_compiler_wl_CXX='-Qoption ld '
13577 case $cc_basename in
13579 lt_prog_compiler_pic_CXX='-W c,exportall'
13588 # QNX uses GNU C++, but need to define -shared option too, otherwise
13589 # it will coredump.
13590 lt_prog_compiler_pic_CXX='-fPIC -shared'
13592 osf3* | osf4* | osf5*)
13593 case $cc_basename in
13595 lt_prog_compiler_wl_CXX='--backend -Wl,'
13598 # Rational C++ 2.4.1
13599 lt_prog_compiler_pic_CXX='-pic'
13602 # Digital/Compaq C++
13603 lt_prog_compiler_wl_CXX='-Wl,'
13604 # Make sure the PIC flag is empty. It appears that all Alpha
13605 # Linux and Compaq Tru64 Unix objects are PIC.
13606 lt_prog_compiler_pic_CXX=
13607 lt_prog_compiler_static_CXX='-non_shared'
13616 case $cc_basename in
13618 # Sun C++ 4.2, 5.x and Centerline C++
13619 lt_prog_compiler_pic_CXX='-KPIC'
13620 lt_prog_compiler_static_CXX='-Bstatic'
13621 lt_prog_compiler_wl_CXX='-Qoption ld '
13624 # Green Hills C++ Compiler
13625 lt_prog_compiler_pic_CXX='-PIC'
13632 case $cc_basename in
13635 lt_prog_compiler_pic_CXX='-pic'
13636 lt_prog_compiler_static_CXX='-Bstatic'
13640 lt_prog_compiler_pic_CXX='-pic'
13646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13647 case $cc_basename in
13649 lt_prog_compiler_wl_CXX='-Wl,'
13650 lt_prog_compiler_pic_CXX='-KPIC'
13651 lt_prog_compiler_static_CXX='-Bstatic'
13656 case $cc_basename in
13658 # NonStop-UX NCC 3.20
13659 lt_prog_compiler_pic_CXX='-KPIC'
13668 lt_prog_compiler_can_build_shared_CXX=no
13674 # For platforms which do not support PIC, -DPIC is meaningless:
13676 lt_prog_compiler_pic_CXX=
13679 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13684 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13685 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13686 $as_echo_n "(cached) " >&6
13688 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13691 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13692 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13695 # Check to make sure the PIC flag actually works.
13697 if test -n "$lt_prog_compiler_pic_CXX"; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13699 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13700 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13701 $as_echo_n "(cached) " >&6
13703 lt_cv_prog_compiler_pic_works_CXX=no
13704 ac_outfile=conftest.$ac_objext
13705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13706 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13707 # Insert the option either (1) after the last *FLAGS variable, or
13708 # (2) before a word containing "conftest.", or (3) at the end.
13709 # Note that $ac_compile itself does not contain backslashes and begins
13710 # with a dollar sign (not a hyphen), so the echo should work correctly.
13711 # The option is referenced via a variable to avoid confusing sed.
13712 lt_compile=`echo "$ac_compile" | $SED \
13713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13715 -e 's:$: $lt_compiler_flag:'`
13716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13717 (eval "$lt_compile" 2>conftest.err)
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 if (exit $ac_status) && test -s "$ac_outfile"; then
13722 # The compiler can only warn and ignore the option if not recognized
13723 # So say no if there are warnings other than the usual output.
13724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13726 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13727 lt_cv_prog_compiler_pic_works_CXX=yes
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13734 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13736 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13737 case $lt_prog_compiler_pic_CXX in
13739 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13742 lt_prog_compiler_pic_CXX=
13743 lt_prog_compiler_can_build_shared_CXX=no
13753 # Check to make sure the static flag actually works.
13755 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13757 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13758 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13759 $as_echo_n "(cached) " >&6
13761 lt_cv_prog_compiler_static_works_CXX=no
13762 save_LDFLAGS="$LDFLAGS"
13763 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13764 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13765 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13766 # The linker can only warn and ignore the option if not recognized
13767 # So say no if there are warnings
13768 if test -s conftest.err; then
13769 # Append any errors to the config.log.
13770 cat conftest.err 1>&5
13771 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13773 if diff conftest.exp conftest.er2 >/dev/null; then
13774 lt_cv_prog_compiler_static_works_CXX=yes
13777 lt_cv_prog_compiler_static_works_CXX=yes
13781 LDFLAGS="$save_LDFLAGS"
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13785 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13787 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13790 lt_prog_compiler_static_CXX=
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13797 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13798 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13799 $as_echo_n "(cached) " >&6
13801 lt_cv_prog_compiler_c_o_CXX=no
13802 $RM -r conftest 2>/dev/null
13806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13808 lt_compiler_flag="-o out/conftest2.$ac_objext"
13809 # Insert the option either (1) after the last *FLAGS variable, or
13810 # (2) before a word containing "conftest.", or (3) at the end.
13811 # Note that $ac_compile itself does not contain backslashes and begins
13812 # with a dollar sign (not a hyphen), so the echo should work correctly.
13813 lt_compile=`echo "$ac_compile" | $SED \
13814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13816 -e 's:$: $lt_compiler_flag:'`
13817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13818 (eval "$lt_compile" 2>out/conftest.err)
13820 cat out/conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13824 # The compiler can only warn and ignore the option if not recognized
13825 # So say no if there are warnings
13826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13829 lt_cv_prog_compiler_c_o_CXX=yes
13834 # SGI C++ compiler will create directory out/ii_files/ for
13835 # template instantiation
13836 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13837 $RM out/* && rmdir out
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13844 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13850 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13851 $as_echo_n "(cached) " >&6
13853 lt_cv_prog_compiler_c_o_CXX=no
13854 $RM -r conftest 2>/dev/null
13858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13860 lt_compiler_flag="-o out/conftest2.$ac_objext"
13861 # Insert the option either (1) after the last *FLAGS variable, or
13862 # (2) before a word containing "conftest.", or (3) at the end.
13863 # Note that $ac_compile itself does not contain backslashes and begins
13864 # with a dollar sign (not a hyphen), so the echo should work correctly.
13865 lt_compile=`echo "$ac_compile" | $SED \
13866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13868 -e 's:$: $lt_compiler_flag:'`
13869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13870 (eval "$lt_compile" 2>out/conftest.err)
13872 cat out/conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13876 # The compiler can only warn and ignore the option if not recognized
13877 # So say no if there are warnings
13878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13881 lt_cv_prog_compiler_c_o_CXX=yes
13886 # SGI C++ compiler will create directory out/ii_files/ for
13887 # template instantiation
13888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13889 $RM out/* && rmdir out
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13896 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13901 hard_links="nottested"
13902 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13903 # do not overwrite the value of need_locks provided by the user
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13905 $as_echo_n "checking if we can lock with hard links... " >&6; }
13908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13910 ln conftest.a conftest.b 2>&5 || hard_links=no
13911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13913 $as_echo "$hard_links" >&6; }
13914 if test "$hard_links" = no; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13916 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13926 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13928 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13929 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13932 # If we're using GNU nm, then we don't want the "-C" option.
13933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13934 # Also, AIX nm treats weak defined symbols like other global defined
13935 # symbols, whereas GNU nm marks them as "W".
13936 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13937 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'
13939 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'
13943 export_symbols_cmds_CXX="$ltdll_cmds"
13945 cygwin* | mingw* | cegcc*)
13946 case $cc_basename in
13949 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'
13950 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13960 $as_echo "$ld_shlibs_CXX" >&6; }
13961 test "$ld_shlibs_CXX" = no && can_build_shared=no
13963 with_gnu_ld_CXX=$with_gnu_ld
13971 # Do we need to explicitly link libc?
13973 case "x$archive_cmds_need_lc_CXX" in
13975 # Assume -lc should be added
13976 archive_cmds_need_lc_CXX=yes
13978 if test "$enable_shared" = yes && test "$GCC" = yes; then
13979 case $archive_cmds_CXX in
13981 # FIXME: we may have to deal with multi-command sequences.
13984 # Test whether the compiler implicitly links with -lc since on some
13985 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13986 # to ld, don't add -lc before -lgcc.
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13988 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13989 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13990 $as_echo_n "(cached) " >&6
13993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13996 (eval $ac_compile) 2>&5
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999 test $ac_status = 0; } 2>conftest.err; then
14002 libobjs=conftest.$ac_objext
14004 wl=$lt_prog_compiler_wl_CXX
14005 pic_flag=$lt_prog_compiler_pic_CXX
14011 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14012 allow_undefined_flag_CXX=
14013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14014 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14017 test $ac_status = 0; }
14019 lt_cv_archive_cmds_need_lc_CXX=no
14021 lt_cv_archive_cmds_need_lc_CXX=yes
14023 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14025 cat conftest.err 1>&5
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14031 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14032 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14103 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14105 library_names_spec=
14106 libname_spec='lib$name'
14110 postuninstall_cmds=
14114 shlibpath_overrides_runpath=unknown
14116 dynamic_linker="$host_os ld.so"
14117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14118 need_lib_prefix=unknown
14119 hardcode_into_libs=no
14121 # when you set need_version to no, make sure it does not cause -set_version
14122 # flags to be left without arguments
14123 need_version=unknown
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14129 shlibpath_var=LIBPATH
14131 # AIX 3 has no versioning support, so we append a major version to the name.
14132 soname_spec='${libname}${release}${shared_ext}$major'
14139 hardcode_into_libs=yes
14140 if test "$host_cpu" = ia64; then
14141 # AIX 5 supports IA64
14142 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14143 shlibpath_var=LD_LIBRARY_PATH
14145 # With GCC up to 2.95.x, collect2 would create an import file
14146 # for dependence libraries. The import file would start with
14147 # the line `#! .'. This would cause the generated library to
14148 # depend on `.', always an invalid library. This was fixed in
14149 # development snapshots of GCC prior to 3.0.
14151 aix4 | aix4.[01] | aix4.[01].*)
14152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14154 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14157 can_build_shared=no
14161 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14162 # soname into executable. Probably we can add versioning support to
14163 # collect2, so additional links can be useful in future.
14164 if test "$aix_use_runtimelinking" = yes; then
14165 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14166 # instead of lib<name>.a to let people know that these are not
14167 # typical AIX shared libraries.
14168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170 # We preserve .a as extension for shared libraries through AIX4.2
14171 # and later when we are not doing run time linking.
14172 library_names_spec='${libname}${release}.a $libname.a'
14173 soname_spec='${libname}${release}${shared_ext}$major'
14175 shlibpath_var=LIBPATH
14182 # Since July 2007 AmigaOS4 officially supports .so libraries.
14183 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 library_names_spec='$libname.ixlibrary $libname.a'
14188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14189 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'
14195 library_names_spec='${libname}${shared_ext}'
14196 dynamic_linker="$host_os ld.so"
14197 shlibpath_var=LIBRARY_PATH
14203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14204 soname_spec='${libname}${release}${shared_ext}$major'
14205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14206 shlibpath_var=LD_LIBRARY_PATH
14207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14209 # the default ld.so.conf also contains /usr/contrib/lib and
14210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14211 # libtool to hard-code these into programs
14214 cygwin* | mingw* | pw32* | cegcc*)
14215 version_type=windows
14220 case $GCC,$cc_basename in
14223 library_names_spec='$libname.dll.a'
14224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14225 postinstall_cmds='base_file=`basename \${file}`~
14226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14227 dldir=$destdir/`dirname \$dlpath`~
14228 test -d \$dldir || mkdir -p \$dldir~
14229 $install_prog $dir/$dlname \$dldir/$dlname~
14230 chmod a+x \$dldir/$dlname~
14231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14235 dlpath=$dir/\$dldll~
14237 shlibpath_overrides_runpath=yes
14241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14246 # MinGW DLLs use traditional 'lib' prefix
14247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14250 # pw32 DLLs use 'pw' prefix rather than 'lib'
14251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14254 dynamic_linker='Win32 ld.exe'
14259 libname_spec='$name'
14260 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14261 library_names_spec='${libname}.dll.lib'
14265 sys_lib_search_path_spec=
14268 for lt_path in $LIB
14271 # Let DOS variable expansion print the short 8.3 style file name.
14272 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14273 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14276 # Convert to MSYS style.
14277 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14280 # Convert to unix form, then to dos form, then back to unix form
14281 # but this time dos style (no spaces!) so that the unix form looks
14282 # like /cygdrive/c/PROGRA~1:/cygdr...
14283 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14284 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14285 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14288 sys_lib_search_path_spec="$LIB"
14289 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14290 # It is most probably a Windows format PATH.
14291 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14295 # FIXME: find the short name or the path components, as spaces are
14296 # common. (e.g. "Program Files" -> "PROGRA~1")
14300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14301 postinstall_cmds='base_file=`basename \${file}`~
14302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14303 dldir=$destdir/`dirname \$dlpath`~
14304 test -d \$dldir || mkdir -p \$dldir~
14305 $install_prog $dir/$dlname \$dldir/$dlname'
14306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14307 dlpath=$dir/\$dldll~
14309 shlibpath_overrides_runpath=yes
14310 dynamic_linker='Win32 link.exe'
14314 # Assume MSVC wrapper
14315 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14316 dynamic_linker='Win32 ld.exe'
14319 # FIXME: first we should search . and the directory the executable is in
14323 darwin* | rhapsody*)
14324 dynamic_linker="$host_os dyld"
14325 version_type=darwin
14328 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14329 soname_spec='${libname}${release}${major}$shared_ext'
14330 shlibpath_overrides_runpath=yes
14331 shlibpath_var=DYLD_LIBRARY_PATH
14332 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14334 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14342 soname_spec='${libname}${release}${shared_ext}$major'
14343 shlibpath_var=LD_LIBRARY_PATH
14350 freebsd* | dragonfly*)
14351 # DragonFly does not have aout. When/if they implement a new
14352 # versioning mechanism, adjust this.
14353 if test -x /usr/bin/objformat; then
14354 objformat=`/usr/bin/objformat`
14357 freebsd[123]*) objformat=aout ;;
14358 *) objformat=elf ;;
14361 version_type=freebsd-$objformat
14362 case $version_type in
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14373 shlibpath_var=LD_LIBRARY_PATH
14376 shlibpath_overrides_runpath=yes
14378 freebsd3.[01]* | freebsdelf3.[01]*)
14379 shlibpath_overrides_runpath=yes
14380 hardcode_into_libs=yes
14382 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14383 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14384 shlibpath_overrides_runpath=no
14385 hardcode_into_libs=yes
14387 *) # from 4.6 on, and DragonFly
14388 shlibpath_overrides_runpath=yes
14389 hardcode_into_libs=yes
14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14399 soname_spec='${libname}${release}${shared_ext}$major'
14400 shlibpath_var=LD_LIBRARY_PATH
14401 hardcode_into_libs=yes
14408 dynamic_linker="$host_os runtime_loader"
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14410 soname_spec='${libname}${release}${shared_ext}$major'
14411 shlibpath_var=LIBRARY_PATH
14412 shlibpath_overrides_runpath=yes
14413 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14414 hardcode_into_libs=yes
14417 hpux9* | hpux10* | hpux11*)
14418 # Give a soname corresponding to the major version so that dld.sl refuses to
14419 # link against other versions.
14426 hardcode_into_libs=yes
14427 dynamic_linker="$host_os dld.so"
14428 shlibpath_var=LD_LIBRARY_PATH
14429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431 soname_spec='${libname}${release}${shared_ext}$major'
14432 if test "X$HPUX_IA64_MODE" = X32; then
14433 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14435 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14441 hardcode_into_libs=yes
14442 dynamic_linker="$host_os dld.sl"
14443 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14452 dynamic_linker="$host_os dld.sl"
14453 shlibpath_var=SHLIB_PATH
14454 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14456 soname_spec='${libname}${release}${shared_ext}$major'
14459 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14460 postinstall_cmds='chmod 555 $lib'
14461 # or fails outright, so override atomically:
14462 install_override_mode=555
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14470 soname_spec='${libname}${release}${shared_ext}$major'
14471 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14472 shlibpath_var=LD_LIBRARY_PATH
14473 shlibpath_overrides_runpath=no
14474 hardcode_into_libs=yes
14477 irix5* | irix6* | nonstopux*)
14479 nonstopux*) version_type=nonstopux ;;
14481 if test "$lt_cv_prog_gnu_ld" = yes; then
14489 soname_spec='${libname}${release}${shared_ext}$major'
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14492 irix5* | nonstopux*)
14493 libsuff= shlibsuff=
14496 case $LD in # libtool.m4 will add one of these switches to LD
14497 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14498 libsuff= shlibsuff= libmagic=32-bit;;
14499 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14500 libsuff=32 shlibsuff=N32 libmagic=N32;;
14501 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14502 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14503 *) libsuff= shlibsuff= libmagic=never-match;;
14507 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14508 shlibpath_overrides_runpath=no
14509 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14510 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14511 hardcode_into_libs=yes
14514 # No shared lib support for Linux oldld, aout, or coff.
14515 linux*oldld* | linux*aout* | linux*coff*)
14519 # This must be Linux ELF.
14520 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14527 shlibpath_var=LD_LIBRARY_PATH
14528 shlibpath_overrides_runpath=no
14530 # Some binutils ld are patched to set DT_RUNPATH
14531 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14532 $as_echo_n "(cached) " >&6
14534 lt_cv_shlibpath_overrides_runpath=no
14535 save_LDFLAGS=$LDFLAGS
14536 save_libdir=$libdir
14537 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14538 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h. */
14550 if ac_fn_cxx_try_link "$LINENO"; then :
14551 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14552 lt_cv_shlibpath_overrides_runpath=yes
14555 rm -f core conftest.err conftest.$ac_objext \
14556 conftest$ac_exeext conftest.$ac_ext
14557 LDFLAGS=$save_LDFLAGS
14558 libdir=$save_libdir
14562 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14564 # This implies no fast_install, which is unacceptable.
14565 # Some rework will be needed to allow for fast_install
14566 # before this can be enabled.
14567 hardcode_into_libs=yes
14569 # Append ld.so.conf contents to the search path
14570 if test -f /etc/ld.so.conf; then
14571 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' ' '`
14572 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14575 # We used to test for /lib/ld.so.1 and disable shared libraries on
14576 # powerpc, because MkLinux only supported shared libraries with the
14577 # GNU dynamic linker. Since this was broken with cross compilers,
14578 # most powerpc-linux boxes support dynamic linking these days and
14579 # people can always --disable-shared, the test was removed, and we
14580 # assume the GNU/Linux dynamic linker is in use.
14581 dynamic_linker='GNU/Linux ld.so'
14588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14591 dynamic_linker='NetBSD (a.out) ld.so'
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 dynamic_linker='NetBSD ld.elf_so'
14597 shlibpath_var=LD_LIBRARY_PATH
14598 shlibpath_overrides_runpath=yes
14599 hardcode_into_libs=yes
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=yes
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=no
14617 hardcode_into_libs=yes
14618 dynamic_linker='ldqnx.so'
14623 sys_lib_dlsearch_path_spec="/usr/lib"
14625 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14627 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14628 *) need_version=no ;;
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14632 shlibpath_var=LD_LIBRARY_PATH
14633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14635 openbsd2.[89] | openbsd2.[89].*)
14636 shlibpath_overrides_runpath=no
14639 shlibpath_overrides_runpath=yes
14643 shlibpath_overrides_runpath=yes
14648 libname_spec='$name'
14651 library_names_spec='$libname${shared_ext} $libname.a'
14652 dynamic_linker='OS/2 ld.exe'
14653 shlibpath_var=LIBPATH
14656 osf3* | osf4* | osf5*)
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14664 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676 soname_spec='${libname}${release}${shared_ext}$major'
14677 shlibpath_var=LD_LIBRARY_PATH
14678 shlibpath_overrides_runpath=yes
14679 hardcode_into_libs=yes
14680 # ldd complains unless libraries are executable
14681 postinstall_cmds='chmod +x $lib'
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14687 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 shlibpath_overrides_runpath=yes
14690 if test "$with_gnu_ld" = yes; then
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 shlibpath_var=LD_LIBRARY_PATH
14701 case $host_vendor in
14703 shlibpath_overrides_runpath=no
14705 runpath_var=LD_RUN_PATH
14713 shlibpath_overrides_runpath=no
14714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14720 if test -d /usr/nec ;then
14722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14723 soname_spec='$libname${shared_ext}.$major'
14724 shlibpath_var=LD_LIBRARY_PATH
14728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14729 version_type=freebsd-elf
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 shlibpath_var=LD_LIBRARY_PATH
14735 shlibpath_overrides_runpath=yes
14736 hardcode_into_libs=yes
14737 if test "$with_gnu_ld" = yes; then
14738 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14743 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14747 sys_lib_dlsearch_path_spec='/usr/lib'
14751 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 shlibpath_overrides_runpath=no
14758 hardcode_into_libs=yes
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764 soname_spec='${libname}${release}${shared_ext}$major'
14765 shlibpath_var=LD_LIBRARY_PATH
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14773 $as_echo "$dynamic_linker" >&6; }
14774 test "$dynamic_linker" = no && can_build_shared=no
14776 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14777 if test "$GCC" = yes; then
14778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14781 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14782 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14784 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14785 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14826 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14827 hardcode_action_CXX=
14828 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14829 test -n "$runpath_var_CXX" ||
14830 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14832 # We can hardcode non-existent directories.
14833 if test "$hardcode_direct_CXX" != no &&
14834 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14835 # have to relink, otherwise we might link with an installed library
14836 # when we should be linking with a yet-to-be-installed one
14837 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14838 test "$hardcode_minus_L_CXX" != no; then
14839 # Linking always hardcodes the temporary library directory.
14840 hardcode_action_CXX=relink
14842 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14843 hardcode_action_CXX=immediate
14846 # We cannot hardcode anything, or else we can only hardcode existing
14848 hardcode_action_CXX=unsupported
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14851 $as_echo "$hardcode_action_CXX" >&6; }
14853 if test "$hardcode_action_CXX" = relink ||
14854 test "$inherit_rpath_CXX" = yes; then
14855 # Fast installation is not supported
14856 enable_fast_install=no
14857 elif test "$shlibpath_overrides_runpath" = yes ||
14858 test "$enable_shared" = no; then
14859 # Fast installation is not necessary
14860 enable_fast_install=needless
14869 fi # test -n "$compiler"
14872 CFLAGS=$lt_save_CFLAGS
14876 with_gnu_ld=$lt_save_with_gnu_ld
14877 lt_cv_path_LDCXX=$lt_cv_path_LD
14878 lt_cv_path_LD=$lt_save_path_LD
14879 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14880 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14881 fi # test "$_lt_caught_CXX_error" != yes
14884 ac_cpp='$CPP $CPPFLAGS'
14885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14901 ac_config_commands="$ac_config_commands libtool"
14906 # Only expand once:
14911 *-*-mingw*|*-*-cygwin*)
14913 $as_echo "#define PLATFORM_WIN32 1" >>confdefs.h
14915 opengl_LIBS="-lunsupported_platform"
14916 PLATFORM_STRING="Win32"
14920 $as_echo "#define PLATFORM_LINUX 1" >>confdefs.h
14922 opengl_LIBS="-lGL -lGLU -lglut"
14923 PLATFORM_STRING="Linux"
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hello" >&5
14927 $as_echo "$as_me: WARNING: Hello" >&2;}
14929 $as_echo "#define PLATFORM_APPLE 1" >>confdefs.h
14931 opengl_LIBS="-framework AGL -framework OpenGL -framework GLUT"
14932 PLATFORM_STRING="Apple"
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please add $host to configure.ac checks!" >&5
14936 $as_echo "$as_me: WARNING: *** Please add $host to configure.ac checks!" >&2;}
14942 i?86-* | k?-* | athlon-* | pentium*-)
14944 $as_echo "#define ARCH_X86 1" >>confdefs.h
14946 ARCH_SPECIFIC_CFLAGS=""
14951 $as_echo "#define ARCH_X86_64 1" >>confdefs.h
14953 ARCH_SPECIFIC_CFLAGS="-DUSE_ADDR64"
14954 ARCH_STRING="X86-64"
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HI THERE!" >&5
14958 $as_echo "$as_me: WARNING: HI THERE!" >&2;}
14960 $as_echo "#define ARCH_PPC 1" >>confdefs.h
14962 ARCH_SPECIFIC_CFLAGS=""
14963 ARCH_STRING="PowerPC"
14966 as_fn_error $? "Unknown Architecture" "$LINENO" 5
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14970 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14971 if ${ac_cv_c_bigendian+:} false; then :
14972 $as_echo_n "(cached) " >&6
14974 ac_cv_c_bigendian=unknown
14975 # See if we're dealing with a universal compiler.
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978 #ifndef __APPLE_CC__
14979 not a universal capable compiler
14984 if ac_fn_c_try_compile "$LINENO"; then :
14986 # Check for potential -arch flags. It is not universal unless
14987 # there are at least two -arch flags with different values.
14990 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14991 if test -n "$ac_prev"; then
14993 i?86 | x86_64 | ppc | ppc64)
14994 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14997 ac_cv_c_bigendian=universal
15003 elif test "x$ac_word" = "x-arch"; then
15008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15009 if test $ac_cv_c_bigendian = unknown; then
15010 # See if sys/param.h defines the BYTE_ORDER macro.
15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h. */
15013 #include <sys/types.h>
15014 #include <sys/param.h>
15019 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15020 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15022 bogus endian macros
15029 if ac_fn_c_try_compile "$LINENO"; then :
15030 # It does; now see whether it defined to BIG_ENDIAN or not.
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15033 #include <sys/types.h>
15034 #include <sys/param.h>
15039 #if BYTE_ORDER != BIG_ENDIAN
15047 if ac_fn_c_try_compile "$LINENO"; then :
15048 ac_cv_c_bigendian=yes
15050 ac_cv_c_bigendian=no
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 if test $ac_cv_c_bigendian = unknown; then
15057 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15060 #include <limits.h>
15065 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15066 bogus endian macros
15073 if ac_fn_c_try_compile "$LINENO"; then :
15074 # It does; now see whether it defined to _BIG_ENDIAN or not.
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15077 #include <limits.h>
15082 #ifndef _BIG_ENDIAN
15090 if ac_fn_c_try_compile "$LINENO"; then :
15091 ac_cv_c_bigendian=yes
15093 ac_cv_c_bigendian=no
15095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099 if test $ac_cv_c_bigendian = unknown; then
15100 # Compile a test program.
15101 if test "$cross_compiling" = yes; then :
15102 # Try to guess by grepping values from an object file.
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15105 short int ascii_mm[] =
15106 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15107 short int ascii_ii[] =
15108 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15109 int use_ascii (int i) {
15110 return ascii_mm[i] + ascii_ii[i];
15112 short int ebcdic_ii[] =
15113 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15114 short int ebcdic_mm[] =
15115 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15116 int use_ebcdic (int i) {
15117 return ebcdic_mm[i] + ebcdic_ii[i];
15124 return use_ascii (foo) == use_ebcdic (foo);
15129 if ac_fn_c_try_compile "$LINENO"; then :
15130 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15131 ac_cv_c_bigendian=yes
15133 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15134 if test "$ac_cv_c_bigendian" = unknown; then
15135 ac_cv_c_bigendian=no
15137 # finding both strings is unlikely to happen, but who knows?
15138 ac_cv_c_bigendian=unknown
15142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15146 $ac_includes_default
15151 /* Are we little or big endian? From Harbison&Steele. */
15155 char c[sizeof (long int)];
15158 return u.c[sizeof (long int) - 1] == 1;
15164 if ac_fn_c_try_run "$LINENO"; then :
15165 ac_cv_c_bigendian=no
15167 ac_cv_c_bigendian=yes
15169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15170 conftest.$ac_objext conftest.beam conftest.$ac_ext
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15176 $as_echo "$ac_cv_c_bigendian" >&6; }
15177 case $ac_cv_c_bigendian in #(
15179 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15185 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15189 as_fn_error $? "unknown endianness
15190 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15195 #----------------------------------------------------------------------------
15196 # Setup for the configuration header.
15197 #----------------------------------------------------------------------------
15198 ac_config_headers="$ac_config_headers config.h"
15200 #----------------------------------------------------------------------------
15201 # Package configuration switches.
15202 #----------------------------------------------------------------------------
15203 # Check whether --enable-multithreaded was given.
15204 if test "${enable_multithreaded+set}" = set; then :
15205 enableval=$enable_multithreaded; disable_multithreaded=no
15207 disable_multithreaded=yes
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking BulletMultiThreaded" >&5
15211 $as_echo_n "checking BulletMultiThreaded... " >&6; }
15212 if test "$disable_multithreaded" = yes; then :
15213 build_multithreaded=no
15215 build_multithreaded=yes
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_multithreaded" >&5
15218 $as_echo "$build_multithreaded" >&6; }
15219 if test "$build_multithreaded" = yes; then
15220 CONDITIONAL_BUILD_MULTITHREADED_TRUE=
15221 CONDITIONAL_BUILD_MULTITHREADED_FALSE='#'
15223 CONDITIONAL_BUILD_MULTITHREADED_TRUE='#'
15224 CONDITIONAL_BUILD_MULTITHREADED_FALSE=
15228 # Check whether --enable-demos was given.
15229 if test "${enable_demos+set}" = set; then :
15230 enableval=$enable_demos;
15236 CONDITIONAL_BUILD_DEMOS_TRUE=
15237 CONDITIONAL_BUILD_DEMOS_FALSE='#'
15239 CONDITIONAL_BUILD_DEMOS_TRUE='#'
15240 CONDITIONAL_BUILD_DEMOS_FALSE=
15249 $as_echo "#define HAVE_APPLE_OPENGL_FRAMEWORK 1" >>confdefs.h
15251 GL_LIBS="-framework GLUT -framework OpenGL -framework Carbon -framework AGL"
15257 have_gl_headers=yes
15258 for ac_header in GL/gl.h GL/glu.h GL/glext.h GL/glut.h
15260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef WIN32
15262 #include <windows.h>
15268 #include <GL/glu.h>
15272 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15273 cat >>confdefs.h <<_ACEOF
15274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15286 TEMP_LDFLAGS="$LDFLAGS"
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
15288 $as_echo_n "checking for main in -lGL... " >&6; }
15289 if ${ac_cv_lib_GL_main+:} false; then :
15290 $as_echo_n "(cached) " >&6
15292 ac_check_lib_save_LIBS=$LIBS
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15306 if ac_fn_c_try_link "$LINENO"; then :
15307 ac_cv_lib_GL_main=yes
15309 ac_cv_lib_GL_main=no
15311 rm -f core conftest.err conftest.$ac_objext \
15312 conftest$ac_exeext conftest.$ac_ext
15313 LIBS=$ac_check_lib_save_LIBS
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
15316 $as_echo "$ac_cv_lib_GL_main" >&6; }
15317 if test "x$ac_cv_lib_GL_main" = xyes; then :
15318 GL_LIBS="-lGL"; have_gl=yes
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLU" >&5
15322 $as_echo_n "checking for main in -lGLU... " >&6; }
15323 if ${ac_cv_lib_GLU_main+:} false; then :
15324 $as_echo_n "(cached) " >&6
15326 ac_check_lib_save_LIBS=$LIBS
15327 LIBS="-lGLU -lGL $LIBS"
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15340 if ac_fn_c_try_link "$LINENO"; then :
15341 ac_cv_lib_GLU_main=yes
15343 ac_cv_lib_GLU_main=no
15345 rm -f core conftest.err conftest.$ac_objext \
15346 conftest$ac_exeext conftest.$ac_ext
15347 LIBS=$ac_check_lib_save_LIBS
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_main" >&5
15350 $as_echo "$ac_cv_lib_GLU_main" >&6; }
15351 if test "x$ac_cv_lib_GLU_main" = xyes; then :
15352 GL_LIBS="-lGLU $GL_LIBS"; have_glu=yes
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLUT" >&5
15356 $as_echo_n "checking for main in -lGLUT... " >&6; }
15357 if ${ac_cv_lib_GLUT_main+:} false; then :
15358 $as_echo_n "(cached) " >&6
15360 ac_check_lib_save_LIBS=$LIBS
15361 LIBS="-lGLUT -lGLUT $LIBS"
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15374 if ac_fn_c_try_link "$LINENO"; then :
15375 ac_cv_lib_GLUT_main=yes
15377 ac_cv_lib_GLUT_main=no
15379 rm -f core conftest.err conftest.$ac_objext \
15380 conftest$ac_exeext conftest.$ac_ext
15381 LIBS=$ac_check_lib_save_LIBS
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLUT_main" >&5
15384 $as_echo "$ac_cv_lib_GLUT_main" >&6; }
15385 if test "x$ac_cv_lib_GLUT_main" = xyes; then :
15386 GL_LIBS="-lGLUT -LGLU $GL_LIBS"; have_glut=yes
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopengl32" >&5
15390 $as_echo_n "checking for main in -lopengl32... " >&6; }
15391 if ${ac_cv_lib_opengl32_main+:} false; then :
15392 $as_echo_n "(cached) " >&6
15394 ac_check_lib_save_LIBS=$LIBS
15395 LIBS="-lopengl32 $LIBS"
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15408 if ac_fn_c_try_link "$LINENO"; then :
15409 ac_cv_lib_opengl32_main=yes
15411 ac_cv_lib_opengl32_main=no
15413 rm -f core conftest.err conftest.$ac_objext \
15414 conftest$ac_exeext conftest.$ac_ext
15415 LIBS=$ac_check_lib_save_LIBS
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opengl32_main" >&5
15418 $as_echo "$ac_cv_lib_opengl32_main" >&6; }
15419 if test "x$ac_cv_lib_opengl32_main" = xyes; then :
15420 GL_LIBS="-lopengl32"; have_gl=yes
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lglu32" >&5
15424 $as_echo_n "checking for main in -lglu32... " >&6; }
15425 if ${ac_cv_lib_glu32_main+:} false; then :
15426 $as_echo_n "(cached) " >&6
15428 ac_check_lib_save_LIBS=$LIBS
15429 LIBS="-lglu32 -lopengl32 $LIBS"
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15442 if ac_fn_c_try_link "$LINENO"; then :
15443 ac_cv_lib_glu32_main=yes
15445 ac_cv_lib_glu32_main=no
15447 rm -f core conftest.err conftest.$ac_objext \
15448 conftest$ac_exeext conftest.$ac_ext
15449 LIBS=$ac_check_lib_save_LIBS
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glu32_main" >&5
15452 $as_echo "$ac_cv_lib_glu32_main" >&6; }
15453 if test "x$ac_cv_lib_glu32_main" = xyes; then :
15454 GL_LIBS="-lglu32 $GL_LIBS"; have_glu=yes
15457 LDFLAGS="$TEMP_LDFLAGS"
15458 if test $have_gl = no -o $have_glu = no -o $have_gl_headers = no; then
15459 if test x$enable_demos = xyes; then
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See \`config.log' for details." >&5
15461 $as_echo "$as_me: WARNING: Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See \`config.log' for details." >&2;}
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: Found OpenGL" >&5
15466 $as_echo "$as_me: Found OpenGL" >&6;}
15476 if test "x$enable_demos" != xno; then
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: Building Bullet demos" >&5
15478 $as_echo "$as_me: Building Bullet demos" >&6;}
15480 CONDITIONAL_BUILD_DEMOS_TRUE=
15481 CONDITIONAL_BUILD_DEMOS_FALSE='#'
15483 CONDITIONAL_BUILD_DEMOS_TRUE='#'
15484 CONDITIONAL_BUILD_DEMOS_FALSE=
15491 # Check whether --enable-debug was given.
15492 if test "${enable_debug+set}" = set; then :
15493 enableval=$enable_debug;
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build mode" >&5
15500 $as_echo_n "checking build mode... " >&6; }
15501 if test $enable_debug = yes; then :
15504 build_mode=optimize
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_mode" >&5
15507 $as_echo "$build_mode" >&6; }
15511 CFLAGS="$ARCH_SPECIFIC_CFLAGS $CFLAGS"
15512 CXXFLAGS="$ARCH_SPECIFIC_CFLAGS $CXXFLAGS $CFLAGS"
15513 #----------------------------------------------------------------------------
15514 # Emit generated files.
15515 #----------------------------------------------------------------------------
15516 ac_config_files="$ac_config_files bullet.pc Makefile Demos/Makefile Demos/SoftDemo/Makefile Demos/AllBulletDemos/Makefile Demos/MultiThreadedDemo/Makefile Demos/OpenGL/Makefile Demos/BasicDemo/Makefile Demos/CcdPhysicsDemo/Makefile Demos/VehicleDemo/Makefile Demos/TerrainDemo/Makefile src/Makefile Extras/Makefile"
15518 cat >confcache <<\_ACEOF
15519 # This file is a shell script that caches the results of configure
15520 # tests run on this system so they can be shared between configure
15521 # scripts and configure runs, see configure's option --config-cache.
15522 # It is not useful on other systems. If it contains results you don't
15523 # want to keep, you may remove or edit it.
15525 # config.status only pays attention to the cache file if you give it
15526 # the --recheck option to rerun configure.
15528 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15529 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15530 # following values.
15534 # The following way of writing the cache mishandles newlines in values,
15535 # but we know of no workaround that is simple, portable, and efficient.
15536 # So, we kill variables containing newlines.
15537 # Ultrix sh set writes to stderr and can't be redirected directly,
15538 # and sets the high bit in the cache file unless we assign to the vars.
15540 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15541 eval ac_val=\$$ac_var
15545 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15546 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15549 _ | IFS | as_nl) ;; #(
15550 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15551 *) { eval $ac_var=; unset $ac_var;} ;;
15557 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15558 *${as_nl}ac_space=\ *)
15559 # `set' does not quote correctly, so add quotes: double-quote
15560 # substitution turns \\\\ into \\, and sed turns \\ into \.
15563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15566 # `set' quotes correctly as required by POSIX, so do not add quotes.
15567 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15576 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15578 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15580 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15581 if test -w "$cache_file"; then
15582 if test "x$cache_file" != "x/dev/null"; then
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15584 $as_echo "$as_me: updating cache $cache_file" >&6;}
15585 if test ! -f "$cache_file" || test -h "$cache_file"; then
15586 cat confcache >"$cache_file"
15588 case $cache_file in #(
15590 mv -f confcache "$cache_file"$$ &&
15591 mv -f "$cache_file"$$ "$cache_file" ;; #(
15593 mv -f confcache "$cache_file" ;;
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15599 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15605 # Let make expand exec_prefix.
15606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15608 DEFS=-DHAVE_CONFIG_H
15613 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15614 # 1. Remove the extension, and $U if already installed.
15615 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15616 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15617 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15618 # will be set to the directory where LIBOBJS objects are built.
15619 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15620 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15622 LIBOBJS=$ac_libobjs
15624 LTLIBOBJS=$ac_ltlibobjs
15627 if test -n "$EXEEXT"; then
15629 am__EXEEXT_FALSE='#'
15631 am__EXEEXT_TRUE='#'
15635 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15636 as_fn_error $? "conditional \"AMDEP\" was never defined.
15637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15639 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15640 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15643 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15644 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15648 if test -z "${CONDITIONAL_BUILD_MULTITHREADED_TRUE}" && test -z "${CONDITIONAL_BUILD_MULTITHREADED_FALSE}"; then
15649 as_fn_error $? "conditional \"CONDITIONAL_BUILD_MULTITHREADED\" was never defined.
15650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15652 if test -z "${CONDITIONAL_BUILD_DEMOS_TRUE}" && test -z "${CONDITIONAL_BUILD_DEMOS_FALSE}"; then
15653 as_fn_error $? "conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined.
15654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15656 if test -z "${CONDITIONAL_BUILD_DEMOS_TRUE}" && test -z "${CONDITIONAL_BUILD_DEMOS_FALSE}"; then
15657 as_fn_error $? "conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined.
15658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15661 : "${CONFIG_STATUS=./config.status}"
15663 ac_clean_files_save=$ac_clean_files
15664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15666 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15668 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15670 # Generated by $as_me.
15671 # Run this file to recreate the current configuration.
15672 # Compiler output produced by configure, useful for debugging
15673 # configure, is in config.log if it exists.
15676 ac_cs_recheck=false
15679 SHELL=\${CONFIG_SHELL-$SHELL}
15682 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15683 ## -------------------- ##
15684 ## M4sh Initialization. ##
15685 ## -------------------- ##
15687 # Be more Bourne compatible
15688 DUALCASE=1; export DUALCASE # for MKS sh
15689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15692 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15693 # is contrary to our usage. Disable this feature.
15694 alias -g '${1+"$@"}'='"$@"'
15695 setopt NO_GLOB_SUBST
15697 case `(set -o) 2>/dev/null` in #(
15709 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15710 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15713 # Prefer a ksh shell builtin over an external printf program on Solaris,
15714 # but without wasting forks for bash or zsh.
15715 if test -z "$BASH_VERSION$ZSH_VERSION" \
15716 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15717 as_echo='print -r --'
15718 as_echo_n='print -rn --'
15719 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15720 as_echo='printf %s\n'
15721 as_echo_n='printf %s'
15723 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15724 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15725 as_echo_n='/usr/ucb/echo -n'
15727 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15728 as_echo_n_body='eval
15732 expr "X$arg" : "X\\(.*\\)$as_nl";
15733 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15735 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15737 export as_echo_n_body
15738 as_echo_n='sh -c $as_echo_n_body as_echo'
15740 export as_echo_body
15741 as_echo='sh -c $as_echo_body as_echo'
15744 # The user is always right.
15745 if test "${PATH_SEPARATOR+set}" != set; then
15747 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15748 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15755 # We need space, tab and new line, in precisely that order. Quoting is
15756 # there to prevent editors from complaining about space-tab.
15757 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15758 # splitting by setting IFS to empty value.)
15761 # Find who we are. Look in the path if we contain no directory separator.
15764 *[\\/]* ) as_myself=$0 ;;
15765 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15766 for as_dir in $PATH
15769 test -z "$as_dir" && as_dir=.
15770 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15776 # We did not find ourselves, most probably we were run as `sh COMMAND'
15777 # in which case we are not to be found in the path.
15778 if test "x$as_myself" = x; then
15781 if test ! -f "$as_myself"; then
15782 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15786 # Unset variables that we do not need and which cause bugs (e.g. in
15787 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15788 # suppresses any "Segmentation fault" message there. '((' could
15789 # trigger a bug in pdksh 5.2.14.
15790 for as_var in BASH_ENV ENV MAIL MAILPATH
15791 do eval test x\${$as_var+set} = xset \
15792 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15805 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15808 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15809 # ----------------------------------------
15810 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15811 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15812 # script with STATUS, using 1 if that was 0.
15815 as_status=$1; test $as_status -eq 0 && as_status=1
15817 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15818 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15820 $as_echo "$as_me: error: $2" >&2
15821 as_fn_exit $as_status
15825 # as_fn_set_status STATUS
15826 # -----------------------
15827 # Set $? to STATUS, without forking.
15828 as_fn_set_status ()
15831 } # as_fn_set_status
15833 # as_fn_exit STATUS
15834 # -----------------
15835 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15839 as_fn_set_status $1
15845 # Portably unset VAR.
15848 { eval $1=; unset $1;}
15850 as_unset=as_fn_unset
15851 # as_fn_append VAR VALUE
15852 # ----------------------
15853 # Append the text in VALUE to the end of the definition contained in VAR. Take
15854 # advantage of any shell optimizations that allow amortized linear growth over
15855 # repeated appends, instead of the typical quadratic growth present in naive
15857 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15858 eval 'as_fn_append ()
15869 # as_fn_arith ARG...
15870 # ------------------
15871 # Perform arithmetic evaluation on the ARGs, and store the result in the
15872 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15873 # must be portable across $(()) and expr.
15874 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15875 eval 'as_fn_arith ()
15882 as_val=`expr "$@" || test $? -eq 1`
15887 if expr a : '\(a\)' >/dev/null 2>&1 &&
15888 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15894 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15895 as_basename=basename
15900 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15906 as_me=`$as_basename -- "$0" ||
15907 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15908 X"$0" : 'X\(//\)$' \| \
15909 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15911 sed '/^.*\/\([^/][^/]*\)\/*$/{
15925 # Avoid depending upon Character Ranges.
15926 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15927 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15928 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15929 as_cr_digits='0123456789'
15930 as_cr_alnum=$as_cr_Letters$as_cr_digits
15932 ECHO_C= ECHO_N= ECHO_T=
15933 case `echo -n x` in #(((((
15935 case `echo 'xy\c'` in
15936 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15938 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15945 rm -f conf$$ conf$$.exe conf$$.file
15946 if test -d conf$$.dir; then
15947 rm -f conf$$.dir/conf$$.file
15950 mkdir conf$$.dir 2>/dev/null
15952 if (echo >conf$$.file) 2>/dev/null; then
15953 if ln -s conf$$.file conf$$ 2>/dev/null; then
15955 # ... but there are two gotchas:
15956 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15957 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15958 # In both cases, we have to default to `cp -p'.
15959 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15961 elif ln conf$$.file conf$$ 2>/dev/null; then
15969 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15970 rmdir conf$$.dir 2>/dev/null
15972 if mkdir -p . 2>/dev/null; then
15973 as_mkdir_p='mkdir -p'
15974 elif mkdirs . 2>/dev/null; then
15975 as_mkdir_p='mkdirs'
15979 test -d ./-p && rmdir ./-p
15981 if test -x / >/dev/null 2>&1; then
15982 as_test_x='test -x'
15984 if ls -dL / >/dev/null 2>&1; then
15991 if test -d "$1"; then
15997 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15998 ???[sx]*):;;*)false;;esac;fi
16002 as_executable_p=$as_test_x
16004 # Sed expression to map a string onto a valid CPP name.
16005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16007 # Sed expression to map a string onto a valid variable name.
16008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16012 ## ----------------------------------- ##
16013 ## Main body of $CONFIG_STATUS script. ##
16014 ## ----------------------------------- ##
16016 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019 # Save the log message, to keep $0 and so on meaningful, and to
16020 # report actual input values of CONFIG_FILES etc. instead of their
16021 # values after options handling.
16023 This file was extended by bullet $as_me 2.81, which was
16024 generated by GNU Autoconf 2.68. Invocation command line was
16026 CONFIG_FILES = $CONFIG_FILES
16027 CONFIG_HEADERS = $CONFIG_HEADERS
16028 CONFIG_LINKS = $CONFIG_LINKS
16029 CONFIG_COMMANDS = $CONFIG_COMMANDS
16032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16037 case $ac_config_files in *"
16038 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16041 case $ac_config_headers in *"
16042 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16047 # Files that config.status was made for.
16048 config_files="$ac_config_files"
16049 config_headers="$ac_config_headers"
16050 config_commands="$ac_config_commands"
16054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 \`$as_me' instantiates files and other configuration actions
16057 from templates according to the current configuration. Unless the files
16058 and actions are specified as TAGs, all are instantiated by default.
16060 Usage: $0 [OPTION]... [TAG]...
16062 -h, --help print this help, then exit
16063 -V, --version print version number and configuration settings, then exit
16064 --config print configuration, then exit
16065 -q, --quiet, --silent
16066 do not print progress messages
16067 -d, --debug don't remove temporary files
16068 --recheck update $as_me by reconfiguring in the same conditions
16069 --file=FILE[:TEMPLATE]
16070 instantiate the configuration file FILE
16071 --header=FILE[:TEMPLATE]
16072 instantiate the configuration header FILE
16074 Configuration files:
16077 Configuration headers:
16080 Configuration commands:
16083 Report bugs to <bullet@erwincoumans.com>."
16086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16087 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16089 bullet config.status 2.81
16090 configured by $0, generated by GNU Autoconf 2.68,
16091 with options \\"\$ac_cs_config\\"
16093 Copyright (C) 2010 Free Software Foundation, Inc.
16094 This config.status script is free software; the Free Software Foundation
16095 gives unlimited permission to copy, distribute and modify it."
16102 test -n "\$AWK" || AWK=awk
16105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16106 # The default lists apply if the user does not specify any file.
16112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16113 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16117 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16129 # Handling of the options.
16130 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16132 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16133 $as_echo "$ac_cs_version"; exit ;;
16134 --config | --confi | --conf | --con | --co | --c )
16135 $as_echo "$ac_cs_config"; exit ;;
16136 --debug | --debu | --deb | --de | --d | -d )
16138 --file | --fil | --fi | --f )
16141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16142 '') as_fn_error $? "missing file argument" ;;
16144 as_fn_append CONFIG_FILES " '$ac_optarg'"
16145 ac_need_defaults=false;;
16146 --header | --heade | --head | --hea )
16149 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16151 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16152 ac_need_defaults=false;;
16154 # Conflict between --help and --header
16155 as_fn_error $? "ambiguous option: \`$1'
16156 Try \`$0 --help' for more information.";;
16157 --help | --hel | -h )
16158 $as_echo "$ac_cs_usage"; exit ;;
16159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16160 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16163 # This is an error.
16164 -*) as_fn_error $? "unrecognized option: \`$1'
16165 Try \`$0 --help' for more information." ;;
16167 *) as_fn_append ac_config_targets " $1"
16168 ac_need_defaults=false ;;
16174 ac_configure_extra_args=
16176 if $ac_cs_silent; then
16178 ac_configure_extra_args="$ac_configure_extra_args --silent"
16182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16183 if \$ac_cs_recheck; then
16184 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16186 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16187 CONFIG_SHELL='$SHELL'
16188 export CONFIG_SHELL
16193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16197 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16198 ## Running $as_me. ##
16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16208 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16211 # The HP-UX ksh and POSIX shell print the target directory to stdout
16212 # if CDPATH is set.
16213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16215 sed_quote_subst='$sed_quote_subst'
16216 double_quote_subst='$double_quote_subst'
16217 delay_variable_subst='$delay_variable_subst'
16218 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16219 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16220 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16221 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16222 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16223 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16224 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16225 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16226 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16227 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16228 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16229 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16230 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16231 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16232 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16233 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16234 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16235 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16236 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16237 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16238 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16239 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16240 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16241 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16242 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16243 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16244 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16245 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16246 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16247 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16248 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16249 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16250 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16251 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16252 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16253 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16254 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16255 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16256 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16257 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16258 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16259 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16260 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16261 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16262 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16263 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16264 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16265 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16266 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16267 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16268 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16269 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16270 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16271 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16272 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16273 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"`'
16274 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16275 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16276 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16277 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16278 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16279 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16280 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16281 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16282 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16283 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16284 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16285 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16286 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16287 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16288 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16289 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16290 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16291 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16292 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16293 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16294 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16295 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16296 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16297 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16298 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16299 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16300 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16301 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16302 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16303 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16304 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16305 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16306 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16307 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16308 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16309 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16310 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16311 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16312 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16313 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16314 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16315 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16316 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16317 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16318 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16319 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16320 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16321 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16322 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16323 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16324 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16325 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16326 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16327 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16328 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16329 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16330 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16331 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16332 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16333 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16334 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16335 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16336 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16337 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16338 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16339 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16340 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16341 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16342 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16343 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16344 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16345 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16346 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16347 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16348 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16349 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16350 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16351 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16352 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16353 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16354 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16355 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16356 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16357 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16358 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16359 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16360 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16361 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16362 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16363 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16364 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16365 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16366 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16367 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16368 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16369 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16370 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16371 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16372 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16373 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16374 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16375 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16376 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16377 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16378 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16379 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16380 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16381 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16382 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16383 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16384 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16385 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16386 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16387 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16388 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16389 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16390 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16391 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16392 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16393 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16394 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16395 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16396 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16397 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16398 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16399 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16400 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16401 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16402 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16405 LTCFLAGS='$LTCFLAGS'
16406 compiler='$compiler_DEFAULT'
16408 # A function that is used when there is no print builtin or printf.
16409 func_fallback_echo ()
16411 eval 'cat <<_LTECHO_EOF
16416 # Quote evaled strings.
16430 deplibs_check_method \
16435 sharedlib_from_linklib_cmd \
16438 archiver_list_spec \
16444 lt_cv_sys_global_symbol_pipe \
16445 lt_cv_sys_global_symbol_to_cdecl \
16446 lt_cv_sys_global_symbol_to_c_name_address \
16447 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16448 nm_file_list_spec \
16449 lt_prog_compiler_no_builtin_flag \
16450 lt_prog_compiler_pic \
16451 lt_prog_compiler_wl \
16452 lt_prog_compiler_static \
16453 lt_cv_prog_compiler_c_o \
16462 export_dynamic_flag_spec \
16463 whole_archive_flag_spec \
16464 compiler_needs_object \
16466 allow_undefined_flag \
16467 no_undefined_flag \
16468 hardcode_libdir_flag_spec \
16469 hardcode_libdir_flag_spec_ld \
16470 hardcode_libdir_separator \
16474 variables_saved_for_relink \
16476 library_names_spec \
16478 install_override_mode \
16482 compiler_lib_search_dirs \
16487 compiler_lib_search_path \
16491 lt_prog_compiler_no_builtin_flag_CXX \
16492 lt_prog_compiler_pic_CXX \
16493 lt_prog_compiler_wl_CXX \
16494 lt_prog_compiler_static_CXX \
16495 lt_cv_prog_compiler_c_o_CXX \
16496 export_dynamic_flag_spec_CXX \
16497 whole_archive_flag_spec_CXX \
16498 compiler_needs_object_CXX \
16500 allow_undefined_flag_CXX \
16501 no_undefined_flag_CXX \
16502 hardcode_libdir_flag_spec_CXX \
16503 hardcode_libdir_flag_spec_ld_CXX \
16504 hardcode_libdir_separator_CXX \
16505 exclude_expsyms_CXX \
16506 include_expsyms_CXX \
16507 file_list_spec_CXX \
16508 compiler_lib_search_dirs_CXX \
16509 predep_objects_CXX \
16510 postdep_objects_CXX \
16513 compiler_lib_search_path_CXX; do
16514 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16515 *[\\\\\\\`\\"\\\$]*)
16516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16519 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16524 # Double-quote double-evaled strings.
16525 for var in reload_cmds \
16526 old_postinstall_cmds \
16527 old_postuninstall_cmds \
16529 extract_expsyms_cmds \
16530 old_archive_from_new_cmds \
16531 old_archive_from_expsyms_cmds \
16533 archive_expsym_cmds \
16535 module_expsym_cmds \
16536 export_symbols_cmds \
16540 postuninstall_cmds \
16542 sys_lib_search_path_spec \
16543 sys_lib_dlsearch_path_spec \
16545 old_archive_cmds_CXX \
16546 old_archive_from_new_cmds_CXX \
16547 old_archive_from_expsyms_cmds_CXX \
16549 archive_expsym_cmds_CXX \
16551 module_expsym_cmds_CXX \
16552 export_symbols_cmds_CXX \
16554 postlink_cmds_CXX; do
16555 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16556 *[\\\\\\\`\\"\\\$]*)
16557 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16560 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16565 ac_aux_dir='$ac_aux_dir'
16566 xsi_shell='$xsi_shell'
16567 lt_shell_append='$lt_shell_append'
16569 # See if we are running on zsh, and set the options which allow our
16570 # commands through without removal of \ escapes INIT.
16571 if test -n "\${ZSH_VERSION+set}" ; then
16572 setopt NO_GLOB_SUBST
16578 TIMESTAMP='$TIMESTAMP'
16589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16591 # Handling of arguments.
16592 for ac_config_target in $ac_config_targets
16594 case $ac_config_target in
16595 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16596 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16597 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16598 "bullet.pc") CONFIG_FILES="$CONFIG_FILES bullet.pc" ;;
16599 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16600 "Demos/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/Makefile" ;;
16601 "Demos/SoftDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/SoftDemo/Makefile" ;;
16602 "Demos/AllBulletDemos/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/AllBulletDemos/Makefile" ;;
16603 "Demos/MultiThreadedDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/MultiThreadedDemo/Makefile" ;;
16604 "Demos/OpenGL/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/OpenGL/Makefile" ;;
16605 "Demos/BasicDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/BasicDemo/Makefile" ;;
16606 "Demos/CcdPhysicsDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/CcdPhysicsDemo/Makefile" ;;
16607 "Demos/VehicleDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/VehicleDemo/Makefile" ;;
16608 "Demos/TerrainDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/TerrainDemo/Makefile" ;;
16609 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16610 "Extras/Makefile") CONFIG_FILES="$CONFIG_FILES Extras/Makefile" ;;
16612 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16617 # If the user did not use the arguments to specify the items to instantiate,
16618 # then the envvar interface is used. Set only those that are not.
16619 # We use the long form for the default assignment because of an extremely
16620 # bizarre bug on SunOS 4.1.3.
16621 if $ac_need_defaults; then
16622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16627 # Have a temporary directory for convenience. Make it in the build tree
16628 # simply because there is no reason against having it here, and in addition,
16629 # creating and moving files from /tmp can sometimes cause problems.
16630 # Hook for its removal unless debugging.
16631 # Note that there is a small window in which the directory will not be cleaned:
16632 # after its creation but before its name has been assigned to `$tmp'.
16636 trap 'exit_status=$?
16637 : "${ac_tmp:=$tmp}"
16638 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16640 trap 'as_fn_exit 1' 1 2 13 15
16642 # Create a (secure) tmp directory for tmp files.
16645 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16649 tmp=./conf$$-$RANDOM
16650 (umask 077 && mkdir "$tmp")
16651 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16654 # Set up the scripts for CONFIG_FILES section.
16655 # No need to generate them if there are no CONFIG_FILES.
16656 # This happens for instance with `./config.status config.h'.
16657 if test -n "$CONFIG_FILES"; then
16660 ac_cr=`echo X | tr X '\015'`
16661 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16662 # But we know of no other shell where ac_cr would be empty at this
16663 # point, so we can use a bashism as a fallback.
16664 if test "x$ac_cr" = x; then
16665 eval ac_cr=\$\'\\r\'
16667 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16668 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16671 ac_cs_awk_cr=$ac_cr
16674 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16679 echo "cat >conf$$subs.awk <<_ACEOF" &&
16680 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16682 } >conf$$subs.sh ||
16683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16684 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16686 for ac_last_try in false false false false false :; do
16687 . ./conf$$subs.sh ||
16688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16690 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16691 if test $ac_delim_n = $ac_delim_num; then
16693 elif $ac_last_try; then
16694 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16696 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16699 rm -f conf$$subs.sh
16701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16702 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16706 s/^/S["/; s/!.*/"]=/
16716 s/\(.\{148\}\)..*/\1/
16718 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16723 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16730 s/\(.\{148\}\)..*/\1/
16732 s/["\\]/\\&/g; s/^/"/; s/$/"/
16736 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16741 ' <conf$$subs.awk | sed '
16746 ' >>$CONFIG_STATUS || ac_write_fail=1
16747 rm -f conf$$subs.awk
16748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16750 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16751 for (key in S) S_is_set[key] = 1
16757 nfields = split(line, field, "@")
16759 len = length(field[1])
16760 for (i = 2; i < nfields; i++) {
16762 keylen = length(key)
16763 if (S_is_set[key]) {
16765 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16766 len += length(value) + length(field[++i])
16777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16778 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16779 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16782 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16783 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16786 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16787 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16788 # trailing colons and then remove the whole line if VPATH becomes empty
16789 # (actually we leave an empty line to preserve line numbers).
16790 if test "x$srcdir" = x.; then
16791 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16810 fi # test -n "$CONFIG_FILES"
16812 # Set up the scripts for CONFIG_HEADERS section.
16813 # No need to generate them if there are no CONFIG_HEADERS.
16814 # This happens for instance with `./config.status Makefile'.
16815 if test -n "$CONFIG_HEADERS"; then
16816 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16820 # Transform confdefs.h into an awk script `defines.awk', embedded as
16821 # here-document in config.status, that substitutes the proper values into
16822 # config.h.in to produce config.h.
16824 # Create a delimiter string that does not exist in confdefs.h, to ease
16825 # handling of long lines.
16827 for ac_last_try in false false :; do
16828 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16829 if test -z "$ac_tt"; then
16831 elif $ac_last_try; then
16832 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16838 # For the awk script, D is an array of macro values keyed by name,
16839 # likewise P contains macro parameters if any. Preserve backslash
16840 # newline sequences.
16842 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16844 s/.\{148\}/&'"$ac_delim"'/g
16847 s/^[ ]*#[ ]*define[ ][ ]*/ /
16854 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16856 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16860 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16861 D["\1"]=" \3\\\\\\n"\\/p
16863 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16868 s/.\{148\}/&'"$ac_delim"'/g
16873 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16876 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16878 ' <confdefs.h | sed '
16879 s/'"$ac_delim"'/"\\\
16880 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16883 for (key in D) D_is_set[key] = 1
16886 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16888 split(line, arg, " ")
16889 if (arg[1] == "#") {
16893 defundef = substr(arg[1], 2)
16896 split(mac1, mac2, "(") #)
16898 prefix = substr(line, 1, index(line, defundef) - 1)
16899 if (D_is_set[macro]) {
16900 # Preserve the white space surrounding the "#".
16901 print prefix "define", macro P[macro] D[macro]
16904 # Replace #undef with comments. This is necessary, for example,
16905 # in the case of _POSIX_SOURCE, which is predefined and required
16906 # on some systems where configure will not decide to define it.
16907 if (defundef == "undef") {
16908 print "/*", prefix defundef, macro, "*/"
16916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16917 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16918 fi # test -n "$CONFIG_HEADERS"
16921 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16926 :[FHLC]) ac_mode=$ac_tag; continue;;
16928 case $ac_mode$ac_tag in
16930 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16931 :[FH]-) ac_tag=-:-;;
16932 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16949 -) ac_f="$ac_tmp/stdin";;
16950 *) # Look for the file first in the build tree, then in the source tree
16951 # (if the path is not absolute). The absolute path cannot be DOS-style,
16952 # because $ac_f cannot contain `:'.
16956 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16958 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16960 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16961 as_fn_append ac_file_inputs " '$ac_f'"
16964 # Let's still pretend it is `configure' which instantiates (i.e., don't
16965 # use $as_me), people would be surprised to read:
16966 # /* config.h. Generated by config.status. */
16967 configure_input='Generated from '`
16968 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16970 if test x"$ac_file" != x-; then
16971 configure_input="$ac_file. $configure_input"
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16973 $as_echo "$as_me: creating $ac_file" >&6;}
16975 # Neutralize special characters interpreted by sed in replacement strings.
16976 case $configure_input in #(
16977 *\&* | *\|* | *\\* )
16978 ac_sed_conf_input=`$as_echo "$configure_input" |
16979 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16980 *) ac_sed_conf_input=$configure_input;;
16984 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16990 ac_dir=`$as_dirname -- "$ac_file" ||
16991 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16992 X"$ac_file" : 'X\(//\)[^/]' \| \
16993 X"$ac_file" : 'X\(//\)$' \| \
16994 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16995 $as_echo X"$ac_file" |
16996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17000 /^X\(\/\/\)[^/].*/{
17013 { if test -n "$as_mkdir_p"; then
17014 $as_mkdir_p "$ac_dir"
17018 while test ! -d "$as_dir"; do
17019 as_dirs="$as_dir $as_dirs"
17020 as_dir=`$as_dirname -- "$as_dir" ||
17021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17022 X"$as_dir" : 'X\(//\)[^/]' \| \
17023 X"$as_dir" : 'X\(//\)$' \| \
17024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17025 $as_echo X"$as_dir" |
17026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17030 /^X\(\/\/\)[^/].*/{
17044 test ! -n "$as_dirs" || mkdir $as_dirs
17045 fi || as_fn_error $? "cannot create directory \"$ac_dir\"" "$LINENO" 5; }
17050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17053 # A ".." for each directory in $ac_dir_suffix.
17054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17055 case $ac_top_builddir_sub in
17056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17060 ac_abs_top_builddir=$ac_pwd
17061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17062 # for backward compatibility:
17063 ac_top_builddir=$ac_top_build_prefix
17066 .) # We are building in place.
17068 ac_top_srcdir=$ac_top_builddir_sub
17069 ac_abs_top_srcdir=$ac_pwd ;;
17070 [\\/]* | ?:[\\/]* ) # Absolute name.
17071 ac_srcdir=$srcdir$ac_dir_suffix;
17072 ac_top_srcdir=$srcdir
17073 ac_abs_top_srcdir=$srcdir ;;
17074 *) # Relative name.
17075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17076 ac_top_srcdir=$ac_top_build_prefix$srcdir
17077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17092 ac_MKDIR_P=$MKDIR_P
17094 [\\/$]* | ?:[\\/]* ) ;;
17095 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17100 # If the template does not know about datarootdir, expand it.
17101 # FIXME: This hack should be removed a few years after 2.60.
17102 ac_datarootdir_hack=; ac_datarootdir_seen=
17113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17114 *datarootdir*) ac_datarootdir_seen=yes;;
17115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17120 ac_datarootdir_hack='
17121 s&@datadir@&$datadir&g
17122 s&@docdir@&$docdir&g
17123 s&@infodir@&$infodir&g
17124 s&@localedir@&$localedir&g
17125 s&@mandir@&$mandir&g
17126 s&\\\${datarootdir}&$datarootdir&g' ;;
17130 # Neutralize VPATH when `$srcdir' = `.'.
17131 # Shell code in configure.ac might set extrasub.
17132 # FIXME: do we really want to maintain this feature?
17133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17134 ac_sed_extra="$ac_vpsub
17137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17140 s|@configure_input@|$ac_sed_conf_input|;t t
17141 s&@top_builddir@&$ac_top_builddir_sub&;t t
17142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17143 s&@srcdir@&$ac_srcdir&;t t
17144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17145 s&@top_srcdir@&$ac_top_srcdir&;t t
17146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17147 s&@builddir@&$ac_builddir&;t t
17148 s&@abs_builddir@&$ac_abs_builddir&;t t
17149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17150 s&@INSTALL@&$ac_INSTALL&;t t
17151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17152 $ac_datarootdir_hack
17154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17155 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17160 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17162 which seems to be undefined. Please make sure it is defined" >&5
17163 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17164 which seems to be undefined. Please make sure it is defined" >&2;}
17166 rm -f "$ac_tmp/stdin"
17168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17177 if test x"$ac_file" != x-; then
17179 $as_echo "/* $configure_input */" \
17180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17181 } >"$ac_tmp/config.h" \
17182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17183 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17185 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17188 mv "$ac_tmp/config.h" "$ac_file" \
17189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17192 $as_echo "/* $configure_input */" \
17193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17194 || as_fn_error $? "could not create -" "$LINENO" 5
17196 # Compute "$ac_file"'s index in $config_headers.
17199 for _am_header in $config_headers :; do
17200 case $_am_header in
17201 $_am_arg | $_am_arg:* )
17204 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17207 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17208 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17209 X"$_am_arg" : 'X\(//\)[^/]' \| \
17210 X"$_am_arg" : 'X\(//\)$' \| \
17211 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17212 $as_echo X"$_am_arg" |
17213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17217 /^X\(\/\/\)[^/].*/{
17229 s/.*/./; q'`/stamp-h$_am_stamp_count
17232 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17233 $as_echo "$as_me: executing $ac_file commands" >&6;}
17238 case $ac_file$ac_mode in
17239 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17240 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17241 # are listed without --file. Let's play safe and only enable the eval
17242 # if we detect the quoting.
17243 case $CONFIG_FILES in
17244 *\'*) eval set x "$CONFIG_FILES" ;;
17245 *) set x $CONFIG_FILES ;;
17250 # Strip MF so we end up with the name of the file.
17251 mf=`echo "$mf" | sed -e 's/:.*$//'`
17252 # Check whether this is an Automake generated Makefile or not.
17253 # We used to match only the files named `Makefile.in', but
17254 # some people rename them; so instead we look at the file content.
17255 # Grep'ing the first line is not enough: some people post-process
17256 # each Makefile.in and add a new line on top of each file to say so.
17257 # Grep'ing the whole file is not good either: AIX grep has a line
17258 # limit of 2048, but all sed's we know have understand at least 4000.
17259 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17260 dirpart=`$as_dirname -- "$mf" ||
17261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17262 X"$mf" : 'X\(//\)[^/]' \| \
17263 X"$mf" : 'X\(//\)$' \| \
17264 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17270 /^X\(\/\/\)[^/].*/{
17286 # Extract the definition of DEPDIR, am__include, and am__quote
17287 # from the Makefile without running `make'.
17288 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17289 test -z "$DEPDIR" && continue
17290 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17291 test -z "am__include" && continue
17292 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17293 # When using ansi2knr, U may be empty or an underscore; expand it
17294 U=`sed -n 's/^U = //p' < "$mf"`
17295 # Find all dependency output files, they are included files with
17296 # $(DEPDIR) in their names. We invoke sed twice because it is the
17297 # simplest approach to changing $(DEPDIR) to its actual value in the
17299 for file in `sed -n "
17300 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17301 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17302 # Make sure the directory exists.
17303 test -f "$dirpart/$file" && continue
17304 fdir=`$as_dirname -- "$file" ||
17305 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17306 X"$file" : 'X\(//\)[^/]' \| \
17307 X"$file" : 'X\(//\)$' \| \
17308 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17309 $as_echo X"$file" |
17310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17314 /^X\(\/\/\)[^/].*/{
17327 { if test -n "$as_mkdir_p"; then
17328 $as_mkdir_p $dirpart/$fdir
17330 as_dir=$dirpart/$fdir
17332 while test ! -d "$as_dir"; do
17333 as_dirs="$as_dir $as_dirs"
17334 as_dir=`$as_dirname -- "$as_dir" ||
17335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17336 X"$as_dir" : 'X\(//\)[^/]' \| \
17337 X"$as_dir" : 'X\(//\)$' \| \
17338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17339 $as_echo X"$as_dir" |
17340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17344 /^X\(\/\/\)[^/].*/{
17358 test ! -n "$as_dirs" || mkdir $as_dirs
17359 fi || as_fn_error $? "cannot create directory $dirpart/$fdir" "$LINENO" 5; }
17361 # echo "creating $dirpart/$file"
17362 echo '# dummy' > "$dirpart/$file"
17369 # See if we are running on zsh, and set the options which allow our
17370 # commands through without removal of \ escapes.
17371 if test -n "${ZSH_VERSION+set}" ; then
17372 setopt NO_GLOB_SUBST
17375 cfgfile="${ofile}T"
17376 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17379 cat <<_LT_EOF >> "$cfgfile"
17382 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17383 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17385 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17387 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17388 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17390 # Written by Gordon Matzigkeit, 1996
17392 # This file is part of GNU Libtool.
17394 # GNU Libtool is free software; you can redistribute it and/or
17395 # modify it under the terms of the GNU General Public License as
17396 # published by the Free Software Foundation; either version 2 of
17397 # the License, or (at your option) any later version.
17399 # As a special exception to the GNU General Public License,
17400 # if you distribute this file as part of a program or library that
17401 # is built using GNU Libtool, you may include this file under the
17402 # same distribution terms that you use for the rest of that program.
17404 # GNU Libtool is distributed in the hope that it will be useful,
17405 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17406 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17407 # GNU General Public License for more details.
17409 # You should have received a copy of the GNU General Public License
17410 # along with GNU Libtool; see the file COPYING. If not, a copy
17411 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17412 # obtained by writing to the Free Software Foundation, Inc.,
17413 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17416 # The names of the tagged configurations supported by this script.
17417 available_tags="CXX "
17419 # ### BEGIN LIBTOOL CONFIG
17421 # Which release of libtool.m4 was used?
17422 macro_version=$macro_version
17423 macro_revision=$macro_revision
17425 # Whether or not to build shared libraries.
17426 build_libtool_libs=$enable_shared
17428 # Whether or not to build static libraries.
17429 build_old_libs=$enable_static
17431 # What type of objects to build.
17434 # Whether or not to optimize for fast installation.
17435 fast_install=$enable_fast_install
17437 # Shell to use when invoking shell scripts.
17440 # An echo program that protects backslashes.
17444 host_alias=$host_alias
17448 # The build system.
17449 build_alias=$build_alias
17453 # A sed program that does not truncate output.
17456 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17457 Xsed="\$SED -e 1s/^X//"
17459 # A grep program that handles long lines.
17465 # A literal string matcher.
17468 # A BSD- or MS-compatible name lister.
17471 # Whether we need soft or hard links.
17474 # What is the maximum length of a command?
17475 max_cmd_len=$max_cmd_len
17477 # Object file suffix (normally "o").
17480 # Executable file suffix (normally "").
17483 # whether the shell understands "unset".
17486 # turn spaces into newlines.
17489 # turn newlines into spaces.
17492 # convert \$build file names to \$host format.
17493 to_host_file_cmd=$lt_cv_to_host_file_cmd
17495 # convert \$build files to toolchain format.
17496 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17498 # An object symbol dumper.
17499 OBJDUMP=$lt_OBJDUMP
17501 # Method to check whether dependent libraries are shared objects.
17502 deplibs_check_method=$lt_deplibs_check_method
17504 # Command to use when deplibs_check_method = "file_magic".
17505 file_magic_cmd=$lt_file_magic_cmd
17507 # How to find potential files when deplibs_check_method = "file_magic".
17508 file_magic_glob=$lt_file_magic_glob
17510 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17511 want_nocaseglob=$lt_want_nocaseglob
17513 # DLL creation program.
17514 DLLTOOL=$lt_DLLTOOL
17516 # Command to associate shared and link libraries.
17517 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17522 # Flags to create an archive.
17523 AR_FLAGS=$lt_AR_FLAGS
17525 # How to feed a file listing to the archiver.
17526 archiver_list_spec=$lt_archiver_list_spec
17528 # A symbol stripping program.
17531 # Commands used to install an old-style archive.
17533 old_postinstall_cmds=$lt_old_postinstall_cmds
17534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17536 # Whether to use a lock for old archive extraction.
17537 lock_old_archive_extraction=$lock_old_archive_extraction
17542 # LTCC compiler flags.
17543 LTCFLAGS=$lt_CFLAGS
17545 # Take the output of nm and produce a listing of raw symbols and C names.
17546 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17548 # Transform the output of nm in a proper C declaration.
17549 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17551 # Transform the output of nm in a C name address pair.
17552 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17554 # Transform the output of nm in a C name address pair when lib prefix is needed.
17555 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17557 # Specify filename containing input files for \$NM.
17558 nm_file_list_spec=$lt_nm_file_list_spec
17560 # The root where to search for dependent libraries,and in which our libraries should be installed.
17561 lt_sysroot=$lt_sysroot
17563 # The name of the directory that contains temporary libtool files.
17566 # Used to examine libraries when file_magic_cmd begins with "file".
17567 MAGIC_CMD=$MAGIC_CMD
17569 # Must we lock files when doing compilation?
17570 need_locks=$lt_need_locks
17573 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17575 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17576 DSYMUTIL=$lt_DSYMUTIL
17578 # Tool to change global to local symbols on Mac OS X.
17581 # Tool to manipulate fat objects and archives on Mac OS X.
17584 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17587 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17588 OTOOL64=$lt_OTOOL64
17590 # Old archive suffix (normally "a").
17593 # Shared library suffix (normally ".so").
17594 shrext_cmds=$lt_shrext_cmds
17596 # The commands to extract the exported symbol list from a shared archive.
17597 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17599 # Variables whose values should be saved in libtool wrapper scripts and
17600 # restored at link time.
17601 variables_saved_for_relink=$lt_variables_saved_for_relink
17603 # Do we need the "lib" prefix for modules?
17604 need_lib_prefix=$need_lib_prefix
17606 # Do we need a version for libraries?
17607 need_version=$need_version
17609 # Library versioning type.
17610 version_type=$version_type
17612 # Shared library runtime path variable.
17613 runpath_var=$runpath_var
17615 # Shared library path variable.
17616 shlibpath_var=$shlibpath_var
17618 # Is shlibpath searched before the hard-coded library search path?
17619 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17621 # Format of library name prefix.
17622 libname_spec=$lt_libname_spec
17624 # List of archive names. First name is the real one, the rest are links.
17625 # The last name is the one that the linker finds with -lNAME
17626 library_names_spec=$lt_library_names_spec
17628 # The coded name of the library, if different from the real name.
17629 soname_spec=$lt_soname_spec
17631 # Permission mode override for installation of shared libraries.
17632 install_override_mode=$lt_install_override_mode
17634 # Command to use after installation of a shared archive.
17635 postinstall_cmds=$lt_postinstall_cmds
17637 # Command to use after uninstallation of a shared archive.
17638 postuninstall_cmds=$lt_postuninstall_cmds
17640 # Commands used to finish a libtool library installation in a directory.
17641 finish_cmds=$lt_finish_cmds
17643 # As "finish_cmds", except a single script fragment to be evaled but
17645 finish_eval=$lt_finish_eval
17647 # Whether we should hardcode library paths into libraries.
17648 hardcode_into_libs=$hardcode_into_libs
17650 # Compile-time system search path for libraries.
17651 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17653 # Run-time system search path for libraries.
17654 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17656 # Whether dlopen is supported.
17657 dlopen_support=$enable_dlopen
17659 # Whether dlopen of programs is supported.
17660 dlopen_self=$enable_dlopen_self
17662 # Whether dlopen of statically linked programs is supported.
17663 dlopen_self_static=$enable_dlopen_self_static
17665 # Commands to strip libraries.
17666 old_striplib=$lt_old_striplib
17667 striplib=$lt_striplib
17670 # The linker used to build libraries.
17673 # How to create reloadable object files.
17674 reload_flag=$lt_reload_flag
17675 reload_cmds=$lt_reload_cmds
17677 # Commands used to build an old-style archive.
17678 old_archive_cmds=$lt_old_archive_cmds
17680 # A language specific compiler.
17683 # Is the compiler the GNU compiler?
17686 # Compiler flag to turn off builtin functions.
17687 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17689 # Additional compiler flags for building library objects.
17690 pic_flag=$lt_lt_prog_compiler_pic
17692 # How to pass a linker flag through the compiler.
17693 wl=$lt_lt_prog_compiler_wl
17695 # Compiler flag to prevent dynamic linking.
17696 link_static_flag=$lt_lt_prog_compiler_static
17698 # Does compiler simultaneously support -c and -o options?
17699 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17701 # Whether or not to add -lc for building shared libraries.
17702 build_libtool_need_lc=$archive_cmds_need_lc
17704 # Whether or not to disallow shared libs when runtime libs are static.
17705 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17707 # Compiler flag to allow reflexive dlopens.
17708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17710 # Compiler flag to generate shared objects directly from archives.
17711 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17713 # Whether the compiler copes with passing no objects directly.
17714 compiler_needs_object=$lt_compiler_needs_object
17716 # Create an old-style archive from a shared archive.
17717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17719 # Create a temporary old-style archive to link instead of a shared archive.
17720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17722 # Commands used to build a shared archive.
17723 archive_cmds=$lt_archive_cmds
17724 archive_expsym_cmds=$lt_archive_expsym_cmds
17726 # Commands used to build a loadable module if different from building
17727 # a shared archive.
17728 module_cmds=$lt_module_cmds
17729 module_expsym_cmds=$lt_module_expsym_cmds
17731 # Whether we are building with GNU ld or not.
17732 with_gnu_ld=$lt_with_gnu_ld
17734 # Flag that allows shared libraries with undefined symbols to be built.
17735 allow_undefined_flag=$lt_allow_undefined_flag
17737 # Flag that enforces no undefined symbols.
17738 no_undefined_flag=$lt_no_undefined_flag
17740 # Flag to hardcode \$libdir into a binary during linking.
17741 # This must work even if \$libdir does not exist
17742 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17744 # If ld is used when linking, flag to hardcode \$libdir into a binary
17745 # during linking. This must work even if \$libdir does not exist.
17746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17748 # Whether we need a single "-rpath" flag with a separated argument.
17749 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17751 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17752 # DIR into the resulting binary.
17753 hardcode_direct=$hardcode_direct
17755 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17756 # DIR into the resulting binary and the resulting library dependency is
17757 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17758 # library is relocated.
17759 hardcode_direct_absolute=$hardcode_direct_absolute
17761 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17762 # into the resulting binary.
17763 hardcode_minus_L=$hardcode_minus_L
17765 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17766 # into the resulting binary.
17767 hardcode_shlibpath_var=$hardcode_shlibpath_var
17769 # Set to "yes" if building a shared library automatically hardcodes DIR
17770 # into the library and all subsequent libraries and executables linked
17772 hardcode_automatic=$hardcode_automatic
17774 # Set to yes if linker adds runtime paths of dependent libraries
17775 # to runtime path list.
17776 inherit_rpath=$inherit_rpath
17778 # Whether libtool must link a program against all its dependency libraries.
17779 link_all_deplibs=$link_all_deplibs
17781 # Set to "yes" if exported symbols are required.
17782 always_export_symbols=$always_export_symbols
17784 # The commands to list exported symbols.
17785 export_symbols_cmds=$lt_export_symbols_cmds
17787 # Symbols that should not be listed in the preloaded symbols.
17788 exclude_expsyms=$lt_exclude_expsyms
17790 # Symbols that must always be exported.
17791 include_expsyms=$lt_include_expsyms
17793 # Commands necessary for linking programs (against libraries) with templates.
17794 prelink_cmds=$lt_prelink_cmds
17796 # Commands necessary for finishing linking programs.
17797 postlink_cmds=$lt_postlink_cmds
17799 # Specify filename containing input files.
17800 file_list_spec=$lt_file_list_spec
17802 # How to hardcode a shared library path into an executable.
17803 hardcode_action=$hardcode_action
17805 # The directories searched by this compiler when creating a shared library.
17806 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17808 # Dependencies to place before and after the objects being linked to
17809 # create a shared library.
17810 predep_objects=$lt_predep_objects
17811 postdep_objects=$lt_postdep_objects
17812 predeps=$lt_predeps
17813 postdeps=$lt_postdeps
17815 # The library search path used internally by the compiler when linking
17816 # a shared library.
17817 compiler_lib_search_path=$lt_compiler_lib_search_path
17819 # ### END LIBTOOL CONFIG
17825 cat <<\_LT_EOF >> "$cfgfile"
17826 # AIX sometimes has problems with the GCC collect2 program. For some
17827 # reason, if we set the COLLECT_NAMES environment variable, the problems
17828 # vanish in a puff of smoke.
17829 if test "X${COLLECT_NAMES+set}" != Xset; then
17831 export COLLECT_NAMES
17838 ltmain="$ac_aux_dir/ltmain.sh"
17841 # We use sed instead of cat because bash on DJGPP gets confused if
17842 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17843 # text mode, it properly converts lines to CR/LF. This bash problem
17844 # is reportedly fixed, but why not run on old versions too?
17845 sed '$q' "$ltmain" >> "$cfgfile" \
17846 || (rm -f "$cfgfile"; exit 1)
17848 if test x"$xsi_shell" = xyes; then
17849 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17853 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17854 \ * ) func_dirname_result="${3}" ;;\
17856 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17857 && mv -f "$cfgfile.tmp" "$cfgfile" \
17858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17859 test 0 -eq $? || _lt_function_replace_fail=:
17862 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17865 \ func_basename_result="${1##*/}"\
17866 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17867 && mv -f "$cfgfile.tmp" "$cfgfile" \
17868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17869 test 0 -eq $? || _lt_function_replace_fail=:
17872 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17873 func_dirname_and_basename ()\
17876 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17877 \ * ) func_dirname_result="${3}" ;;\
17879 \ func_basename_result="${1##*/}"\
17880 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17881 && mv -f "$cfgfile.tmp" "$cfgfile" \
17882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17883 test 0 -eq $? || _lt_function_replace_fail=:
17886 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17889 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17890 \ # positional parameters, so assign one to ordinary parameter first.\
17891 \ func_stripname_result=${3}\
17892 \ func_stripname_result=${func_stripname_result#"${1}"}\
17893 \ func_stripname_result=${func_stripname_result%"${2}"}\
17894 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17895 && mv -f "$cfgfile.tmp" "$cfgfile" \
17896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17897 test 0 -eq $? || _lt_function_replace_fail=:
17900 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17901 func_split_long_opt ()\
17903 \ func_split_long_opt_name=${1%%=*}\
17904 \ func_split_long_opt_arg=${1#*=}\
17905 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17906 && mv -f "$cfgfile.tmp" "$cfgfile" \
17907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17908 test 0 -eq $? || _lt_function_replace_fail=:
17911 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17912 func_split_short_opt ()\
17914 \ func_split_short_opt_arg=${1#??}\
17915 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17916 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17917 && mv -f "$cfgfile.tmp" "$cfgfile" \
17918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17919 test 0 -eq $? || _lt_function_replace_fail=:
17922 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17926 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17927 \ *) func_lo2o_result=${1} ;;\
17929 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17930 && mv -f "$cfgfile.tmp" "$cfgfile" \
17931 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17932 test 0 -eq $? || _lt_function_replace_fail=:
17935 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17938 func_xform_result=${1%.*}.lo\
17939 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17940 && mv -f "$cfgfile.tmp" "$cfgfile" \
17941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17942 test 0 -eq $? || _lt_function_replace_fail=:
17945 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17948 func_arith_result=$(( $* ))\
17949 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17950 && mv -f "$cfgfile.tmp" "$cfgfile" \
17951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17952 test 0 -eq $? || _lt_function_replace_fail=:
17955 sed -e '/^func_len ()$/,/^} # func_len /c\
17958 func_len_result=${#1}\
17959 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17960 && mv -f "$cfgfile.tmp" "$cfgfile" \
17961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17962 test 0 -eq $? || _lt_function_replace_fail=:
17966 if test x"$lt_shell_append" = xyes; then
17967 sed -e '/^func_append ()$/,/^} # func_append /c\
17970 eval "${1}+=\\${2}"\
17971 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17972 && mv -f "$cfgfile.tmp" "$cfgfile" \
17973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17974 test 0 -eq $? || _lt_function_replace_fail=:
17977 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17978 func_append_quoted ()\
17980 \ func_quote_for_eval "${2}"\
17981 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17982 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17983 && mv -f "$cfgfile.tmp" "$cfgfile" \
17984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17985 test 0 -eq $? || _lt_function_replace_fail=:
17988 # Save a `func_append' function call where possible by direct use of '+='
17989 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17990 && mv -f "$cfgfile.tmp" "$cfgfile" \
17991 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17992 test 0 -eq $? || _lt_function_replace_fail=:
17994 # Save a `func_append' function call even when '+=' is not available
17995 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17996 && mv -f "$cfgfile.tmp" "$cfgfile" \
17997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17998 test 0 -eq $? || _lt_function_replace_fail=:
18001 if test x"$_lt_function_replace_fail" = x":"; then
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18003 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18007 mv -f "$cfgfile" "$ofile" ||
18008 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18012 cat <<_LT_EOF >> "$ofile"
18014 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18016 # The linker used to build libraries.
18019 # How to create reloadable object files.
18020 reload_flag=$lt_reload_flag_CXX
18021 reload_cmds=$lt_reload_cmds_CXX
18023 # Commands used to build an old-style archive.
18024 old_archive_cmds=$lt_old_archive_cmds_CXX
18026 # A language specific compiler.
18027 CC=$lt_compiler_CXX
18029 # Is the compiler the GNU compiler?
18032 # Compiler flag to turn off builtin functions.
18033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18035 # Additional compiler flags for building library objects.
18036 pic_flag=$lt_lt_prog_compiler_pic_CXX
18038 # How to pass a linker flag through the compiler.
18039 wl=$lt_lt_prog_compiler_wl_CXX
18041 # Compiler flag to prevent dynamic linking.
18042 link_static_flag=$lt_lt_prog_compiler_static_CXX
18044 # Does compiler simultaneously support -c and -o options?
18045 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18047 # Whether or not to add -lc for building shared libraries.
18048 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18050 # Whether or not to disallow shared libs when runtime libs are static.
18051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18053 # Compiler flag to allow reflexive dlopens.
18054 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18056 # Compiler flag to generate shared objects directly from archives.
18057 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18059 # Whether the compiler copes with passing no objects directly.
18060 compiler_needs_object=$lt_compiler_needs_object_CXX
18062 # Create an old-style archive from a shared archive.
18063 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18065 # Create a temporary old-style archive to link instead of a shared archive.
18066 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18068 # Commands used to build a shared archive.
18069 archive_cmds=$lt_archive_cmds_CXX
18070 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18072 # Commands used to build a loadable module if different from building
18073 # a shared archive.
18074 module_cmds=$lt_module_cmds_CXX
18075 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18077 # Whether we are building with GNU ld or not.
18078 with_gnu_ld=$lt_with_gnu_ld_CXX
18080 # Flag that allows shared libraries with undefined symbols to be built.
18081 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18083 # Flag that enforces no undefined symbols.
18084 no_undefined_flag=$lt_no_undefined_flag_CXX
18086 # Flag to hardcode \$libdir into a binary during linking.
18087 # This must work even if \$libdir does not exist
18088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18090 # If ld is used when linking, flag to hardcode \$libdir into a binary
18091 # during linking. This must work even if \$libdir does not exist.
18092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18094 # Whether we need a single "-rpath" flag with a separated argument.
18095 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18097 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18098 # DIR into the resulting binary.
18099 hardcode_direct=$hardcode_direct_CXX
18101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18102 # DIR into the resulting binary and the resulting library dependency is
18103 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18104 # library is relocated.
18105 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18107 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18108 # into the resulting binary.
18109 hardcode_minus_L=$hardcode_minus_L_CXX
18111 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18112 # into the resulting binary.
18113 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18115 # Set to "yes" if building a shared library automatically hardcodes DIR
18116 # into the library and all subsequent libraries and executables linked
18118 hardcode_automatic=$hardcode_automatic_CXX
18120 # Set to yes if linker adds runtime paths of dependent libraries
18121 # to runtime path list.
18122 inherit_rpath=$inherit_rpath_CXX
18124 # Whether libtool must link a program against all its dependency libraries.
18125 link_all_deplibs=$link_all_deplibs_CXX
18127 # Set to "yes" if exported symbols are required.
18128 always_export_symbols=$always_export_symbols_CXX
18130 # The commands to list exported symbols.
18131 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18133 # Symbols that should not be listed in the preloaded symbols.
18134 exclude_expsyms=$lt_exclude_expsyms_CXX
18136 # Symbols that must always be exported.
18137 include_expsyms=$lt_include_expsyms_CXX
18139 # Commands necessary for linking programs (against libraries) with templates.
18140 prelink_cmds=$lt_prelink_cmds_CXX
18142 # Commands necessary for finishing linking programs.
18143 postlink_cmds=$lt_postlink_cmds_CXX
18145 # Specify filename containing input files.
18146 file_list_spec=$lt_file_list_spec_CXX
18148 # How to hardcode a shared library path into an executable.
18149 hardcode_action=$hardcode_action_CXX
18151 # The directories searched by this compiler when creating a shared library.
18152 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18154 # Dependencies to place before and after the objects being linked to
18155 # create a shared library.
18156 predep_objects=$lt_predep_objects_CXX
18157 postdep_objects=$lt_postdep_objects_CXX
18158 predeps=$lt_predeps_CXX
18159 postdeps=$lt_postdeps_CXX
18161 # The library search path used internally by the compiler when linking
18162 # a shared library.
18163 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18165 # ### END LIBTOOL TAG CONFIG: CXX
18176 ac_clean_files=$ac_clean_files_save
18178 test $ac_write_fail = 0 ||
18179 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18182 # configure is writing to config.log, and then calls config.status.
18183 # config.status does its own redirection, appending to config.log.
18184 # Unfortunately, on DOS this fails, as config.log is still kept open
18185 # by configure, so config.status won't be able to write to it; its
18186 # output is simply discarded. So we exec the FD to /dev/null,
18187 # effectively closing config.log, so it can be properly (re)opened and
18188 # appended to by config.status. When coming back to configure, we
18189 # need to make the FD available again.
18190 if test "$no_create" != yes; then
18192 ac_config_status_args=
18193 test "$silent" = yes &&
18194 ac_config_status_args="$ac_config_status_args --quiet"
18196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18199 # would make configure fail if this is the last instruction.
18200 $ac_cs_success || as_fn_exit 1
18202 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18204 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18208 { $as_echo "$as_me:${as_lineno-$LINENO}:
18210 Please type 'make' to build Bullet
18214 Please type 'make' to build Bullet