2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for RtAudio 5.0.0.
5 # Report bugs to <gary@music.mcgill.ca>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: gary@music.mcgill.ca about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='RtAudio'
592 PACKAGE_TARNAME='rtaudio'
593 PACKAGE_VERSION='5.0.0'
594 PACKAGE_STRING='RtAudio 5.0.0'
595 PACKAGE_BUGREPORT='gary@music.mcgill.ca'
598 ac_unique_file="RtAudio.cpp"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
689 MAINTAINER_MODE_FALSE
721 INSTALL_STRIP_PROGRAM
764 program_transform_name
777 enable_option_checking
779 enable_dependency_tracking
780 enable_maintainer_mode
799 ac_precious_vars='build_alias
818 # Initialize some variables set by options.
820 ac_init_version=false
821 ac_unrecognized_opts=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name=s,x,x,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 runstatedir='${localstatedir}/run'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
936 eval enable_$ac_useropt=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
962 eval enable_$ac_useropt=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -runstatedir | --runstatedir | --runstatedi | --runstated \
1108 | --runstate | --runstat | --runsta | --runst | --runs \
1109 | --run | --ru | --r)
1110 ac_prev=runstatedir ;;
1111 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1112 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1113 | --run=* | --ru=* | --r=*)
1114 runstatedir=$ac_optarg ;;
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 sbindir=$ac_optarg ;;
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 sharedstatedir=$ac_optarg ;;
1133 -site | --site | --sit)
1135 -site=* | --site=* | --sit=*)
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1175 eval with_$ac_useropt=\$ac_optarg ;;
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval with_$ac_useropt=no ;;
1194 # Obsolete; use --with-x.
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir runstatedir
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1262 # Be sure to have absolute directory names.
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289 test "$silent" = yes && exec 6>/dev/null
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1332 ac_srcdir_defaulted=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 # Report the --help message.
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1366 \`configure' configures RtAudio 5.0.0 to adapt to many kinds of systems.
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1373 Defaults for the options are specified in brackets.
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print \`checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for \`--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1397 For better control, use the options below.
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/rtaudio]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1425 --program-prefix=PREFIX prepend PREFIX to installed program names
1426 --program-suffix=SUFFIX append SUFFIX to installed program names
1427 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435 if test -n "$ac_init_help"; then
1436 case $ac_init_help in
1437 short | recursive ) echo "Configuration of RtAudio 5.0.0:";;
1442 --disable-option-checking ignore unrecognized --enable/--with options
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --enable-silent-rules less verbose build output (undo: "make V=1")
1446 --disable-silent-rules verbose build output (undo: "make V=0")
1447 --enable-dependency-tracking
1448 do not reject slow dependency extractors
1449 --disable-dependency-tracking
1450 speeds up one-time build
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-debug enable various debug output
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-static[=PKGS] build static libraries [default=yes]
1457 --enable-fast-install[=PKGS]
1458 optimize for fast installation [default=yes]
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1466 --with-aix-soname=aix|svr4|both
1467 shared library versioning (aka "SONAME") variant to
1468 provide on AIX, [default=aix].
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1470 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1471 compiler's sysroot if not specified).
1472 --with-jack = choose JACK server support (mac and linux only)
1473 --with-alsa = choose native ALSA API support (linux only)
1474 --with-pulse = choose PulseAudio API support (linux only)
1475 --with-oss = choose OSS API support (unixes)
1476 --with-core = choose CoreAudio API support (mac only)
1477 --with-asio = choose ASIO API support (windoze only)
1478 --with-ds = choose DirectSound API support (windoze only)
1479 --with-wasapi = choose Windows Audio Session API support (windoze only)
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 PKG_CONFIG path to pkg-config utility
1491 directories to add to pkg-config's search path
1493 path overriding pkg-config's built-in search path
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1497 User-defined run-time library search path.
1499 CXXCPP C++ preprocessor
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to <gary@music.mcgill.ca>.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1534 .) # We are building in place.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1567 RtAudio configure 5.0.0
1568 generated by GNU Autoconf 2.69
1570 Copyright (C) 2012 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1617 } # ac_fn_c_try_compile
1619 # ac_fn_c_try_run LINENO
1620 # ----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1622 # that executables *can* be run.
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { { ac_try="$ac_link"
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>&5
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1637 { { case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_try") 2>&5
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; }; }; then :
1649 $as_echo "$as_me: program exited with status $ac_status" >&5
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1653 ac_retval=$ac_status
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1661 # ac_fn_cxx_try_compile LINENO
1662 # ----------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_cxx_try_compile ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_cxx_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1697 } # ac_fn_cxx_try_compile
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest$ac_exeext && {
1725 test "$cross_compiling" = yes ||
1726 test -x conftest$ac_exeext
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1743 } # ac_fn_c_try_link
1745 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists and can be compiled using the include files in
1748 # INCLUDES, setting the cache variable VAR accordingly.
1749 ac_fn_c_check_header_compile ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1762 if ac_fn_c_try_compile "$LINENO"; then :
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 } # ac_fn_c_check_header_compile
1776 # ac_fn_c_try_cpp LINENO
1777 # ----------------------
1778 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_cpp conftest.$ac_ext"
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } > conftest.i && {
1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1836 # include <limits.h>
1838 # include <assert.h>
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1865 if ac_fn_c_try_link "$LINENO"; then :
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } # ac_fn_c_check_func
1880 # ac_fn_cxx_try_cpp LINENO
1881 # ------------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_cpp ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_cxx_try_cpp
1917 # ac_fn_cxx_try_link LINENO
1918 # -------------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_link ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 test -x conftest$ac_exeext
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } # ac_fn_cxx_try_link
1963 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1964 # -------------------------------------------------------
1965 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1966 # the include files in INCLUDES and setting the cache variable VAR
1968 ac_fn_c_check_header_mongrel ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if eval \${$3+:} false; then :
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1981 # Is the header compilable?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1983 $as_echo_n "checking $2 usability... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_header_compiler=yes
1992 ac_header_compiler=no
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1996 $as_echo "$ac_header_compiler" >&6; }
1998 # Is the header present?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2000 $as_echo_n "checking $2 presence... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2005 if ac_fn_c_try_cpp "$LINENO"; then :
2006 ac_header_preproc=yes
2008 ac_header_preproc=no
2010 rm -f conftest.err conftest.i conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2012 $as_echo "$ac_header_preproc" >&6; }
2014 # So? What about this header?
2015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2018 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2020 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2024 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2026 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2028 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2030 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 ( $as_echo "## ----------------------------------- ##
2034 ## Report this to gary@music.mcgill.ca ##
2035 ## ----------------------------------- ##"
2036 ) | sed "s/^/$as_me: WARNING: /" >&2
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2044 eval "$3=\$ac_header_compiler"
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_header_mongrel
2053 cat >config.log <<_ACEOF
2054 This file contains any messages produced by compilers while
2055 running configure, to aid debugging if configure makes a mistake.
2057 It was created by RtAudio $as_me 5.0.0, which was
2058 generated by GNU Autoconf 2.69. Invocation command line was
2070 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2071 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2072 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2073 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2074 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2076 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2077 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2079 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2080 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2081 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2082 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2083 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2084 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2085 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 $as_echo "PATH: $as_dir"
2110 # Keep a trace of the command line.
2111 # Strip out --no-create and --no-recursion so they do not pile up.
2112 # Strip out --silent because we don't want to record it for future runs.
2113 # Also quote any args containing shell meta-characters.
2114 # Make two passes to allow for proper duplicate-argument suppression.
2118 ac_must_keep_next=false
2124 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2126 | -silent | --silent | --silen | --sile | --sil)
2129 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2132 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2134 as_fn_append ac_configure_args1 " '$ac_arg'"
2135 if test $ac_must_keep_next = true; then
2136 ac_must_keep_next=false # Got value, back to normal.
2139 *=* | --config-cache | -C | -disable-* | --disable-* \
2140 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2141 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2142 | -with-* | --with-* | -without-* | --without-* | --x)
2143 case "$ac_configure_args0 " in
2144 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2147 -* ) ac_must_keep_next=true ;;
2150 as_fn_append ac_configure_args " '$ac_arg'"
2155 { ac_configure_args0=; unset ac_configure_args0;}
2156 { ac_configure_args1=; unset ac_configure_args1;}
2158 # When interrupted or exit'd, cleanup temporary files, and complete
2159 # config.log. We remove comments because anyway the quotes in there
2160 # would cause problems or look ugly.
2161 # WARNING: Use '\'' to represent an apostrophe within the trap.
2162 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2163 trap 'exit_status=$?
2164 # Save into config.log some information that might help in debugging.
2168 $as_echo "## ---------------- ##
2169 ## Cache variables. ##
2170 ## ---------------- ##"
2172 # The following way of writing the cache mishandles newlines in values,
2174 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2175 eval ac_val=\$$ac_var
2179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2180 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2183 _ | IFS | as_nl) ;; #(
2184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2185 *) { eval $ac_var=; unset $ac_var;} ;;
2190 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2191 *${as_nl}ac_space=\ *)
2193 "s/'\''/'\''\\\\'\'''\''/g;
2194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2204 $as_echo "## ----------------- ##
2205 ## Output variables. ##
2206 ## ----------------- ##"
2208 for ac_var in $ac_subst_vars
2210 eval ac_val=\$$ac_var
2212 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214 $as_echo "$ac_var='\''$ac_val'\''"
2218 if test -n "$ac_subst_files"; then
2219 $as_echo "## ------------------- ##
2220 ## File substitutions. ##
2221 ## ------------------- ##"
2223 for ac_var in $ac_subst_files
2225 eval ac_val=\$$ac_var
2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2229 $as_echo "$ac_var='\''$ac_val'\''"
2234 if test -s confdefs.h; then
2235 $as_echo "## ----------- ##
2242 test "$ac_signal" != 0 &&
2243 $as_echo "$as_me: caught signal $ac_signal"
2244 $as_echo "$as_me: exit $exit_status"
2246 rm -f core *.core core.conftest.* &&
2247 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2250 for ac_signal in 1 2 13 15; do
2251 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2256 rm -f -r conftest* confdefs.h
2258 $as_echo "/* confdefs.h */" > confdefs.h
2260 # Predefined preprocessor variables.
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_NAME "$PACKAGE_NAME"
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_STRING "$PACKAGE_STRING"
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_URL "$PACKAGE_URL"
2287 # Let the site file select an alternate cache file if it wants to.
2288 # Prefer an explicitly selected file to automatically selected ones.
2291 if test -n "$CONFIG_SITE"; then
2292 # We do not want a PATH search for config.site.
2293 case $CONFIG_SITE in #((
2294 -*) ac_site_file1=./$CONFIG_SITE;;
2295 */*) ac_site_file1=$CONFIG_SITE;;
2296 *) ac_site_file1=./$CONFIG_SITE;;
2298 elif test "x$prefix" != xNONE; then
2299 ac_site_file1=$prefix/share/config.site
2300 ac_site_file2=$prefix/etc/config.site
2302 ac_site_file1=$ac_default_prefix/share/config.site
2303 ac_site_file2=$ac_default_prefix/etc/config.site
2305 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2307 test "x$ac_site_file" = xNONE && continue
2308 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2310 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2311 sed 's/^/| /' "$ac_site_file" >&5
2313 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2315 as_fn_error $? "failed to load site script $ac_site_file
2316 See \`config.log' for more details" "$LINENO" 5; }
2320 if test -r "$cache_file"; then
2321 # Some versions of bash will fail to source /dev/null (special files
2322 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2323 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2325 $as_echo "$as_me: loading cache $cache_file" >&6;}
2327 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2328 *) . "./$cache_file";;
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2333 $as_echo "$as_me: creating cache $cache_file" >&6;}
2337 # Check that the precious variables saved in the cache have kept the same
2339 ac_cache_corrupted=false
2340 for ac_var in $ac_precious_vars; do
2341 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2342 eval ac_new_set=\$ac_env_${ac_var}_set
2343 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2344 eval ac_new_val=\$ac_env_${ac_var}_value
2345 case $ac_old_set,$ac_new_set in
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2348 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2349 ac_cache_corrupted=: ;;
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2352 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2353 ac_cache_corrupted=: ;;
2356 if test "x$ac_old_val" != "x$ac_new_val"; then
2357 # differences in whitespace do not lead to failure.
2358 ac_old_val_w=`echo x $ac_old_val`
2359 ac_new_val_w=`echo x $ac_new_val`
2360 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2362 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2363 ac_cache_corrupted=:
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2366 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2367 eval $ac_var=\$ac_old_val
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2370 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2372 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2375 # Pass precious variables to config.status.
2376 if test "$ac_new_set" = set; then
2378 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2379 *) ac_arg=$ac_var=$ac_new_val ;;
2381 case " $ac_configure_args " in
2382 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2383 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2387 if $ac_cache_corrupted; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2391 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2392 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2394 ## -------------------- ##
2395 ## Main body of script. ##
2396 ## -------------------- ##
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406 for ac_dir in config "$srcdir"/config; do
2407 if test -f "$ac_dir/install-sh"; then
2409 ac_install_sh="$ac_aux_dir/install-sh -c"
2411 elif test -f "$ac_dir/install.sh"; then
2413 ac_install_sh="$ac_aux_dir/install.sh -c"
2415 elif test -f "$ac_dir/shtool"; then
2417 ac_install_sh="$ac_aux_dir/shtool install -c"
2421 if test -z "$ac_aux_dir"; then
2422 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2425 # These three variables are undocumented and unsupported,
2426 # and are intended to be withdrawn in a future Autoconf release.
2427 # They can cause serious problems if a builder's source tree is in a directory
2428 # whose full name contains unusual characters.
2429 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2430 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2431 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2435 ac_config_files="$ac_config_files rtaudio.pc Makefile tests/Makefile doc/Makefile doc/doxygen/Doxyfile"
2437 am__api_version='1.15'
2439 # Find a good install program. We prefer a C program (faster),
2440 # so one script is as good as another. But avoid the broken or
2441 # incompatible versions:
2442 # SysV /etc/install, /usr/sbin/install
2443 # SunOS /usr/etc/install
2444 # IRIX /sbin/install
2446 # AmigaOS /C/install, which installs bootblocks on floppy discs
2447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2450 # OS/2's system install, which has a completely different semantic
2451 # ./install, which can be erroneously created by make from ./install.sh.
2452 # Reject install programs that cannot install multiple files.
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2454 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2455 if test -z "$INSTALL"; then
2456 if ${ac_cv_path_install+:} false; then :
2457 $as_echo_n "(cached) " >&6
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 test -z "$as_dir" && as_dir=.
2464 # Account for people who put trailing slashes in PATH elements.
2465 case $as_dir/ in #((
2466 ./ | .// | /[cC]/* | \
2467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2468 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2471 # OSF1 and SCO ODT 3.0 have their own names for install.
2472 # Don't use installbsd from OSF since it installs stuff as root
2474 for ac_prog in ginstall scoinst install; do
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2477 if test $ac_prog = install &&
2478 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # AIX install. It has an incompatible calling convention.
2481 elif test $ac_prog = install &&
2482 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # program-specific install script used by HP pwplus--don't use.
2486 rm -rf conftest.one conftest.two conftest.dir
2487 echo one > conftest.one
2488 echo two > conftest.two
2490 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2491 test -s conftest.one && test -s conftest.two &&
2492 test -s conftest.dir/conftest.one &&
2493 test -s conftest.dir/conftest.two
2495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2508 rm -rf conftest.one conftest.two conftest.dir
2511 if test "${ac_cv_path_install+set}" = set; then
2512 INSTALL=$ac_cv_path_install
2514 # As a last resort, use the slow shell script. Don't cache a
2515 # value for INSTALL within a source directory, because that will
2516 # break other packages using the cache if that directory is
2517 # removed, or if the value is a relative name.
2518 INSTALL=$ac_install_sh
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2522 $as_echo "$INSTALL" >&6; }
2524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2525 # It thinks the first close brace ends the variable substitution.
2526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2533 $as_echo_n "checking whether build environment is sane... " >&6; }
2534 # Reject unsafe characters in $srcdir or the absolute working directory
2535 # name. Accept space and tab only in the latter.
2539 *[\\\"\#\$\&\'\`$am_lf]*)
2540 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2543 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2544 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2547 # Do 'set' in a subshell so we don't clobber the current shell's
2548 # arguments. Must try -L first in case configure is actually a
2549 # symlink; some systems play weird games with the mod time of symlinks
2550 # (eg FreeBSD returns the mod time of the symlink's containing
2554 for am_try in 1 2; do
2555 echo "timestamp, slept: $am_has_slept" > conftest.file
2556 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2557 if test "$*" = "X"; then
2559 set X `ls -t "$srcdir/configure" conftest.file`
2561 if test "$*" != "X $srcdir/configure conftest.file" \
2562 && test "$*" != "X conftest.file $srcdir/configure"; then
2564 # If neither matched, then we have a broken ls. This can happen
2565 # if, for instance, CONFIG_SHELL is bash and it inherits a
2566 # broken ls alias from the environment. This has actually
2567 # happened. Such a system could not be considered "sane".
2568 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2569 alias in your environment" "$LINENO" 5
2571 if test "$2" = conftest.file || test $am_try -eq 2; then
2578 test "$2" = conftest.file
2584 as_fn_error $? "newly created file is older than distributed files!
2585 Check your system clock" "$LINENO" 5
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588 $as_echo "yes" >&6; }
2589 # If we didn't sleep, we still need to ensure time stamps of config.status and
2590 # generated files are strictly newer.
2592 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2599 test "$program_prefix" != NONE &&
2600 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2601 # Use a double $ so make ignores it.
2602 test "$program_suffix" != NONE &&
2603 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2604 # Double any \ or $.
2605 # By default was `s,x,x', remove it if useless.
2606 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2607 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2609 # Expand $ac_aux_dir to an absolute path.
2610 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2612 if test x"${MISSING+set}" != xset; then
2615 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2617 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2620 # Use eval to expand $SHELL
2621 if eval "$MISSING --is-lightweight"; then
2622 am_missing_run="$MISSING "
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2626 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2629 if test x"${install_sh+set}" != xset; then
2632 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2634 install_sh="\${SHELL} $am_aux_dir/install-sh"
2638 # Installed binaries are usually stripped using 'strip' when the user
2639 # run "make install-strip". However 'strip' might not be the right
2640 # tool to use in cross-compilation environments, therefore Automake
2641 # will honor the 'STRIP' environment variable to overrule this program.
2642 if test "$cross_compiling" != no; then
2643 if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}strip; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if ${ac_cv_prog_STRIP+:} false; then :
2649 $as_echo_n "(cached) " >&6
2651 if test -n "$STRIP"; then
2652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 STRIP=$ac_cv_prog_STRIP
2672 if test -n "$STRIP"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2674 $as_echo "$STRIP" >&6; }
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2682 if test -z "$ac_cv_prog_STRIP"; then
2684 # Extract the first word of "strip", so it can be a program name with args.
2685 set dummy strip; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2689 $as_echo_n "(cached) " >&6
2691 if test -n "$ac_ct_STRIP"; then
2692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701 ac_cv_prog_ac_ct_STRIP="strip"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2712 if test -n "$ac_ct_STRIP"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2714 $as_echo "$ac_ct_STRIP" >&6; }
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2720 if test "x$ac_ct_STRIP" = x; then
2723 case $cross_compiling:$ac_tool_warned in
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned=yes ;;
2732 STRIP="$ac_cv_prog_STRIP"
2736 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2739 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2740 if test -z "$MKDIR_P"; then
2741 if ${ac_cv_path_mkdir+:} false; then :
2742 $as_echo_n "(cached) " >&6
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2748 test -z "$as_dir" && as_dir=.
2749 for ac_prog in mkdir gmkdir; do
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2752 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2753 'mkdir (GNU coreutils) '* | \
2754 'mkdir (coreutils) '* | \
2755 'mkdir (fileutils) '4.1*)
2756 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2766 test -d ./--version && rmdir ./--version
2767 if test "${ac_cv_path_mkdir+set}" = set; then
2768 MKDIR_P="$ac_cv_path_mkdir -p"
2770 # As a last resort, use the slow shell script. Don't cache a
2771 # value for MKDIR_P within a source directory, because that will
2772 # break other packages using the cache if that directory is
2773 # removed, or if the value is a relative name.
2774 MKDIR_P="$ac_install_sh -d"
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2778 $as_echo "$MKDIR_P" >&6; }
2780 for ac_prog in gawk mawk nawk awk
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if ${ac_cv_prog_AWK+:} false; then :
2787 $as_echo_n "(cached) " >&6
2789 if test -n "$AWK"; then
2790 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_AWK="$ac_prog"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 if test -n "$AWK"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2812 $as_echo "$AWK" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2819 test -n "$AWK" && break
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2823 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2825 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2826 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2827 $as_echo_n "(cached) " >&6
2829 cat >conftest.make <<\_ACEOF
2832 @echo '@@@%%%=$(MAKE)=@@@%%%'
2834 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2835 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2837 eval ac_cv_prog_make_${ac_make}_set=yes;;
2839 eval ac_cv_prog_make_${ac_make}_set=no;;
2843 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2845 $as_echo "yes" >&6; }
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 SET_MAKE="MAKE=${MAKE-make}"
2853 rm -rf .tst 2>/dev/null
2854 mkdir .tst 2>/dev/null
2855 if test -d .tst; then
2860 rmdir .tst 2>/dev/null
2862 # Check whether --enable-silent-rules was given.
2863 if test "${enable_silent_rules+set}" = set; then :
2864 enableval=$enable_silent_rules;
2867 case $enable_silent_rules in # (((
2868 yes) AM_DEFAULT_VERBOSITY=0;;
2869 no) AM_DEFAULT_VERBOSITY=1;;
2870 *) AM_DEFAULT_VERBOSITY=1;;
2872 am_make=${MAKE-make}
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2874 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2875 if ${am_cv_make_support_nested_variables+:} false; then :
2876 $as_echo_n "(cached) " >&6
2878 if $as_echo 'TRUE=$(BAR$(V))
2884 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2885 am_cv_make_support_nested_variables=yes
2887 am_cv_make_support_nested_variables=no
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2891 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2892 if test $am_cv_make_support_nested_variables = yes; then
2894 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2896 AM_V=$AM_DEFAULT_VERBOSITY
2897 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2901 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2902 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2903 # is not polluted with repeated "-I."
2904 am__isrc=' -I$(srcdir)'
2905 # test to see if srcdir already configured
2906 if test -f $srcdir/config.status; then
2907 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2911 # test whether we have cygpath
2912 if test -z "$CYGPATH_W"; then
2913 if (cygpath --version) >/dev/null 2>/dev/null; then
2914 CYGPATH_W='cygpath -w'
2921 # Define the identity of the package.
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE "$PACKAGE"
2931 cat >>confdefs.h <<_ACEOF
2932 #define VERSION "$VERSION"
2935 # Some tools Automake needs.
2937 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2940 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2943 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2946 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2949 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2951 # For better backward compatibility. To be removed once Automake 1.9.x
2952 # dies out for good. For more background, see:
2953 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2954 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2955 mkdir_p='$(MKDIR_P)'
2957 # We need awk for the "check" target (and possibly the TAP driver). The
2958 # system "awk" is bad on some platforms.
2959 # Always define AMTAR for backward compatibility. Yes, it's still used
2960 # in the wild :-( We should find a proper way to deprecate it ...
2964 # We'll loop over all known methods to create a tar archive until one works.
2965 _am_tools='gnutar pax cpio none'
2967 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2974 # POSIX will say in a future version that running "rm -f" with no argument
2975 # is OK; and we want to be able to make that assumption in our Makefile
2976 # recipes. So use an aggressive probe to check that the usage we want is
2977 # actually supported "in the wild" to an acceptable degree.
2978 # See automake bug#10828.
2979 # To make any issue more visible, cause the running configure to be aborted
2980 # by default if the 'rm' program in use doesn't match our expectations; the
2981 # user can still override this though.
2982 if rm -f && rm -fr && rm -rf; then : OK; else
2986 Your 'rm' program seems unable to run without file operands specified
2987 on the command line, even when the '-f' option is present. This is contrary
2988 to the behaviour of most rm programs out there, and not conforming with
2989 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2991 Please tell bug-automake@gnu.org about your system, including the value
2992 of your $PATH and any error possibly output before this message. This
2993 can help us improve future automake versions.
2996 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2997 echo 'Configuration will proceed anyway, since you have set the' >&2
2998 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3002 Aborting the configuration process, to ensure you take notice of the issue.
3004 You can download and install GNU coreutils to get an 'rm' implementation
3005 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3007 If you want to complete the configuration process using your problematic
3008 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3009 to "yes", and re-run configure.
3012 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3017 # libtool version: current:revision:age
3019 # If the library source code has changed at all since the last update, then
3020 # increment revision (`c:r:a' becomes `c:r+1:a').
3022 # If any interfaces have been added, removed, or changed since the last update,
3023 # increment current, and set revision to 0.
3025 # If any interfaces have been added since the last public release, then
3028 # If any interfaces have been removed since the last public release, then set
3040 # Check version number coherency between RtAudio.h and configure.ac
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that version numbers are coherent" >&5
3042 $as_echo_n "checking that version numbers are coherent... " >&6; }
3043 DEPDIR="${am__leading_dot}deps"
3045 ac_config_commands="$ac_config_commands depfiles"
3048 am_make=${MAKE-make}
3049 cat > confinc << 'END'
3051 @echo this is the am__doit target
3054 # If we don't find an include directive, just comment out the code.
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3056 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3060 # First try GNU make style include.
3061 echo "include confinc" > confmf
3062 # Ignore all kinds of additional output from 'make'.
3063 case `$am_make -s -f confmf 2> /dev/null` in #(
3064 *the\ am__doit\ target*)
3070 # Now try BSD make style include.
3071 if test "$am__include" = "#"; then
3072 echo '.include "confinc"' > confmf
3073 case `$am_make -s -f confmf 2> /dev/null` in #(
3074 *the\ am__doit\ target*)
3075 am__include=.include
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3084 $as_echo "$_am_result" >&6; }
3085 rm -f confinc confmf
3087 # Check whether --enable-dependency-tracking was given.
3088 if test "${enable_dependency_tracking+set}" = set; then :
3089 enableval=$enable_dependency_tracking;
3092 if test "x$enable_dependency_tracking" != xno; then
3093 am_depcomp="$ac_aux_dir/depcomp"
3097 if test "x$enable_dependency_tracking" != xno; then
3107 ac_cpp='$CPP $CPPFLAGS'
3108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 if test -n "$ac_tool_prefix"; then
3112 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_CC+:} false; then :
3117 $as_echo_n "(cached) " >&6
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3150 if test -z "$ac_cv_prog_CC"; then
3152 # Extract the first word of "gcc", so it can be a program name with args.
3153 set dummy gcc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3159 if test -n "$ac_ct_CC"; then
3160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_ac_ct_CC="gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3182 $as_echo "$ac_ct_CC" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3188 if test "x$ac_ct_CC" = x; then
3191 case $cross_compiling:$ac_tool_warned in
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195 ac_tool_warned=yes ;;
3203 if test -z "$CC"; then
3204 if test -n "$ac_tool_prefix"; then
3205 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3206 set dummy ${ac_tool_prefix}cc; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_CC+:} false; then :
3210 $as_echo_n "(cached) " >&6
3212 if test -n "$CC"; then
3213 ac_cv_prog_CC="$CC" # Let the user override the test.
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_CC="${ac_tool_prefix}cc"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 if test -n "$CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3244 if test -z "$CC"; then
3245 # Extract the first word of "cc", so it can be a program name with args.
3246 set dummy cc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3264 ac_prog_rejected=yes
3268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 if test $ac_prog_rejected = yes; then
3276 # We found a bogon in the path, so make sure we never use it.
3277 set dummy $ac_cv_prog_CC
3279 if test $# != 0; then
3280 # We chose a different compiler from the bogus one.
3281 # However, it has the same basename, so the bogon will be chosen
3282 # first if we set CC to just the basename; use the full file name.
3284 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3290 if test -n "$CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292 $as_echo "$CC" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3300 if test -z "$CC"; then
3301 if test -n "$ac_tool_prefix"; then
3302 for ac_prog in cl.exe
3304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3341 test -n "$CC" && break
3344 if test -z "$CC"; then
3346 for ac_prog in cl.exe
3348 # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3353 $as_echo_n "(cached) " >&6
3355 if test -n "$ac_ct_CC"; then
3356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_prog_ac_ct_CC="$ac_prog"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3376 if test -n "$ac_ct_CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3378 $as_echo "$ac_ct_CC" >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3385 test -n "$ac_ct_CC" && break
3388 if test "x$ac_ct_CC" = x; then
3391 case $cross_compiling:$ac_tool_warned in
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3395 ac_tool_warned=yes ;;
3404 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error $? "no acceptable C compiler found in \$PATH
3407 See \`config.log' for more details" "$LINENO" 5; }
3409 # Provide some information about the compiler.
3410 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3413 for ac_option in --version -v -V -qversion; do
3414 { { ac_try="$ac_compiler $ac_option >&5"
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3423 if test -s conftest.err; then
3425 ... rest of stderr output deleted ...
3426 10q' conftest.err >conftest.er1
3427 cat conftest.er1 >&5
3429 rm -f conftest.er1 conftest.err
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3445 ac_clean_files_save=$ac_clean_files
3446 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3447 # Try to create an executable without -o first, disregard a.out.
3448 # It will help us diagnose broken compilers, and finding out an intuition
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3451 $as_echo_n "checking whether the C compiler works... " >&6; }
3452 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3454 # The possible output files:
3455 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3458 for ac_file in $ac_files
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3467 if { { ac_try="$ac_link_default"
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_link_default") 2>&5
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }; then :
3478 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3479 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3480 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3481 # so that the user can short-circuit this test for compilers unknown to
3483 for ac_file in $ac_files ''
3485 test -f "$ac_file" || continue
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3490 # We found the default executable, but exeext='' is most
3494 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3496 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3498 # We set ac_cv_exeext here because the later test for it is not
3499 # safe: cross compilers may not add the suffix if given an `-o'
3500 # argument, so we may need to know it at that point already.
3501 # Even if this section looks crufty: it has the advantage of
3508 test "$ac_cv_exeext" = no && ac_cv_exeext=
3513 if test -z "$ac_file"; then :
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error 77 "C compiler cannot create executables
3522 See \`config.log' for more details" "$LINENO" 5; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3525 $as_echo "yes" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3528 $as_echo_n "checking for C compiler default output file name... " >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3530 $as_echo "$ac_file" >&6; }
3531 ac_exeext=$ac_cv_exeext
3533 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3534 ac_clean_files=$ac_clean_files_save
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3536 $as_echo_n "checking for suffix of executables... " >&6; }
3537 if { { ac_try="$ac_link"
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_link") 2>&5
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }; then :
3548 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3549 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3550 # work properly (i.e., refer to `conftest.exe'), while it won't with
3552 for ac_file in conftest.exe conftest conftest.*; do
3553 test -f "$ac_file" || continue
3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3556 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3565 See \`config.log' for more details" "$LINENO" 5; }
3567 rm -f conftest conftest$ac_cv_exeext
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3569 $as_echo "$ac_cv_exeext" >&6; }
3571 rm -f conftest.$ac_ext
3572 EXEEXT=$ac_cv_exeext
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3580 FILE *f = fopen ("conftest.out", "w");
3581 return ferror (f) || fclose (f) != 0;
3587 ac_clean_files="$ac_clean_files conftest.out"
3588 # Check that the compiler produces executables we can run. If not, either
3589 # the compiler is broken, or we cross compile.
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3591 $as_echo_n "checking whether we are cross compiling... " >&6; }
3592 if test "$cross_compiling" != yes; then
3593 { { ac_try="$ac_link"
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_link") 2>&5
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }
3604 if { ac_try='./conftest$ac_cv_exeext'
3605 { { case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_try") 2>&5
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }; }; then
3617 if test "$cross_compiling" = maybe; then
3620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error $? "cannot run C compiled programs.
3623 If you meant to cross compile, use \`--host'.
3624 See \`config.log' for more details" "$LINENO" 5; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3629 $as_echo "$cross_compiling" >&6; }
3631 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3632 ac_clean_files=$ac_clean_files_save
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3634 $as_echo_n "checking for suffix of object files... " >&6; }
3635 if ${ac_cv_objext+:} false; then :
3636 $as_echo_n "(cached) " >&6
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3649 rm -f conftest.o conftest.obj
3650 if { { ac_try="$ac_compile"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_compile") 2>&5
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }; then :
3661 for ac_file in conftest.o conftest.obj conftest.*; do
3662 test -f "$ac_file" || continue;
3664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3665 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3670 $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error $? "cannot compute suffix of object files: cannot compile
3676 See \`config.log' for more details" "$LINENO" 5; }
3678 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3681 $as_echo "$ac_cv_objext" >&6; }
3682 OBJEXT=$ac_cv_objext
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3685 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3686 if ${ac_cv_c_compiler_gnu+:} false; then :
3687 $as_echo_n "(cached) " >&6
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3703 if ac_fn_c_try_compile "$LINENO"; then :
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3713 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3714 if test $ac_compiler_gnu = yes; then
3719 ac_test_CFLAGS=${CFLAGS+set}
3720 ac_save_CFLAGS=$CFLAGS
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3722 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3723 if ${ac_cv_prog_cc_g+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 ac_save_c_werror_flag=$ac_c_werror_flag
3727 ac_c_werror_flag=yes
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3741 if ac_fn_c_try_compile "$LINENO"; then :
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3756 if ac_fn_c_try_compile "$LINENO"; then :
3759 ac_c_werror_flag=$ac_save_c_werror_flag
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3772 if ac_fn_c_try_compile "$LINENO"; then :
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 ac_c_werror_flag=$ac_save_c_werror_flag
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3783 $as_echo "$ac_cv_prog_cc_g" >&6; }
3784 if test "$ac_test_CFLAGS" = set; then
3785 CFLAGS=$ac_save_CFLAGS
3786 elif test $ac_cv_prog_cc_g = yes; then
3787 if test "$GCC" = yes; then
3793 if test "$GCC" = yes; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3800 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3801 if ${ac_cv_prog_cc_c89+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 ac_cv_prog_cc_c89=no
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3812 struct buf { int x; };
3813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3814 static char *e (p, i)
3820 static char *f (char * (*g) (char **, int), char **p, ...)
3825 s = g (p, va_arg (v,int));
3830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3831 function prototypes and stuff, but not '\xHH' hex character constants.
3832 These don't provoke an error unfortunately, instead are silently treated
3833 as 'x'. The following induces an error, until -std is added to get
3834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3835 array size at least. It's necessary to write '\x00'==0 to get something
3836 that's true only with -std. */
3837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3839 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3840 inside strings and character constants. */
3842 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3844 int test (int i, double x);
3845 struct s1 {int (*f) (int a);};
3846 struct s2 {int (*f) (double a);};
3847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3853 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3858 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3861 CC="$ac_save_CC $ac_arg"
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_cv_prog_cc_c89=$ac_arg
3865 rm -f core conftest.err conftest.$ac_objext
3866 test "x$ac_cv_prog_cc_c89" != "xno" && break
3868 rm -f conftest.$ac_ext
3873 case "x$ac_cv_prog_cc_c89" in
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3876 $as_echo "none needed" >&6; } ;;
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3879 $as_echo "unsupported" >&6; } ;;
3881 CC="$CC $ac_cv_prog_cc_c89"
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3883 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3885 if test "x$ac_cv_prog_cc_c89" != xno; then :
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3901 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3902 if ${am_cv_prog_cc_c_o+:} false; then :
3903 $as_echo_n "(cached) " >&6
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3916 # Make sure it works both with $CC and with simple cc.
3917 # Following AC_PROG_CC_C_O, we do the test twice because some
3918 # compilers refuse to overwrite an existing .o file with -o,
3919 # though they will create one.
3920 am_cv_prog_cc_c_o=yes
3922 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3923 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } \
3927 && test -f conftest2.$ac_objext; then
3930 am_cv_prog_cc_c_o=no
3934 rm -f core conftest*
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3938 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3939 if test "$am_cv_prog_cc_c_o" != yes; then
3940 # Losing compiler, so override with the script.
3941 # FIXME: It is wrong to rewrite CC.
3942 # But if we don't then we get into trouble of one sort or another.
3943 # A longer-term fix would be to have automake use am__CC in this case,
3944 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3945 CC="$am_aux_dir/compile $CC"
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954 depcc="$CC" am_compiler_list=
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3957 $as_echo_n "checking dependency style of $depcc... " >&6; }
3958 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3959 $as_echo_n "(cached) " >&6
3961 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3962 # We make a subdir and do the tests there. Otherwise we can end up
3963 # making bogus files that we don't know about and never remove. For
3964 # instance it was reported that on HP-UX the gcc test will end up
3965 # making a dummy file named 'D' -- because '-MD' means "put the output
3969 # Copy depcomp to subdir because otherwise we won't find it if we're
3970 # using a relative directory.
3971 cp "$am_depcomp" conftest.dir
3973 # We will build objects and dependencies in a subdirectory because
3974 # it helps to detect inapplicable dependency modes. For instance
3975 # both Tru64's cc and ICC support -MD to output dependencies as a
3976 # side effect of compilation, but ICC will put the dependencies in
3977 # the current directory while Tru64 will put them in the object
3981 am_cv_CC_dependencies_compiler_type=none
3982 if test "$am_compiler_list" = ""; then
3983 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3986 case " $depcc " in #(
3987 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3990 for depmode in $am_compiler_list; do
3991 # Setup a source with many dependencies, because some compilers
3992 # like to wrap large dependency lists on column 80 (with \), and
3993 # we should not choose a depcomp mode which is confused by this.
3995 # We need to recreate these files for each test, as the compiler may
3996 # overwrite some of them when testing with obscure command lines.
3997 # This happens at least with the AIX C compiler.
3999 for i in 1 2 3 4 5 6; do
4000 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4001 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4002 # Solaris 10 /bin/sh.
4003 echo '/* dummy */' > sub/conftst$i.h
4005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4007 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4008 # mode. It turns out that the SunPro C++ compiler does not properly
4009 # handle '-M -o', and we need to detect this. Also, some Intel
4010 # versions had trouble with output in subdirs.
4011 am__obj=sub/conftest.${OBJEXT-o}
4012 am__minus_obj="-o $am__obj"
4015 # This depmode causes a compiler race in universal mode.
4016 test "$am__universal" = false || continue
4019 # After this tag, mechanisms are not by side-effect, so they'll
4020 # only be used when explicitly requested.
4021 if test "x$enable_dependency_tracking" = xyes; then
4027 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4028 # This compiler won't grok '-c -o', but also, the minuso test has
4029 # not run yet. These depmodes are late enough in the game, and
4030 # so weak that their functioning should not be impacted.
4031 am__obj=conftest.${OBJEXT-o}
4036 if depmode=$depmode \
4037 source=sub/conftest.c object=$am__obj \
4038 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4039 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4040 >/dev/null 2>conftest.err &&
4041 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4042 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4043 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4044 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4045 # icc doesn't choke on unknown options, it will just issue warnings
4046 # or remarks (even with -Werror). So we grep stderr for any message
4047 # that says an option was ignored or not supported.
4048 # When given -MP, icc 7.0 and 7.1 complain thusly:
4049 # icc: Command line warning: ignoring option '-M'; no argument required
4050 # The diagnosis changed in icc 8.0:
4051 # icc: Command line remark: option '-MP' not supported
4052 if (grep 'ignoring option' conftest.err ||
4053 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4054 am_cv_CC_dependencies_compiler_type=$depmode
4063 am_cv_CC_dependencies_compiler_type=none
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4068 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4069 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4072 test "x$enable_dependency_tracking" != xno \
4073 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4075 am__fastdepCC_FALSE='#'
4077 am__fastdepCC_TRUE='#'
4078 am__fastdepCC_FALSE=
4083 if test "$cross_compiling" = yes; then :
4084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 as_fn_error $? "cannot run test program while cross compiling
4087 See \`config.log' for more details" "$LINENO" 5; }
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4092 `grep "define RTAUDIO_VERSION" $srcdir/RtAudio.h`
4096 return strcmp(RTAUDIO_VERSION, PACKAGE_VERSION);
4101 if ac_fn_c_try_run "$LINENO"; then :
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4103 $as_echo "yes" >&6; }
4105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error $? "testing RTAUDIO_VERSION==PACKAGE_VERSION failed, check that RtAudio.h defines RTAUDIO_VERSION as \"$PACKAGE_VERSION\" or that the first line of configure.ac has been updated.
4108 See \`config.log' for more details" "$LINENO" 5; }
4110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4111 conftest.$ac_objext conftest.beam conftest.$ac_ext
4115 # Enable some nice automake features if they are available
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4118 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4119 # Check whether --enable-maintainer-mode was given.
4120 if test "${enable_maintainer_mode+set}" = set; then :
4121 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4123 USE_MAINTAINER_MODE=no
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4127 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4128 if test $USE_MAINTAINER_MODE = yes; then
4129 MAINTAINER_MODE_TRUE=
4130 MAINTAINER_MODE_FALSE='#'
4132 MAINTAINER_MODE_TRUE='#'
4133 MAINTAINER_MODE_FALSE=
4136 MAINT=$MAINTAINER_MODE_TRUE
4139 # Check whether --enable-silent-rules was given.
4140 if test "${enable_silent_rules+set}" = set; then :
4141 enableval=$enable_silent_rules;
4144 case $enable_silent_rules in # (((
4145 yes) AM_DEFAULT_VERBOSITY=0;;
4146 no) AM_DEFAULT_VERBOSITY=1;;
4147 *) AM_DEFAULT_VERBOSITY=0;;
4149 am_make=${MAKE-make}
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4151 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4152 if ${am_cv_make_support_nested_variables+:} false; then :
4153 $as_echo_n "(cached) " >&6
4155 if $as_echo 'TRUE=$(BAR$(V))
4161 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4162 am_cv_make_support_nested_variables=yes
4164 am_cv_make_support_nested_variables=no
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4168 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4169 if test $am_cv_make_support_nested_variables = yes; then
4171 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4173 AM_V=$AM_DEFAULT_VERBOSITY
4174 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4179 # Fill GXX with something before test.
4192 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4199 $as_echo_n "(cached) " >&6
4203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4225 if test -n "$PKG_CONFIG"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4227 $as_echo "$PKG_CONFIG" >&6; }
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4235 if test -z "$ac_cv_path_PKG_CONFIG"; then
4236 ac_pt_PKG_CONFIG=$PKG_CONFIG
4237 # Extract the first word of "pkg-config", so it can be a program name with args.
4238 set dummy pkg-config; ac_word=$2
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240 $as_echo_n "checking for $ac_word... " >&6; }
4241 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4242 $as_echo_n "(cached) " >&6
4244 case $ac_pt_PKG_CONFIG in
4246 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4268 if test -n "$ac_pt_PKG_CONFIG"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4270 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4276 if test "x$ac_pt_PKG_CONFIG" = x; then
4279 case $cross_compiling:$ac_tool_warned in
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4283 ac_tool_warned=yes ;;
4285 PKG_CONFIG=$ac_pt_PKG_CONFIG
4288 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4292 if test -n "$PKG_CONFIG"; then
4293 _pkg_min_version=0.9.0
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4295 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4296 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4298 $as_echo "yes" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile debug version" >&5
4310 $as_echo_n "checking whether to compile debug version... " >&6; }
4311 # Check whether --enable-debug was given.
4312 if test "${enable_debug+set}" = set; then :
4313 enableval=$enable_debug; : ${CXXFLAGS="-g -O0"}; $as_echo "#define __RTAUDIO_DEBUG__ 1" >>confdefs.h
4320 # Checks for programs.
4322 ac_cpp='$CXXCPP $CPPFLAGS'
4323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4326 if test -z "$CXX"; then
4327 if test -n "$CCC"; then
4330 if test -n "$ac_tool_prefix"; then
4331 for ac_prog in g++ CC c++ cxx
4333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_CXX+:} false; then :
4338 $as_echo_n "(cached) " >&6
4340 if test -n "$CXX"; then
4341 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 if test -n "$CXX"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4363 $as_echo "$CXX" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4370 test -n "$CXX" && break
4373 if test -z "$CXX"; then
4375 for ac_prog in g++ CC c++ cxx
4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy $ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4382 $as_echo_n "(cached) " >&6
4384 if test -n "$ac_ct_CXX"; then
4385 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_CXX="$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4405 if test -n "$ac_ct_CXX"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4407 $as_echo "$ac_ct_CXX" >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4414 test -n "$ac_ct_CXX" && break
4417 if test "x$ac_ct_CXX" = x; then
4420 case $cross_compiling:$ac_tool_warned in
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4432 # Provide some information about the compiler.
4433 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4436 for ac_option in --version -v -V -qversion; do
4437 { { ac_try="$ac_compiler $ac_option >&5"
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4443 $as_echo "$ac_try_echo"; } >&5
4444 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4446 if test -s conftest.err; then
4448 ... rest of stderr output deleted ...
4449 10q' conftest.err >conftest.er1
4450 cat conftest.er1 >&5
4452 rm -f conftest.er1 conftest.err
4453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454 test $ac_status = 0; }
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4458 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4459 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4460 $as_echo_n "(cached) " >&6
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4476 if ac_fn_cxx_try_compile "$LINENO"; then :
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4486 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4487 if test $ac_compiler_gnu = yes; then
4492 ac_test_CXXFLAGS=${CXXFLAGS+set}
4493 ac_save_CXXFLAGS=$CXXFLAGS
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4495 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4496 if ${ac_cv_prog_cxx_g+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4500 ac_cxx_werror_flag=yes
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4514 if ac_fn_cxx_try_compile "$LINENO"; then :
4515 ac_cv_prog_cxx_g=yes
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4529 if ac_fn_cxx_try_compile "$LINENO"; then :
4532 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4545 if ac_fn_cxx_try_compile "$LINENO"; then :
4546 ac_cv_prog_cxx_g=yes
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4556 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4557 if test "$ac_test_CXXFLAGS" = set; then
4558 CXXFLAGS=$ac_save_CXXFLAGS
4559 elif test $ac_cv_prog_cxx_g = yes; then
4560 if test "$GXX" = yes; then
4566 if test "$GXX" = yes; then
4573 ac_cpp='$CPP $CPPFLAGS'
4574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578 depcc="$CXX" am_compiler_list=
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4581 $as_echo_n "checking dependency style of $depcc... " >&6; }
4582 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4583 $as_echo_n "(cached) " >&6
4585 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4586 # We make a subdir and do the tests there. Otherwise we can end up
4587 # making bogus files that we don't know about and never remove. For
4588 # instance it was reported that on HP-UX the gcc test will end up
4589 # making a dummy file named 'D' -- because '-MD' means "put the output
4593 # Copy depcomp to subdir because otherwise we won't find it if we're
4594 # using a relative directory.
4595 cp "$am_depcomp" conftest.dir
4597 # We will build objects and dependencies in a subdirectory because
4598 # it helps to detect inapplicable dependency modes. For instance
4599 # both Tru64's cc and ICC support -MD to output dependencies as a
4600 # side effect of compilation, but ICC will put the dependencies in
4601 # the current directory while Tru64 will put them in the object
4605 am_cv_CXX_dependencies_compiler_type=none
4606 if test "$am_compiler_list" = ""; then
4607 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4610 case " $depcc " in #(
4611 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4614 for depmode in $am_compiler_list; do
4615 # Setup a source with many dependencies, because some compilers
4616 # like to wrap large dependency lists on column 80 (with \), and
4617 # we should not choose a depcomp mode which is confused by this.
4619 # We need to recreate these files for each test, as the compiler may
4620 # overwrite some of them when testing with obscure command lines.
4621 # This happens at least with the AIX C compiler.
4623 for i in 1 2 3 4 5 6; do
4624 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4625 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4626 # Solaris 10 /bin/sh.
4627 echo '/* dummy */' > sub/conftst$i.h
4629 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4631 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4632 # mode. It turns out that the SunPro C++ compiler does not properly
4633 # handle '-M -o', and we need to detect this. Also, some Intel
4634 # versions had trouble with output in subdirs.
4635 am__obj=sub/conftest.${OBJEXT-o}
4636 am__minus_obj="-o $am__obj"
4639 # This depmode causes a compiler race in universal mode.
4640 test "$am__universal" = false || continue
4643 # After this tag, mechanisms are not by side-effect, so they'll
4644 # only be used when explicitly requested.
4645 if test "x$enable_dependency_tracking" = xyes; then
4651 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4652 # This compiler won't grok '-c -o', but also, the minuso test has
4653 # not run yet. These depmodes are late enough in the game, and
4654 # so weak that their functioning should not be impacted.
4655 am__obj=conftest.${OBJEXT-o}
4660 if depmode=$depmode \
4661 source=sub/conftest.c object=$am__obj \
4662 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4663 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4664 >/dev/null 2>conftest.err &&
4665 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4666 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4667 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4668 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4669 # icc doesn't choke on unknown options, it will just issue warnings
4670 # or remarks (even with -Werror). So we grep stderr for any message
4671 # that says an option was ignored or not supported.
4672 # When given -MP, icc 7.0 and 7.1 complain thusly:
4673 # icc: Command line warning: ignoring option '-M'; no argument required
4674 # The diagnosis changed in icc 8.0:
4675 # icc: Command line remark: option '-MP' not supported
4676 if (grep 'ignoring option' conftest.err ||
4677 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4678 am_cv_CXX_dependencies_compiler_type=$depmode
4687 am_cv_CXX_dependencies_compiler_type=none
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4692 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4693 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4696 test "x$enable_dependency_tracking" != xno \
4697 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4698 am__fastdepCXX_TRUE=
4699 am__fastdepCXX_FALSE='#'
4701 am__fastdepCXX_TRUE='#'
4702 am__fastdepCXX_FALSE=
4706 if test -n "$ac_tool_prefix"; then
4707 for ac_prog in ar lib "link -lib"
4709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if ${ac_cv_prog_AR+:} false; then :
4714 $as_echo_n "(cached) " >&6
4716 if test -n "$AR"; then
4717 ac_cv_prog_AR="$AR" # Let the user override the test.
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 if test -n "$AR"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4739 $as_echo "$AR" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4746 test -n "$AR" && break
4749 if test -z "$AR"; then
4751 for ac_prog in ar lib "link -lib"
4753 # Extract the first word of "$ac_prog", so it can be a program name with args.
4754 set dummy $ac_prog; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -n "$ac_ct_AR"; then
4761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_ac_ct_AR="$ac_prog"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4781 if test -n "$ac_ct_AR"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4783 $as_echo "$ac_ct_AR" >&6; }
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4790 test -n "$ac_ct_AR" && break
4793 if test "x$ac_ct_AR" = x; then
4796 case $cross_compiling:$ac_tool_warned in
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4809 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4810 if ${am_cv_ar_interface+:} false; then :
4811 $as_echo_n "(cached) " >&6
4814 ac_cpp='$CPP $CPPFLAGS'
4815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4819 am_cv_ar_interface=ar
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 int some_variable = 0;
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4827 (eval $am_ar_try) 2>&5
4829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4830 test $ac_status = 0; }
4831 if test "$ac_status" -eq 0; then
4832 am_cv_ar_interface=ar
4834 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4836 (eval $am_ar_try) 2>&5
4838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4839 test $ac_status = 0; }
4840 if test "$ac_status" -eq 0; then
4841 am_cv_ar_interface=lib
4843 am_cv_ar_interface=unknown
4846 rm -f conftest.lib libconftest.a
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 ac_cpp='$CPP $CPPFLAGS'
4852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4858 $as_echo "$am_cv_ar_interface" >&6; }
4860 case $am_cv_ar_interface in
4864 # Microsoft lib, so override with the ar-lib wrapper script.
4865 # FIXME: It is wrong to rewrite AR.
4866 # But if we don't then we get into trouble of one sort or another.
4867 # A longer-term fix would be to have automake use am__AR in this case,
4868 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4870 AR="$am_aux_dir/ar-lib $AR"
4873 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4877 # Extract the first word of "ar", so it can be a program name with args.
4878 set dummy ar; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if ${ac_cv_path_AR+:} false; then :
4882 $as_echo_n "(cached) " >&6
4886 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
4909 if test -n "$AR"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4911 $as_echo "$AR" >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4918 if [ $AR = "no" ] ; then
4919 as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5;
4922 # Initialize libtool
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4926 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4931 macro_version='2.4.6'
4932 macro_revision='2.4.6'
4946 ltmain=$ac_aux_dir/ltmain.sh
4948 # Make sure we can run config.sub.
4949 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4950 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4953 $as_echo_n "checking build system type... " >&6; }
4954 if ${ac_cv_build+:} false; then :
4955 $as_echo_n "(cached) " >&6
4957 ac_build_alias=$build_alias
4958 test "x$ac_build_alias" = x &&
4959 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4960 test "x$ac_build_alias" = x &&
4961 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4962 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4963 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4967 $as_echo "$ac_cv_build" >&6; }
4968 case $ac_cv_build in
4970 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4973 ac_save_IFS=$IFS; IFS='-'
4979 # Remember, the first character of IFS is used to create $*,
4980 # except with old shells:
4983 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4987 $as_echo_n "checking host system type... " >&6; }
4988 if ${ac_cv_host+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 if test "x$host_alias" = x; then
4992 ac_cv_host=$ac_cv_build
4994 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4995 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5000 $as_echo "$ac_cv_host" >&6; }
5003 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5006 ac_save_IFS=$IFS; IFS='-'
5012 # Remember, the first character of IFS is used to create $*,
5013 # except with old shells:
5016 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5019 # Backslashify metacharacters that are still active within
5020 # double-quoted strings.
5021 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5023 # Same as above, but do not quote variable references.
5024 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5026 # Sed substitution to delay expansion of an escaped shell variable in a
5027 # double_quote_subst'ed string.
5028 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5030 # Sed substitution to delay expansion of an escaped single quote.
5031 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5033 # Sed substitution to avoid accidental globbing in evaled expressions
5034 no_glob_subst='s/\*/\\\*/g'
5036 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5037 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5038 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5041 $as_echo_n "checking how to print strings... " >&6; }
5042 # Test print first, because it will be a builtin if present.
5043 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5044 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5046 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5049 # Use this function as a fallback that always works.
5050 func_fallback_echo ()
5052 eval 'cat <<_LTECHO_EOF
5056 ECHO='func_fallback_echo'
5059 # func_echo_all arg...
5060 # Invoke $ECHO with all args, space-separated.
5067 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5068 $as_echo "printf" >&6; } ;;
5069 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5070 $as_echo "print -r" >&6; } ;;
5071 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5072 $as_echo "cat" >&6; } ;;
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5089 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5090 if ${ac_cv_path_SED+:} false; then :
5091 $as_echo_n "(cached) " >&6
5093 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5094 for ac_i in 1 2 3 4 5 6 7; do
5095 ac_script="$ac_script$as_nl$ac_script"
5097 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5098 { ac_script=; unset ac_script;}
5099 if test -z "$SED"; then
5100 ac_path_SED_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 test -z "$as_dir" && as_dir=.
5107 for ac_prog in sed gsed; do
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5110 as_fn_executable_p "$ac_path_SED" || continue
5111 # Check for GNU ac_path_SED and select it if it is found.
5112 # Check for GNU $ac_path_SED
5113 case `"$ac_path_SED" --version 2>&1` in
5115 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5118 $as_echo_n 0123456789 >"conftest.in"
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 $as_echo '' >> "conftest.nl"
5125 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127 as_fn_arith $ac_count + 1 && ac_count=$as_val
5128 if test $ac_count -gt ${ac_path_SED_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_SED="$ac_path_SED"
5131 ac_path_SED_max=$ac_count
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5139 $ac_path_SED_found && break 3
5144 if test -z "$ac_cv_path_SED"; then
5145 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5153 $as_echo "$ac_cv_path_SED" >&6; }
5154 SED="$ac_cv_path_SED"
5157 test -z "$SED" && SED=sed
5158 Xsed="$SED -e 1s/^X//"
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5171 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5172 if ${ac_cv_path_GREP+:} false; then :
5173 $as_echo_n "(cached) " >&6
5175 if test -z "$GREP"; then
5176 ac_path_GREP_found=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5182 test -z "$as_dir" && as_dir=.
5183 for ac_prog in grep ggrep; do
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5186 as_fn_executable_p "$ac_path_GREP" || continue
5187 # Check for GNU ac_path_GREP and select it if it is found.
5188 # Check for GNU $ac_path_GREP
5189 case `"$ac_path_GREP" --version 2>&1` in
5191 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5194 $as_echo_n 0123456789 >"conftest.in"
5197 cat "conftest.in" "conftest.in" >"conftest.tmp"
5198 mv "conftest.tmp" "conftest.in"
5199 cp "conftest.in" "conftest.nl"
5200 $as_echo 'GREP' >> "conftest.nl"
5201 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5203 as_fn_arith $ac_count + 1 && ac_count=$as_val
5204 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5205 # Best one so far, save it but keep looking for a better one
5206 ac_cv_path_GREP="$ac_path_GREP"
5207 ac_path_GREP_max=$ac_count
5209 # 10*(2^10) chars as input seems more than enough
5210 test $ac_count -gt 10 && break
5212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215 $ac_path_GREP_found && break 3
5220 if test -z "$ac_cv_path_GREP"; then
5221 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5224 ac_cv_path_GREP=$GREP
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5229 $as_echo "$ac_cv_path_GREP" >&6; }
5230 GREP="$ac_cv_path_GREP"
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5234 $as_echo_n "checking for egrep... " >&6; }
5235 if ${ac_cv_path_EGREP+:} false; then :
5236 $as_echo_n "(cached) " >&6
5238 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5239 then ac_cv_path_EGREP="$GREP -E"
5241 if test -z "$EGREP"; then
5242 ac_path_EGREP_found=false
5243 # Loop through the user's path and test for each of PROGNAME-LIST
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5248 test -z "$as_dir" && as_dir=.
5249 for ac_prog in egrep; do
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5252 as_fn_executable_p "$ac_path_EGREP" || continue
5253 # Check for GNU ac_path_EGREP and select it if it is found.
5254 # Check for GNU $ac_path_EGREP
5255 case `"$ac_path_EGREP" --version 2>&1` in
5257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5260 $as_echo_n 0123456789 >"conftest.in"
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 $as_echo 'EGREP' >> "conftest.nl"
5267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269 as_fn_arith $ac_count + 1 && ac_count=$as_val
5270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_EGREP="$ac_path_EGREP"
5273 ac_path_EGREP_max=$ac_count
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5281 $ac_path_EGREP_found && break 3
5286 if test -z "$ac_cv_path_EGREP"; then
5287 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5290 ac_cv_path_EGREP=$EGREP
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5296 $as_echo "$ac_cv_path_EGREP" >&6; }
5297 EGREP="$ac_cv_path_EGREP"
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5301 $as_echo_n "checking for fgrep... " >&6; }
5302 if ${ac_cv_path_FGREP+:} false; then :
5303 $as_echo_n "(cached) " >&6
5305 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5306 then ac_cv_path_FGREP="$GREP -F"
5308 if test -z "$FGREP"; then
5309 ac_path_FGREP_found=false
5310 # Loop through the user's path and test for each of PROGNAME-LIST
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5315 test -z "$as_dir" && as_dir=.
5316 for ac_prog in fgrep; do
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5319 as_fn_executable_p "$ac_path_FGREP" || continue
5320 # Check for GNU ac_path_FGREP and select it if it is found.
5321 # Check for GNU $ac_path_FGREP
5322 case `"$ac_path_FGREP" --version 2>&1` in
5324 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5327 $as_echo_n 0123456789 >"conftest.in"
5330 cat "conftest.in" "conftest.in" >"conftest.tmp"
5331 mv "conftest.tmp" "conftest.in"
5332 cp "conftest.in" "conftest.nl"
5333 $as_echo 'FGREP' >> "conftest.nl"
5334 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5336 as_fn_arith $ac_count + 1 && ac_count=$as_val
5337 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5338 # Best one so far, save it but keep looking for a better one
5339 ac_cv_path_FGREP="$ac_path_FGREP"
5340 ac_path_FGREP_max=$ac_count
5342 # 10*(2^10) chars as input seems more than enough
5343 test $ac_count -gt 10 && break
5345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5348 $ac_path_FGREP_found && break 3
5353 if test -z "$ac_cv_path_FGREP"; then
5354 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5357 ac_cv_path_FGREP=$FGREP
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5363 $as_echo "$ac_cv_path_FGREP" >&6; }
5364 FGREP="$ac_cv_path_FGREP"
5367 test -z "$GREP" && GREP=grep
5387 # Check whether --with-gnu-ld was given.
5388 if test "${with_gnu_ld+set}" = set; then :
5389 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5395 if test yes = "$GCC"; then
5396 # Check if gcc -print-prog-name=ld gives a path.
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5398 $as_echo_n "checking for ld used by $CC... " >&6; }
5401 # gcc leaves a trailing carriage return, which upsets mingw
5402 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5404 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5407 # Accept absolute paths.
5409 re_direlt='/[^/][^/]*/\.\./'
5410 # Canonicalize the pathname of ld
5411 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5412 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5413 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5415 test -z "$LD" && LD=$ac_prog
5418 # If it fails, then pretend we aren't using GCC.
5422 # If it is relative, then search for the first ld in PATH.
5426 elif test yes = "$with_gnu_ld"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5428 $as_echo_n "checking for GNU ld... " >&6; }
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5431 $as_echo_n "checking for non-GNU ld... " >&6; }
5433 if ${lt_cv_path_LD+:} false; then :
5434 $as_echo_n "(cached) " >&6
5436 if test -z "$LD"; then
5437 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5438 for ac_dir in $PATH; do
5440 test -z "$ac_dir" && ac_dir=.
5441 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5442 lt_cv_path_LD=$ac_dir/$ac_prog
5443 # Check to see if the program is GNU ld. I'd rather use --version,
5444 # but apparently some variants of GNU ld only accept -v.
5445 # Break only if it was the GNU/non-GNU ld that we prefer.
5446 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5447 *GNU* | *'with BFD'*)
5448 test no != "$with_gnu_ld" && break
5451 test yes != "$with_gnu_ld" && break
5458 lt_cv_path_LD=$LD # Let the user override the test with a path.
5463 if test -n "$LD"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5465 $as_echo "$LD" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5470 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5472 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5473 if ${lt_cv_prog_gnu_ld+:} false; then :
5474 $as_echo_n "(cached) " >&6
5476 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5477 case `$LD -v 2>&1 </dev/null` in
5478 *GNU* | *'with BFD'*)
5479 lt_cv_prog_gnu_ld=yes
5482 lt_cv_prog_gnu_ld=no
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5487 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5488 with_gnu_ld=$lt_cv_prog_gnu_ld
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5499 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5500 if ${lt_cv_path_NM+:} false; then :
5501 $as_echo_n "(cached) " >&6
5503 if test -n "$NM"; then
5504 # Let the user override the test.
5507 lt_nm_to_check=${ac_tool_prefix}nm
5508 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5509 lt_nm_to_check="$lt_nm_to_check nm"
5511 for lt_tmp_nm in $lt_nm_to_check; do
5512 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5513 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5515 test -z "$ac_dir" && ac_dir=.
5516 tmp_nm=$ac_dir/$lt_tmp_nm
5517 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5518 # Check to see if the nm accepts a BSD-compat flag.
5519 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5520 # nm: unknown option "B" ignored
5521 # Tru64's nm complains that /dev/null is an invalid object file
5522 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5524 mingw*) lt_bad_file=conftest.nm/nofile ;;
5525 *) lt_bad_file=/dev/null ;;
5527 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5528 *$lt_bad_file* | *'Invalid file or object type'*)
5529 lt_cv_path_NM="$tmp_nm -B"
5533 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5535 lt_cv_path_NM="$tmp_nm -p"
5539 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5540 continue # so that we can try to find one that supports BSD flags
5549 : ${lt_cv_path_NM=no}
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5553 $as_echo "$lt_cv_path_NM" >&6; }
5554 if test no != "$lt_cv_path_NM"; then
5557 # Didn't find any BSD compatible name lister, look for dumpbin.
5558 if test -n "$DUMPBIN"; then :
5559 # Let the user override the test.
5561 if test -n "$ac_tool_prefix"; then
5562 for ac_prog in dumpbin "link -dump"
5564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_DUMPBIN+:} false; then :
5569 $as_echo_n "(cached) " >&6
5571 if test -n "$DUMPBIN"; then
5572 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 DUMPBIN=$ac_cv_prog_DUMPBIN
5592 if test -n "$DUMPBIN"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5594 $as_echo "$DUMPBIN" >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5601 test -n "$DUMPBIN" && break
5604 if test -z "$DUMPBIN"; then
5605 ac_ct_DUMPBIN=$DUMPBIN
5606 for ac_prog in dumpbin "link -dump"
5608 # Extract the first word of "$ac_prog", so it can be a program name with args.
5609 set dummy $ac_prog; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5613 $as_echo_n "(cached) " >&6
5615 if test -n "$ac_ct_DUMPBIN"; then
5616 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5636 if test -n "$ac_ct_DUMPBIN"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5638 $as_echo "$ac_ct_DUMPBIN" >&6; }
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5645 test -n "$ac_ct_DUMPBIN" && break
5648 if test "x$ac_ct_DUMPBIN" = x; then
5651 case $cross_compiling:$ac_tool_warned in
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5655 ac_tool_warned=yes ;;
5657 DUMPBIN=$ac_ct_DUMPBIN
5661 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5663 DUMPBIN="$DUMPBIN -symbols -headers"
5671 if test : != "$DUMPBIN"; then
5675 test -z "$NM" && NM=nm
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5683 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5684 if ${lt_cv_nm_interface+:} false; then :
5685 $as_echo_n "(cached) " >&6
5687 lt_cv_nm_interface="BSD nm"
5688 echo "int some_variable = 0;" > conftest.$ac_ext
5689 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5690 (eval "$ac_compile" 2>conftest.err)
5691 cat conftest.err >&5
5692 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5693 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5694 cat conftest.err >&5
5695 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5696 cat conftest.out >&5
5697 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5698 lt_cv_nm_interface="MS dumpbin"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5703 $as_echo "$lt_cv_nm_interface" >&6; }
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5706 $as_echo_n "checking whether ln -s works... " >&6; }
5708 if test "$LN_S" = "ln -s"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710 $as_echo "yes" >&6; }
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5713 $as_echo "no, using $LN_S" >&6; }
5716 # find the maximum length of command line arguments
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5718 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5719 if ${lt_cv_sys_max_cmd_len+:} false; then :
5720 $as_echo_n "(cached) " >&6
5727 # On DJGPP, this test can blow up pretty badly due to problems in libc
5728 # (any single argument exceeding 2000 bytes causes a buffer overrun
5729 # during glob expansion). Even if it were fixed, the result of this
5730 # check would be larger than it should be.
5731 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5735 # Under GNU Hurd, this test is not required because there is
5736 # no limit to the length of command line arguments.
5737 # Libtool will interpret -1 as no limit whatsoever
5738 lt_cv_sys_max_cmd_len=-1;
5741 cygwin* | mingw* | cegcc*)
5742 # On Win9x/ME, this test blows up -- it succeeds, but takes
5743 # about 5 minutes as the teststring grows exponentially.
5744 # Worse, since 9x/ME are not pre-emptively multitasking,
5745 # you end up with a "frozen" computer, even though with patience
5746 # the test eventually succeeds (with a max line length of 256k).
5747 # Instead, let's just punt: use the minimum linelength reported by
5748 # all of the supported platforms: 8192 (on NT/2K/XP).
5749 lt_cv_sys_max_cmd_len=8192;
5753 # On MiNT this can take a long time and run out of memory.
5754 lt_cv_sys_max_cmd_len=8192;
5758 # On AmigaOS with pdksh, this test takes hours, literally.
5759 # So we just punt and use a minimum line length of 8192.
5760 lt_cv_sys_max_cmd_len=8192;
5763 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5764 # This has been around since 386BSD, at least. Likely further.
5765 if test -x /sbin/sysctl; then
5766 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5767 elif test -x /usr/sbin/sysctl; then
5768 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5770 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5772 # And add a safety zone
5773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5778 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5779 lt_cv_sys_max_cmd_len=196608
5783 # The test takes a long time on OS/2.
5784 lt_cv_sys_max_cmd_len=8192
5788 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5789 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5790 # nice to cause kernel panics so lets avoid the loop below.
5791 # First set a reasonable default.
5792 lt_cv_sys_max_cmd_len=16384
5794 if test -x /sbin/sysconfig; then
5795 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5796 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5801 lt_cv_sys_max_cmd_len=102400
5803 sysv5* | sco5v6* | sysv4.2uw2*)
5804 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5805 if test -n "$kargmax"; then
5806 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5808 lt_cv_sys_max_cmd_len=32768
5812 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5813 if test -n "$lt_cv_sys_max_cmd_len" && \
5814 test undefined != "$lt_cv_sys_max_cmd_len"; then
5815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5818 # Make teststring a little bigger before we do anything with it.
5819 # a 1K string should be a reasonable start.
5820 for i in 1 2 3 4 5 6 7 8; do
5821 teststring=$teststring$teststring
5823 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5824 # If test is not a shell built-in, we'll probably end up computing a
5825 # maximum length that is only half of the actual maximum length, but
5827 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5828 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5829 test 17 != "$i" # 1/2 MB should be enough
5832 teststring=$teststring$teststring
5834 # Only check the string length outside the loop.
5835 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5837 # Add a significant safety factor because C++ compilers can tack on
5838 # massive amounts of additional arguments before passing them to the
5839 # linker. It appears as though 1/2 is a usable value.
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5847 if test -n "$lt_cv_sys_max_cmd_len"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5849 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5852 $as_echo "none" >&6; }
5854 max_cmd_len=$lt_cv_sys_max_cmd_len
5865 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5875 # test EBCDIC or ASCII
5876 case `echo X|tr X '\101'` in
5877 A) # ASCII based system
5878 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5879 lt_SP2NL='tr \040 \012'
5880 lt_NL2SP='tr \015\012 \040\040'
5882 *) # EBCDIC based system
5883 lt_SP2NL='tr \100 \n'
5884 lt_NL2SP='tr \r\n \100\100'
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5897 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5898 if ${lt_cv_to_host_file_cmd+:} false; then :
5899 $as_echo_n "(cached) " >&6
5904 *-*-mingw* ) # actually msys
5905 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5908 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5910 * ) # otherwise, assume *nix
5911 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5917 *-*-mingw* ) # actually msys
5918 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5921 lt_cv_to_host_file_cmd=func_convert_file_noop
5923 * ) # otherwise, assume *nix
5924 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5928 * ) # unhandled hosts (and "normal" native builds)
5929 lt_cv_to_host_file_cmd=func_convert_file_noop
5935 to_host_file_cmd=$lt_cv_to_host_file_cmd
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5937 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5944 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5945 if ${lt_cv_to_tool_file_cmd+:} false; then :
5946 $as_echo_n "(cached) " >&6
5948 #assume ordinary cross tools, or native build.
5949 lt_cv_to_tool_file_cmd=func_convert_file_noop
5953 *-*-mingw* ) # actually msys
5954 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5962 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5964 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5971 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5972 if ${lt_cv_ld_reload_flag+:} false; then :
5973 $as_echo_n "(cached) " >&6
5975 lt_cv_ld_reload_flag='-r'
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5978 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5979 reload_flag=$lt_cv_ld_reload_flag
5980 case $reload_flag in
5982 *) reload_flag=" $reload_flag" ;;
5984 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5986 cygwin* | mingw* | pw32* | cegcc*)
5987 if test yes != "$GCC"; then
5992 if test yes = "$GCC"; then
5993 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if ${ac_cv_prog_OBJDUMP+:} false; then :
6014 $as_echo_n "(cached) " >&6
6016 if test -n "$OBJDUMP"; then
6017 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 OBJDUMP=$ac_cv_prog_OBJDUMP
6037 if test -n "$OBJDUMP"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6039 $as_echo "$OBJDUMP" >&6; }
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6047 if test -z "$ac_cv_prog_OBJDUMP"; then
6048 ac_ct_OBJDUMP=$OBJDUMP
6049 # Extract the first word of "objdump", so it can be a program name with args.
6050 set dummy objdump; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6054 $as_echo_n "(cached) " >&6
6056 if test -n "$ac_ct_OBJDUMP"; then
6057 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6077 if test -n "$ac_ct_OBJDUMP"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6079 $as_echo "$ac_ct_OBJDUMP" >&6; }
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6085 if test "x$ac_ct_OBJDUMP" = x; then
6088 case $cross_compiling:$ac_tool_warned in
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6094 OBJDUMP=$ac_ct_OBJDUMP
6097 OBJDUMP="$ac_cv_prog_OBJDUMP"
6100 test -z "$OBJDUMP" && OBJDUMP=objdump
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6108 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6109 if ${lt_cv_deplibs_check_method+:} false; then :
6110 $as_echo_n "(cached) " >&6
6112 lt_cv_file_magic_cmd='$MAGIC_CMD'
6113 lt_cv_file_magic_test_file=
6114 lt_cv_deplibs_check_method='unknown'
6115 # Need to set the preceding variable on all platforms that support
6116 # interlibrary dependencies.
6117 # 'none' -- dependencies not supported.
6118 # 'unknown' -- same as none, but documents that we really don't know.
6119 # 'pass_all' -- all dependencies passed with no checks.
6120 # 'test_compile' -- check by making test program.
6121 # 'file_magic [[regex]]' -- check by looking for files in library path
6122 # that responds to the $file_magic_cmd with a given extended regex.
6123 # If you have 'file' or equivalent on your system and you're not sure
6124 # whether 'pass_all' will *always* work, you probably want this one.
6128 lt_cv_deplibs_check_method=pass_all
6132 lt_cv_deplibs_check_method=pass_all
6136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6137 lt_cv_file_magic_cmd='/usr/bin/file -L'
6138 lt_cv_file_magic_test_file=/shlib/libc.so
6142 # func_win32_libid is a shell function defined in ltmain.sh
6143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6144 lt_cv_file_magic_cmd='func_win32_libid'
6148 # Base MSYS/MinGW do not provide the 'file' command needed by
6149 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6150 # unless we find 'file', for example because we are cross-compiling.
6151 if ( file / ) >/dev/null 2>&1; then
6152 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6153 lt_cv_file_magic_cmd='func_win32_libid'
6155 # Keep this pattern in sync with the one in func_win32_libid.
6156 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6157 lt_cv_file_magic_cmd='$OBJDUMP -f'
6162 # use the weaker test based on 'objdump'. See mingw*.
6163 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6164 lt_cv_file_magic_cmd='$OBJDUMP -f'
6167 darwin* | rhapsody*)
6168 lt_cv_deplibs_check_method=pass_all
6171 freebsd* | dragonfly*)
6172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6175 # Not sure whether the presence of OpenBSD here was a mistake.
6176 # Let's accept both of them until this is cleared up.
6177 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6178 lt_cv_file_magic_cmd=/usr/bin/file
6179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6183 lt_cv_deplibs_check_method=pass_all
6188 lt_cv_deplibs_check_method=pass_all
6191 hpux10.20* | hpux11*)
6192 lt_cv_file_magic_cmd=/usr/bin/file
6195 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6196 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6199 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]'
6200 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6203 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6204 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6210 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6214 irix5* | irix6* | nonstopux*)
6216 *-32|*"-32 ") libmagic=32-bit;;
6217 *-n32|*"-n32 ") libmagic=N32;;
6218 *-64|*"-64 ") libmagic=64-bit;;
6219 *) libmagic=never-match;;
6221 lt_cv_deplibs_check_method=pass_all
6224 # This must be glibc/ELF.
6225 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6226 lt_cv_deplibs_check_method=pass_all
6229 netbsd* | netbsdelf*-gnu)
6230 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6239 lt_cv_file_magic_cmd=/usr/bin/file
6240 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6244 lt_cv_deplibs_check_method=pass_all
6248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6255 osf3* | osf4* | osf5*)
6256 lt_cv_deplibs_check_method=pass_all
6260 lt_cv_deplibs_check_method=pass_all
6264 lt_cv_deplibs_check_method=pass_all
6267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6268 lt_cv_deplibs_check_method=pass_all
6272 case $host_vendor in
6274 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]'
6275 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6278 lt_cv_deplibs_check_method=pass_all
6281 lt_cv_file_magic_cmd='/bin/file'
6282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6285 lt_cv_file_magic_cmd='/bin/file'
6286 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6287 lt_cv_file_magic_test_file=/lib/libc.so
6290 lt_cv_deplibs_check_method=pass_all
6293 lt_cv_deplibs_check_method=pass_all
6299 lt_cv_deplibs_check_method=pass_all
6302 lt_cv_deplibs_check_method=pass_all
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6308 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6312 if test "$build" = "$host"; then
6315 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6318 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6324 file_magic_cmd=$lt_cv_file_magic_cmd
6325 deplibs_check_method=$lt_cv_deplibs_check_method
6326 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_DLLTOOL+:} false; then :
6355 $as_echo_n "(cached) " >&6
6357 if test -n "$DLLTOOL"; then
6358 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 DLLTOOL=$ac_cv_prog_DLLTOOL
6378 if test -n "$DLLTOOL"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6380 $as_echo "$DLLTOOL" >&6; }
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6388 if test -z "$ac_cv_prog_DLLTOOL"; then
6389 ac_ct_DLLTOOL=$DLLTOOL
6390 # Extract the first word of "dlltool", so it can be a program name with args.
6391 set dummy dlltool; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6395 $as_echo_n "(cached) " >&6
6397 if test -n "$ac_ct_DLLTOOL"; then
6398 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6418 if test -n "$ac_ct_DLLTOOL"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6420 $as_echo "$ac_ct_DLLTOOL" >&6; }
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6426 if test "x$ac_ct_DLLTOOL" = x; then
6429 case $cross_compiling:$ac_tool_warned in
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6435 DLLTOOL=$ac_ct_DLLTOOL
6438 DLLTOOL="$ac_cv_prog_DLLTOOL"
6441 test -z "$DLLTOOL" && DLLTOOL=dlltool
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6450 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6451 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6452 $as_echo_n "(cached) " >&6
6454 lt_cv_sharedlib_from_linklib_cmd='unknown'
6457 cygwin* | mingw* | pw32* | cegcc*)
6458 # two different shell functions defined in ltmain.sh;
6459 # decide which one to use based on capabilities of $DLLTOOL
6460 case `$DLLTOOL --help 2>&1` in
6461 *--identify-strict*)
6462 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6465 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6470 # fallback: assume linklib IS sharedlib
6471 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6477 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6478 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6479 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6487 if test -n "$ac_tool_prefix"; then
6490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_AR+:} false; then :
6495 $as_echo_n "(cached) " >&6
6497 if test -n "$AR"; then
6498 ac_cv_prog_AR="$AR" # Let the user override the test.
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 if test -n "$AR"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6520 $as_echo "$AR" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6527 test -n "$AR" && break
6530 if test -z "$AR"; then
6534 # Extract the first word of "$ac_prog", so it can be a program name with args.
6535 set dummy $ac_prog; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6539 $as_echo_n "(cached) " >&6
6541 if test -n "$ac_ct_AR"; then
6542 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_ac_ct_AR="$ac_prog"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6562 if test -n "$ac_ct_AR"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6564 $as_echo "$ac_ct_AR" >&6; }
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6571 test -n "$ac_ct_AR" && break
6574 if test "x$ac_ct_AR" = x; then
6577 case $cross_compiling:$ac_tool_warned in
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6601 $as_echo_n "checking for archiver @FILE support... " >&6; }
6602 if ${lt_cv_ar_at_file+:} false; then :
6603 $as_echo_n "(cached) " >&6
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6617 if ac_fn_c_try_compile "$LINENO"; then :
6618 echo conftest.$ac_objext > conftest.lst
6619 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6621 (eval $lt_ar_try) 2>&5
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }
6625 if test 0 -eq "$ac_status"; then
6626 # Ensure the archiver fails upon bogus file names.
6627 rm -f conftest.$ac_objext libconftest.a
6628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6629 (eval $lt_ar_try) 2>&5
6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632 test $ac_status = 0; }
6633 if test 0 -ne "$ac_status"; then
6637 rm -f conftest.* libconftest.a
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6644 $as_echo "$lt_cv_ar_at_file" >&6; }
6646 if test no = "$lt_cv_ar_at_file"; then
6649 archiver_list_spec=$lt_cv_ar_at_file
6658 if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6660 set dummy ${ac_tool_prefix}strip; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_STRIP+:} false; then :
6664 $as_echo_n "(cached) " >&6
6666 if test -n "$STRIP"; then
6667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 STRIP=$ac_cv_prog_STRIP
6687 if test -n "$STRIP"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6689 $as_echo "$STRIP" >&6; }
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6697 if test -z "$ac_cv_prog_STRIP"; then
6699 # Extract the first word of "strip", so it can be a program name with args.
6700 set dummy strip; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6704 $as_echo_n "(cached) " >&6
6706 if test -n "$ac_ct_STRIP"; then
6707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_ac_ct_STRIP="strip"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6727 if test -n "$ac_ct_STRIP"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6729 $as_echo "$ac_ct_STRIP" >&6; }
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6735 if test "x$ac_ct_STRIP" = x; then
6738 case $cross_compiling:$ac_tool_warned in
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742 ac_tool_warned=yes ;;
6747 STRIP="$ac_cv_prog_STRIP"
6750 test -z "$STRIP" && STRIP=:
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_RANLIB+:} false; then :
6763 $as_echo_n "(cached) " >&6
6765 if test -n "$RANLIB"; then
6766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 RANLIB=$ac_cv_prog_RANLIB
6786 if test -n "$RANLIB"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6788 $as_echo "$RANLIB" >&6; }
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6796 if test -z "$ac_cv_prog_RANLIB"; then
6797 ac_ct_RANLIB=$RANLIB
6798 # Extract the first word of "ranlib", so it can be a program name with args.
6799 set dummy ranlib; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6803 $as_echo_n "(cached) " >&6
6805 if test -n "$ac_ct_RANLIB"; then
6806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_ac_ct_RANLIB="ranlib"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6826 if test -n "$ac_ct_RANLIB"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6828 $as_echo "$ac_ct_RANLIB" >&6; }
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6834 if test "x$ac_ct_RANLIB" = x; then
6837 case $cross_compiling:$ac_tool_warned in
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6843 RANLIB=$ac_ct_RANLIB
6846 RANLIB="$ac_cv_prog_RANLIB"
6849 test -z "$RANLIB" && RANLIB=:
6856 # Determine commands to create old-style static archives.
6857 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6858 old_postinstall_cmds='chmod 644 $oldlib'
6859 old_postuninstall_cmds=
6861 if test -n "$RANLIB"; then
6864 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6867 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6870 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6875 lock_old_archive_extraction=yes ;;
6877 lock_old_archive_extraction=no ;;
6918 # If no C compiler was specified, use CC.
6921 # If no C compiler flags were specified, use CFLAGS.
6922 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6924 # Allow CC to be a program name with arguments.
6928 # Check for command to grab the raw symbol name followed by C symbol from nm.
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6930 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6931 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6932 $as_echo_n "(cached) " >&6
6935 # These are sane defaults that work on at least a few old systems.
6936 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6938 # Character class describing NM global symbol codes.
6939 symcode='[BCDEGRST]'
6941 # Regexp to match symbols that can be accessed directly from C.
6942 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6944 # Define system-specific variables.
6949 cygwin* | mingw* | pw32* | cegcc*)
6950 symcode='[ABCDGISTW]'
6953 if test ia64 = "$host_cpu"; then
6954 symcode='[ABCDEGRST]'
6958 symcode='[BCDEGRST]'
6961 symcode='[BCDEGQRST]'
6972 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6980 # If we're using GNU nm, then use its standard symbol codes.
6981 case `$NM -V 2>&1` in
6982 *GNU* | *'with BFD'*)
6983 symcode='[ABCDGIRSTW]' ;;
6986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6987 # Gets list of data symbols to import.
6988 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6989 # Adjust the below global symbol transforms to fixup imported variables.
6990 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6991 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6992 lt_c_name_lib_hook="\
6993 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6994 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6996 # Disable hooks by default.
6997 lt_cv_sys_global_symbol_to_import=
7003 # Transform an extracted symbol line into a proper C declaration.
7004 # Some systems (esp. on ia64) link data and code symbols differently,
7005 # so use this general approach.
7006 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7008 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7009 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7011 # Transform an extracted symbol line into symbol name and symbol address
7012 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7014 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7015 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7017 # Transform an extracted symbol line into symbol name with lib prefix and
7019 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7020 $lt_c_name_lib_hook\
7021 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7022 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7023 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7025 # Handle CRLF in mingw tool chain
7029 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7033 # Try without a prefix underscore, then with it.
7034 for ac_symprfx in "" "_"; do
7036 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7037 symxfrm="\\1 $ac_symprfx\\2 \\2"
7039 # Write the raw and C identifiers.
7040 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7041 # Fake it for dumpbin and say T for any non-static function,
7042 # D for any global variable and I for any imported variable.
7043 # Also find C++ and __fastcall symbols from MSVC++,
7044 # which start with @ or ?.
7045 lt_cv_sys_global_symbol_pipe="$AWK '"\
7046 " {last_section=section; section=\$ 3};"\
7047 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7048 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7049 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7050 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7051 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7052 " \$ 0!~/External *\|/{next};"\
7053 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7054 " {if(hide[section]) next};"\
7055 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7056 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7057 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7058 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7059 " ' prfx=^$ac_symprfx"
7061 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7063 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7065 # Check to see that the pipe works correctly.
7069 cat > conftest.$ac_ext <<_LT_EOF
7074 void nm_test_func(void);
7075 void nm_test_func(void){}
7079 int main(){nm_test_var='a';nm_test_func();return(0);}
7082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7083 (eval $ac_compile) 2>&5
7085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086 test $ac_status = 0; }; then
7087 # Now try to grab the symbols.
7089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7090 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093 test $ac_status = 0; } && test -s "$nlist"; then
7094 # Try sorting and uniquifying the output.
7095 if sort "$nlist" | uniq > "$nlist"T; then
7096 mv -f "$nlist"T "$nlist"
7101 # Make sure that we snagged all the symbols we need.
7102 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7103 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7104 cat <<_LT_EOF > conftest.$ac_ext
7105 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7106 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7107 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7108 relocations are performed -- see ld's documentation on pseudo-relocs. */
7109 # define LT_DLSYM_CONST
7110 #elif defined __osf__
7111 /* This system does not cope well with relocations in const data. */
7112 # define LT_DLSYM_CONST
7114 # define LT_DLSYM_CONST const
7122 # Now generate the symbol file.
7123 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7125 cat <<_LT_EOF >> conftest.$ac_ext
7127 /* The mapping between symbol names and symbols. */
7128 LT_DLSYM_CONST struct {
7132 lt__PROGRAM__LTX_preloaded_symbols[] =
7134 { "@PROGRAM@", (void *) 0 },
7136 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7137 cat <<\_LT_EOF >> conftest.$ac_ext
7141 /* This works around a problem in FreeBSD linker */
7142 #ifdef FREEBSD_WORKAROUND
7143 static const void *lt_preloaded_setup() {
7144 return lt__PROGRAM__LTX_preloaded_symbols;
7152 # Now try linking the two files.
7153 mv conftest.$ac_objext conftstm.$ac_objext
7154 lt_globsym_save_LIBS=$LIBS
7155 lt_globsym_save_CFLAGS=$CFLAGS
7156 LIBS=conftstm.$ac_objext
7157 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7159 (eval $ac_link) 2>&5
7161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7162 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7165 LIBS=$lt_globsym_save_LIBS
7166 CFLAGS=$lt_globsym_save_CFLAGS
7168 echo "cannot find nm_test_func in $nlist" >&5
7171 echo "cannot find nm_test_var in $nlist" >&5
7174 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7177 echo "$progname: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7180 rm -rf conftest* conftst*
7182 # Do not use the global_symbol_pipe unless it works.
7183 if test yes = "$pipe_works"; then
7186 lt_cv_sys_global_symbol_pipe=
7192 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7193 lt_cv_sys_global_symbol_to_cdecl=
7195 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7197 $as_echo "failed" >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7200 $as_echo "ok" >&6; }
7203 # Response file support.
7204 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7205 nm_file_list_spec='@'
7206 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7207 nm_file_list_spec='@'
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7247 $as_echo_n "checking for sysroot... " >&6; }
7249 # Check whether --with-sysroot was given.
7250 if test "${with_sysroot+set}" = set; then :
7251 withval=$with_sysroot;
7258 case $with_sysroot in #(
7260 if test yes = "$GCC"; then
7261 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7265 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7271 $as_echo "$with_sysroot" >&6; }
7272 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7277 $as_echo "${lt_sysroot:-no}" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7284 $as_echo_n "checking for a working dd... " >&6; }
7285 if ${ac_cv_path_lt_DD+:} false; then :
7286 $as_echo_n "(cached) " >&6
7288 printf 0123456789abcdef0123456789abcdef >conftest.i
7289 cat conftest.i conftest.i >conftest2.i
7291 if test -z "$lt_DD"; then
7292 ac_path_lt_DD_found=false
7293 # Loop through the user's path and test for each of PROGNAME-LIST
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 for ac_prog in dd; do
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7302 as_fn_executable_p "$ac_path_lt_DD" || continue
7303 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7304 cmp -s conftest.i conftest.out \
7305 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7307 $ac_path_lt_DD_found && break 3
7312 if test -z "$ac_cv_path_lt_DD"; then
7316 ac_cv_path_lt_DD=$lt_DD
7319 rm -f conftest.i conftest2.i conftest.out
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7322 $as_echo "$ac_cv_path_lt_DD" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7326 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7327 if ${lt_cv_truncate_bin+:} false; then :
7328 $as_echo_n "(cached) " >&6
7330 printf 0123456789abcdef0123456789abcdef >conftest.i
7331 cat conftest.i conftest.i >conftest2.i
7333 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7334 cmp -s conftest.i conftest.out \
7335 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7337 rm -f conftest.i conftest2.i conftest.out
7338 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7341 $as_echo "$lt_cv_truncate_bin" >&6; }
7349 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7352 for cc_temp in $*""; do
7354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7360 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7363 # Check whether --enable-libtool-lock was given.
7364 if test "${enable_libtool_lock+set}" = set; then :
7365 enableval=$enable_libtool_lock;
7368 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7370 # Some flags need to be propagated to the compiler or linker for good
7374 # Find out what ABI is being produced by ac_compile, and set mode
7375 # options accordingly.
7376 echo 'int i;' > conftest.$ac_ext
7377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7378 (eval $ac_compile) 2>&5
7380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7381 test $ac_status = 0; }; then
7382 case `/usr/bin/file conftest.$ac_objext` in
7394 # Find out what ABI is being produced by ac_compile, and set linker
7395 # options accordingly.
7396 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398 (eval $ac_compile) 2>&5
7400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401 test $ac_status = 0; }; then
7402 if test yes = "$lt_cv_prog_gnu_ld"; then
7403 case `/usr/bin/file conftest.$ac_objext` in
7405 LD="${LD-ld} -melf32bsmip"
7408 LD="${LD-ld} -melf32bmipn32"
7411 LD="${LD-ld} -melf64bmip"
7415 case `/usr/bin/file conftest.$ac_objext` in
7432 # Find out what ABI is being produced by ac_compile, and set linker
7433 # options accordingly.
7434 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7436 (eval $ac_compile) 2>&5
7438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439 test $ac_status = 0; }; then
7441 case `/usr/bin/file conftest.$ac_objext` in
7449 case `/usr/bin/file conftest.$ac_objext` in
7451 emul="${emul}btsmip"
7454 emul="${emul}ltsmip"
7457 case `/usr/bin/file conftest.$ac_objext` in
7462 LD="${LD-ld} -m $emul"
7467 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7468 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7469 # Find out what ABI is being produced by ac_compile, and set linker
7470 # options accordingly. Note that the listed cases only cover the
7471 # situations where additional linker options are needed (such as when
7472 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7473 # vice versa); the common cases where no linker options are needed do
7474 # not appear in the list.
7475 echo 'int i;' > conftest.$ac_ext
7476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7477 (eval $ac_compile) 2>&5
7479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480 test $ac_status = 0; }; then
7481 case `/usr/bin/file conftest.o` in
7484 x86_64-*kfreebsd*-gnu)
7485 LD="${LD-ld} -m elf_i386_fbsd"
7488 case `/usr/bin/file conftest.o` in
7490 LD="${LD-ld} -m elf32_x86_64"
7493 LD="${LD-ld} -m elf_i386"
7497 powerpc64le-*linux*)
7498 LD="${LD-ld} -m elf32lppclinux"
7501 LD="${LD-ld} -m elf32ppclinux"
7504 LD="${LD-ld} -m elf_s390"
7507 LD="${LD-ld} -m elf32_sparc"
7513 x86_64-*kfreebsd*-gnu)
7514 LD="${LD-ld} -m elf_x86_64_fbsd"
7517 LD="${LD-ld} -m elf_x86_64"
7520 LD="${LD-ld} -m elf64lppc"
7523 LD="${LD-ld} -m elf64ppc"
7525 s390*-*linux*|s390*-*tpf*)
7526 LD="${LD-ld} -m elf64_s390"
7529 LD="${LD-ld} -m elf64_sparc"
7539 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7541 CFLAGS="$CFLAGS -belf"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7543 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7544 if ${lt_cv_cc_needs_belf+:} false; then :
7545 $as_echo_n "(cached) " >&6
7548 ac_cpp='$CPP $CPPFLAGS'
7549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7564 if ac_fn_c_try_link "$LINENO"; then :
7565 lt_cv_cc_needs_belf=yes
7567 lt_cv_cc_needs_belf=no
7569 rm -f core conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7579 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7580 if test yes != "$lt_cv_cc_needs_belf"; then
7581 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7586 # Find out what ABI is being produced by ac_compile, and set linker
7587 # options accordingly.
7588 echo 'int i;' > conftest.$ac_ext
7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7590 (eval $ac_compile) 2>&5
7592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; }; then
7594 case `/usr/bin/file conftest.o` in
7596 case $lt_cv_prog_gnu_ld in
7599 i?86-*-solaris*|x86_64-*-solaris*)
7600 LD="${LD-ld} -m elf_x86_64"
7603 LD="${LD-ld} -m elf64_sparc"
7606 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7607 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7612 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7624 need_locks=$enable_libtool_lock
7626 if test -n "$ac_tool_prefix"; then
7627 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7628 set dummy ${ac_tool_prefix}mt; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7632 $as_echo_n "(cached) " >&6
7634 if test -n "$MANIFEST_TOOL"; then
7635 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7655 if test -n "$MANIFEST_TOOL"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7657 $as_echo "$MANIFEST_TOOL" >&6; }
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7665 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7666 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7667 # Extract the first word of "mt", so it can be a program name with args.
7668 set dummy mt; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7672 $as_echo_n "(cached) " >&6
7674 if test -n "$ac_ct_MANIFEST_TOOL"; then
7675 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7695 if test -n "$ac_ct_MANIFEST_TOOL"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7697 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7703 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7706 case $cross_compiling:$ac_tool_warned in
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7710 ac_tool_warned=yes ;;
7712 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7715 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7718 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7720 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7721 if ${lt_cv_path_mainfest_tool+:} false; then :
7722 $as_echo_n "(cached) " >&6
7724 lt_cv_path_mainfest_tool=no
7725 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7726 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7727 cat conftest.err >&5
7728 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7729 lt_cv_path_mainfest_tool=yes
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7734 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7735 if test yes != "$lt_cv_path_mainfest_tool"; then
7745 rhapsody* | darwin*)
7746 if test -n "$ac_tool_prefix"; then
7747 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7748 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7752 $as_echo_n "(cached) " >&6
7754 if test -n "$DSYMUTIL"; then
7755 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7764 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7775 if test -n "$DSYMUTIL"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7777 $as_echo "$DSYMUTIL" >&6; }
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7785 if test -z "$ac_cv_prog_DSYMUTIL"; then
7786 ac_ct_DSYMUTIL=$DSYMUTIL
7787 # Extract the first word of "dsymutil", so it can be a program name with args.
7788 set dummy dsymutil; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 if test -n "$ac_ct_DSYMUTIL"; then
7795 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7815 if test -n "$ac_ct_DSYMUTIL"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7817 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7823 if test "x$ac_ct_DSYMUTIL" = x; then
7826 case $cross_compiling:$ac_tool_warned in
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7830 ac_tool_warned=yes ;;
7832 DSYMUTIL=$ac_ct_DSYMUTIL
7835 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7838 if test -n "$ac_tool_prefix"; then
7839 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7840 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if ${ac_cv_prog_NMEDIT+:} false; then :
7844 $as_echo_n "(cached) " >&6
7846 if test -n "$NMEDIT"; then
7847 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 NMEDIT=$ac_cv_prog_NMEDIT
7867 if test -n "$NMEDIT"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7869 $as_echo "$NMEDIT" >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7877 if test -z "$ac_cv_prog_NMEDIT"; then
7878 ac_ct_NMEDIT=$NMEDIT
7879 # Extract the first word of "nmedit", so it can be a program name with args.
7880 set dummy nmedit; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7884 $as_echo_n "(cached) " >&6
7886 if test -n "$ac_ct_NMEDIT"; then
7887 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7896 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7907 if test -n "$ac_ct_NMEDIT"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7909 $as_echo "$ac_ct_NMEDIT" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7915 if test "x$ac_ct_NMEDIT" = x; then
7918 case $cross_compiling:$ac_tool_warned in
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7922 ac_tool_warned=yes ;;
7924 NMEDIT=$ac_ct_NMEDIT
7927 NMEDIT="$ac_cv_prog_NMEDIT"
7930 if test -n "$ac_tool_prefix"; then
7931 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7932 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if ${ac_cv_prog_LIPO+:} false; then :
7936 $as_echo_n "(cached) " >&6
7938 if test -n "$LIPO"; then
7939 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 LIPO=$ac_cv_prog_LIPO
7959 if test -n "$LIPO"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7961 $as_echo "$LIPO" >&6; }
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7969 if test -z "$ac_cv_prog_LIPO"; then
7971 # Extract the first word of "lipo", so it can be a program name with args.
7972 set dummy lipo; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7976 $as_echo_n "(cached) " >&6
7978 if test -n "$ac_ct_LIPO"; then
7979 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_ac_ct_LIPO="lipo"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7999 if test -n "$ac_ct_LIPO"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8001 $as_echo "$ac_ct_LIPO" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8007 if test "x$ac_ct_LIPO" = x; then
8010 case $cross_compiling:$ac_tool_warned in
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8014 ac_tool_warned=yes ;;
8019 LIPO="$ac_cv_prog_LIPO"
8022 if test -n "$ac_tool_prefix"; then
8023 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8024 set dummy ${ac_tool_prefix}otool; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if ${ac_cv_prog_OTOOL+:} false; then :
8028 $as_echo_n "(cached) " >&6
8030 if test -n "$OTOOL"; then
8031 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 OTOOL=$ac_cv_prog_OTOOL
8051 if test -n "$OTOOL"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8053 $as_echo "$OTOOL" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8061 if test -z "$ac_cv_prog_OTOOL"; then
8063 # Extract the first word of "otool", so it can be a program name with args.
8064 set dummy otool; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8068 $as_echo_n "(cached) " >&6
8070 if test -n "$ac_ct_OTOOL"; then
8071 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080 ac_cv_prog_ac_ct_OTOOL="otool"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8091 if test -n "$ac_ct_OTOOL"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8093 $as_echo "$ac_ct_OTOOL" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8099 if test "x$ac_ct_OTOOL" = x; then
8102 case $cross_compiling:$ac_tool_warned in
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8106 ac_tool_warned=yes ;;
8111 OTOOL="$ac_cv_prog_OTOOL"
8114 if test -n "$ac_tool_prefix"; then
8115 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8116 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if ${ac_cv_prog_OTOOL64+:} false; then :
8120 $as_echo_n "(cached) " >&6
8122 if test -n "$OTOOL64"; then
8123 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 OTOOL64=$ac_cv_prog_OTOOL64
8143 if test -n "$OTOOL64"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8145 $as_echo "$OTOOL64" >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8153 if test -z "$ac_cv_prog_OTOOL64"; then
8154 ac_ct_OTOOL64=$OTOOL64
8155 # Extract the first word of "otool64", so it can be a program name with args.
8156 set dummy otool64; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8160 $as_echo_n "(cached) " >&6
8162 if test -n "$ac_ct_OTOOL64"; then
8163 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172 ac_cv_prog_ac_ct_OTOOL64="otool64"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8183 if test -n "$ac_ct_OTOOL64"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8185 $as_echo "$ac_ct_OTOOL64" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8191 if test "x$ac_ct_OTOOL64" = x; then
8194 case $cross_compiling:$ac_tool_warned in
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8198 ac_tool_warned=yes ;;
8200 OTOOL64=$ac_ct_OTOOL64
8203 OTOOL64="$ac_cv_prog_OTOOL64"
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8233 $as_echo_n "checking for -single_module linker flag... " >&6; }
8234 if ${lt_cv_apple_cc_single_mod+:} false; then :
8235 $as_echo_n "(cached) " >&6
8237 lt_cv_apple_cc_single_mod=no
8238 if test -z "$LT_MULTI_MODULE"; then
8239 # By default we will add the -single_module flag. You can override
8240 # by either setting the environment variable LT_MULTI_MODULE
8241 # non-empty at configure time, or by adding -multi_module to the
8243 rm -rf libconftest.dylib*
8244 echo "int foo(void){return 1;}" > conftest.c
8245 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8246 -dynamiclib -Wl,-single_module conftest.c" >&5
8247 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8248 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8250 # If there is a non-empty error log, and "single_module"
8251 # appears in it, assume the flag caused a linker warning
8252 if test -s conftest.err && $GREP single_module conftest.err; then
8253 cat conftest.err >&5
8254 # Otherwise, if the output was created with a 0 exit code from
8255 # the compiler, it worked.
8256 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8257 lt_cv_apple_cc_single_mod=yes
8259 cat conftest.err >&5
8261 rm -rf libconftest.dylib*
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8266 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8269 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8270 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8271 $as_echo_n "(cached) " >&6
8273 lt_cv_ld_exported_symbols_list=no
8274 save_LDFLAGS=$LDFLAGS
8275 echo "_main" > conftest.sym
8276 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8288 if ac_fn_c_try_link "$LINENO"; then :
8289 lt_cv_ld_exported_symbols_list=yes
8291 lt_cv_ld_exported_symbols_list=no
8293 rm -f core conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8295 LDFLAGS=$save_LDFLAGS
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8299 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8302 $as_echo_n "checking for -force_load linker flag... " >&6; }
8303 if ${lt_cv_ld_force_load+:} false; then :
8304 $as_echo_n "(cached) " >&6
8306 lt_cv_ld_force_load=no
8307 cat > conftest.c << _LT_EOF
8308 int forced_loaded() { return 2;}
8310 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8311 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8312 echo "$AR cru libconftest.a conftest.o" >&5
8313 $AR cru libconftest.a conftest.o 2>&5
8314 echo "$RANLIB libconftest.a" >&5
8315 $RANLIB libconftest.a 2>&5
8316 cat > conftest.c << _LT_EOF
8317 int main() { return 0;}
8319 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8320 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8322 if test -s conftest.err && $GREP force_load conftest.err; then
8323 cat conftest.err >&5
8324 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8325 lt_cv_ld_force_load=yes
8327 cat conftest.err >&5
8329 rm -f conftest.err libconftest.a conftest conftest.c
8330 rm -rf conftest.dSYM
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8334 $as_echo "$lt_cv_ld_force_load" >&6; }
8336 rhapsody* | darwin1.[012])
8337 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8339 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8340 darwin*) # darwin 5.x on
8341 # if running on 10.5 or later, the deployment target defaults
8342 # to the OS version, if on x86, and 10.4, the deployment
8343 # target defaults to 10.4. Don't you love it?
8344 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8345 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8346 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8348 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8350 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8354 if test yes = "$lt_cv_apple_cc_single_mod"; then
8355 _lt_dar_single_mod='$single_module'
8357 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8358 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8360 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8362 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8363 _lt_dsymutil='~$DSYMUTIL $lib || :'
8370 # func_munge_path_list VARIABLE PATH
8371 # -----------------------------------
8372 # VARIABLE is name of variable containing _space_ separated list of
8373 # directories to be munged by the contents of PATH, which is string
8376 # string "DIR[ DIR]" will be prepended to VARIABLE
8378 # string "DIR[ DIR]" will be appended to VARIABLE
8379 # "DIRP[:DIRP]::[DIRA:]DIRA"
8380 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8381 # "DIRA[ DIRA]" will be appended to VARIABLE
8383 # VARIABLE will be replaced by "DIR[ DIR]"
8384 func_munge_path_list ()
8390 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8393 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8396 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8397 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8400 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8406 ac_cpp='$CPP $CPPFLAGS'
8407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8411 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8412 # On Suns, sometimes $CPP names a directory.
8413 if test -n "$CPP" && test -d "$CPP"; then
8416 if test -z "$CPP"; then
8417 if ${ac_cv_prog_CPP+:} false; then :
8418 $as_echo_n "(cached) " >&6
8420 # Double quotes because CPP needs to be expanded
8421 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8424 for ac_c_preproc_warn_flag in '' yes
8426 # Use a header file that comes with gcc, so configuring glibc
8427 # with a fresh cross-compiler works.
8428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8429 # <limits.h> exists even on freestanding compilers.
8430 # On the NeXT, cc -E runs the code through the compiler's parser,
8431 # not just through cpp. "Syntax error" is here to catch this case.
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8435 # include <limits.h>
8437 # include <assert.h>
8441 if ac_fn_c_try_cpp "$LINENO"; then :
8444 # Broken: fails on valid input.
8447 rm -f conftest.err conftest.i conftest.$ac_ext
8449 # OK, works on sane cases. Now check whether nonexistent headers
8450 # can be detected and how.
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 #include <ac_nonexistent.h>
8455 if ac_fn_c_try_cpp "$LINENO"; then :
8456 # Broken: success on invalid input.
8459 # Passes both tests.
8463 rm -f conftest.err conftest.i conftest.$ac_ext
8466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8467 rm -f conftest.i conftest.err conftest.$ac_ext
8468 if $ac_preproc_ok; then :
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8481 $as_echo "$CPP" >&6; }
8483 for ac_c_preproc_warn_flag in '' yes
8485 # Use a header file that comes with gcc, so configuring glibc
8486 # with a fresh cross-compiler works.
8487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8488 # <limits.h> exists even on freestanding compilers.
8489 # On the NeXT, cc -E runs the code through the compiler's parser,
8490 # not just through cpp. "Syntax error" is here to catch this case.
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8494 # include <limits.h>
8496 # include <assert.h>
8500 if ac_fn_c_try_cpp "$LINENO"; then :
8503 # Broken: fails on valid input.
8506 rm -f conftest.err conftest.i conftest.$ac_ext
8508 # OK, works on sane cases. Now check whether nonexistent headers
8509 # can be detected and how.
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 #include <ac_nonexistent.h>
8514 if ac_fn_c_try_cpp "$LINENO"; then :
8515 # Broken: success on invalid input.
8518 # Passes both tests.
8522 rm -f conftest.err conftest.i conftest.$ac_ext
8525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8526 rm -f conftest.i conftest.err conftest.$ac_ext
8527 if $ac_preproc_ok; then :
8530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8532 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8533 See \`config.log' for more details" "$LINENO" 5; }
8537 ac_cpp='$CPP $CPPFLAGS'
8538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8544 $as_echo_n "checking for ANSI C header files... " >&6; }
8545 if ${ac_cv_header_stdc+:} false; then :
8546 $as_echo_n "(cached) " >&6
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8563 if ac_fn_c_try_compile "$LINENO"; then :
8564 ac_cv_header_stdc=yes
8566 ac_cv_header_stdc=no
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 if test $ac_cv_header_stdc = yes; then
8571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8578 $EGREP "memchr" >/dev/null 2>&1; then :
8581 ac_cv_header_stdc=no
8587 if test $ac_cv_header_stdc = yes; then
8588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8595 $EGREP "free" >/dev/null 2>&1; then :
8598 ac_cv_header_stdc=no
8604 if test $ac_cv_header_stdc = yes; then
8605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8606 if test "$cross_compiling" = yes; then :
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8613 #if ((' ' & 0x0FF) == 0x020)
8614 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8615 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8617 # define ISLOWER(c) \
8618 (('a' <= (c) && (c) <= 'i') \
8619 || ('j' <= (c) && (c) <= 'r') \
8620 || ('s' <= (c) && (c) <= 'z'))
8621 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8624 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8629 for (i = 0; i < 256; i++)
8630 if (XOR (islower (i), ISLOWER (i))
8631 || toupper (i) != TOUPPER (i))
8636 if ac_fn_c_try_run "$LINENO"; then :
8639 ac_cv_header_stdc=no
8641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8642 conftest.$ac_objext conftest.beam conftest.$ac_ext
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8648 $as_echo "$ac_cv_header_stdc" >&6; }
8649 if test $ac_cv_header_stdc = yes; then
8651 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8655 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8656 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8657 inttypes.h stdint.h unistd.h
8659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8660 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8663 cat >>confdefs.h <<_ACEOF
8664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8672 for ac_header in dlfcn.h
8674 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8676 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8677 cat >>confdefs.h <<_ACEOF
8678 #define HAVE_DLFCN_H 1
8688 func_stripname_cnf ()
8691 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8692 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8694 } # func_stripname_cnf
8701 enable_win32_dll=yes
8704 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8705 if test -n "$ac_tool_prefix"; then
8706 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8707 set dummy ${ac_tool_prefix}as; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if ${ac_cv_prog_AS+:} false; then :
8711 $as_echo_n "(cached) " >&6
8713 if test -n "$AS"; then
8714 ac_cv_prog_AS="$AS" # Let the user override the test.
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_AS="${ac_tool_prefix}as"
8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 if test -n "$AS"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8736 $as_echo "$AS" >&6; }
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8744 if test -z "$ac_cv_prog_AS"; then
8746 # Extract the first word of "as", so it can be a program name with args.
8747 set dummy as; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8751 $as_echo_n "(cached) " >&6
8753 if test -n "$ac_ct_AS"; then
8754 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_ac_ct_AS="as"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8774 if test -n "$ac_ct_AS"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8776 $as_echo "$ac_ct_AS" >&6; }
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8782 if test "x$ac_ct_AS" = x; then
8785 case $cross_compiling:$ac_tool_warned in
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8789 ac_tool_warned=yes ;;
8797 if test -n "$ac_tool_prefix"; then
8798 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8799 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if ${ac_cv_prog_DLLTOOL+:} false; then :
8803 $as_echo_n "(cached) " >&6
8805 if test -n "$DLLTOOL"; then
8806 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8815 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 DLLTOOL=$ac_cv_prog_DLLTOOL
8826 if test -n "$DLLTOOL"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8828 $as_echo "$DLLTOOL" >&6; }
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8836 if test -z "$ac_cv_prog_DLLTOOL"; then
8837 ac_ct_DLLTOOL=$DLLTOOL
8838 # Extract the first word of "dlltool", so it can be a program name with args.
8839 set dummy dlltool; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8843 $as_echo_n "(cached) " >&6
8845 if test -n "$ac_ct_DLLTOOL"; then
8846 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 test -z "$as_dir" && as_dir=.
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8855 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8866 if test -n "$ac_ct_DLLTOOL"; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8868 $as_echo "$ac_ct_DLLTOOL" >&6; }
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8874 if test "x$ac_ct_DLLTOOL" = x; then
8877 case $cross_compiling:$ac_tool_warned in
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8881 ac_tool_warned=yes ;;
8883 DLLTOOL=$ac_ct_DLLTOOL
8886 DLLTOOL="$ac_cv_prog_DLLTOOL"
8889 if test -n "$ac_tool_prefix"; then
8890 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8891 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 $as_echo_n "checking for $ac_word... " >&6; }
8894 if ${ac_cv_prog_OBJDUMP+:} false; then :
8895 $as_echo_n "(cached) " >&6
8897 if test -n "$OBJDUMP"; then
8898 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 test -z "$as_dir" && as_dir=.
8905 for ac_exec_ext in '' $ac_executable_extensions; do
8906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8907 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 OBJDUMP=$ac_cv_prog_OBJDUMP
8918 if test -n "$OBJDUMP"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8920 $as_echo "$OBJDUMP" >&6; }
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8928 if test -z "$ac_cv_prog_OBJDUMP"; then
8929 ac_ct_OBJDUMP=$OBJDUMP
8930 # Extract the first word of "objdump", so it can be a program name with args.
8931 set dummy objdump; ac_word=$2
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933 $as_echo_n "checking for $ac_word... " >&6; }
8934 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8935 $as_echo_n "(cached) " >&6
8937 if test -n "$ac_ct_OBJDUMP"; then
8938 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 test -z "$as_dir" && as_dir=.
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8947 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8958 if test -n "$ac_ct_OBJDUMP"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8960 $as_echo "$ac_ct_OBJDUMP" >&6; }
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8966 if test "x$ac_ct_OBJDUMP" = x; then
8969 case $cross_compiling:$ac_tool_warned in
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8973 ac_tool_warned=yes ;;
8975 OBJDUMP=$ac_ct_OBJDUMP
8978 OBJDUMP="$ac_cv_prog_OBJDUMP"
8984 test -z "$AS" && AS=as
8990 test -z "$DLLTOOL" && DLLTOOL=dlltool
8996 test -z "$OBJDUMP" && OBJDUMP=objdump
9008 # Check whether --enable-shared was given.
9009 if test "${enable_shared+set}" = set; then :
9010 enableval=$enable_shared; p=${PACKAGE-default}
9012 yes) enable_shared=yes ;;
9013 no) enable_shared=no ;;
9016 # Look at the argument we got. We use all the common list separators.
9017 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9018 for pkg in $enableval; do
9020 if test "X$pkg" = "X$p"; then
9039 # Check whether --enable-static was given.
9040 if test "${enable_static+set}" = set; then :
9041 enableval=$enable_static; p=${PACKAGE-default}
9043 yes) enable_static=yes ;;
9044 no) enable_static=no ;;
9047 # Look at the argument we got. We use all the common list separators.
9048 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9049 for pkg in $enableval; do
9051 if test "X$pkg" = "X$p"; then
9071 # Check whether --with-pic was given.
9072 if test "${with_pic+set}" = set; then :
9073 withval=$with_pic; lt_p=${PACKAGE-default}
9075 yes|no) pic_mode=$withval ;;
9078 # Look at the argument we got. We use all the common list separators.
9079 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9080 for lt_pkg in $withval; do
9082 if test "X$lt_pkg" = "X$lt_p"; then
9100 # Check whether --enable-fast-install was given.
9101 if test "${enable_fast_install+set}" = set; then :
9102 enableval=$enable_fast_install; p=${PACKAGE-default}
9104 yes) enable_fast_install=yes ;;
9105 no) enable_fast_install=no ;;
9107 enable_fast_install=no
9108 # Look at the argument we got. We use all the common list separators.
9109 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9110 for pkg in $enableval; do
9112 if test "X$pkg" = "X$p"; then
9113 enable_fast_install=yes
9120 enable_fast_install=yes
9130 shared_archive_member_spec=
9131 case $host,$enable_shared in
9132 power*-*-aix[5-9]*,yes)
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9134 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9136 # Check whether --with-aix-soname was given.
9137 if test "${with_aix_soname+set}" = set; then :
9138 withval=$with_aix_soname; case $withval in
9142 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9145 lt_cv_with_aix_soname=$with_aix_soname
9147 if ${lt_cv_with_aix_soname+:} false; then :
9148 $as_echo_n "(cached) " >&6
9150 lt_cv_with_aix_soname=aix
9153 with_aix_soname=$lt_cv_with_aix_soname
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9157 $as_echo "$with_aix_soname" >&6; }
9158 if test aix != "$with_aix_soname"; then
9159 # For the AIX way of multilib, we name the shared archive member
9160 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9161 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9162 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9163 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9164 if test 64 = "${OBJECT_MODE-32}"; then
9165 shared_archive_member_spec=shr_64
9167 shared_archive_member_spec=shr
9185 # This can be used to rebuild libtool when needed
9186 LIBTOOL_DEPS=$ltmain
9188 # Always use our own libtool.
9189 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9220 test -z "$LN_S" && LN_S="ln -s"
9235 if test -n "${ZSH_VERSION+set}"; then
9236 setopt NO_GLOB_SUBST
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9240 $as_echo_n "checking for objdir... " >&6; }
9241 if ${lt_cv_objdir+:} false; then :
9242 $as_echo_n "(cached) " >&6
9244 rm -f .libs 2>/dev/null
9245 mkdir .libs 2>/dev/null
9246 if test -d .libs; then
9249 # MS-DOS does not allow filenames that begin with a dot.
9252 rmdir .libs 2>/dev/null
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9255 $as_echo "$lt_cv_objdir" >&6; }
9256 objdir=$lt_cv_objdir
9262 cat >>confdefs.h <<_ACEOF
9263 #define LT_OBJDIR "$lt_cv_objdir/"
9271 # AIX sometimes has problems with the GCC collect2 program. For some
9272 # reason, if we set the COLLECT_NAMES environment variable, the problems
9273 # vanish in a puff of smoke.
9274 if test set != "${COLLECT_NAMES+set}"; then
9276 export COLLECT_NAMES
9283 can_build_shared=yes
9285 # All known linkers require a '.a' archive for static linking (except MSVC,
9286 # which needs '.lib').
9289 with_gnu_ld=$lt_cv_prog_gnu_ld
9294 # Set sane defaults for various variables
9295 test -z "$CC" && CC=cc
9296 test -z "$LTCC" && LTCC=$CC
9297 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9298 test -z "$LD" && LD=ld
9299 test -z "$ac_objext" && ac_objext=o
9301 func_cc_basename $compiler
9302 cc_basename=$func_cc_basename_result
9305 # Only perform the check for file, if the check method requires it
9306 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9307 case $deplibs_check_method in
9309 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9311 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9312 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9313 $as_echo_n "(cached) " >&6
9317 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9320 lt_save_MAGIC_CMD=$MAGIC_CMD
9321 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9322 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9323 for ac_dir in $ac_dummy; do
9325 test -z "$ac_dir" && ac_dir=.
9326 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9327 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9328 if test -n "$file_magic_test_file"; then
9329 case $deplibs_check_method in
9331 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9332 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9334 $EGREP "$file_magic_regex" > /dev/null; then
9339 *** Warning: the command libtool uses to detect shared libraries,
9340 *** $file_magic_cmd, produces output that libtool cannot recognize.
9341 *** The result is that libtool may fail to recognize shared libraries
9342 *** as such. This will affect the creation of libtool libraries that
9343 *** depend on shared libraries, but programs linked with such libtool
9344 *** libraries will work regardless of this problem. Nevertheless, you
9345 *** may want to report the problem to your system manager and/or to
9346 *** bug-libtool@gnu.org
9356 MAGIC_CMD=$lt_save_MAGIC_CMD
9361 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9362 if test -n "$MAGIC_CMD"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9364 $as_echo "$MAGIC_CMD" >&6; }
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9374 if test -z "$lt_cv_path_MAGIC_CMD"; then
9375 if test -n "$ac_tool_prefix"; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9377 $as_echo_n "checking for file... " >&6; }
9378 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9379 $as_echo_n "(cached) " >&6
9383 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9386 lt_save_MAGIC_CMD=$MAGIC_CMD
9387 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9388 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9389 for ac_dir in $ac_dummy; do
9391 test -z "$ac_dir" && ac_dir=.
9392 if test -f "$ac_dir/file"; then
9393 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9394 if test -n "$file_magic_test_file"; then
9395 case $deplibs_check_method in
9397 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9398 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9399 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9400 $EGREP "$file_magic_regex" > /dev/null; then
9405 *** Warning: the command libtool uses to detect shared libraries,
9406 *** $file_magic_cmd, produces output that libtool cannot recognize.
9407 *** The result is that libtool may fail to recognize shared libraries
9408 *** as such. This will affect the creation of libtool libraries that
9409 *** depend on shared libraries, but programs linked with such libtool
9410 *** libraries will work regardless of this problem. Nevertheless, you
9411 *** may want to report the problem to your system manager and/or to
9412 *** bug-libtool@gnu.org
9422 MAGIC_CMD=$lt_save_MAGIC_CMD
9427 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9428 if test -n "$MAGIC_CMD"; then
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9430 $as_echo "$MAGIC_CMD" >&6; }
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9446 # Use C for the default configuration in the libtool script
9450 ac_cpp='$CPP $CPPFLAGS'
9451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9456 # Source file extension for C test sources.
9459 # Object file extension for compiled C test sources.
9463 # Code to be used in simple compile tests
9464 lt_simple_compile_test_code="int some_variable = 0;"
9466 # Code to be used in simple link tests
9467 lt_simple_link_test_code='int main(){return(0);}'
9475 # If no C compiler was specified, use CC.
9478 # If no C compiler flags were specified, use CFLAGS.
9479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9481 # Allow CC to be a program name with arguments.
9484 # Save the default compiler, since it gets overwritten when the other
9485 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9486 compiler_DEFAULT=$CC
9488 # save warnings/boilerplate of simple test code
9489 ac_outfile=conftest.$ac_objext
9490 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9492 _lt_compiler_boilerplate=`cat conftest.err`
9495 ac_outfile=conftest.$ac_objext
9496 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9498 _lt_linker_boilerplate=`cat conftest.err`
9503 ## There is no encapsulation within the following macros, do not change
9504 ## the running order or otherwise move them around unless you know exactly
9505 ## what you are doing...
9506 if test -n "$compiler"; then
9508 lt_prog_compiler_no_builtin_flag=
9510 if test yes = "$GCC"; then
9511 case $cc_basename in
9513 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9515 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9519 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9520 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9521 $as_echo_n "(cached) " >&6
9523 lt_cv_prog_compiler_rtti_exceptions=no
9524 ac_outfile=conftest.$ac_objext
9525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9526 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9527 # Insert the option either (1) after the last *FLAGS variable, or
9528 # (2) before a word containing "conftest.", or (3) at the end.
9529 # Note that $ac_compile itself does not contain backslashes and begins
9530 # with a dollar sign (not a hyphen), so the echo should work correctly.
9531 # The option is referenced via a variable to avoid confusing sed.
9532 lt_compile=`echo "$ac_compile" | $SED \
9533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9535 -e 's:$: $lt_compiler_flag:'`
9536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9537 (eval "$lt_compile" 2>conftest.err)
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 if (exit $ac_status) && test -s "$ac_outfile"; then
9542 # The compiler can only warn and ignore the option if not recognized
9543 # So say no if there are warnings other than the usual output.
9544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9546 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9547 lt_cv_prog_compiler_rtti_exceptions=yes
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9554 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9556 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9557 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9569 lt_prog_compiler_wl=
9570 lt_prog_compiler_pic=
9571 lt_prog_compiler_static=
9574 if test yes = "$GCC"; then
9575 lt_prog_compiler_wl='-Wl,'
9576 lt_prog_compiler_static='-static'
9580 # All AIX code is PIC.
9581 if test ia64 = "$host_cpu"; then
9582 # AIX 5 now supports IA64 processor
9583 lt_prog_compiler_static='-Bstatic'
9585 lt_prog_compiler_pic='-fPIC'
9591 # see comment about AmigaOS4 .so support
9592 lt_prog_compiler_pic='-fPIC'
9595 # FIXME: we need at least 68020 code to build shared libraries, but
9596 # adding the '-m68020' flag to GCC prevents building anything better,
9598 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9603 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9604 # PIC is the default for these OSes.
9607 mingw* | cygwin* | pw32* | os2* | cegcc*)
9608 # This hack is so that the source file can tell whether it is being
9609 # built for inclusion in a dll (and should export symbols for example).
9610 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9611 # (--disable-auto-import) libraries
9612 lt_prog_compiler_pic='-DDLL_EXPORT'
9615 lt_prog_compiler_static='$wl-static'
9620 darwin* | rhapsody*)
9621 # PIC is the default on this platform
9622 # Common symbols not allowed in MH_DYLIB files
9623 lt_prog_compiler_pic='-fno-common'
9627 # PIC is the default for Haiku.
9628 # The "-static" flag exists, but is broken.
9629 lt_prog_compiler_static=
9633 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9634 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9635 # sets the default TLS model and affects inlining.
9641 lt_prog_compiler_pic='-fPIC'
9647 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9648 # Instead, we relocate shared libraries at runtime.
9652 # Just because we use GCC doesn't mean we suddenly get shared libraries
9653 # on systems that don't support them.
9654 lt_prog_compiler_can_build_shared=no
9659 # QNX uses GNU C++, but need to define -shared option too, otherwise
9661 lt_prog_compiler_pic='-fPIC -shared'
9665 if test -d /usr/nec; then
9666 lt_prog_compiler_pic=-Kconform_pic
9671 lt_prog_compiler_pic='-fPIC'
9675 case $cc_basename in
9676 nvcc*) # Cuda Compiler Driver 2.2
9677 lt_prog_compiler_wl='-Xlinker '
9678 if test -n "$lt_prog_compiler_pic"; then
9679 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9684 # PORTME Check for flag to pass linker flags through the system compiler.
9687 lt_prog_compiler_wl='-Wl,'
9688 if test ia64 = "$host_cpu"; then
9689 # AIX 5 now supports IA64 processor
9690 lt_prog_compiler_static='-Bstatic'
9692 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9696 darwin* | rhapsody*)
9697 # PIC is the default on this platform
9698 # Common symbols not allowed in MH_DYLIB files
9699 lt_prog_compiler_pic='-fno-common'
9700 case $cc_basename in
9702 # NAG Fortran compiler
9703 lt_prog_compiler_wl='-Wl,-Wl,,'
9704 lt_prog_compiler_pic='-PIC'
9705 lt_prog_compiler_static='-Bstatic'
9710 mingw* | cygwin* | pw32* | os2* | cegcc*)
9711 # This hack is so that the source file can tell whether it is being
9712 # built for inclusion in a dll (and should export symbols for example).
9713 lt_prog_compiler_pic='-DDLL_EXPORT'
9716 lt_prog_compiler_static='$wl-static'
9721 hpux9* | hpux10* | hpux11*)
9722 lt_prog_compiler_wl='-Wl,'
9723 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9730 lt_prog_compiler_pic='+Z'
9733 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9734 lt_prog_compiler_static='$wl-a ${wl}archive'
9737 irix5* | irix6* | nonstopux*)
9738 lt_prog_compiler_wl='-Wl,'
9739 # PIC (with -KPIC) is the default.
9740 lt_prog_compiler_static='-non_shared'
9743 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9744 case $cc_basename in
9745 # old Intel for x86_64, which still supported -KPIC.
9747 lt_prog_compiler_wl='-Wl,'
9748 lt_prog_compiler_pic='-KPIC'
9749 lt_prog_compiler_static='-static'
9751 # icc used to be incompatible with GCC.
9752 # ICC 10 doesn't accept -KPIC any more.
9754 lt_prog_compiler_wl='-Wl,'
9755 lt_prog_compiler_pic='-fPIC'
9756 lt_prog_compiler_static='-static'
9758 # Lahey Fortran 8.1.
9760 lt_prog_compiler_wl='-Wl,'
9761 lt_prog_compiler_pic='--shared'
9762 lt_prog_compiler_static='--static'
9765 # NAG Fortran compiler
9766 lt_prog_compiler_wl='-Wl,-Wl,,'
9767 lt_prog_compiler_pic='-PIC'
9768 lt_prog_compiler_static='-Bstatic'
9771 # Fabrice Bellard et al's Tiny C Compiler
9772 lt_prog_compiler_wl='-Wl,'
9773 lt_prog_compiler_pic='-fPIC'
9774 lt_prog_compiler_static='-static'
9776 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9777 # Portland Group compilers (*not* the Pentium gcc compiler,
9778 # which looks to be a dead project)
9779 lt_prog_compiler_wl='-Wl,'
9780 lt_prog_compiler_pic='-fpic'
9781 lt_prog_compiler_static='-Bstatic'
9784 lt_prog_compiler_wl='-Wl,'
9785 # All Alpha code is PIC.
9786 lt_prog_compiler_static='-non_shared'
9788 xl* | bgxl* | bgf* | mpixl*)
9789 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9790 lt_prog_compiler_wl='-Wl,'
9791 lt_prog_compiler_pic='-qpic'
9792 lt_prog_compiler_static='-qstaticlink'
9795 case `$CC -V 2>&1 | sed 5q` in
9796 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9797 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9798 lt_prog_compiler_pic='-KPIC'
9799 lt_prog_compiler_static='-Bstatic'
9800 lt_prog_compiler_wl=''
9802 *Sun\ F* | *Sun*Fortran*)
9803 lt_prog_compiler_pic='-KPIC'
9804 lt_prog_compiler_static='-Bstatic'
9805 lt_prog_compiler_wl='-Qoption ld '
9809 lt_prog_compiler_pic='-KPIC'
9810 lt_prog_compiler_static='-Bstatic'
9811 lt_prog_compiler_wl='-Wl,'
9813 *Intel*\ [CF]*Compiler*)
9814 lt_prog_compiler_wl='-Wl,'
9815 lt_prog_compiler_pic='-fPIC'
9816 lt_prog_compiler_static='-static'
9819 lt_prog_compiler_wl='-Wl,'
9820 lt_prog_compiler_pic='-fpic'
9821 lt_prog_compiler_static='-Bstatic'
9829 lt_prog_compiler_pic='-KPIC'
9830 lt_prog_compiler_static='-Bstatic'
9834 # QNX uses GNU C++, but need to define -shared option too, otherwise
9836 lt_prog_compiler_pic='-fPIC -shared'
9839 osf3* | osf4* | osf5*)
9840 lt_prog_compiler_wl='-Wl,'
9841 # All OSF/1 code is PIC.
9842 lt_prog_compiler_static='-non_shared'
9846 lt_prog_compiler_static='-non_shared'
9850 lt_prog_compiler_pic='-KPIC'
9851 lt_prog_compiler_static='-Bstatic'
9852 case $cc_basename in
9853 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9854 lt_prog_compiler_wl='-Qoption ld ';;
9856 lt_prog_compiler_wl='-Wl,';;
9861 lt_prog_compiler_wl='-Qoption ld '
9862 lt_prog_compiler_pic='-PIC'
9863 lt_prog_compiler_static='-Bstatic'
9866 sysv4 | sysv4.2uw2* | sysv4.3*)
9867 lt_prog_compiler_wl='-Wl,'
9868 lt_prog_compiler_pic='-KPIC'
9869 lt_prog_compiler_static='-Bstatic'
9873 if test -d /usr/nec; then
9874 lt_prog_compiler_pic='-Kconform_pic'
9875 lt_prog_compiler_static='-Bstatic'
9879 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9880 lt_prog_compiler_wl='-Wl,'
9881 lt_prog_compiler_pic='-KPIC'
9882 lt_prog_compiler_static='-Bstatic'
9886 lt_prog_compiler_wl='-Wl,'
9887 lt_prog_compiler_can_build_shared=no
9891 lt_prog_compiler_pic='-pic'
9892 lt_prog_compiler_static='-Bstatic'
9896 lt_prog_compiler_can_build_shared=no
9902 # For platforms that do not support PIC, -DPIC is meaningless:
9904 lt_prog_compiler_pic=
9907 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9912 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9913 if ${lt_cv_prog_compiler_pic+:} false; then :
9914 $as_echo_n "(cached) " >&6
9916 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9919 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9920 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9923 # Check to make sure the PIC flag actually works.
9925 if test -n "$lt_prog_compiler_pic"; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9927 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9928 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9929 $as_echo_n "(cached) " >&6
9931 lt_cv_prog_compiler_pic_works=no
9932 ac_outfile=conftest.$ac_objext
9933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9934 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9935 # Insert the option either (1) after the last *FLAGS variable, or
9936 # (2) before a word containing "conftest.", or (3) at the end.
9937 # Note that $ac_compile itself does not contain backslashes and begins
9938 # with a dollar sign (not a hyphen), so the echo should work correctly.
9939 # The option is referenced via a variable to avoid confusing sed.
9940 lt_compile=`echo "$ac_compile" | $SED \
9941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9943 -e 's:$: $lt_compiler_flag:'`
9944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9945 (eval "$lt_compile" 2>conftest.err)
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 if (exit $ac_status) && test -s "$ac_outfile"; then
9950 # The compiler can only warn and ignore the option if not recognized
9951 # So say no if there are warnings other than the usual output.
9952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9955 lt_cv_prog_compiler_pic_works=yes
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9962 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9964 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9965 case $lt_prog_compiler_pic in
9967 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9970 lt_prog_compiler_pic=
9971 lt_prog_compiler_can_build_shared=no
9987 # Check to make sure the static flag actually works.
9989 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9991 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9992 if ${lt_cv_prog_compiler_static_works+:} false; then :
9993 $as_echo_n "(cached) " >&6
9995 lt_cv_prog_compiler_static_works=no
9996 save_LDFLAGS=$LDFLAGS
9997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10000 # The linker can only warn and ignore the option if not recognized
10001 # So say no if there are warnings
10002 if test -s conftest.err; then
10003 # Append any errors to the config.log.
10004 cat conftest.err 1>&5
10005 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10007 if diff conftest.exp conftest.er2 >/dev/null; then
10008 lt_cv_prog_compiler_static_works=yes
10011 lt_cv_prog_compiler_static_works=yes
10015 LDFLAGS=$save_LDFLAGS
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10019 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10021 if test yes = "$lt_cv_prog_compiler_static_works"; then
10024 lt_prog_compiler_static=
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10034 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10035 if ${lt_cv_prog_compiler_c_o+:} false; then :
10036 $as_echo_n "(cached) " >&6
10038 lt_cv_prog_compiler_c_o=no
10039 $RM -r conftest 2>/dev/null
10043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10045 lt_compiler_flag="-o out/conftest2.$ac_objext"
10046 # Insert the option either (1) after the last *FLAGS variable, or
10047 # (2) before a word containing "conftest.", or (3) at the end.
10048 # Note that $ac_compile itself does not contain backslashes and begins
10049 # with a dollar sign (not a hyphen), so the echo should work correctly.
10050 lt_compile=`echo "$ac_compile" | $SED \
10051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10053 -e 's:$: $lt_compiler_flag:'`
10054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10055 (eval "$lt_compile" 2>out/conftest.err)
10057 cat out/conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10061 # The compiler can only warn and ignore the option if not recognized
10062 # So say no if there are warnings
10063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10066 lt_cv_prog_compiler_c_o=yes
10071 # SGI C++ compiler will create directory out/ii_files/ for
10072 # template instantiation
10073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10074 $RM out/* && rmdir out
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10081 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10090 if ${lt_cv_prog_compiler_c_o+:} false; then :
10091 $as_echo_n "(cached) " >&6
10093 lt_cv_prog_compiler_c_o=no
10094 $RM -r conftest 2>/dev/null
10098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10100 lt_compiler_flag="-o out/conftest2.$ac_objext"
10101 # Insert the option either (1) after the last *FLAGS variable, or
10102 # (2) before a word containing "conftest.", or (3) at the end.
10103 # Note that $ac_compile itself does not contain backslashes and begins
10104 # with a dollar sign (not a hyphen), so the echo should work correctly.
10105 lt_compile=`echo "$ac_compile" | $SED \
10106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10108 -e 's:$: $lt_compiler_flag:'`
10109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10110 (eval "$lt_compile" 2>out/conftest.err)
10112 cat out/conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10116 # The compiler can only warn and ignore the option if not recognized
10117 # So say no if there are warnings
10118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10121 lt_cv_prog_compiler_c_o=yes
10126 # SGI C++ compiler will create directory out/ii_files/ for
10127 # template instantiation
10128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10129 $RM out/* && rmdir out
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10136 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10141 hard_links=nottested
10142 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10143 # do not overwrite the value of need_locks provided by the user
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10145 $as_echo_n "checking if we can lock with hard links... " >&6; }
10148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10150 ln conftest.a conftest.b 2>&5 || hard_links=no
10151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10153 $as_echo "$hard_links" >&6; }
10154 if test no = "$hard_links"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10156 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10169 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10172 allow_undefined_flag=
10173 always_export_symbols=no
10175 archive_expsym_cmds=
10176 compiler_needs_object=no
10177 enable_shared_with_static_runtimes=no
10178 export_dynamic_flag_spec=
10179 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10180 hardcode_automatic=no
10182 hardcode_direct_absolute=no
10183 hardcode_libdir_flag_spec=
10184 hardcode_libdir_separator=
10185 hardcode_minus_L=no
10186 hardcode_shlibpath_var=unsupported
10188 link_all_deplibs=unknown
10190 module_expsym_cmds=
10191 old_archive_from_new_cmds=
10192 old_archive_from_expsyms_cmds=
10193 thread_safe_flag_spec=
10194 whole_archive_flag_spec=
10195 # include_expsyms should be a list of space-separated symbols to be *always*
10196 # included in the symbol list
10198 # exclude_expsyms can be an extended regexp of symbols to exclude
10199 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10200 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10201 # as well as any symbol that contains 'd'.
10202 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10203 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10204 # platforms (ab)use it in PIC code, but their linkers get confused if
10205 # the symbol is explicitly referenced. Since portable code cannot
10206 # rely on this symbol name, it's probably fine to never include it in
10207 # preloaded symbol tables.
10208 # Exclude shared library initialization/finalization symbols.
10209 extract_expsyms_cmds=
10212 cygwin* | mingw* | pw32* | cegcc*)
10213 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10214 # When not using gcc, we currently assume that we are using
10215 # Microsoft Visual C++.
10216 if test yes != "$GCC"; then
10221 # we just hope/assume this is gcc and not c89 (= MSVC++)
10224 openbsd* | bitrig*)
10227 linux* | k*bsd*-gnu | gnu*)
10228 link_all_deplibs=no
10234 # On some targets, GNU ld is compatible enough with the native linker
10235 # that we're better off using the native interface for both.
10236 lt_use_gnu_ld_interface=no
10237 if test yes = "$with_gnu_ld"; then
10240 # The AIX port of GNU ld has always aspired to compatibility
10241 # with the native linker. However, as the warning in the GNU ld
10242 # block says, versions before 2.19.5* couldn't really create working
10243 # shared libraries, regardless of the interface used.
10244 case `$LD -v 2>&1` in
10245 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10246 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10247 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10249 lt_use_gnu_ld_interface=yes
10254 lt_use_gnu_ld_interface=yes
10259 if test yes = "$lt_use_gnu_ld_interface"; then
10260 # If archive_cmds runs LD, not CC, wlarc should be empty
10263 # Set some defaults for GNU ld with shared library support. These
10264 # are reset later if shared libraries are not supported. Putting them
10265 # here allows them to be overridden if necessary.
10266 runpath_var=LD_RUN_PATH
10267 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10268 export_dynamic_flag_spec='$wl--export-dynamic'
10269 # ancient GNU ld didn't support --whole-archive et. al.
10270 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10271 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10273 whole_archive_flag_spec=
10275 supports_anon_versioning=no
10276 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10277 *GNU\ gold*) supports_anon_versioning=yes ;;
10278 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10279 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10280 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10281 *\ 2.11.*) ;; # other 2.11 versions
10282 *) supports_anon_versioning=yes ;;
10285 # See if GNU ld supports shared libraries.
10288 # On AIX/PPC, the GNU linker is very broken
10289 if test ia64 != "$host_cpu"; then
10293 *** Warning: the GNU linker, at least up to release 2.19, is reported
10294 *** to be unable to reliably create shared libraries on AIX.
10295 *** Therefore, libtool is disabling shared libraries support. If you
10296 *** really care for shared libraries, you may want to install binutils
10297 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10298 *** You will then need to restart the configuration process.
10307 # see comment about AmigaOS4 .so support
10308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10309 archive_expsym_cmds=''
10312 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)'
10313 hardcode_libdir_flag_spec='-L$libdir'
10314 hardcode_minus_L=yes
10320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10321 allow_undefined_flag=unsupported
10322 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10323 # support --undefined. This deserves some investigation. FIXME
10324 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10330 cygwin* | mingw* | pw32* | cegcc*)
10331 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10332 # as there is no search path for DLLs.
10333 hardcode_libdir_flag_spec='-L$libdir'
10334 export_dynamic_flag_spec='$wl--export-all-symbols'
10335 allow_undefined_flag=unsupported
10336 always_export_symbols=no
10337 enable_shared_with_static_runtimes=yes
10338 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'
10339 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10341 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10343 # If the export-symbols file already is a .def file, use it as
10344 # is; otherwise, prepend EXPORTS...
10345 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10346 cp $export_symbols $output_objdir/$soname.def;
10348 echo EXPORTS > $output_objdir/$soname.def;
10349 cat $export_symbols >> $output_objdir/$soname.def;
10351 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10359 link_all_deplibs=yes
10363 hardcode_libdir_flag_spec='-L$libdir'
10364 hardcode_minus_L=yes
10365 allow_undefined_flag=unsupported
10367 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10368 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10369 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10370 $ECHO EXPORTS >> $output_objdir/$libname.def~
10371 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10372 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10373 emximp -o $lib $output_objdir/$libname.def'
10374 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10375 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10376 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10377 $ECHO EXPORTS >> $output_objdir/$libname.def~
10378 prefix_cmds="$SED"~
10379 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10380 prefix_cmds="$prefix_cmds -e 1d";
10382 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10383 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10384 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10385 emximp -o $lib $output_objdir/$libname.def'
10386 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10387 enable_shared_with_static_runtimes=yes
10392 hardcode_shlibpath_var=no
10393 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10394 export_dynamic_flag_spec='$wl-E'
10395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10396 # Instead, shared libraries are loaded at an image base (0x10000000 by
10397 # default) and relocated if they conflict, which is a slow very memory
10398 # consuming and fragmenting process. To avoid this, we pick a random,
10399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10400 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10401 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10402 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'
10405 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10407 if test linux-dietlibc = "$host_os"; then
10408 case $cc_basename in
10409 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10412 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10413 && test no = "$tmp_diet"
10415 tmp_addflag=' $pic_flag'
10416 tmp_sharedflag='-shared'
10417 case $cc_basename,$host_cpu in
10418 pgcc*) # Portland Group C compiler
10419 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'
10420 tmp_addflag=' $pic_flag'
10422 pgf77* | pgf90* | pgf95* | pgfortran*)
10423 # Portland Group f77 and f90 compilers
10424 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'
10425 tmp_addflag=' $pic_flag -Mnomain' ;;
10426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10427 tmp_addflag=' -i_dynamic' ;;
10428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10429 tmp_addflag=' -i_dynamic -nofor_main' ;;
10430 ifc* | ifort*) # Intel Fortran compiler
10431 tmp_addflag=' -nofor_main' ;;
10432 lf95*) # Lahey Fortran 8.1
10433 whole_archive_flag_spec=
10434 tmp_sharedflag='--shared' ;;
10435 nagfor*) # NAGFOR 5.3
10436 tmp_sharedflag='-Wl,-shared' ;;
10437 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10438 tmp_sharedflag='-qmkshrobj'
10440 nvcc*) # Cuda Compiler Driver 2.2
10441 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'
10442 compiler_needs_object=yes
10445 case `$CC -V 2>&1 | sed 5q` in
10446 *Sun\ C*) # Sun C 5.9
10447 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'
10448 compiler_needs_object=yes
10449 tmp_sharedflag='-G' ;;
10450 *Sun\ F*) # Sun Fortran 8.3
10451 tmp_sharedflag='-G' ;;
10453 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10455 if test yes = "$supports_anon_versioning"; then
10456 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10457 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10458 echo "local: *; };" >> $output_objdir/$libname.ver~
10459 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10462 case $cc_basename in
10464 export_dynamic_flag_spec='-rdynamic'
10466 xlf* | bgf* | bgxlf* | mpixlf*)
10467 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10468 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10469 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10470 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10471 if test yes = "$supports_anon_versioning"; then
10472 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10474 echo "local: *; };" >> $output_objdir/$libname.ver~
10475 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10484 netbsd* | netbsdelf*-gnu)
10485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10486 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10489 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10490 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10495 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10500 *** create shared libraries on Solaris systems. Therefore, libtool
10501 *** is disabling shared libraries support. We urge you to upgrade GNU
10502 *** binutils to release 2.9.1 or newer. Another option is to modify
10503 *** your PATH or compiler configuration so that the native linker is
10504 *** used, and then restart.
10507 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10508 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10509 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10516 case `$LD -v 2>&1` in
10517 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10521 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10522 *** reliably create shared libraries on SCO systems. Therefore, libtool
10523 *** is disabling shared libraries support. We urge you to upgrade GNU
10524 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10525 *** your PATH or compiler configuration so that the native linker is
10526 *** used, and then restart.
10531 # For security reasons, it is highly recommended that you always
10532 # use absolute paths for naming shared libraries, and exclude the
10533 # DT_RUNPATH tag from executables and libraries. But doing so
10534 # requires that you compile everything twice, which is a pain.
10535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10536 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10538 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10547 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10549 hardcode_direct=yes
10550 hardcode_shlibpath_var=no
10554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10555 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10556 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10563 if test no = "$ld_shlibs"; then
10565 hardcode_libdir_flag_spec=
10566 export_dynamic_flag_spec=
10567 whole_archive_flag_spec=
10570 # PORTME fill in a description of your system's linker (not GNU ld)
10573 allow_undefined_flag=unsupported
10574 always_export_symbols=yes
10575 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'
10576 # Note: this linker hardcodes the directories in LIBPATH if there
10577 # are no directories specified by -L.
10578 hardcode_minus_L=yes
10579 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10580 # Neither direct hardcoding nor static linking is supported with a
10582 hardcode_direct=unsupported
10587 if test ia64 = "$host_cpu"; then
10588 # On IA64, the linker does run time linking by default, so we don't
10589 # have to do anything special.
10590 aix_use_runtimelinking=no
10591 exp_sym_flag='-Bexport'
10594 # If we're using GNU nm, then we don't want the "-C" option.
10595 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10596 # Without the "-l" option, or with the "-B" option, AIX nm treats
10597 # weak defined symbols like other global defined symbols, whereas
10598 # GNU nm marks them as "W".
10599 # While the 'weak' keyword is ignored in the Export File, we need
10600 # it in the Import File for the 'aix-soname' feature, so we have
10601 # to replace the "-B" option with "-P" for AIX nm.
10602 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10603 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10605 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10607 aix_use_runtimelinking=no
10609 # Test if we are trying to use run time linking or normal
10610 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10611 # have runtime linking enabled, and use it for executables.
10612 # For shared libraries, we enable/disable runtime linking
10613 # depending on the kind of the shared library created -
10614 # when "with_aix_soname,aix_use_runtimelinking" is:
10615 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10616 # "aix,yes" lib.so shared, rtl:yes, for executables
10617 # lib.a static archive
10618 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10619 # lib.a(lib.so.V) shared, rtl:no, for executables
10620 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10621 # lib.a(lib.so.V) shared, rtl:no
10622 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10623 # lib.a static archive
10624 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10625 for ld_flag in $LDFLAGS; do
10626 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10627 aix_use_runtimelinking=yes
10631 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10632 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10633 # so we don't have lib.a shared libs to link our executables.
10634 # We have to force runtime linking in this case.
10635 aix_use_runtimelinking=yes
10636 LDFLAGS="$LDFLAGS -Wl,-brtl"
10641 exp_sym_flag='-bexport'
10642 no_entry_flag='-bnoentry'
10645 # When large executables or shared objects are built, AIX ld can
10646 # have problems creating the table of contents. If linking a library
10647 # or program results in "error TOC overflow" add -mminimal-toc to
10648 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10649 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10652 hardcode_direct=yes
10653 hardcode_direct_absolute=yes
10654 hardcode_libdir_separator=':'
10655 link_all_deplibs=yes
10656 file_list_spec='$wl-f,'
10657 case $with_aix_soname,$aix_use_runtimelinking in
10658 aix,*) ;; # traditional, no import file
10659 svr4,* | *,yes) # use import file
10660 # The Import File defines what to hardcode.
10662 hardcode_direct_absolute=no
10666 if test yes = "$GCC"; then
10667 case $host_os in aix4.[012]|aix4.[012].*)
10668 # We only want to do this on AIX 4.2 and lower, the check
10669 # below for broken collect2 doesn't work under 4.3+
10670 collect2name=`$CC -print-prog-name=collect2`
10671 if test -f "$collect2name" &&
10672 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10674 # We have reworked collect2
10677 # We have old collect2
10678 hardcode_direct=unsupported
10679 # It fails to find uninstalled libraries when the uninstalled
10680 # path is not listed in the libpath. Setting hardcode_minus_L
10681 # to unsupported forces relinking
10682 hardcode_minus_L=yes
10683 hardcode_libdir_flag_spec='-L$libdir'
10684 hardcode_libdir_separator=
10688 shared_flag='-shared'
10689 if test yes = "$aix_use_runtimelinking"; then
10690 shared_flag="$shared_flag "'$wl-G'
10692 # Need to ensure runtime linking is disabled for the traditional
10693 # shared library, or the linker may eventually find shared libraries
10694 # /with/ Import File - we do not want to mix them.
10695 shared_flag_aix='-shared'
10696 shared_flag_svr4='-shared $wl-G'
10699 if test ia64 = "$host_cpu"; then
10700 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10701 # chokes on -Wl,-G. The following line is correct:
10704 if test yes = "$aix_use_runtimelinking"; then
10705 shared_flag='$wl-G'
10707 shared_flag='$wl-bM:SRE'
10709 shared_flag_aix='$wl-bM:SRE'
10710 shared_flag_svr4='$wl-G'
10714 export_dynamic_flag_spec='$wl-bexpall'
10715 # It seems that -bexpall does not export symbols beginning with
10716 # underscore (_), so it is better to generate a list of symbols to export.
10717 always_export_symbols=yes
10718 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10719 # Warning - without using the other runtime loading flags (-brtl),
10720 # -berok will link without error, but may produce a broken library.
10721 allow_undefined_flag='-berok'
10722 # Determine the default libpath from the value encoded in an
10723 # empty executable.
10724 if test set = "${lt_cv_aix_libpath+set}"; then
10725 aix_libpath=$lt_cv_aix_libpath
10727 if ${lt_cv_aix_libpath_+:} false; then :
10728 $as_echo_n "(cached) " >&6
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10741 if ac_fn_c_try_link "$LINENO"; then :
10743 lt_aix_libpath_sed='
10744 /Import File Strings/,/^$/ {
10746 s/^0 *\([^ ]*\) *$/\1/
10750 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10751 # Check for a 64-bit object if we didn't find anything.
10752 if test -z "$lt_cv_aix_libpath_"; then
10753 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 if test -z "$lt_cv_aix_libpath_"; then
10759 lt_cv_aix_libpath_=/usr/lib:/lib
10764 aix_libpath=$lt_cv_aix_libpath_
10767 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10768 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10770 if test ia64 = "$host_cpu"; then
10771 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10772 allow_undefined_flag="-z nodefs"
10773 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"
10775 # Determine the default libpath from the value encoded in an
10776 # empty executable.
10777 if test set = "${lt_cv_aix_libpath+set}"; then
10778 aix_libpath=$lt_cv_aix_libpath
10780 if ${lt_cv_aix_libpath_+:} false; then :
10781 $as_echo_n "(cached) " >&6
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10794 if ac_fn_c_try_link "$LINENO"; then :
10796 lt_aix_libpath_sed='
10797 /Import File Strings/,/^$/ {
10799 s/^0 *\([^ ]*\) *$/\1/
10803 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10804 # Check for a 64-bit object if we didn't find anything.
10805 if test -z "$lt_cv_aix_libpath_"; then
10806 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10809 rm -f core conftest.err conftest.$ac_objext \
10810 conftest$ac_exeext conftest.$ac_ext
10811 if test -z "$lt_cv_aix_libpath_"; then
10812 lt_cv_aix_libpath_=/usr/lib:/lib
10817 aix_libpath=$lt_cv_aix_libpath_
10820 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10821 # Warning - without using the other run time loading flags,
10822 # -berok will link without error, but may produce a broken library.
10823 no_undefined_flag=' $wl-bernotok'
10824 allow_undefined_flag=' $wl-berok'
10825 if test yes = "$with_gnu_ld"; then
10826 # We only use this code for GNU lds that support --whole-archive.
10827 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10829 # Exported symbols can be pulled into shared objects from archives
10830 whole_archive_flag_spec='$convenience'
10832 archive_cmds_need_lc=yes
10833 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10834 # -brtl affects multiple linker settings, -berok does not and is overridden later
10835 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10836 if test svr4 != "$with_aix_soname"; then
10837 # This is similar to how AIX traditionally builds its shared libraries.
10838 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10840 if test aix != "$with_aix_soname"; then
10841 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10843 # used by -dlpreopen to get the symbols
10844 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10846 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10854 # see comment about AmigaOS4 .so support
10855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10856 archive_expsym_cmds=''
10859 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)'
10860 hardcode_libdir_flag_spec='-L$libdir'
10861 hardcode_minus_L=yes
10867 export_dynamic_flag_spec=-rdynamic
10870 cygwin* | mingw* | pw32* | cegcc*)
10871 # When not using gcc, we currently assume that we are using
10872 # Microsoft Visual C++.
10873 # hardcode_libdir_flag_spec is actually meaningless, as there is
10874 # no search path for DLLs.
10875 case $cc_basename in
10878 hardcode_libdir_flag_spec=' '
10879 allow_undefined_flag=unsupported
10880 always_export_symbols=yes
10882 # Tell ltmain to make .lib files, not .a files.
10884 # Tell ltmain to make .dll files, not .so files.
10886 # FIXME: Setting linknames here is a bad hack.
10887 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10888 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10889 cp "$export_symbols" "$output_objdir/$soname.def";
10890 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10892 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10894 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10896 # The linker will not automatically build a static lib if we build a DLL.
10897 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10898 enable_shared_with_static_runtimes=yes
10899 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10902 old_postinstall_cmds='chmod 644 $oldlib'
10903 postlink_cmds='lt_outputfile="@OUTPUT@"~
10904 lt_tool_outputfile="@TOOL_OUTPUT@"~
10905 case $lt_outputfile in
10908 lt_outputfile=$lt_outputfile.exe
10909 lt_tool_outputfile=$lt_tool_outputfile.exe
10912 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10913 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10914 $RM "$lt_outputfile.manifest";
10918 # Assume MSVC wrapper
10919 hardcode_libdir_flag_spec=' '
10920 allow_undefined_flag=unsupported
10921 # Tell ltmain to make .lib files, not .a files.
10923 # Tell ltmain to make .dll files, not .so files.
10925 # FIXME: Setting linknames here is a bad hack.
10926 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10927 # The linker will automatically build a .lib file if we build a DLL.
10928 old_archive_from_new_cmds='true'
10929 # FIXME: Should let the user specify the lib program.
10930 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10931 enable_shared_with_static_runtimes=yes
10936 darwin* | rhapsody*)
10939 archive_cmds_need_lc=no
10941 hardcode_automatic=yes
10942 hardcode_shlibpath_var=unsupported
10943 if test yes = "$lt_cv_ld_force_load"; then
10944 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\"`'
10947 whole_archive_flag_spec=''
10949 link_all_deplibs=yes
10950 allow_undefined_flag=$_lt_dar_allow_undefined
10951 case $cc_basename in
10952 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10953 *) _lt_dar_can_shared=$GCC ;;
10955 if test yes = "$_lt_dar_can_shared"; then
10956 output_verbose_link_cmd=func_echo_all
10957 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10958 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10959 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"
10960 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"
10969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970 hardcode_libdir_flag_spec='-L$libdir'
10971 hardcode_shlibpath_var=no
10974 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10975 # support. Future versions do this automatically, but an explicit c++rt0.o
10976 # does not break anything, and helps significantly (at the cost of a little
10979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10980 hardcode_libdir_flag_spec='-R$libdir'
10981 hardcode_direct=yes
10982 hardcode_shlibpath_var=no
10985 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10988 hardcode_direct=yes
10989 hardcode_minus_L=yes
10990 hardcode_shlibpath_var=no
10993 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10994 freebsd* | dragonfly*)
10995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10996 hardcode_libdir_flag_spec='-R$libdir'
10997 hardcode_direct=yes
10998 hardcode_shlibpath_var=no
11002 if test yes = "$GCC"; then
11003 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11005 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11007 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11008 hardcode_libdir_separator=:
11009 hardcode_direct=yes
11011 # hardcode_minus_L: Not really in the search PATH,
11012 # but as the default location of the library.
11013 hardcode_minus_L=yes
11014 export_dynamic_flag_spec='$wl-E'
11018 if test yes,no = "$GCC,$with_gnu_ld"; then
11019 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11021 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11023 if test no = "$with_gnu_ld"; then
11024 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11025 hardcode_libdir_separator=:
11026 hardcode_direct=yes
11027 hardcode_direct_absolute=yes
11028 export_dynamic_flag_spec='$wl-E'
11029 # hardcode_minus_L: Not really in the search PATH,
11030 # but as the default location of the library.
11031 hardcode_minus_L=yes
11036 if test yes,no = "$GCC,$with_gnu_ld"; then
11039 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11042 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11045 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11051 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11054 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11058 # Older versions of the 11.00 compiler do not understand -b yet
11059 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11061 $as_echo_n "checking if $CC understands -b... " >&6; }
11062 if ${lt_cv_prog_compiler__b+:} false; then :
11063 $as_echo_n "(cached) " >&6
11065 lt_cv_prog_compiler__b=no
11066 save_LDFLAGS=$LDFLAGS
11067 LDFLAGS="$LDFLAGS -b"
11068 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11069 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11070 # The linker can only warn and ignore the option if not recognized
11071 # So say no if there are warnings
11072 if test -s conftest.err; then
11073 # Append any errors to the config.log.
11074 cat conftest.err 1>&5
11075 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11077 if diff conftest.exp conftest.er2 >/dev/null; then
11078 lt_cv_prog_compiler__b=yes
11081 lt_cv_prog_compiler__b=yes
11085 LDFLAGS=$save_LDFLAGS
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11089 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11091 if test yes = "$lt_cv_prog_compiler__b"; then
11092 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11100 if test no = "$with_gnu_ld"; then
11101 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11102 hardcode_libdir_separator=:
11107 hardcode_shlibpath_var=no
11110 hardcode_direct=yes
11111 hardcode_direct_absolute=yes
11112 export_dynamic_flag_spec='$wl-E'
11114 # hardcode_minus_L: Not really in the search PATH,
11115 # but as the default location of the library.
11116 hardcode_minus_L=yes
11122 irix5* | irix6* | nonstopux*)
11123 if test yes = "$GCC"; then
11124 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'
11125 # Try to use the -exported_symbol ld option, if it does not
11126 # work, assume that -exports_file does not work either and
11127 # implicitly export all symbols.
11128 # This should be the same for all languages, so no per-tag cache variable.
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11130 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11131 if ${lt_cv_irix_exported_symbol+:} false; then :
11132 $as_echo_n "(cached) " >&6
11134 save_LDFLAGS=$LDFLAGS
11135 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11138 int foo (void) { return 0; }
11140 if ac_fn_c_try_link "$LINENO"; then :
11141 lt_cv_irix_exported_symbol=yes
11143 lt_cv_irix_exported_symbol=no
11145 rm -f core conftest.err conftest.$ac_objext \
11146 conftest$ac_exeext conftest.$ac_ext
11147 LDFLAGS=$save_LDFLAGS
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11150 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11151 if test yes = "$lt_cv_irix_exported_symbol"; then
11152 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'
11154 link_all_deplibs=no
11156 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'
11157 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'
11159 archive_cmds_need_lc='no'
11160 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11161 hardcode_libdir_separator=:
11163 link_all_deplibs=yes
11167 case $cc_basename in
11169 # Fabrice Bellard et al's Tiny C Compiler
11171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11176 netbsd* | netbsdelf*-gnu)
11177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11180 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11182 hardcode_libdir_flag_spec='-R$libdir'
11183 hardcode_direct=yes
11184 hardcode_shlibpath_var=no
11188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11189 hardcode_direct=yes
11190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11191 hardcode_libdir_separator=:
11192 hardcode_shlibpath_var=no
11198 openbsd* | bitrig*)
11199 if test -f /usr/libexec/ld.so; then
11200 hardcode_direct=yes
11201 hardcode_shlibpath_var=no
11202 hardcode_direct_absolute=yes
11203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11205 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11206 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11207 export_dynamic_flag_spec='$wl-E'
11209 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11210 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11218 hardcode_libdir_flag_spec='-L$libdir'
11219 hardcode_minus_L=yes
11220 allow_undefined_flag=unsupported
11222 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11223 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11224 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11225 $ECHO EXPORTS >> $output_objdir/$libname.def~
11226 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11227 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11228 emximp -o $lib $output_objdir/$libname.def'
11229 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11230 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11231 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11232 $ECHO EXPORTS >> $output_objdir/$libname.def~
11233 prefix_cmds="$SED"~
11234 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11235 prefix_cmds="$prefix_cmds -e 1d";
11237 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11238 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11239 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11240 emximp -o $lib $output_objdir/$libname.def'
11241 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11242 enable_shared_with_static_runtimes=yes
11246 if test yes = "$GCC"; then
11247 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11248 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'
11250 allow_undefined_flag=' -expect_unresolved \*'
11251 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'
11253 archive_cmds_need_lc='no'
11254 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11255 hardcode_libdir_separator=:
11258 osf4* | osf5*) # as osf3* with the addition of -msym flag
11259 if test yes = "$GCC"; then
11260 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11261 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'
11262 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11264 allow_undefined_flag=' -expect_unresolved \*'
11265 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'
11266 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~
11267 $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'
11269 # Both c and cxx compiler support -rpath directly
11270 hardcode_libdir_flag_spec='-rpath $libdir'
11272 archive_cmds_need_lc='no'
11273 hardcode_libdir_separator=:
11277 no_undefined_flag=' -z defs'
11278 if test yes = "$GCC"; then
11280 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11281 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11282 $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'
11284 case `$CC -V 2>&1` in
11287 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11289 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11293 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11295 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11299 hardcode_libdir_flag_spec='-R$libdir'
11300 hardcode_shlibpath_var=no
11302 solaris2.[0-5] | solaris2.[0-5].*) ;;
11304 # The compiler driver will combine and reorder linker options,
11305 # but understands '-z linker_flag'. GCC discards it without '$wl',
11306 # but is careful enough not to reorder.
11307 # Supported since Solaris 2.6 (maybe 2.5.1?)
11308 if test yes = "$GCC"; then
11309 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11311 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11315 link_all_deplibs=yes
11319 if test sequent = "$host_vendor"; then
11320 # Use $CC to link under sequent, because it throws in some extra .o
11321 # files that make .init and .fini sections work.
11322 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11324 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11326 hardcode_libdir_flag_spec='-L$libdir'
11327 hardcode_direct=yes
11328 hardcode_minus_L=yes
11329 hardcode_shlibpath_var=no
11333 case $host_vendor in
11335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11336 hardcode_direct=yes # is this really true???
11339 ## LD is ld it makes a PLAMLIB
11340 ## CC just makes a GrossModule.
11341 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11342 reload_cmds='$CC -r -o $output$reload_objs'
11346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11350 runpath_var='LD_RUN_PATH'
11351 hardcode_shlibpath_var=no
11355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356 hardcode_shlibpath_var=no
11357 export_dynamic_flag_spec='-Bexport'
11361 if test -d /usr/nec; then
11362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11363 hardcode_shlibpath_var=no
11364 runpath_var=LD_RUN_PATH
11365 hardcode_runpath_var=yes
11370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11371 no_undefined_flag='$wl-z,text'
11372 archive_cmds_need_lc=no
11373 hardcode_shlibpath_var=no
11374 runpath_var='LD_RUN_PATH'
11376 if test yes = "$GCC"; then
11377 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11381 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11385 sysv5* | sco3.2v5* | sco5v6*)
11386 # Note: We CANNOT use -z defs as we might desire, because we do not
11387 # link with -lc, and that would cause any symbols used from libc to
11388 # always be unresolved, which means just about no library would
11389 # ever link correctly. If we're not using GNU ld we use -z text
11390 # though, which does catch some bad symbols but isn't as heavy-handed
11392 no_undefined_flag='$wl-z,text'
11393 allow_undefined_flag='$wl-z,nodefs'
11394 archive_cmds_need_lc=no
11395 hardcode_shlibpath_var=no
11396 hardcode_libdir_flag_spec='$wl-R,$libdir'
11397 hardcode_libdir_separator=':'
11398 link_all_deplibs=yes
11399 export_dynamic_flag_spec='$wl-Bexport'
11400 runpath_var='LD_RUN_PATH'
11402 if test yes = "$GCC"; then
11403 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11407 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11413 hardcode_libdir_flag_spec='-L$libdir'
11414 hardcode_shlibpath_var=no
11422 if test sni = "$host_vendor"; then
11424 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11425 export_dynamic_flag_spec='$wl-Blargedynsym'
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11432 $as_echo "$ld_shlibs" >&6; }
11433 test no = "$ld_shlibs" && can_build_shared=no
11435 with_gnu_ld=$with_gnu_ld
11452 # Do we need to explicitly link libc?
11454 case "x$archive_cmds_need_lc" in
11456 # Assume -lc should be added
11457 archive_cmds_need_lc=yes
11459 if test yes,yes = "$GCC,$enable_shared"; then
11460 case $archive_cmds in
11462 # FIXME: we may have to deal with multi-command sequences.
11465 # Test whether the compiler implicitly links with -lc since on some
11466 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11467 # to ld, don't add -lc before -lgcc.
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11469 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11470 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11471 $as_echo_n "(cached) " >&6
11474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11477 (eval $ac_compile) 2>&5
11479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11480 test $ac_status = 0; } 2>conftest.err; then
11483 libobjs=conftest.$ac_objext
11485 wl=$lt_prog_compiler_wl
11486 pic_flag=$lt_prog_compiler_pic
11492 lt_save_allow_undefined_flag=$allow_undefined_flag
11493 allow_undefined_flag=
11494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11495 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11498 test $ac_status = 0; }
11500 lt_cv_archive_cmds_need_lc=no
11502 lt_cv_archive_cmds_need_lc=yes
11504 allow_undefined_flag=$lt_save_allow_undefined_flag
11506 cat conftest.err 1>&5
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11512 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11513 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11672 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11674 if test yes = "$GCC"; then
11676 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11677 *) lt_awk_arg='/^libraries:/' ;;
11680 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11681 *) lt_sed_strip_eq='s|=/|/|g' ;;
11683 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11684 case $lt_search_path_spec in
11686 # if the path contains ";" then we assume it to be the separator
11687 # otherwise default to the standard path separator (i.e. ":") - it is
11688 # assumed that no part of a normal pathname contains ";" but that should
11689 # okay in the real world where ";" in dirpaths is itself problematic.
11690 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11693 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11696 # Ok, now we have the path, separated by spaces, we can step through it
11697 # and add multilib dir if necessary...
11698 lt_tmp_lt_search_path_spec=
11699 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11700 # ...but if some path component already ends with the multilib dir we assume
11701 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11702 case "$lt_multi_os_dir; $lt_search_path_spec " in
11703 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11707 for lt_sys_path in $lt_search_path_spec; do
11708 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11710 elif test -n "$lt_multi_os_dir"; then
11711 test -d "$lt_sys_path" && \
11712 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11715 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11716 BEGIN {RS = " "; FS = "/|\n";} {
11719 for (lt_i = NF; lt_i > 0; lt_i--) {
11720 if ($lt_i != "" && $lt_i != ".") {
11721 if ($lt_i == "..") {
11724 if (lt_count == 0) {
11725 lt_foo = "/" $lt_i lt_foo;
11732 if (lt_foo != "") { lt_freq[lt_foo]++; }
11733 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11735 # AWK program above erroneously prepends '/' to C:/dos/paths
11738 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11739 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11741 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11745 library_names_spec=
11746 libname_spec='lib$name'
11750 postuninstall_cmds=
11754 shlibpath_overrides_runpath=unknown
11756 dynamic_linker="$host_os ld.so"
11757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11758 need_lib_prefix=unknown
11759 hardcode_into_libs=no
11761 # when you set need_version to no, make sure it does not cause -set_version
11762 # flags to be left without arguments
11763 need_version=unknown
11769 version_type=linux # correct to gnu/linux during the next big refactor
11770 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11771 shlibpath_var=LIBPATH
11773 # AIX 3 has no versioning support, so we append a major version to the name.
11774 soname_spec='$libname$release$shared_ext$major'
11778 version_type=linux # correct to gnu/linux during the next big refactor
11781 hardcode_into_libs=yes
11782 if test ia64 = "$host_cpu"; then
11783 # AIX 5 supports IA64
11784 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11785 shlibpath_var=LD_LIBRARY_PATH
11787 # With GCC up to 2.95.x, collect2 would create an import file
11788 # for dependence libraries. The import file would start with
11789 # the line '#! .'. This would cause the generated library to
11790 # depend on '.', always an invalid library. This was fixed in
11791 # development snapshots of GCC prior to 3.0.
11793 aix4 | aix4.[01] | aix4.[01].*)
11794 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11796 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11799 can_build_shared=no
11803 # Using Import Files as archive members, it is possible to support
11804 # filename-based versioning of shared library archives on AIX. While
11805 # this would work for both with and without runtime linking, it will
11806 # prevent static linking of such archives. So we do filename-based
11807 # shared library versioning with .so extension only, which is used
11808 # when both runtime linking and shared linking is enabled.
11809 # Unfortunately, runtime linking may impact performance, so we do
11810 # not want this to be the default eventually. Also, we use the
11811 # versioned .so libs for executables only if there is the -brtl
11812 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11813 # To allow for filename-based versioning support, we need to create
11814 # libNAME.so.V as an archive file, containing:
11815 # *) an Import File, referring to the versioned filename of the
11816 # archive as well as the shared archive member, telling the
11817 # bitwidth (32 or 64) of that shared object, and providing the
11818 # list of exported symbols of that shared object, eventually
11819 # decorated with the 'weak' keyword
11820 # *) the shared object with the F_LOADONLY flag set, to really avoid
11821 # it being seen by the linker.
11822 # At run time we better use the real file rather than another symlink,
11823 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11825 case $with_aix_soname,$aix_use_runtimelinking in
11826 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11827 # soname into executable. Probably we can add versioning support to
11828 # collect2, so additional links can be useful in future.
11829 aix,yes) # traditional libtool
11830 dynamic_linker='AIX unversionable lib.so'
11831 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11832 # instead of lib<name>.a to let people know that these are not
11833 # typical AIX shared libraries.
11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11836 aix,no) # traditional AIX only
11837 dynamic_linker='AIX lib.a(lib.so.V)'
11838 # We preserve .a as extension for shared libraries through AIX4.2
11839 # and later when we are not doing run time linking.
11840 library_names_spec='$libname$release.a $libname.a'
11841 soname_spec='$libname$release$shared_ext$major'
11843 svr4,*) # full svr4 only
11844 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11845 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11846 # We do not specify a path in Import Files, so LIBPATH fires.
11847 shlibpath_overrides_runpath=yes
11849 *,yes) # both, prefer svr4
11850 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11851 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11852 # unpreferred sharedlib libNAME.a needs extra handling
11853 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11854 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11855 # We do not specify a path in Import Files, so LIBPATH fires.
11856 shlibpath_overrides_runpath=yes
11858 *,no) # both, prefer aix
11859 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11860 library_names_spec='$libname$release.a $libname.a'
11861 soname_spec='$libname$release$shared_ext$major'
11862 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11863 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11864 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11867 shlibpath_var=LIBPATH
11874 # Since July 2007 AmigaOS4 officially supports .so libraries.
11875 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11879 library_names_spec='$libname.ixlibrary $libname.a'
11880 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11881 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11887 library_names_spec='$libname$shared_ext'
11888 dynamic_linker="$host_os ld.so"
11889 shlibpath_var=LIBRARY_PATH
11893 version_type=linux # correct to gnu/linux during the next big refactor
11895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11896 soname_spec='$libname$release$shared_ext$major'
11897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11901 # the default ld.so.conf also contains /usr/contrib/lib and
11902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11903 # libtool to hard-code these into programs
11906 cygwin* | mingw* | pw32* | cegcc*)
11907 version_type=windows
11912 case $GCC,$cc_basename in
11915 library_names_spec='$libname.dll.a'
11916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11917 postinstall_cmds='base_file=`basename \$file`~
11918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11919 dldir=$destdir/`dirname \$dlpath`~
11920 test -d \$dldir || mkdir -p \$dldir~
11921 $install_prog $dir/$dlname \$dldir/$dlname~
11922 chmod a+x \$dldir/$dlname~
11923 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11924 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11926 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11927 dlpath=$dir/\$dldll~
11929 shlibpath_overrides_runpath=yes
11933 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11934 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11936 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11939 # MinGW DLLs use traditional 'lib' prefix
11940 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11943 # pw32 DLLs use 'pw' prefix rather than 'lib'
11944 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11947 dynamic_linker='Win32 ld.exe'
11952 libname_spec='$name'
11953 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11954 library_names_spec='$libname.dll.lib'
11958 sys_lib_search_path_spec=
11961 for lt_path in $LIB
11964 # Let DOS variable expansion print the short 8.3 style file name.
11965 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11966 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11969 # Convert to MSYS style.
11970 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11973 # Convert to unix form, then to dos form, then back to unix form
11974 # but this time dos style (no spaces!) so that the unix form looks
11975 # like /cygdrive/c/PROGRA~1:/cygdr...
11976 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11977 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11978 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11981 sys_lib_search_path_spec=$LIB
11982 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11983 # It is most probably a Windows format PATH.
11984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11988 # FIXME: find the short name or the path components, as spaces are
11989 # common. (e.g. "Program Files" -> "PROGRA~1")
11993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11994 postinstall_cmds='base_file=`basename \$file`~
11995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11996 dldir=$destdir/`dirname \$dlpath`~
11997 test -d \$dldir || mkdir -p \$dldir~
11998 $install_prog $dir/$dlname \$dldir/$dlname'
11999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12000 dlpath=$dir/\$dldll~
12002 shlibpath_overrides_runpath=yes
12003 dynamic_linker='Win32 link.exe'
12007 # Assume MSVC wrapper
12008 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12009 dynamic_linker='Win32 ld.exe'
12012 # FIXME: first we should search . and the directory the executable is in
12016 darwin* | rhapsody*)
12017 dynamic_linker="$host_os dyld"
12018 version_type=darwin
12021 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12022 soname_spec='$libname$release$major$shared_ext'
12023 shlibpath_overrides_runpath=yes
12024 shlibpath_var=DYLD_LIBRARY_PATH
12025 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12027 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12028 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12032 version_type=linux # correct to gnu/linux during the next big refactor
12035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12036 soname_spec='$libname$release$shared_ext$major'
12037 shlibpath_var=LD_LIBRARY_PATH
12040 freebsd* | dragonfly*)
12041 # DragonFly does not have aout. When/if they implement a new
12042 # versioning mechanism, adjust this.
12043 if test -x /usr/bin/objformat; then
12044 objformat=`/usr/bin/objformat`
12047 freebsd[23].*) objformat=aout ;;
12048 *) objformat=elf ;;
12051 version_type=freebsd-$objformat
12052 case $version_type in
12054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12055 soname_spec='$libname$release$shared_ext$major'
12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12064 shlibpath_var=LD_LIBRARY_PATH
12067 shlibpath_overrides_runpath=yes
12069 freebsd3.[01]* | freebsdelf3.[01]*)
12070 shlibpath_overrides_runpath=yes
12071 hardcode_into_libs=yes
12073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12075 shlibpath_overrides_runpath=no
12076 hardcode_into_libs=yes
12078 *) # from 4.6 on, and DragonFly
12079 shlibpath_overrides_runpath=yes
12080 hardcode_into_libs=yes
12086 version_type=linux # correct to gnu/linux during the next big refactor
12089 dynamic_linker="$host_os runtime_loader"
12090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12091 soname_spec='$libname$release$shared_ext$major'
12092 shlibpath_var=LIBRARY_PATH
12093 shlibpath_overrides_runpath=no
12094 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12095 hardcode_into_libs=yes
12098 hpux9* | hpux10* | hpux11*)
12099 # Give a soname corresponding to the major version so that dld.sl refuses to
12100 # link against other versions.
12107 hardcode_into_libs=yes
12108 dynamic_linker="$host_os dld.so"
12109 shlibpath_var=LD_LIBRARY_PATH
12110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12112 soname_spec='$libname$release$shared_ext$major'
12113 if test 32 = "$HPUX_IA64_MODE"; then
12114 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12115 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12117 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12118 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12123 hardcode_into_libs=yes
12124 dynamic_linker="$host_os dld.sl"
12125 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12128 soname_spec='$libname$release$shared_ext$major'
12129 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12134 dynamic_linker="$host_os dld.sl"
12135 shlibpath_var=SHLIB_PATH
12136 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12138 soname_spec='$libname$release$shared_ext$major'
12141 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12142 postinstall_cmds='chmod 555 $lib'
12143 # or fails outright, so override atomically:
12144 install_override_mode=555
12148 version_type=linux # correct to gnu/linux during the next big refactor
12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12152 soname_spec='$libname$release$shared_ext$major'
12153 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=no
12156 hardcode_into_libs=yes
12159 irix5* | irix6* | nonstopux*)
12161 nonstopux*) version_type=nonstopux ;;
12163 if test yes = "$lt_cv_prog_gnu_ld"; then
12164 version_type=linux # correct to gnu/linux during the next big refactor
12171 soname_spec='$libname$release$shared_ext$major'
12172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12174 irix5* | nonstopux*)
12175 libsuff= shlibsuff=
12178 case $LD in # libtool.m4 will add one of these switches to LD
12179 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12180 libsuff= shlibsuff= libmagic=32-bit;;
12181 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12182 libsuff=32 shlibsuff=N32 libmagic=N32;;
12183 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12184 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12185 *) libsuff= shlibsuff= libmagic=never-match;;
12189 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12190 shlibpath_overrides_runpath=no
12191 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12192 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12193 hardcode_into_libs=yes
12196 # No shared lib support for Linux oldld, aout, or coff.
12197 linux*oldld* | linux*aout* | linux*coff*)
12202 version_type=none # Android doesn't support versioned libraries.
12205 library_names_spec='$libname$release$shared_ext'
12206 soname_spec='$libname$release$shared_ext'
12208 shlibpath_var=LD_LIBRARY_PATH
12209 shlibpath_overrides_runpath=yes
12211 # This implies no fast_install, which is unacceptable.
12212 # Some rework will be needed to allow for fast_install
12213 # before this can be enabled.
12214 hardcode_into_libs=yes
12216 dynamic_linker='Android linker'
12217 # Don't embed -rpath directories since the linker doesn't support them.
12218 hardcode_libdir_flag_spec='-L$libdir'
12221 # This must be glibc/ELF.
12222 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12223 version_type=linux # correct to gnu/linux during the next big refactor
12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227 soname_spec='$libname$release$shared_ext$major'
12228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 shlibpath_overrides_runpath=no
12232 # Some binutils ld are patched to set DT_RUNPATH
12233 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12234 $as_echo_n "(cached) " >&6
12236 lt_cv_shlibpath_overrides_runpath=no
12237 save_LDFLAGS=$LDFLAGS
12238 save_libdir=$libdir
12239 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12240 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12252 if ac_fn_c_try_link "$LINENO"; then :
12253 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12254 lt_cv_shlibpath_overrides_runpath=yes
12257 rm -f core conftest.err conftest.$ac_objext \
12258 conftest$ac_exeext conftest.$ac_ext
12259 LDFLAGS=$save_LDFLAGS
12260 libdir=$save_libdir
12264 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12266 # This implies no fast_install, which is unacceptable.
12267 # Some rework will be needed to allow for fast_install
12268 # before this can be enabled.
12269 hardcode_into_libs=yes
12271 # Ideally, we could use ldconfig to report *all* directores which are
12272 # searched for libraries, however this is still not possible. Aside from not
12273 # being certain /sbin/ldconfig is available, command
12274 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12275 # even though it is searched at run-time. Try to do the best guess by
12276 # appending ld.so.conf contents (and includes) to the search path.
12277 if test -f /etc/ld.so.conf; then
12278 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' ' '`
12279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12282 # We used to test for /lib/ld.so.1 and disable shared libraries on
12283 # powerpc, because MkLinux only supported shared libraries with the
12284 # GNU dynamic linker. Since this was broken with cross compilers,
12285 # most powerpc-linux boxes support dynamic linking these days and
12286 # people can always --disable-shared, the test was removed, and we
12287 # assume the GNU/Linux dynamic linker is in use.
12288 dynamic_linker='GNU/Linux ld.so'
12295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12296 soname_spec='${libname}${release}${shared_ext}$major'
12297 shlibpath_var=LD_LIBRARY_PATH
12298 shlibpath_overrides_runpath=no
12299 hardcode_into_libs=yes
12300 dynamic_linker='NetBSD ld.elf_so'
12307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12308 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12310 dynamic_linker='NetBSD (a.out) ld.so'
12312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12313 soname_spec='$libname$release$shared_ext$major'
12314 dynamic_linker='NetBSD ld.elf_so'
12316 shlibpath_var=LD_LIBRARY_PATH
12317 shlibpath_overrides_runpath=yes
12318 hardcode_into_libs=yes
12322 version_type=linux # correct to gnu/linux during the next big refactor
12323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12324 shlibpath_var=LD_LIBRARY_PATH
12325 shlibpath_overrides_runpath=yes
12332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12333 soname_spec='$libname$release$shared_ext$major'
12334 shlibpath_var=LD_LIBRARY_PATH
12335 shlibpath_overrides_runpath=no
12336 hardcode_into_libs=yes
12337 dynamic_linker='ldqnx.so'
12340 openbsd* | bitrig*)
12342 sys_lib_dlsearch_path_spec=/usr/lib
12344 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12349 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12351 shlibpath_var=LD_LIBRARY_PATH
12352 shlibpath_overrides_runpath=yes
12356 libname_spec='$name'
12357 version_type=windows
12361 # OS/2 can only load a DLL with a base name of 8 characters or less.
12362 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12363 v=$($ECHO $release$versuffix | tr -d .-);
12364 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12365 $ECHO $n$v`$shared_ext'
12366 library_names_spec='${libname}_dll.$libext'
12367 dynamic_linker='OS/2 ld.exe'
12368 shlibpath_var=BEGINLIBPATH
12369 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12371 postinstall_cmds='base_file=`basename \$file`~
12372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12373 dldir=$destdir/`dirname \$dlpath`~
12374 test -d \$dldir || mkdir -p \$dldir~
12375 $install_prog $dir/$dlname \$dldir/$dlname~
12376 chmod a+x \$dldir/$dlname~
12377 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12378 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12381 dlpath=$dir/\$dldll~
12385 osf3* | osf4* | osf5*)
12389 soname_spec='$libname$release$shared_ext$major'
12390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12391 shlibpath_var=LD_LIBRARY_PATH
12392 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12401 version_type=linux # correct to gnu/linux during the next big refactor
12404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12405 soname_spec='$libname$release$shared_ext$major'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 shlibpath_overrides_runpath=yes
12408 hardcode_into_libs=yes
12409 # ldd complains unless libraries are executable
12410 postinstall_cmds='chmod +x $lib'
12415 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12417 shlibpath_var=LD_LIBRARY_PATH
12418 shlibpath_overrides_runpath=yes
12419 if test yes = "$with_gnu_ld"; then
12426 version_type=linux # correct to gnu/linux during the next big refactor
12427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12428 soname_spec='$libname$release$shared_ext$major'
12429 shlibpath_var=LD_LIBRARY_PATH
12430 case $host_vendor in
12432 shlibpath_overrides_runpath=no
12434 runpath_var=LD_RUN_PATH
12442 shlibpath_overrides_runpath=no
12443 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12449 if test -d /usr/nec; then
12450 version_type=linux # correct to gnu/linux during the next big refactor
12451 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12452 soname_spec='$libname$shared_ext.$major'
12453 shlibpath_var=LD_LIBRARY_PATH
12457 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12462 soname_spec='$libname$release$shared_ext$major'
12463 shlibpath_var=LD_LIBRARY_PATH
12464 shlibpath_overrides_runpath=yes
12465 hardcode_into_libs=yes
12466 if test yes = "$with_gnu_ld"; then
12467 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12469 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12472 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12476 sys_lib_dlsearch_path_spec='/usr/lib'
12480 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12481 version_type=linux # correct to gnu/linux during the next big refactor
12484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12485 shlibpath_var=LD_LIBRARY_PATH
12486 shlibpath_overrides_runpath=no
12487 hardcode_into_libs=yes
12491 version_type=linux # correct to gnu/linux during the next big refactor
12492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12493 soname_spec='$libname$release$shared_ext$major'
12494 shlibpath_var=LD_LIBRARY_PATH
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12502 $as_echo "$dynamic_linker" >&6; }
12503 test no = "$dynamic_linker" && can_build_shared=no
12505 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12506 if test yes = "$GCC"; then
12507 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12510 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12511 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12514 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12515 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12518 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12519 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12521 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12522 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12524 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12525 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12624 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12626 if test -n "$hardcode_libdir_flag_spec" ||
12627 test -n "$runpath_var" ||
12628 test yes = "$hardcode_automatic"; then
12630 # We can hardcode non-existent directories.
12631 if test no != "$hardcode_direct" &&
12632 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12633 # have to relink, otherwise we might link with an installed library
12634 # when we should be linking with a yet-to-be-installed one
12635 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12636 test no != "$hardcode_minus_L"; then
12637 # Linking always hardcodes the temporary library directory.
12638 hardcode_action=relink
12640 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12641 hardcode_action=immediate
12644 # We cannot hardcode anything, or else we can only hardcode existing
12646 hardcode_action=unsupported
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12649 $as_echo "$hardcode_action" >&6; }
12651 if test relink = "$hardcode_action" ||
12652 test yes = "$inherit_rpath"; then
12653 # Fast installation is not supported
12654 enable_fast_install=no
12655 elif test yes = "$shlibpath_overrides_runpath" ||
12656 test no = "$enable_shared"; then
12657 # Fast installation is not necessary
12658 enable_fast_install=needless
12666 if test yes != "$enable_dlopen"; then
12667 enable_dlopen=unknown
12668 enable_dlopen_self=unknown
12669 enable_dlopen_self_static=unknown
12676 lt_cv_dlopen=load_add_on
12678 lt_cv_dlopen_self=yes
12681 mingw* | pw32* | cegcc*)
12682 lt_cv_dlopen=LoadLibrary
12687 lt_cv_dlopen=dlopen
12692 # if libdl is installed we need to link against it
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12694 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12695 if ${ac_cv_lib_dl_dlopen+:} false; then :
12696 $as_echo_n "(cached) " >&6
12698 ac_check_lib_save_LIBS=$LIBS
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12703 /* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
12718 if ac_fn_c_try_link "$LINENO"; then :
12719 ac_cv_lib_dl_dlopen=yes
12721 ac_cv_lib_dl_dlopen=no
12723 rm -f core conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12728 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12729 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12730 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12735 lt_cv_dlopen_self=yes
12742 # Don't try to run any link tests for TPF. We know it's impossible
12743 # because TPF is a cross-compiler, and we know how we open DSOs.
12744 lt_cv_dlopen=dlopen
12746 lt_cv_dlopen_self=no
12750 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12751 if test "x$ac_cv_func_shl_load" = xyes; then :
12752 lt_cv_dlopen=shl_load
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12755 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12756 if ${ac_cv_lib_dld_shl_load+:} false; then :
12757 $as_echo_n "(cached) " >&6
12759 ac_check_lib_save_LIBS=$LIBS
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12764 /* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12774 return shl_load ();
12779 if ac_fn_c_try_link "$LINENO"; then :
12780 ac_cv_lib_dld_shl_load=yes
12782 ac_cv_lib_dld_shl_load=no
12784 rm -f core conftest.err conftest.$ac_objext \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12789 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12790 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12791 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12793 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12794 if test "x$ac_cv_func_dlopen" = xyes; then :
12795 lt_cv_dlopen=dlopen
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12799 if ${ac_cv_lib_dl_dlopen+:} false; then :
12800 $as_echo_n "(cached) " >&6
12802 ac_check_lib_save_LIBS=$LIBS
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12807 /* Override any GCC internal prototype to avoid an error.
12808 Use char because int might match the return type of a GCC
12809 builtin and then its argument prototype would still apply. */
12822 if ac_fn_c_try_link "$LINENO"; then :
12823 ac_cv_lib_dl_dlopen=yes
12825 ac_cv_lib_dl_dlopen=no
12827 rm -f core conftest.err conftest.$ac_objext \
12828 conftest$ac_exeext conftest.$ac_ext
12829 LIBS=$ac_check_lib_save_LIBS
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12833 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12834 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12837 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12838 if ${ac_cv_lib_svld_dlopen+:} false; then :
12839 $as_echo_n "(cached) " >&6
12841 ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-lsvld $LIBS"
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12861 if ac_fn_c_try_link "$LINENO"; then :
12862 ac_cv_lib_svld_dlopen=yes
12864 ac_cv_lib_svld_dlopen=no
12866 rm -f core conftest.err conftest.$ac_objext \
12867 conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_lib_save_LIBS
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12871 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12872 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12873 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12876 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12877 if ${ac_cv_lib_dld_dld_link+:} false; then :
12878 $as_echo_n "(cached) " >&6
12880 ac_check_lib_save_LIBS=$LIBS
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12885 /* Override any GCC internal prototype to avoid an error.
12886 Use char because int might match the return type of a GCC
12887 builtin and then its argument prototype would still apply. */
12895 return dld_link ();
12900 if ac_fn_c_try_link "$LINENO"; then :
12901 ac_cv_lib_dld_dld_link=yes
12903 ac_cv_lib_dld_dld_link=no
12905 rm -f core conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext conftest.$ac_ext
12907 LIBS=$ac_check_lib_save_LIBS
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12910 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12911 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12912 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12933 if test no = "$lt_cv_dlopen"; then
12939 case $lt_cv_dlopen in
12941 save_CPPFLAGS=$CPPFLAGS
12942 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12944 save_LDFLAGS=$LDFLAGS
12945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12948 LIBS="$lt_cv_dlopen_libs $LIBS"
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12951 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12952 if ${lt_cv_dlopen_self+:} false; then :
12953 $as_echo_n "(cached) " >&6
12955 if test yes = "$cross_compiling"; then :
12956 lt_cv_dlopen_self=cross
12958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12959 lt_status=$lt_dlunknown
12960 cat > conftest.$ac_ext <<_LT_EOF
12961 #line $LINENO "configure"
12962 #include "confdefs.h"
12971 # define LT_DLGLOBAL RTLD_GLOBAL
12974 # define LT_DLGLOBAL DL_GLOBAL
12976 # define LT_DLGLOBAL 0
12980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12981 find out it does not work in some platform. */
12982 #ifndef LT_DLLAZY_OR_NOW
12984 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12987 # define LT_DLLAZY_OR_NOW DL_LAZY
12990 # define LT_DLLAZY_OR_NOW RTLD_NOW
12993 # define LT_DLLAZY_OR_NOW DL_NOW
12995 # define LT_DLLAZY_OR_NOW 0
13002 /* When -fvisibility=hidden is used, assume the code has been annotated
13003 correspondingly for the symbols needed. */
13004 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13005 int fnord () __attribute__((visibility("default")));
13008 int fnord () { return 42; }
13011 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13012 int status = $lt_dlunknown;
13016 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13019 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13020 else puts (dlerror ());
13022 /* dlclose (self); */
13030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13031 (eval $ac_link) 2>&5
13033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13034 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13035 (./conftest; exit; ) >&5 2>/dev/null
13037 case x$lt_status in
13038 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13039 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13040 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13043 # compilation failed
13044 lt_cv_dlopen_self=no
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13052 $as_echo "$lt_cv_dlopen_self" >&6; }
13054 if test yes = "$lt_cv_dlopen_self"; then
13055 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13057 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13058 if ${lt_cv_dlopen_self_static+:} false; then :
13059 $as_echo_n "(cached) " >&6
13061 if test yes = "$cross_compiling"; then :
13062 lt_cv_dlopen_self_static=cross
13064 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13065 lt_status=$lt_dlunknown
13066 cat > conftest.$ac_ext <<_LT_EOF
13067 #line $LINENO "configure"
13068 #include "confdefs.h"
13077 # define LT_DLGLOBAL RTLD_GLOBAL
13080 # define LT_DLGLOBAL DL_GLOBAL
13082 # define LT_DLGLOBAL 0
13086 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13087 find out it does not work in some platform. */
13088 #ifndef LT_DLLAZY_OR_NOW
13090 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13093 # define LT_DLLAZY_OR_NOW DL_LAZY
13096 # define LT_DLLAZY_OR_NOW RTLD_NOW
13099 # define LT_DLLAZY_OR_NOW DL_NOW
13101 # define LT_DLLAZY_OR_NOW 0
13108 /* When -fvisibility=hidden is used, assume the code has been annotated
13109 correspondingly for the symbols needed. */
13110 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13111 int fnord () __attribute__((visibility("default")));
13114 int fnord () { return 42; }
13117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13118 int status = $lt_dlunknown;
13122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13125 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13126 else puts (dlerror ());
13128 /* dlclose (self); */
13136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13137 (eval $ac_link) 2>&5
13139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13140 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13141 (./conftest; exit; ) >&5 2>/dev/null
13143 case x$lt_status in
13144 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13145 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13146 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13149 # compilation failed
13150 lt_cv_dlopen_self_static=no
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13158 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13161 CPPFLAGS=$save_CPPFLAGS
13162 LDFLAGS=$save_LDFLAGS
13167 case $lt_cv_dlopen_self in
13168 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13169 *) enable_dlopen_self=unknown ;;
13172 case $lt_cv_dlopen_self_static in
13173 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13174 *) enable_dlopen_self_static=unknown ;;
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13197 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13198 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13199 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13200 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13202 $as_echo "yes" >&6; }
13204 # FIXME - insert some real tests, host_os isn't really good enough
13207 if test -n "$STRIP"; then
13208 striplib="$STRIP -x"
13209 old_striplib="$STRIP -S"
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13211 $as_echo "yes" >&6; }
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13235 # Report what library types will actually be built
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13237 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13239 $as_echo "$can_build_shared" >&6; }
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13242 $as_echo_n "checking whether to build shared libraries... " >&6; }
13243 test no = "$can_build_shared" && enable_shared=no
13245 # On AIX, shared libraries and static libraries use the same namespace, and
13246 # are all built from PIC.
13249 test yes = "$enable_shared" && enable_static=no
13250 if test -n "$RANLIB"; then
13251 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13252 postinstall_cmds='$RANLIB $lib'
13257 if test ia64 != "$host_cpu"; then
13258 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13259 yes,aix,yes) ;; # shared object as lib.so file only
13260 yes,svr4,*) ;; # shared object as lib.so archive member only
13261 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13267 $as_echo "$enable_shared" >&6; }
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13270 $as_echo_n "checking whether to build static libraries... " >&6; }
13271 # Make sure either enable_shared or enable_static is yes.
13272 test yes = "$enable_shared" || enable_static=yes
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13274 $as_echo "$enable_static" >&6; }
13281 ac_cpp='$CPP $CPPFLAGS'
13282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13288 if test -n "$CXX" && ( test no != "$CXX" &&
13289 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13290 (test g++ != "$CXX"))); then
13292 ac_cpp='$CXXCPP $CPPFLAGS'
13293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13297 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13298 if test -z "$CXXCPP"; then
13299 if ${ac_cv_prog_CXXCPP+:} false; then :
13300 $as_echo_n "(cached) " >&6
13302 # Double quotes because CXXCPP needs to be expanded
13303 for CXXCPP in "$CXX -E" "/lib/cpp"
13305 ac_preproc_ok=false
13306 for ac_cxx_preproc_warn_flag in '' yes
13308 # Use a header file that comes with gcc, so configuring glibc
13309 # with a fresh cross-compiler works.
13310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13311 # <limits.h> exists even on freestanding compilers.
13312 # On the NeXT, cc -E runs the code through the compiler's parser,
13313 # not just through cpp. "Syntax error" is here to catch this case.
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13317 # include <limits.h>
13319 # include <assert.h>
13323 if ac_fn_cxx_try_cpp "$LINENO"; then :
13326 # Broken: fails on valid input.
13329 rm -f conftest.err conftest.i conftest.$ac_ext
13331 # OK, works on sane cases. Now check whether nonexistent headers
13332 # can be detected and how.
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335 #include <ac_nonexistent.h>
13337 if ac_fn_cxx_try_cpp "$LINENO"; then :
13338 # Broken: success on invalid input.
13341 # Passes both tests.
13345 rm -f conftest.err conftest.i conftest.$ac_ext
13348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13349 rm -f conftest.i conftest.err conftest.$ac_ext
13350 if $ac_preproc_ok; then :
13355 ac_cv_prog_CXXCPP=$CXXCPP
13358 CXXCPP=$ac_cv_prog_CXXCPP
13360 ac_cv_prog_CXXCPP=$CXXCPP
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13363 $as_echo "$CXXCPP" >&6; }
13364 ac_preproc_ok=false
13365 for ac_cxx_preproc_warn_flag in '' yes
13367 # Use a header file that comes with gcc, so configuring glibc
13368 # with a fresh cross-compiler works.
13369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13370 # <limits.h> exists even on freestanding compilers.
13371 # On the NeXT, cc -E runs the code through the compiler's parser,
13372 # not just through cpp. "Syntax error" is here to catch this case.
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13376 # include <limits.h>
13378 # include <assert.h>
13382 if ac_fn_cxx_try_cpp "$LINENO"; then :
13385 # Broken: fails on valid input.
13388 rm -f conftest.err conftest.i conftest.$ac_ext
13390 # OK, works on sane cases. Now check whether nonexistent headers
13391 # can be detected and how.
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 #include <ac_nonexistent.h>
13396 if ac_fn_cxx_try_cpp "$LINENO"; then :
13397 # Broken: success on invalid input.
13400 # Passes both tests.
13404 rm -f conftest.err conftest.i conftest.$ac_ext
13407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13408 rm -f conftest.i conftest.err conftest.$ac_ext
13409 if $ac_preproc_ok; then :
13412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13414 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13415 See \`config.log' for more details" "$LINENO" 5; }
13419 ac_cpp='$CPP $CPPFLAGS'
13420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13425 _lt_caught_CXX_error=yes
13429 ac_cpp='$CXXCPP $CPPFLAGS'
13430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13434 archive_cmds_need_lc_CXX=no
13435 allow_undefined_flag_CXX=
13436 always_export_symbols_CXX=no
13437 archive_expsym_cmds_CXX=
13438 compiler_needs_object_CXX=no
13439 export_dynamic_flag_spec_CXX=
13440 hardcode_direct_CXX=no
13441 hardcode_direct_absolute_CXX=no
13442 hardcode_libdir_flag_spec_CXX=
13443 hardcode_libdir_separator_CXX=
13444 hardcode_minus_L_CXX=no
13445 hardcode_shlibpath_var_CXX=unsupported
13446 hardcode_automatic_CXX=no
13447 inherit_rpath_CXX=no
13449 module_expsym_cmds_CXX=
13450 link_all_deplibs_CXX=unknown
13451 old_archive_cmds_CXX=$old_archive_cmds
13452 reload_flag_CXX=$reload_flag
13453 reload_cmds_CXX=$reload_cmds
13454 no_undefined_flag_CXX=
13455 whole_archive_flag_spec_CXX=
13456 enable_shared_with_static_runtimes_CXX=no
13458 # Source file extension for C++ test sources.
13461 # Object file extension for compiled C++ test sources.
13465 # No sense in running all these tests if we already determined that
13466 # the CXX compiler isn't working. Some variables (like enable_shared)
13467 # are currently assumed to apply to all compilers on this platform,
13468 # and will be corrupted by setting them based on a non-working compiler.
13469 if test yes != "$_lt_caught_CXX_error"; then
13470 # Code to be used in simple compile tests
13471 lt_simple_compile_test_code="int some_variable = 0;"
13473 # Code to be used in simple link tests
13474 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13483 # If no C compiler was specified, use CC.
13486 # If no C compiler flags were specified, use CFLAGS.
13487 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13489 # Allow CC to be a program name with arguments.
13493 # save warnings/boilerplate of simple test code
13494 ac_outfile=conftest.$ac_objext
13495 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13496 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13497 _lt_compiler_boilerplate=`cat conftest.err`
13500 ac_outfile=conftest.$ac_objext
13501 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13502 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13503 _lt_linker_boilerplate=`cat conftest.err`
13507 # Allow CC to be a program name with arguments.
13509 lt_save_CFLAGS=$CFLAGS
13513 lt_save_with_gnu_ld=$with_gnu_ld
13514 lt_save_path_LD=$lt_cv_path_LD
13515 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13516 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13518 $as_unset lt_cv_prog_gnu_ld
13520 if test -n "${lt_cv_path_LDCXX+set}"; then
13521 lt_cv_path_LD=$lt_cv_path_LDCXX
13523 $as_unset lt_cv_path_LD
13525 test -z "${LDCXX+set}" || LD=$LDCXX
13530 func_cc_basename $compiler
13531 cc_basename=$func_cc_basename_result
13534 if test -n "$compiler"; then
13535 # We don't want -fno-exception when compiling C++ code, so set the
13536 # no_builtin_flag separately
13537 if test yes = "$GXX"; then
13538 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13540 lt_prog_compiler_no_builtin_flag_CXX=
13543 if test yes = "$GXX"; then
13544 # Set up default GNU C++ configuration
13548 # Check whether --with-gnu-ld was given.
13549 if test "${with_gnu_ld+set}" = set; then :
13550 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13556 if test yes = "$GCC"; then
13557 # Check if gcc -print-prog-name=ld gives a path.
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13559 $as_echo_n "checking for ld used by $CC... " >&6; }
13562 # gcc leaves a trailing carriage return, which upsets mingw
13563 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13565 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13568 # Accept absolute paths.
13570 re_direlt='/[^/][^/]*/\.\./'
13571 # Canonicalize the pathname of ld
13572 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13573 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13574 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13576 test -z "$LD" && LD=$ac_prog
13579 # If it fails, then pretend we aren't using GCC.
13583 # If it is relative, then search for the first ld in PATH.
13584 with_gnu_ld=unknown
13587 elif test yes = "$with_gnu_ld"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13589 $as_echo_n "checking for GNU ld... " >&6; }
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13592 $as_echo_n "checking for non-GNU ld... " >&6; }
13594 if ${lt_cv_path_LD+:} false; then :
13595 $as_echo_n "(cached) " >&6
13597 if test -z "$LD"; then
13598 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13599 for ac_dir in $PATH; do
13601 test -z "$ac_dir" && ac_dir=.
13602 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13603 lt_cv_path_LD=$ac_dir/$ac_prog
13604 # Check to see if the program is GNU ld. I'd rather use --version,
13605 # but apparently some variants of GNU ld only accept -v.
13606 # Break only if it was the GNU/non-GNU ld that we prefer.
13607 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13608 *GNU* | *'with BFD'*)
13609 test no != "$with_gnu_ld" && break
13612 test yes != "$with_gnu_ld" && break
13619 lt_cv_path_LD=$LD # Let the user override the test with a path.
13624 if test -n "$LD"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13626 $as_echo "$LD" >&6; }
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13631 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13633 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13634 if ${lt_cv_prog_gnu_ld+:} false; then :
13635 $as_echo_n "(cached) " >&6
13637 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13638 case `$LD -v 2>&1 </dev/null` in
13639 *GNU* | *'with BFD'*)
13640 lt_cv_prog_gnu_ld=yes
13643 lt_cv_prog_gnu_ld=no
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13648 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13649 with_gnu_ld=$lt_cv_prog_gnu_ld
13657 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13658 # archiving commands below assume that GNU ld is being used.
13659 if test yes = "$with_gnu_ld"; then
13660 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13661 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'
13663 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13664 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13666 # If archive_cmds runs LD, not CC, wlarc should be empty
13667 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13668 # investigate it a little bit more. (MM)
13671 # ancient GNU ld didn't support --whole-archive et. al.
13672 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13673 $GREP 'no-whole-archive' > /dev/null; then
13674 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13676 whole_archive_flag_spec_CXX=
13682 # A generic and very simple default shared library creation
13683 # command for GNU C++ for the case where it uses the native
13684 # linker, instead of GNU ld. If possible, this setting should
13685 # overridden to take advantage of the native linker features on
13686 # the platform it is being used on.
13687 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13690 # Commands to make compiler produce verbose output that lists
13691 # what "hidden" libraries, object files and flags are used when
13692 # linking a shared library.
13693 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13701 # PORTME: fill in a description of your system's C++ link characteristics
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13703 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13707 # FIXME: insert proper C++ library support
13711 if test ia64 = "$host_cpu"; then
13712 # On IA64, the linker does run time linking by default, so we don't
13713 # have to do anything special.
13714 aix_use_runtimelinking=no
13715 exp_sym_flag='-Bexport'
13718 aix_use_runtimelinking=no
13720 # Test if we are trying to use run time linking or normal
13721 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13722 # have runtime linking enabled, and use it for executables.
13723 # For shared libraries, we enable/disable runtime linking
13724 # depending on the kind of the shared library created -
13725 # when "with_aix_soname,aix_use_runtimelinking" is:
13726 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13727 # "aix,yes" lib.so shared, rtl:yes, for executables
13728 # lib.a static archive
13729 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13730 # lib.a(lib.so.V) shared, rtl:no, for executables
13731 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13732 # lib.a(lib.so.V) shared, rtl:no
13733 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13734 # lib.a static archive
13735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13736 for ld_flag in $LDFLAGS; do
13739 aix_use_runtimelinking=yes
13744 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13745 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13746 # so we don't have lib.a shared libs to link our executables.
13747 # We have to force runtime linking in this case.
13748 aix_use_runtimelinking=yes
13749 LDFLAGS="$LDFLAGS -Wl,-brtl"
13754 exp_sym_flag='-bexport'
13755 no_entry_flag='-bnoentry'
13758 # When large executables or shared objects are built, AIX ld can
13759 # have problems creating the table of contents. If linking a library
13760 # or program results in "error TOC overflow" add -mminimal-toc to
13761 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13762 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13764 archive_cmds_CXX=''
13765 hardcode_direct_CXX=yes
13766 hardcode_direct_absolute_CXX=yes
13767 hardcode_libdir_separator_CXX=':'
13768 link_all_deplibs_CXX=yes
13769 file_list_spec_CXX='$wl-f,'
13770 case $with_aix_soname,$aix_use_runtimelinking in
13771 aix,*) ;; # no import file
13772 svr4,* | *,yes) # use import file
13773 # The Import File defines what to hardcode.
13774 hardcode_direct_CXX=no
13775 hardcode_direct_absolute_CXX=no
13779 if test yes = "$GXX"; then
13780 case $host_os in aix4.[012]|aix4.[012].*)
13781 # We only want to do this on AIX 4.2 and lower, the check
13782 # below for broken collect2 doesn't work under 4.3+
13783 collect2name=`$CC -print-prog-name=collect2`
13784 if test -f "$collect2name" &&
13785 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13787 # We have reworked collect2
13790 # We have old collect2
13791 hardcode_direct_CXX=unsupported
13792 # It fails to find uninstalled libraries when the uninstalled
13793 # path is not listed in the libpath. Setting hardcode_minus_L
13794 # to unsupported forces relinking
13795 hardcode_minus_L_CXX=yes
13796 hardcode_libdir_flag_spec_CXX='-L$libdir'
13797 hardcode_libdir_separator_CXX=
13800 shared_flag='-shared'
13801 if test yes = "$aix_use_runtimelinking"; then
13802 shared_flag=$shared_flag' $wl-G'
13804 # Need to ensure runtime linking is disabled for the traditional
13805 # shared library, or the linker may eventually find shared libraries
13806 # /with/ Import File - we do not want to mix them.
13807 shared_flag_aix='-shared'
13808 shared_flag_svr4='-shared $wl-G'
13811 if test ia64 = "$host_cpu"; then
13812 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13813 # chokes on -Wl,-G. The following line is correct:
13816 if test yes = "$aix_use_runtimelinking"; then
13817 shared_flag='$wl-G'
13819 shared_flag='$wl-bM:SRE'
13821 shared_flag_aix='$wl-bM:SRE'
13822 shared_flag_svr4='$wl-G'
13826 export_dynamic_flag_spec_CXX='$wl-bexpall'
13827 # It seems that -bexpall does not export symbols beginning with
13828 # underscore (_), so it is better to generate a list of symbols to
13830 always_export_symbols_CXX=yes
13831 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13832 # Warning - without using the other runtime loading flags (-brtl),
13833 # -berok will link without error, but may produce a broken library.
13834 # The "-G" linker flag allows undefined symbols.
13835 no_undefined_flag_CXX='-bernotok'
13836 # Determine the default libpath from the value encoded in an empty
13838 if test set = "${lt_cv_aix_libpath+set}"; then
13839 aix_libpath=$lt_cv_aix_libpath
13841 if ${lt_cv_aix_libpath__CXX+:} false; then :
13842 $as_echo_n "(cached) " >&6
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13855 if ac_fn_cxx_try_link "$LINENO"; then :
13857 lt_aix_libpath_sed='
13858 /Import File Strings/,/^$/ {
13860 s/^0 *\([^ ]*\) *$/\1/
13864 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13865 # Check for a 64-bit object if we didn't find anything.
13866 if test -z "$lt_cv_aix_libpath__CXX"; then
13867 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13870 rm -f core conftest.err conftest.$ac_objext \
13871 conftest$ac_exeext conftest.$ac_ext
13872 if test -z "$lt_cv_aix_libpath__CXX"; then
13873 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13878 aix_libpath=$lt_cv_aix_libpath__CXX
13881 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13883 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13885 if test ia64 = "$host_cpu"; then
13886 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13887 allow_undefined_flag_CXX="-z nodefs"
13888 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"
13890 # Determine the default libpath from the value encoded in an
13891 # empty executable.
13892 if test set = "${lt_cv_aix_libpath+set}"; then
13893 aix_libpath=$lt_cv_aix_libpath
13895 if ${lt_cv_aix_libpath__CXX+:} false; then :
13896 $as_echo_n "(cached) " >&6
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13909 if ac_fn_cxx_try_link "$LINENO"; then :
13911 lt_aix_libpath_sed='
13912 /Import File Strings/,/^$/ {
13914 s/^0 *\([^ ]*\) *$/\1/
13918 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13919 # Check for a 64-bit object if we didn't find anything.
13920 if test -z "$lt_cv_aix_libpath__CXX"; then
13921 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13924 rm -f core conftest.err conftest.$ac_objext \
13925 conftest$ac_exeext conftest.$ac_ext
13926 if test -z "$lt_cv_aix_libpath__CXX"; then
13927 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13932 aix_libpath=$lt_cv_aix_libpath__CXX
13935 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13936 # Warning - without using the other run time loading flags,
13937 # -berok will link without error, but may produce a broken library.
13938 no_undefined_flag_CXX=' $wl-bernotok'
13939 allow_undefined_flag_CXX=' $wl-berok'
13940 if test yes = "$with_gnu_ld"; then
13941 # We only use this code for GNU lds that support --whole-archive.
13942 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13944 # Exported symbols can be pulled into shared objects from archives
13945 whole_archive_flag_spec_CXX='$convenience'
13947 archive_cmds_need_lc_CXX=yes
13948 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13949 # -brtl affects multiple linker settings, -berok does not and is overridden later
13950 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13951 if test svr4 != "$with_aix_soname"; then
13952 # This is similar to how AIX traditionally builds its shared
13953 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13954 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13956 if test aix != "$with_aix_soname"; then
13957 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13959 # used by -dlpreopen to get the symbols
13960 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13962 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13969 allow_undefined_flag_CXX=unsupported
13970 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13971 # support --undefined. This deserves some investigation. FIXME
13972 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13979 case $cc_basename in
13981 # FIXME: insert proper C++ library support
13987 cygwin* | mingw* | pw32* | cegcc*)
13988 case $GXX,$cc_basename in
13991 # hardcode_libdir_flag_spec is actually meaningless, as there is
13992 # no search path for DLLs.
13993 hardcode_libdir_flag_spec_CXX=' '
13994 allow_undefined_flag_CXX=unsupported
13995 always_export_symbols_CXX=yes
13996 file_list_spec_CXX='@'
13997 # Tell ltmain to make .lib files, not .a files.
13999 # Tell ltmain to make .dll files, not .so files.
14001 # FIXME: Setting linknames here is a bad hack.
14002 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14003 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14004 cp "$export_symbols" "$output_objdir/$soname.def";
14005 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14007 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14009 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14011 # The linker will not automatically build a static lib if we build a DLL.
14012 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14013 enable_shared_with_static_runtimes_CXX=yes
14015 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14016 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14017 lt_tool_outputfile="@TOOL_OUTPUT@"~
14018 case $lt_outputfile in
14021 lt_outputfile=$lt_outputfile.exe
14022 lt_tool_outputfile=$lt_tool_outputfile.exe
14025 func_to_tool_file "$lt_outputfile"~
14026 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14027 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14028 $RM "$lt_outputfile.manifest";
14033 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14034 # as there is no search path for DLLs.
14035 hardcode_libdir_flag_spec_CXX='-L$libdir'
14036 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14037 allow_undefined_flag_CXX=unsupported
14038 always_export_symbols_CXX=no
14039 enable_shared_with_static_runtimes_CXX=yes
14041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14042 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'
14043 # If the export-symbols file already is a .def file, use it as
14044 # is; otherwise, prepend EXPORTS...
14045 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14046 cp $export_symbols $output_objdir/$soname.def;
14048 echo EXPORTS > $output_objdir/$soname.def;
14049 cat $export_symbols >> $output_objdir/$soname.def;
14051 $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'
14058 darwin* | rhapsody*)
14061 archive_cmds_need_lc_CXX=no
14062 hardcode_direct_CXX=no
14063 hardcode_automatic_CXX=yes
14064 hardcode_shlibpath_var_CXX=unsupported
14065 if test yes = "$lt_cv_ld_force_load"; then
14066 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\"`'
14069 whole_archive_flag_spec_CXX=''
14071 link_all_deplibs_CXX=yes
14072 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14073 case $cc_basename in
14074 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14075 *) _lt_dar_can_shared=$GCC ;;
14077 if test yes = "$_lt_dar_can_shared"; then
14078 output_verbose_link_cmd=func_echo_all
14079 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"
14080 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14081 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"
14082 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"
14083 if test yes != "$lt_cv_apple_cc_single_mod"; then
14084 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"
14085 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"
14095 hardcode_libdir_flag_spec_CXX='-L$libdir'
14096 hardcode_minus_L_CXX=yes
14097 allow_undefined_flag_CXX=unsupported
14099 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14100 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14101 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14102 $ECHO EXPORTS >> $output_objdir/$libname.def~
14103 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14104 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14105 emximp -o $lib $output_objdir/$libname.def'
14106 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14107 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14108 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14109 $ECHO EXPORTS >> $output_objdir/$libname.def~
14110 prefix_cmds="$SED"~
14111 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14112 prefix_cmds="$prefix_cmds -e 1d";
14114 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14115 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14116 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14117 emximp -o $lib $output_objdir/$libname.def'
14118 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14119 enable_shared_with_static_runtimes_CXX=yes
14123 case $cc_basename in
14125 # FIXME: insert proper C++ library support
14129 # Green Hills C++ Compiler
14130 # FIXME: insert proper C++ library support
14134 # FIXME: insert proper C++ library support
14141 # C++ shared libraries reported to be fairly broken before
14147 archive_cmds_need_lc_CXX=no
14150 freebsd* | dragonfly*)
14151 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14157 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14158 link_all_deplibs_CXX=yes
14162 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14163 hardcode_libdir_separator_CXX=:
14164 export_dynamic_flag_spec_CXX='$wl-E'
14165 hardcode_direct_CXX=yes
14166 hardcode_minus_L_CXX=yes # Not in the search PATH,
14167 # but as the default
14168 # location of the library.
14170 case $cc_basename in
14172 # FIXME: insert proper C++ library support
14176 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14177 # Commands to make compiler produce verbose output that lists
14178 # what "hidden" libraries, object files and flags are used when
14179 # linking a shared library.
14181 # There doesn't appear to be a way to prevent this compiler from
14182 # explicitly linking system object files so we need to strip them
14183 # from the output so that they don't get included in the library
14185 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"'
14188 if test yes = "$GXX"; then
14189 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14191 # FIXME: insert proper C++ library support
14199 if test no = "$with_gnu_ld"; then
14200 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14201 hardcode_libdir_separator_CXX=:
14207 export_dynamic_flag_spec_CXX='$wl-E'
14213 hardcode_direct_CXX=no
14214 hardcode_shlibpath_var_CXX=no
14217 hardcode_direct_CXX=yes
14218 hardcode_direct_absolute_CXX=yes
14219 hardcode_minus_L_CXX=yes # Not in the search PATH,
14220 # but as the default
14221 # location of the library.
14225 case $cc_basename in
14227 # FIXME: insert proper C++ library support
14233 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14236 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14239 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14242 # Commands to make compiler produce verbose output that lists
14243 # what "hidden" libraries, object files and flags are used when
14244 # linking a shared library.
14246 # There doesn't appear to be a way to prevent this compiler from
14247 # explicitly linking system object files so we need to strip them
14248 # from the output so that they don't get included in the library
14250 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"'
14253 if test yes = "$GXX"; then
14254 if test no = "$with_gnu_ld"; then
14257 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14260 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14263 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'
14268 # FIXME: insert proper C++ library support
14276 hardcode_direct_CXX=no
14277 hardcode_shlibpath_var_CXX=no
14278 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14279 export_dynamic_flag_spec_CXX='$wl-E'
14280 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14281 # Instead, shared libraries are loaded at an image base (0x10000000 by
14282 # default) and relocated if they conflict, which is a slow very memory
14283 # consuming and fragmenting process. To avoid this, we pick a random,
14284 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14285 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14286 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'
14287 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'
14290 case $cc_basename in
14293 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'
14295 # Archives containing C++ object files must be created using
14296 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14297 # necessary to make sure instantiated templates are included
14299 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14302 if test yes = "$GXX"; then
14303 if test no = "$with_gnu_ld"; then
14304 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'
14306 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'
14309 link_all_deplibs_CXX=yes
14312 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14313 hardcode_libdir_separator_CXX=:
14314 inherit_rpath_CXX=yes
14317 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14318 case $cc_basename in
14320 # Kuck and Associates, Inc. (KAI) C++ Compiler
14322 # KCC will only create a shared library if the output file
14323 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14324 # to its proper name (with version) after linking.
14325 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'
14326 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'
14327 # Commands to make compiler produce verbose output that lists
14328 # what "hidden" libraries, object files and flags are used when
14329 # linking a shared library.
14331 # There doesn't appear to be a way to prevent this compiler from
14332 # explicitly linking system object files so we need to strip them
14333 # from the output so that they don't get included in the library
14335 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"'
14337 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14338 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14340 # Archives containing C++ object files must be created using
14341 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14342 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14347 # version 8.0 and above of icpc choke on multiply defined symbols
14348 # if we add $predep_objects and $postdep_objects, however 7.1 and
14349 # earlier do not add the objects themselves.
14350 case `$CC -V 2>&1` in
14352 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14353 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'
14355 *) # Version 8.0 or newer
14358 ia64*) tmp_idyn=' -i_dynamic';;
14360 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14361 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'
14364 archive_cmds_need_lc_CXX=no
14365 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14366 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14367 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14370 # Portland Group C++ compiler
14372 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14373 prelink_cmds_CXX='tpldir=Template.dir~
14375 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14376 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14377 old_archive_cmds_CXX='tpldir=Template.dir~
14379 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14380 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14382 archive_cmds_CXX='tpldir=Template.dir~
14384 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14385 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14386 archive_expsym_cmds_CXX='tpldir=Template.dir~
14388 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14389 $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'
14391 *) # Version 6 and above use weak symbols
14392 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14393 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'
14397 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14398 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14399 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'
14403 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14404 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'
14406 runpath_var=LD_RUN_PATH
14407 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14408 hardcode_libdir_separator_CXX=:
14410 # Commands to make compiler produce verbose output that lists
14411 # what "hidden" libraries, object files and flags are used when
14412 # linking a shared library.
14414 # There doesn't appear to be a way to prevent this compiler from
14415 # explicitly linking system object files so we need to strip them
14416 # from the output so that they don't get included in the library
14418 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'
14420 xl* | mpixl* | bgxl*)
14421 # IBM XL 8.0 on PPC, with GNU ld
14422 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14423 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14424 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14425 if test yes = "$supports_anon_versioning"; then
14426 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14427 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14428 echo "local: *; };" >> $output_objdir/$libname.ver~
14429 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14433 case `$CC -V 2>&1 | sed 5q` in
14436 no_undefined_flag_CXX=' -zdefs'
14437 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14438 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'
14439 hardcode_libdir_flag_spec_CXX='-R$libdir'
14440 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'
14441 compiler_needs_object_CXX=yes
14443 # Not sure whether something based on
14444 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14446 output_verbose_link_cmd='func_echo_all'
14448 # Archives containing C++ object files must be created using
14449 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14450 # necessary to make sure instantiated templates are included
14452 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14460 # FIXME: insert proper C++ library support
14465 # FIXME: insert proper C++ library support
14470 case $cc_basename in
14472 # FIXME: insert proper C++ library support
14476 # FIXME: insert proper C++ library support
14483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14484 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14486 hardcode_libdir_flag_spec_CXX='-R$libdir'
14487 hardcode_direct_CXX=yes
14488 hardcode_shlibpath_var_CXX=no
14490 # Workaround some broken pre-1.5 toolchains
14491 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14498 openbsd* | bitrig*)
14499 if test -f /usr/libexec/ld.so; then
14500 hardcode_direct_CXX=yes
14501 hardcode_shlibpath_var_CXX=no
14502 hardcode_direct_absolute_CXX=yes
14503 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14504 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14505 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14506 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14507 export_dynamic_flag_spec_CXX='$wl-E'
14508 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14510 output_verbose_link_cmd=func_echo_all
14516 osf3* | osf4* | osf5*)
14517 case $cc_basename in
14519 # Kuck and Associates, Inc. (KAI) C++ Compiler
14521 # KCC will only create a shared library if the output file
14522 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14523 # to its proper name (with version) after linking.
14524 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'
14526 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14527 hardcode_libdir_separator_CXX=:
14529 # Archives containing C++ object files must be created using
14530 # the KAI C++ compiler.
14532 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14533 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14537 # Rational C++ 2.4.1
14538 # FIXME: insert proper C++ library support
14544 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14545 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'
14546 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14549 allow_undefined_flag_CXX=' -expect_unresolved \*'
14550 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'
14551 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14552 echo "-hidden">> $lib.exp~
14553 $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~
14555 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14559 hardcode_libdir_separator_CXX=:
14561 # Commands to make compiler produce verbose output that lists
14562 # what "hidden" libraries, object files and flags are used when
14563 # linking a shared library.
14565 # There doesn't appear to be a way to prevent this compiler from
14566 # explicitly linking system object files so we need to strip them
14567 # from the output so that they don't get included in the library
14569 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"'
14572 if test yes,no = "$GXX,$with_gnu_ld"; then
14573 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14576 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'
14579 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'
14583 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14584 hardcode_libdir_separator_CXX=:
14586 # Commands to make compiler produce verbose output that lists
14587 # what "hidden" libraries, object files and flags are used when
14588 # linking a shared library.
14589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14592 # FIXME: insert proper C++ library support
14600 # FIXME: insert proper C++ library support
14605 case $cc_basename in
14608 # FIXME: insert proper C++ library support
14613 # FIXME: insert proper C++ library support
14617 # FIXME: insert proper C++ library support
14624 case $cc_basename in
14626 # Sun C++ 4.2, 5.x and Centerline C++
14627 archive_cmds_need_lc_CXX=yes
14628 no_undefined_flag_CXX=' -zdefs'
14629 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14630 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14631 $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'
14633 hardcode_libdir_flag_spec_CXX='-R$libdir'
14634 hardcode_shlibpath_var_CXX=no
14636 solaris2.[0-5] | solaris2.[0-5].*) ;;
14638 # The compiler driver will combine and reorder linker options,
14639 # but understands '-z linker_flag'.
14640 # Supported since Solaris 2.6 (maybe 2.5.1?)
14641 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14644 link_all_deplibs_CXX=yes
14646 output_verbose_link_cmd='func_echo_all'
14648 # Archives containing C++ object files must be created using
14649 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14650 # necessary to make sure instantiated templates are included
14652 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14655 # Green Hills C++ Compiler
14656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14658 # The C++ compiler must be used to create the archive.
14659 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14662 # GNU C++ compiler with Solaris linker
14663 if test yes,no = "$GXX,$with_gnu_ld"; then
14664 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14665 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14666 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14667 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14668 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14670 # Commands to make compiler produce verbose output that lists
14671 # what "hidden" libraries, object files and flags are used when
14672 # linking a shared library.
14673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14675 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14677 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14678 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14679 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14681 # Commands to make compiler produce verbose output that lists
14682 # what "hidden" libraries, object files and flags are used when
14683 # linking a shared library.
14684 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14687 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14689 solaris2.[0-5] | solaris2.[0-5].*) ;;
14691 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14699 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14700 no_undefined_flag_CXX='$wl-z,text'
14701 archive_cmds_need_lc_CXX=no
14702 hardcode_shlibpath_var_CXX=no
14703 runpath_var='LD_RUN_PATH'
14705 case $cc_basename in
14707 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14708 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14711 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14717 sysv5* | sco3.2v5* | sco5v6*)
14718 # Note: We CANNOT use -z defs as we might desire, because we do not
14719 # link with -lc, and that would cause any symbols used from libc to
14720 # always be unresolved, which means just about no library would
14721 # ever link correctly. If we're not using GNU ld we use -z text
14722 # though, which does catch some bad symbols but isn't as heavy-handed
14724 no_undefined_flag_CXX='$wl-z,text'
14725 allow_undefined_flag_CXX='$wl-z,nodefs'
14726 archive_cmds_need_lc_CXX=no
14727 hardcode_shlibpath_var_CXX=no
14728 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14729 hardcode_libdir_separator_CXX=':'
14730 link_all_deplibs_CXX=yes
14731 export_dynamic_flag_spec_CXX='$wl-Bexport'
14732 runpath_var='LD_RUN_PATH'
14734 case $cc_basename in
14736 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14737 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14738 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14739 '"$old_archive_cmds_CXX"
14740 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14741 '"$reload_cmds_CXX"
14744 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14745 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14751 case $cc_basename in
14753 # NonStop-UX NCC 3.20
14754 # FIXME: insert proper C++ library support
14758 # FIXME: insert proper C++ library support
14765 # FIXME: insert proper C++ library support
14770 # FIXME: insert proper C++ library support
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14776 $as_echo "$ld_shlibs_CXX" >&6; }
14777 test no = "$ld_shlibs_CXX" && can_build_shared=no
14783 ## There is no encapsulation within the following macros, do not change
14784 ## the running order or otherwise move them around unless you know exactly
14785 ## what you are doing...
14786 # Dependencies to place before and after the object being linked:
14787 predep_objects_CXX=
14788 postdep_objects_CXX=
14791 compiler_lib_search_path_CXX=
14793 cat > conftest.$ac_ext <<_LT_EOF
14797 Foo (void) { a = 0; }
14804 _lt_libdeps_save_CFLAGS=$CFLAGS
14805 case "$CC $CFLAGS " in #(
14806 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14807 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14808 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14812 (eval $ac_compile) 2>&5
14814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14815 test $ac_status = 0; }; then
14816 # Parse the compiler output and extract the necessary
14817 # objects, libraries and library flags.
14819 # Sentinel used to keep track of whether or not we are before
14820 # the conftest object file.
14821 pre_test_object_deps_done=no
14823 for p in `eval "$output_verbose_link_cmd"`; do
14827 # Some compilers place space between "-{L,R}" and the path.
14828 # Remove the space.
14829 if test x-L = "$p" ||
14830 test x-R = "$p"; then
14835 # Expand the sysroot to ease extracting the directories later.
14836 if test -z "$prev"; then
14838 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14839 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14840 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14844 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14846 if test no = "$pre_test_object_deps_done"; then
14849 # Internal compiler library paths should come after those
14850 # provided the user. The postdeps already come after the
14851 # user supplied libs so there is no need to process them.
14852 if test -z "$compiler_lib_search_path_CXX"; then
14853 compiler_lib_search_path_CXX=$prev$p
14855 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14858 # The "-l" case would never come before the object being
14859 # linked, so don't bother handling this case.
14862 if test -z "$postdeps_CXX"; then
14863 postdeps_CXX=$prev$p
14865 postdeps_CXX="${postdeps_CXX} $prev$p"
14871 *.lto.$objext) ;; # Ignore GCC LTO objects
14873 # This assumes that the test object file only shows up
14874 # once in the compiler output.
14875 if test "$p" = "conftest.$objext"; then
14876 pre_test_object_deps_done=yes
14880 if test no = "$pre_test_object_deps_done"; then
14881 if test -z "$predep_objects_CXX"; then
14882 predep_objects_CXX=$p
14884 predep_objects_CXX="$predep_objects_CXX $p"
14887 if test -z "$postdep_objects_CXX"; then
14888 postdep_objects_CXX=$p
14890 postdep_objects_CXX="$postdep_objects_CXX $p"
14895 *) ;; # Ignore the rest.
14903 echo "libtool.m4: error: problem compiling CXX test program"
14906 $RM -f confest.$objext
14907 CFLAGS=$_lt_libdeps_save_CFLAGS
14909 # PORTME: override above test on systems where it is broken
14912 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14913 # hack all around it, let's just trust "g++" to DTRT.
14914 predep_objects_CXX=
14915 postdep_objects_CXX=
14921 case " $postdeps_CXX " in
14922 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14924 compiler_lib_search_dirs_CXX=
14925 if test -n "${compiler_lib_search_path_CXX}"; then
14926 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14959 lt_prog_compiler_wl_CXX=
14960 lt_prog_compiler_pic_CXX=
14961 lt_prog_compiler_static_CXX=
14964 # C++ specific cases for pic, static, wl, etc.
14965 if test yes = "$GXX"; then
14966 lt_prog_compiler_wl_CXX='-Wl,'
14967 lt_prog_compiler_static_CXX='-static'
14971 # All AIX code is PIC.
14972 if test ia64 = "$host_cpu"; then
14973 # AIX 5 now supports IA64 processor
14974 lt_prog_compiler_static_CXX='-Bstatic'
14976 lt_prog_compiler_pic_CXX='-fPIC'
14982 # see comment about AmigaOS4 .so support
14983 lt_prog_compiler_pic_CXX='-fPIC'
14986 # FIXME: we need at least 68020 code to build shared libraries, but
14987 # adding the '-m68020' flag to GCC prevents building anything better,
14989 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14994 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14995 # PIC is the default for these OSes.
14997 mingw* | cygwin* | os2* | pw32* | cegcc*)
14998 # This hack is so that the source file can tell whether it is being
14999 # built for inclusion in a dll (and should export symbols for example).
15000 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15001 # (--disable-auto-import) libraries
15002 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15005 lt_prog_compiler_static_CXX='$wl-static'
15009 darwin* | rhapsody*)
15010 # PIC is the default on this platform
15011 # Common symbols not allowed in MH_DYLIB files
15012 lt_prog_compiler_pic_CXX='-fno-common'
15015 # DJGPP does not support shared libraries at all
15016 lt_prog_compiler_pic_CXX=
15019 # PIC is the default for Haiku.
15020 # The "-static" flag exists, but is broken.
15021 lt_prog_compiler_static_CXX=
15024 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15025 # Instead, we relocate shared libraries at runtime.
15028 if test -d /usr/nec; then
15029 lt_prog_compiler_pic_CXX=-Kconform_pic
15033 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15034 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15035 # sets the default TLS model and affects inlining.
15040 lt_prog_compiler_pic_CXX='-fPIC'
15045 # QNX uses GNU C++, but need to define -shared option too, otherwise
15046 # it will coredump.
15047 lt_prog_compiler_pic_CXX='-fPIC -shared'
15050 lt_prog_compiler_pic_CXX='-fPIC'
15056 # All AIX code is PIC.
15057 if test ia64 = "$host_cpu"; then
15058 # AIX 5 now supports IA64 processor
15059 lt_prog_compiler_static_CXX='-Bstatic'
15061 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15065 case $cc_basename in
15067 # Green Hills C++ Compiler
15068 # _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"
15072 mingw* | cygwin* | os2* | pw32* | cegcc*)
15073 # This hack is so that the source file can tell whether it is being
15074 # built for inclusion in a dll (and should export symbols for example).
15075 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15078 case $cc_basename in
15080 lt_prog_compiler_pic_CXX='-KPIC'
15083 # Green Hills C++ Compiler
15084 lt_prog_compiler_pic_CXX='-pic'
15090 freebsd* | dragonfly*)
15091 # FreeBSD uses GNU C++
15093 hpux9* | hpux10* | hpux11*)
15094 case $cc_basename in
15096 lt_prog_compiler_wl_CXX='-Wl,'
15097 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15098 if test ia64 != "$host_cpu"; then
15099 lt_prog_compiler_pic_CXX='+Z'
15103 lt_prog_compiler_wl_CXX='-Wl,'
15104 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15110 lt_prog_compiler_pic_CXX='+Z'
15119 # This is c89, which is MS Visual C++ (no shared libs)
15120 # Anyone wants to do a port?
15122 irix5* | irix6* | nonstopux*)
15123 case $cc_basename in
15125 lt_prog_compiler_wl_CXX='-Wl,'
15126 lt_prog_compiler_static_CXX='-non_shared'
15127 # CC pic flag -KPIC is the default.
15133 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15134 case $cc_basename in
15137 lt_prog_compiler_wl_CXX='--backend -Wl,'
15138 lt_prog_compiler_pic_CXX='-fPIC'
15141 # old Intel C++ for x86_64, which still supported -KPIC.
15142 lt_prog_compiler_wl_CXX='-Wl,'
15143 lt_prog_compiler_pic_CXX='-KPIC'
15144 lt_prog_compiler_static_CXX='-static'
15147 # Intel C++, used to be incompatible with GCC.
15148 # ICC 10 doesn't accept -KPIC any more.
15149 lt_prog_compiler_wl_CXX='-Wl,'
15150 lt_prog_compiler_pic_CXX='-fPIC'
15151 lt_prog_compiler_static_CXX='-static'
15154 # Portland Group C++ compiler
15155 lt_prog_compiler_wl_CXX='-Wl,'
15156 lt_prog_compiler_pic_CXX='-fpic'
15157 lt_prog_compiler_static_CXX='-Bstatic'
15161 # Make sure the PIC flag is empty. It appears that all Alpha
15162 # Linux and Compaq Tru64 Unix objects are PIC.
15163 lt_prog_compiler_pic_CXX=
15164 lt_prog_compiler_static_CXX='-non_shared'
15166 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15167 # IBM XL 8.0, 9.0 on PPC and BlueGene
15168 lt_prog_compiler_wl_CXX='-Wl,'
15169 lt_prog_compiler_pic_CXX='-qpic'
15170 lt_prog_compiler_static_CXX='-qstaticlink'
15173 case `$CC -V 2>&1 | sed 5q` in
15176 lt_prog_compiler_pic_CXX='-KPIC'
15177 lt_prog_compiler_static_CXX='-Bstatic'
15178 lt_prog_compiler_wl_CXX='-Qoption ld '
15189 case $cc_basename in
15191 lt_prog_compiler_pic_CXX='-W c,exportall'
15197 netbsd* | netbsdelf*-gnu)
15200 # QNX uses GNU C++, but need to define -shared option too, otherwise
15201 # it will coredump.
15202 lt_prog_compiler_pic_CXX='-fPIC -shared'
15204 osf3* | osf4* | osf5*)
15205 case $cc_basename in
15207 lt_prog_compiler_wl_CXX='--backend -Wl,'
15210 # Rational C++ 2.4.1
15211 lt_prog_compiler_pic_CXX='-pic'
15214 # Digital/Compaq C++
15215 lt_prog_compiler_wl_CXX='-Wl,'
15216 # Make sure the PIC flag is empty. It appears that all Alpha
15217 # Linux and Compaq Tru64 Unix objects are PIC.
15218 lt_prog_compiler_pic_CXX=
15219 lt_prog_compiler_static_CXX='-non_shared'
15228 case $cc_basename in
15230 # Sun C++ 4.2, 5.x and Centerline C++
15231 lt_prog_compiler_pic_CXX='-KPIC'
15232 lt_prog_compiler_static_CXX='-Bstatic'
15233 lt_prog_compiler_wl_CXX='-Qoption ld '
15236 # Green Hills C++ Compiler
15237 lt_prog_compiler_pic_CXX='-PIC'
15244 case $cc_basename in
15247 lt_prog_compiler_pic_CXX='-pic'
15248 lt_prog_compiler_static_CXX='-Bstatic'
15252 lt_prog_compiler_pic_CXX='-pic'
15258 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15259 case $cc_basename in
15261 lt_prog_compiler_wl_CXX='-Wl,'
15262 lt_prog_compiler_pic_CXX='-KPIC'
15263 lt_prog_compiler_static_CXX='-Bstatic'
15268 case $cc_basename in
15270 # NonStop-UX NCC 3.20
15271 lt_prog_compiler_pic_CXX='-KPIC'
15280 lt_prog_compiler_can_build_shared_CXX=no
15286 # For platforms that do not support PIC, -DPIC is meaningless:
15288 lt_prog_compiler_pic_CXX=
15291 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15296 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15297 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15298 $as_echo_n "(cached) " >&6
15300 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15303 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15304 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15307 # Check to make sure the PIC flag actually works.
15309 if test -n "$lt_prog_compiler_pic_CXX"; then
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15311 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15312 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15313 $as_echo_n "(cached) " >&6
15315 lt_cv_prog_compiler_pic_works_CXX=no
15316 ac_outfile=conftest.$ac_objext
15317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15318 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15319 # Insert the option either (1) after the last *FLAGS variable, or
15320 # (2) before a word containing "conftest.", or (3) at the end.
15321 # Note that $ac_compile itself does not contain backslashes and begins
15322 # with a dollar sign (not a hyphen), so the echo should work correctly.
15323 # The option is referenced via a variable to avoid confusing sed.
15324 lt_compile=`echo "$ac_compile" | $SED \
15325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15327 -e 's:$: $lt_compiler_flag:'`
15328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15329 (eval "$lt_compile" 2>conftest.err)
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 if (exit $ac_status) && test -s "$ac_outfile"; then
15334 # The compiler can only warn and ignore the option if not recognized
15335 # So say no if there are warnings other than the usual output.
15336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15339 lt_cv_prog_compiler_pic_works_CXX=yes
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15346 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15348 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15349 case $lt_prog_compiler_pic_CXX in
15351 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15354 lt_prog_compiler_pic_CXX=
15355 lt_prog_compiler_can_build_shared_CXX=no
15365 # Check to make sure the static flag actually works.
15367 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15369 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15370 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15371 $as_echo_n "(cached) " >&6
15373 lt_cv_prog_compiler_static_works_CXX=no
15374 save_LDFLAGS=$LDFLAGS
15375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15378 # The linker can only warn and ignore the option if not recognized
15379 # So say no if there are warnings
15380 if test -s conftest.err; then
15381 # Append any errors to the config.log.
15382 cat conftest.err 1>&5
15383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15385 if diff conftest.exp conftest.er2 >/dev/null; then
15386 lt_cv_prog_compiler_static_works_CXX=yes
15389 lt_cv_prog_compiler_static_works_CXX=yes
15393 LDFLAGS=$save_LDFLAGS
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15397 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15399 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15402 lt_prog_compiler_static_CXX=
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15409 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15410 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15411 $as_echo_n "(cached) " >&6
15413 lt_cv_prog_compiler_c_o_CXX=no
15414 $RM -r conftest 2>/dev/null
15418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15420 lt_compiler_flag="-o out/conftest2.$ac_objext"
15421 # Insert the option either (1) after the last *FLAGS variable, or
15422 # (2) before a word containing "conftest.", or (3) at the end.
15423 # Note that $ac_compile itself does not contain backslashes and begins
15424 # with a dollar sign (not a hyphen), so the echo should work correctly.
15425 lt_compile=`echo "$ac_compile" | $SED \
15426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15428 -e 's:$: $lt_compiler_flag:'`
15429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15430 (eval "$lt_compile" 2>out/conftest.err)
15432 cat out/conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15436 # The compiler can only warn and ignore the option if not recognized
15437 # So say no if there are warnings
15438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15441 lt_cv_prog_compiler_c_o_CXX=yes
15446 # SGI C++ compiler will create directory out/ii_files/ for
15447 # template instantiation
15448 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15449 $RM out/* && rmdir out
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15456 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15461 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15462 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15463 $as_echo_n "(cached) " >&6
15465 lt_cv_prog_compiler_c_o_CXX=no
15466 $RM -r conftest 2>/dev/null
15470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15472 lt_compiler_flag="-o out/conftest2.$ac_objext"
15473 # Insert the option either (1) after the last *FLAGS variable, or
15474 # (2) before a word containing "conftest.", or (3) at the end.
15475 # Note that $ac_compile itself does not contain backslashes and begins
15476 # with a dollar sign (not a hyphen), so the echo should work correctly.
15477 lt_compile=`echo "$ac_compile" | $SED \
15478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15480 -e 's:$: $lt_compiler_flag:'`
15481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15482 (eval "$lt_compile" 2>out/conftest.err)
15484 cat out/conftest.err >&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15488 # The compiler can only warn and ignore the option if not recognized
15489 # So say no if there are warnings
15490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15493 lt_cv_prog_compiler_c_o_CXX=yes
15498 # SGI C++ compiler will create directory out/ii_files/ for
15499 # template instantiation
15500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15501 $RM out/* && rmdir out
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15508 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15513 hard_links=nottested
15514 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15515 # do not overwrite the value of need_locks provided by the user
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15517 $as_echo_n "checking if we can lock with hard links... " >&6; }
15520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15522 ln conftest.a conftest.b 2>&5 || hard_links=no
15523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15525 $as_echo "$hard_links" >&6; }
15526 if test no = "$hard_links"; then
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15528 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15538 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15540 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15541 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15544 # If we're using GNU nm, then we don't want the "-C" option.
15545 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15546 # Without the "-l" option, or with the "-B" option, AIX nm treats
15547 # weak defined symbols like other global defined symbols, whereas
15548 # GNU nm marks them as "W".
15549 # While the 'weak' keyword is ignored in the Export File, we need
15550 # it in the Import File for the 'aix-soname' feature, so we have
15551 # to replace the "-B" option with "-P" for AIX nm.
15552 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15553 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15555 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15559 export_symbols_cmds_CXX=$ltdll_cmds
15561 cygwin* | mingw* | cegcc*)
15562 case $cc_basename in
15564 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15567 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'
15568 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15572 linux* | k*bsd*-gnu | gnu*)
15573 link_all_deplibs_CXX=no
15576 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15581 $as_echo "$ld_shlibs_CXX" >&6; }
15582 test no = "$ld_shlibs_CXX" && can_build_shared=no
15584 with_gnu_ld_CXX=$with_gnu_ld
15592 # Do we need to explicitly link libc?
15594 case "x$archive_cmds_need_lc_CXX" in
15596 # Assume -lc should be added
15597 archive_cmds_need_lc_CXX=yes
15599 if test yes,yes = "$GCC,$enable_shared"; then
15600 case $archive_cmds_CXX in
15602 # FIXME: we may have to deal with multi-command sequences.
15605 # Test whether the compiler implicitly links with -lc since on some
15606 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15607 # to ld, don't add -lc before -lgcc.
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15609 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15610 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15611 $as_echo_n "(cached) " >&6
15614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15617 (eval $ac_compile) 2>&5
15619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15620 test $ac_status = 0; } 2>conftest.err; then
15623 libobjs=conftest.$ac_objext
15625 wl=$lt_prog_compiler_wl_CXX
15626 pic_flag=$lt_prog_compiler_pic_CXX
15632 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15633 allow_undefined_flag_CXX=
15634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15635 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15638 test $ac_status = 0; }
15640 lt_cv_archive_cmds_need_lc_CXX=no
15642 lt_cv_archive_cmds_need_lc_CXX=yes
15644 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15646 cat conftest.err 1>&5
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15652 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15653 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15722 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15724 library_names_spec=
15725 libname_spec='lib$name'
15729 postuninstall_cmds=
15733 shlibpath_overrides_runpath=unknown
15735 dynamic_linker="$host_os ld.so"
15736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15737 need_lib_prefix=unknown
15738 hardcode_into_libs=no
15740 # when you set need_version to no, make sure it does not cause -set_version
15741 # flags to be left without arguments
15742 need_version=unknown
15748 version_type=linux # correct to gnu/linux during the next big refactor
15749 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15750 shlibpath_var=LIBPATH
15752 # AIX 3 has no versioning support, so we append a major version to the name.
15753 soname_spec='$libname$release$shared_ext$major'
15757 version_type=linux # correct to gnu/linux during the next big refactor
15760 hardcode_into_libs=yes
15761 if test ia64 = "$host_cpu"; then
15762 # AIX 5 supports IA64
15763 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15764 shlibpath_var=LD_LIBRARY_PATH
15766 # With GCC up to 2.95.x, collect2 would create an import file
15767 # for dependence libraries. The import file would start with
15768 # the line '#! .'. This would cause the generated library to
15769 # depend on '.', always an invalid library. This was fixed in
15770 # development snapshots of GCC prior to 3.0.
15772 aix4 | aix4.[01] | aix4.[01].*)
15773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15775 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15778 can_build_shared=no
15782 # Using Import Files as archive members, it is possible to support
15783 # filename-based versioning of shared library archives on AIX. While
15784 # this would work for both with and without runtime linking, it will
15785 # prevent static linking of such archives. So we do filename-based
15786 # shared library versioning with .so extension only, which is used
15787 # when both runtime linking and shared linking is enabled.
15788 # Unfortunately, runtime linking may impact performance, so we do
15789 # not want this to be the default eventually. Also, we use the
15790 # versioned .so libs for executables only if there is the -brtl
15791 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15792 # To allow for filename-based versioning support, we need to create
15793 # libNAME.so.V as an archive file, containing:
15794 # *) an Import File, referring to the versioned filename of the
15795 # archive as well as the shared archive member, telling the
15796 # bitwidth (32 or 64) of that shared object, and providing the
15797 # list of exported symbols of that shared object, eventually
15798 # decorated with the 'weak' keyword
15799 # *) the shared object with the F_LOADONLY flag set, to really avoid
15800 # it being seen by the linker.
15801 # At run time we better use the real file rather than another symlink,
15802 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15804 case $with_aix_soname,$aix_use_runtimelinking in
15805 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15806 # soname into executable. Probably we can add versioning support to
15807 # collect2, so additional links can be useful in future.
15808 aix,yes) # traditional libtool
15809 dynamic_linker='AIX unversionable lib.so'
15810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15811 # instead of lib<name>.a to let people know that these are not
15812 # typical AIX shared libraries.
15813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15815 aix,no) # traditional AIX only
15816 dynamic_linker='AIX lib.a(lib.so.V)'
15817 # We preserve .a as extension for shared libraries through AIX4.2
15818 # and later when we are not doing run time linking.
15819 library_names_spec='$libname$release.a $libname.a'
15820 soname_spec='$libname$release$shared_ext$major'
15822 svr4,*) # full svr4 only
15823 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15824 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15825 # We do not specify a path in Import Files, so LIBPATH fires.
15826 shlibpath_overrides_runpath=yes
15828 *,yes) # both, prefer svr4
15829 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15830 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15831 # unpreferred sharedlib libNAME.a needs extra handling
15832 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15833 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15834 # We do not specify a path in Import Files, so LIBPATH fires.
15835 shlibpath_overrides_runpath=yes
15837 *,no) # both, prefer aix
15838 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15839 library_names_spec='$libname$release.a $libname.a'
15840 soname_spec='$libname$release$shared_ext$major'
15841 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15842 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15843 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15846 shlibpath_var=LIBPATH
15853 # Since July 2007 AmigaOS4 officially supports .so libraries.
15854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15858 library_names_spec='$libname.ixlibrary $libname.a'
15859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15860 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15866 library_names_spec='$libname$shared_ext'
15867 dynamic_linker="$host_os ld.so"
15868 shlibpath_var=LIBRARY_PATH
15872 version_type=linux # correct to gnu/linux during the next big refactor
15874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15875 soname_spec='$libname$release$shared_ext$major'
15876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15877 shlibpath_var=LD_LIBRARY_PATH
15878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15880 # the default ld.so.conf also contains /usr/contrib/lib and
15881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15882 # libtool to hard-code these into programs
15885 cygwin* | mingw* | pw32* | cegcc*)
15886 version_type=windows
15891 case $GCC,$cc_basename in
15894 library_names_spec='$libname.dll.a'
15895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15896 postinstall_cmds='base_file=`basename \$file`~
15897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15898 dldir=$destdir/`dirname \$dlpath`~
15899 test -d \$dldir || mkdir -p \$dldir~
15900 $install_prog $dir/$dlname \$dldir/$dlname~
15901 chmod a+x \$dldir/$dlname~
15902 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15903 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15906 dlpath=$dir/\$dldll~
15908 shlibpath_overrides_runpath=yes
15912 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15913 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15917 # MinGW DLLs use traditional 'lib' prefix
15918 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15921 # pw32 DLLs use 'pw' prefix rather than 'lib'
15922 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15925 dynamic_linker='Win32 ld.exe'
15930 libname_spec='$name'
15931 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15932 library_names_spec='$libname.dll.lib'
15936 sys_lib_search_path_spec=
15939 for lt_path in $LIB
15942 # Let DOS variable expansion print the short 8.3 style file name.
15943 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15944 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15947 # Convert to MSYS style.
15948 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15951 # Convert to unix form, then to dos form, then back to unix form
15952 # but this time dos style (no spaces!) so that the unix form looks
15953 # like /cygdrive/c/PROGRA~1:/cygdr...
15954 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15955 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15956 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15959 sys_lib_search_path_spec=$LIB
15960 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15961 # It is most probably a Windows format PATH.
15962 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15964 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15966 # FIXME: find the short name or the path components, as spaces are
15967 # common. (e.g. "Program Files" -> "PROGRA~1")
15971 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15972 postinstall_cmds='base_file=`basename \$file`~
15973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15974 dldir=$destdir/`dirname \$dlpath`~
15975 test -d \$dldir || mkdir -p \$dldir~
15976 $install_prog $dir/$dlname \$dldir/$dlname'
15977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15978 dlpath=$dir/\$dldll~
15980 shlibpath_overrides_runpath=yes
15981 dynamic_linker='Win32 link.exe'
15985 # Assume MSVC wrapper
15986 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15987 dynamic_linker='Win32 ld.exe'
15990 # FIXME: first we should search . and the directory the executable is in
15994 darwin* | rhapsody*)
15995 dynamic_linker="$host_os dyld"
15996 version_type=darwin
15999 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16000 soname_spec='$libname$release$major$shared_ext'
16001 shlibpath_overrides_runpath=yes
16002 shlibpath_var=DYLD_LIBRARY_PATH
16003 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16009 version_type=linux # correct to gnu/linux during the next big refactor
16012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16013 soname_spec='$libname$release$shared_ext$major'
16014 shlibpath_var=LD_LIBRARY_PATH
16017 freebsd* | dragonfly*)
16018 # DragonFly does not have aout. When/if they implement a new
16019 # versioning mechanism, adjust this.
16020 if test -x /usr/bin/objformat; then
16021 objformat=`/usr/bin/objformat`
16024 freebsd[23].*) objformat=aout ;;
16025 *) objformat=elf ;;
16028 version_type=freebsd-$objformat
16029 case $version_type in
16031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16032 soname_spec='$libname$release$shared_ext$major'
16037 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16041 shlibpath_var=LD_LIBRARY_PATH
16044 shlibpath_overrides_runpath=yes
16046 freebsd3.[01]* | freebsdelf3.[01]*)
16047 shlibpath_overrides_runpath=yes
16048 hardcode_into_libs=yes
16050 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16051 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16052 shlibpath_overrides_runpath=no
16053 hardcode_into_libs=yes
16055 *) # from 4.6 on, and DragonFly
16056 shlibpath_overrides_runpath=yes
16057 hardcode_into_libs=yes
16063 version_type=linux # correct to gnu/linux during the next big refactor
16066 dynamic_linker="$host_os runtime_loader"
16067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16068 soname_spec='$libname$release$shared_ext$major'
16069 shlibpath_var=LIBRARY_PATH
16070 shlibpath_overrides_runpath=no
16071 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16072 hardcode_into_libs=yes
16075 hpux9* | hpux10* | hpux11*)
16076 # Give a soname corresponding to the major version so that dld.sl refuses to
16077 # link against other versions.
16084 hardcode_into_libs=yes
16085 dynamic_linker="$host_os dld.so"
16086 shlibpath_var=LD_LIBRARY_PATH
16087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16089 soname_spec='$libname$release$shared_ext$major'
16090 if test 32 = "$HPUX_IA64_MODE"; then
16091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16092 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16094 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16095 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16100 hardcode_into_libs=yes
16101 dynamic_linker="$host_os dld.sl"
16102 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16105 soname_spec='$libname$release$shared_ext$major'
16106 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16111 dynamic_linker="$host_os dld.sl"
16112 shlibpath_var=SHLIB_PATH
16113 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16115 soname_spec='$libname$release$shared_ext$major'
16118 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16119 postinstall_cmds='chmod 555 $lib'
16120 # or fails outright, so override atomically:
16121 install_override_mode=555
16125 version_type=linux # correct to gnu/linux during the next big refactor
16128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16129 soname_spec='$libname$release$shared_ext$major'
16130 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16131 shlibpath_var=LD_LIBRARY_PATH
16132 shlibpath_overrides_runpath=no
16133 hardcode_into_libs=yes
16136 irix5* | irix6* | nonstopux*)
16138 nonstopux*) version_type=nonstopux ;;
16140 if test yes = "$lt_cv_prog_gnu_ld"; then
16141 version_type=linux # correct to gnu/linux during the next big refactor
16148 soname_spec='$libname$release$shared_ext$major'
16149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16151 irix5* | nonstopux*)
16152 libsuff= shlibsuff=
16155 case $LD in # libtool.m4 will add one of these switches to LD
16156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16157 libsuff= shlibsuff= libmagic=32-bit;;
16158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16159 libsuff=32 shlibsuff=N32 libmagic=N32;;
16160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16161 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16162 *) libsuff= shlibsuff= libmagic=never-match;;
16166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16167 shlibpath_overrides_runpath=no
16168 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16169 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16170 hardcode_into_libs=yes
16173 # No shared lib support for Linux oldld, aout, or coff.
16174 linux*oldld* | linux*aout* | linux*coff*)
16179 version_type=none # Android doesn't support versioned libraries.
16182 library_names_spec='$libname$release$shared_ext'
16183 soname_spec='$libname$release$shared_ext'
16185 shlibpath_var=LD_LIBRARY_PATH
16186 shlibpath_overrides_runpath=yes
16188 # This implies no fast_install, which is unacceptable.
16189 # Some rework will be needed to allow for fast_install
16190 # before this can be enabled.
16191 hardcode_into_libs=yes
16193 dynamic_linker='Android linker'
16194 # Don't embed -rpath directories since the linker doesn't support them.
16195 hardcode_libdir_flag_spec_CXX='-L$libdir'
16198 # This must be glibc/ELF.
16199 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16200 version_type=linux # correct to gnu/linux during the next big refactor
16203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16204 soname_spec='$libname$release$shared_ext$major'
16205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16206 shlibpath_var=LD_LIBRARY_PATH
16207 shlibpath_overrides_runpath=no
16209 # Some binutils ld are patched to set DT_RUNPATH
16210 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16211 $as_echo_n "(cached) " >&6
16213 lt_cv_shlibpath_overrides_runpath=no
16214 save_LDFLAGS=$LDFLAGS
16215 save_libdir=$libdir
16216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16229 if ac_fn_cxx_try_link "$LINENO"; then :
16230 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16231 lt_cv_shlibpath_overrides_runpath=yes
16234 rm -f core conftest.err conftest.$ac_objext \
16235 conftest$ac_exeext conftest.$ac_ext
16236 LDFLAGS=$save_LDFLAGS
16237 libdir=$save_libdir
16241 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16243 # This implies no fast_install, which is unacceptable.
16244 # Some rework will be needed to allow for fast_install
16245 # before this can be enabled.
16246 hardcode_into_libs=yes
16248 # Ideally, we could use ldconfig to report *all* directores which are
16249 # searched for libraries, however this is still not possible. Aside from not
16250 # being certain /sbin/ldconfig is available, command
16251 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16252 # even though it is searched at run-time. Try to do the best guess by
16253 # appending ld.so.conf contents (and includes) to the search path.
16254 if test -f /etc/ld.so.conf; then
16255 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' ' '`
16256 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16259 # We used to test for /lib/ld.so.1 and disable shared libraries on
16260 # powerpc, because MkLinux only supported shared libraries with the
16261 # GNU dynamic linker. Since this was broken with cross compilers,
16262 # most powerpc-linux boxes support dynamic linking these days and
16263 # people can always --disable-shared, the test was removed, and we
16264 # assume the GNU/Linux dynamic linker is in use.
16265 dynamic_linker='GNU/Linux ld.so'
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 shlibpath_var=LD_LIBRARY_PATH
16275 shlibpath_overrides_runpath=no
16276 hardcode_into_libs=yes
16277 dynamic_linker='NetBSD ld.elf_so'
16284 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16285 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16287 dynamic_linker='NetBSD (a.out) ld.so'
16289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16290 soname_spec='$libname$release$shared_ext$major'
16291 dynamic_linker='NetBSD ld.elf_so'
16293 shlibpath_var=LD_LIBRARY_PATH
16294 shlibpath_overrides_runpath=yes
16295 hardcode_into_libs=yes
16299 version_type=linux # correct to gnu/linux during the next big refactor
16300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 shlibpath_overrides_runpath=yes
16309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16310 soname_spec='$libname$release$shared_ext$major'
16311 shlibpath_var=LD_LIBRARY_PATH
16312 shlibpath_overrides_runpath=no
16313 hardcode_into_libs=yes
16314 dynamic_linker='ldqnx.so'
16317 openbsd* | bitrig*)
16319 sys_lib_dlsearch_path_spec=/usr/lib
16321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16326 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=yes
16333 libname_spec='$name'
16334 version_type=windows
16338 # OS/2 can only load a DLL with a base name of 8 characters or less.
16339 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16340 v=$($ECHO $release$versuffix | tr -d .-);
16341 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16342 $ECHO $n$v`$shared_ext'
16343 library_names_spec='${libname}_dll.$libext'
16344 dynamic_linker='OS/2 ld.exe'
16345 shlibpath_var=BEGINLIBPATH
16346 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16348 postinstall_cmds='base_file=`basename \$file`~
16349 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16350 dldir=$destdir/`dirname \$dlpath`~
16351 test -d \$dldir || mkdir -p \$dldir~
16352 $install_prog $dir/$dlname \$dldir/$dlname~
16353 chmod a+x \$dldir/$dlname~
16354 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16355 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16358 dlpath=$dir/\$dldll~
16362 osf3* | osf4* | osf5*)
16366 soname_spec='$libname$release$shared_ext$major'
16367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16378 version_type=linux # correct to gnu/linux during the next big refactor
16381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16382 soname_spec='$libname$release$shared_ext$major'
16383 shlibpath_var=LD_LIBRARY_PATH
16384 shlibpath_overrides_runpath=yes
16385 hardcode_into_libs=yes
16386 # ldd complains unless libraries are executable
16387 postinstall_cmds='chmod +x $lib'
16392 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16394 shlibpath_var=LD_LIBRARY_PATH
16395 shlibpath_overrides_runpath=yes
16396 if test yes = "$with_gnu_ld"; then
16403 version_type=linux # correct to gnu/linux during the next big refactor
16404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16405 soname_spec='$libname$release$shared_ext$major'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 case $host_vendor in
16409 shlibpath_overrides_runpath=no
16411 runpath_var=LD_RUN_PATH
16419 shlibpath_overrides_runpath=no
16420 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16426 if test -d /usr/nec; then
16427 version_type=linux # correct to gnu/linux during the next big refactor
16428 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16429 soname_spec='$libname$shared_ext.$major'
16430 shlibpath_var=LD_LIBRARY_PATH
16434 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16439 soname_spec='$libname$release$shared_ext$major'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 shlibpath_overrides_runpath=yes
16442 hardcode_into_libs=yes
16443 if test yes = "$with_gnu_ld"; then
16444 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16446 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16449 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16453 sys_lib_dlsearch_path_spec='/usr/lib'
16457 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16458 version_type=linux # correct to gnu/linux during the next big refactor
16461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath=no
16464 hardcode_into_libs=yes
16468 version_type=linux # correct to gnu/linux during the next big refactor
16469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16470 soname_spec='$libname$release$shared_ext$major'
16471 shlibpath_var=LD_LIBRARY_PATH
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16479 $as_echo "$dynamic_linker" >&6; }
16480 test no = "$dynamic_linker" && can_build_shared=no
16482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16483 if test yes = "$GCC"; then
16484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16487 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16488 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16491 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16492 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16495 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16496 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16498 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16499 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16501 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16502 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16544 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16545 hardcode_action_CXX=
16546 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16547 test -n "$runpath_var_CXX" ||
16548 test yes = "$hardcode_automatic_CXX"; then
16550 # We can hardcode non-existent directories.
16551 if test no != "$hardcode_direct_CXX" &&
16552 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16553 # have to relink, otherwise we might link with an installed library
16554 # when we should be linking with a yet-to-be-installed one
16555 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16556 test no != "$hardcode_minus_L_CXX"; then
16557 # Linking always hardcodes the temporary library directory.
16558 hardcode_action_CXX=relink
16560 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16561 hardcode_action_CXX=immediate
16564 # We cannot hardcode anything, or else we can only hardcode existing
16566 hardcode_action_CXX=unsupported
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16569 $as_echo "$hardcode_action_CXX" >&6; }
16571 if test relink = "$hardcode_action_CXX" ||
16572 test yes = "$inherit_rpath_CXX"; then
16573 # Fast installation is not supported
16574 enable_fast_install=no
16575 elif test yes = "$shlibpath_overrides_runpath" ||
16576 test no = "$enable_shared"; then
16577 # Fast installation is not necessary
16578 enable_fast_install=needless
16587 fi # test -n "$compiler"
16590 CFLAGS=$lt_save_CFLAGS
16594 with_gnu_ld=$lt_save_with_gnu_ld
16595 lt_cv_path_LDCXX=$lt_cv_path_LD
16596 lt_cv_path_LD=$lt_save_path_LD
16597 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16598 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16599 fi # test yes != "$_lt_caught_CXX_error"
16602 ac_cpp='$CPP $CPPFLAGS'
16603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16621 ac_config_commands="$ac_config_commands libtool"
16626 # Only expand once:
16631 # Checks for header files.
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16633 $as_echo_n "checking for ANSI C header files... " >&6; }
16634 if ${ac_cv_header_stdc+:} false; then :
16635 $as_echo_n "(cached) " >&6
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16639 #include <stdlib.h>
16640 #include <stdarg.h>
16641 #include <string.h>
16652 if ac_fn_c_try_compile "$LINENO"; then :
16653 ac_cv_header_stdc=yes
16655 ac_cv_header_stdc=no
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 if test $ac_cv_header_stdc = yes; then
16660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16663 #include <string.h>
16666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16667 $EGREP "memchr" >/dev/null 2>&1; then :
16670 ac_cv_header_stdc=no
16676 if test $ac_cv_header_stdc = yes; then
16677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16680 #include <stdlib.h>
16683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16684 $EGREP "free" >/dev/null 2>&1; then :
16687 ac_cv_header_stdc=no
16693 if test $ac_cv_header_stdc = yes; then
16694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16695 if test "$cross_compiling" = yes; then :
16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16701 #include <stdlib.h>
16702 #if ((' ' & 0x0FF) == 0x020)
16703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16706 # define ISLOWER(c) \
16707 (('a' <= (c) && (c) <= 'i') \
16708 || ('j' <= (c) && (c) <= 'r') \
16709 || ('s' <= (c) && (c) <= 'z'))
16710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16718 for (i = 0; i < 256; i++)
16719 if (XOR (islower (i), ISLOWER (i))
16720 || toupper (i) != TOUPPER (i))
16725 if ac_fn_c_try_run "$LINENO"; then :
16728 ac_cv_header_stdc=no
16730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16731 conftest.$ac_objext conftest.beam conftest.$ac_ext
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16737 $as_echo "$ac_cv_header_stdc" >&6; }
16738 if test $ac_cv_header_stdc = yes; then
16740 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16744 for ac_header in sys/ioctl.h unistd.h
16746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16747 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16749 cat >>confdefs.h <<_ACEOF
16750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16758 # Check compiler and use -Wall if gnu
16759 if test x"$GXX" = "xyes"; then
16760 CXXFLAGS="${CXXFLAGS} -Wall -Wextra"
16761 # Add -Werror in debug mode
16762 if test x"${enable_debug+set}" = xset; then
16763 CXXFLAGS="${CXXFLAGS} -Werror"
16767 # Checks for functions
16768 for ac_func in gettimeofday
16770 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16771 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16772 cat >>confdefs.h <<_ACEOF
16773 #define HAVE_GETTIMEOFDAY 1
16780 # Checks for doxygen
16781 # Extract the first word of "doxygen", so it can be a program name with args.
16782 set dummy doxygen; ac_word=$2
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16784 $as_echo_n "checking for $ac_word... " >&6; }
16785 if ${ac_cv_prog_DOXYGEN+:} false; then :
16786 $as_echo_n "(cached) " >&6
16788 if test -n "$DOXYGEN"; then
16789 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
16791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16792 for as_dir in $PATH
16795 test -z "$as_dir" && as_dir=.
16796 for ac_exec_ext in '' $ac_executable_extensions; do
16797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16798 ac_cv_prog_DOXYGEN="doxygen "
16799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16808 DOXYGEN=$ac_cv_prog_DOXYGEN
16809 if test -n "$DOXYGEN"; then
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16811 $as_echo "$DOXYGEN" >&6; }
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16814 $as_echo "no" >&6; }
16818 if test "x${DOXYGEN}" != x ; then
16827 # Copy doc files to build dir if necessary
16828 ac_config_links="$ac_config_links doc/release.txt:doc/release.txt"
16830 ac_config_links="$ac_config_links doc/doxygen/footer.html:doc/doxygen/footer.html"
16832 ac_config_links="$ac_config_links doc/doxygen/error.txt:doc/doxygen/error.txt"
16834 ac_config_links="$ac_config_links doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt"
16836 ac_config_links="$ac_config_links doc/doxygen/compiling.txt:doc/doxygen/compiling.txt"
16838 ac_config_links="$ac_config_links doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt"
16840 ac_config_links="$ac_config_links doc/doxygen/license.txt:doc/doxygen/license.txt"
16842 ac_config_links="$ac_config_links doc/doxygen/header.html:doc/doxygen/header.html"
16844 ac_config_links="$ac_config_links doc/doxygen/duplex.txt:doc/doxygen/duplex.txt"
16846 ac_config_links="$ac_config_links doc/doxygen/settings.txt:doc/doxygen/settings.txt"
16848 ac_config_links="$ac_config_links doc/doxygen/probe.txt:doc/doxygen/probe.txt"
16850 ac_config_links="$ac_config_links doc/doxygen/playback.txt:doc/doxygen/playback.txt"
16852 ac_config_links="$ac_config_links doc/doxygen/multi.txt:doc/doxygen/multi.txt"
16854 ac_config_links="$ac_config_links doc/doxygen/recording.txt:doc/doxygen/recording.txt"
16856 ac_config_links="$ac_config_links doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt"
16858 ac_config_links="$ac_config_links doc/images/mcgill.gif:doc/images/mcgill.gif"
16860 ac_config_links="$ac_config_links doc/images/ccrma.gif:doc/images/ccrma.gif"
16863 # Checks for package options and external software
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audio API" >&5
16871 $as_echo_n "checking for audio API... " >&6; }
16874 # Check whether --with-jack was given.
16875 if test "${with_jack+set}" = set; then :
16876 withval=$with_jack;
16879 if test "x$with_jack" == "xyes"; then :
16881 api="$api -D__UNIX_JACK__"
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
16883 $as_echo "using JACK" >&6; }
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
16885 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
16886 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
16887 $as_echo_n "(cached) " >&6
16889 ac_check_lib_save_LIBS=$LIBS
16890 LIBS="-ljack $LIBS"
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h. */
16894 /* Override any GCC internal prototype to avoid an error.
16895 Use char because int might match the return type of a GCC
16896 builtin and then its argument prototype would still apply. */
16900 char jack_client_open ();
16904 return jack_client_open ();
16909 if ac_fn_c_try_link "$LINENO"; then :
16910 ac_cv_lib_jack_jack_client_open=yes
16912 ac_cv_lib_jack_jack_client_open=no
16914 rm -f core conftest.err conftest.$ac_objext \
16915 conftest$ac_exeext conftest.$ac_ext
16916 LIBS=$ac_check_lib_save_LIBS
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
16919 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
16920 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
16921 cat >>confdefs.h <<_ACEOF
16922 #define HAVE_LIBJACK 1
16925 LIBS="-ljack $LIBS"
16928 as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
16935 if test "$api" == ""; then :
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16938 $as_echo "using OSS" >&6; }
16939 api="$api -D__LINUX_OSS__"
16940 LIBS="$LIBS -lossaudio"
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16942 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16943 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16944 $as_echo_n "(cached) " >&6
16946 ac_check_lib_save_LIBS=$LIBS
16947 LIBS="-lpthread $LIBS"
16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949 /* end confdefs.h. */
16951 /* Override any GCC internal prototype to avoid an error.
16952 Use char because int might match the return type of a GCC
16953 builtin and then its argument prototype would still apply. */
16957 char pthread_create ();
16961 return pthread_create ();
16966 if ac_fn_c_try_link "$LINENO"; then :
16967 ac_cv_lib_pthread_pthread_create=yes
16969 ac_cv_lib_pthread_pthread_create=no
16971 rm -f core conftest.err conftest.$ac_objext \
16972 conftest$ac_exeext conftest.$ac_ext
16973 LIBS=$ac_check_lib_save_LIBS
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16976 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16977 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16978 cat >>confdefs.h <<_ACEOF
16979 #define HAVE_LIBPTHREAD 1
16982 LIBS="-lpthread $LIBS"
16985 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16992 if test "$api" == ""; then :
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16995 $as_echo "using OSS" >&6; }
16996 api="$api -D__LINUX_OSS__"
16997 LIBS="$LIBS -lossaudio"
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16999 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17000 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17001 $as_echo_n "(cached) " >&6
17003 ac_check_lib_save_LIBS=$LIBS
17004 LIBS="-lpthread $LIBS"
17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006 /* end confdefs.h. */
17008 /* Override any GCC internal prototype to avoid an error.
17009 Use char because int might match the return type of a GCC
17010 builtin and then its argument prototype would still apply. */
17014 char pthread_create ();
17018 return pthread_create ();
17023 if ac_fn_c_try_link "$LINENO"; then :
17024 ac_cv_lib_pthread_pthread_create=yes
17026 ac_cv_lib_pthread_pthread_create=no
17028 rm -f core conftest.err conftest.$ac_objext \
17029 conftest$ac_exeext conftest.$ac_ext
17030 LIBS=$ac_check_lib_save_LIBS
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17033 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17034 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_LIBPTHREAD 1
17039 LIBS="-lpthread $LIBS"
17042 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
17049 # Look for ALSA flag
17051 # Check whether --with-alsa was given.
17052 if test "${with_alsa+set}" = set; then :
17053 withval=$with_alsa;
17056 if test "x$with_alsa" == "xyes"; then :
17058 api="$api -D__LINUX_ALSA__"
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
17061 $as_echo "using ALSA" >&6; }
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
17063 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
17064 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
17065 $as_echo_n "(cached) " >&6
17067 ac_check_lib_save_LIBS=$LIBS
17068 LIBS="-lasound $LIBS"
17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h. */
17072 /* Override any GCC internal prototype to avoid an error.
17073 Use char because int might match the return type of a GCC
17074 builtin and then its argument prototype would still apply. */
17078 char snd_pcm_open ();
17082 return snd_pcm_open ();
17087 if ac_fn_c_try_link "$LINENO"; then :
17088 ac_cv_lib_asound_snd_pcm_open=yes
17090 ac_cv_lib_asound_snd_pcm_open=no
17092 rm -f core conftest.err conftest.$ac_objext \
17093 conftest$ac_exeext conftest.$ac_ext
17094 LIBS=$ac_check_lib_save_LIBS
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
17097 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
17098 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
17099 cat >>confdefs.h <<_ACEOF
17100 #define HAVE_LIBASOUND 1
17103 LIBS="-lasound $LIBS"
17106 as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
17111 # Look for PULSE flag
17113 # Check whether --with-pulse was given.
17114 if test "${with_pulse+set}" = set; then :
17115 withval=$with_pulse;
17118 if test "x$with_pulse" == "xyes"; then :
17120 api="$api -D__LINUX_PULSE__"
17121 req="$req libpulse-simple"
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PulseAudio" >&5
17123 $as_echo "using PulseAudio" >&6; }
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_flush in -lpulse-simple" >&5
17125 $as_echo_n "checking for pa_simple_flush in -lpulse-simple... " >&6; }
17126 if ${ac_cv_lib_pulse_simple_pa_simple_flush+:} false; then :
17127 $as_echo_n "(cached) " >&6
17129 ac_check_lib_save_LIBS=$LIBS
17130 LIBS="-lpulse-simple $LIBS"
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17134 /* Override any GCC internal prototype to avoid an error.
17135 Use char because int might match the return type of a GCC
17136 builtin and then its argument prototype would still apply. */
17140 char pa_simple_flush ();
17144 return pa_simple_flush ();
17149 if ac_fn_c_try_link "$LINENO"; then :
17150 ac_cv_lib_pulse_simple_pa_simple_flush=yes
17152 ac_cv_lib_pulse_simple_pa_simple_flush=no
17154 rm -f core conftest.err conftest.$ac_objext \
17155 conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_flush" >&5
17159 $as_echo "$ac_cv_lib_pulse_simple_pa_simple_flush" >&6; }
17160 if test "x$ac_cv_lib_pulse_simple_pa_simple_flush" = xyes; then :
17161 cat >>confdefs.h <<_ACEOF
17162 #define HAVE_LIBPULSE_SIMPLE 1
17165 LIBS="-lpulse-simple $LIBS"
17168 as_fn_error $? "PulseAudio support requires the pulse-simple library!" "$LINENO" 5
17173 # Look for OSS flag
17175 # Check whether --with-oss was given.
17176 if test "${with_oss+set}" = set; then :
17180 if test "x$with_oss" == "xyes"; then :
17182 api="$api -D__LINUX_OSS__"
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
17184 $as_echo "using OSS" >&6; }
17187 # If no audio api flags specified, use ALSA
17188 if test "$api" == ""; then
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
17190 $as_echo "using ALSA" >&6; }
17191 api=-D__LINUX_ALSA__
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
17195 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
17196 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
17197 $as_echo_n "(cached) " >&6
17199 ac_check_lib_save_LIBS=$LIBS
17200 LIBS="-lasound $LIBS"
17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h. */
17204 /* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
17210 char snd_pcm_open ();
17214 return snd_pcm_open ();
17219 if ac_fn_c_try_link "$LINENO"; then :
17220 ac_cv_lib_asound_snd_pcm_open=yes
17222 ac_cv_lib_asound_snd_pcm_open=no
17224 rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
17229 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
17230 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
17231 cat >>confdefs.h <<_ACEOF
17232 #define HAVE_LIBASOUND 1
17235 LIBS="-lasound $LIBS"
17238 as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17244 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17245 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17246 $as_echo_n "(cached) " >&6
17248 ac_check_lib_save_LIBS=$LIBS
17249 LIBS="-lpthread $LIBS"
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h. */
17253 /* Override any GCC internal prototype to avoid an error.
17254 Use char because int might match the return type of a GCC
17255 builtin and then its argument prototype would still apply. */
17259 char pthread_create ();
17263 return pthread_create ();
17268 if ac_fn_c_try_link "$LINENO"; then :
17269 ac_cv_lib_pthread_pthread_create=yes
17271 ac_cv_lib_pthread_pthread_create=no
17273 rm -f core conftest.err conftest.$ac_objext \
17274 conftest$ac_exeext conftest.$ac_ext
17275 LIBS=$ac_check_lib_save_LIBS
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17278 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17279 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17280 cat >>confdefs.h <<_ACEOF
17281 #define HAVE_LIBPTHREAD 1
17284 LIBS="-lpthread $LIBS"
17287 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
17293 # Look for Core flag
17295 # Check whether --with-core was given.
17296 if test "${with_core+set}" = set; then :
17297 withval=$with_core;
17300 if test "x$with_core" == "xyes"; then :
17302 api="$api -D__MACOSX_CORE__"
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
17304 $as_echo "using CoreAudio" >&6; }
17305 ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
17306 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
17309 as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
17313 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
17316 # If no audio api flags specified, use CoreAudio
17317 if test "$api" == ""; then
17318 api=-D__MACOSX_CORE__
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
17321 $as_echo "using CoreAudio" >&6; }
17322 ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
17323 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
17326 as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
17330 LIBS="-framework CoreAudio -framework CoreFoundation"
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17335 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17336 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17337 $as_echo_n "(cached) " >&6
17339 ac_check_lib_save_LIBS=$LIBS
17340 LIBS="-lpthread $LIBS"
17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342 /* end confdefs.h. */
17344 /* Override any GCC internal prototype to avoid an error.
17345 Use char because int might match the return type of a GCC
17346 builtin and then its argument prototype would still apply. */
17350 char pthread_create ();
17354 return pthread_create ();
17359 if ac_fn_c_try_link "$LINENO"; then :
17360 ac_cv_lib_pthread_pthread_create=yes
17362 ac_cv_lib_pthread_pthread_create=no
17364 rm -f core conftest.err conftest.$ac_objext \
17365 conftest$ac_exeext conftest.$ac_ext
17366 LIBS=$ac_check_lib_save_LIBS
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17369 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17370 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17371 cat >>confdefs.h <<_ACEOF
17372 #define HAVE_LIBPTHREAD 1
17375 LIBS="-lpthread $LIBS"
17378 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
17385 # Check whether --with-asio was given.
17386 if test "${with_asio+set}" = set; then :
17387 withval=$with_asio;
17390 if test "x$with_asio" == "xyes"; then :
17392 api="$api -D__WINDOWS_ASIO__"
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ASIO" >&5
17394 $as_echo "using ASIO" >&6; }
17395 objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
17399 # Look for DirectSound flag
17401 # Check whether --with-ds was given.
17402 if test "${with_ds+set}" = set; then :
17406 if test "x$with_ds" == "xyes"; then :
17408 api="$api -D__WINDOWS_DS__"
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
17410 $as_echo "using DirectSound" >&6; }
17411 LIBS="-ldsound -lwinmm $LIBS"
17414 # Look for WASAPI flag
17416 # Check whether --with-wasapi was given.
17417 if test "${with_wasapi+set}" = set; then :
17418 withval=$with_wasapi;
17421 if test "x$with_wasapi" == "xyes"; then :
17423 api="$api -D__WINDOWS_WASAPI__"
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using WASAPI" >&5
17425 $as_echo "using WASAPI" >&6; }
17426 LIBS="-lwinmm -luuid -lksuser $LIBS"
17429 # If no audio api flags specified, use DS
17430 if test "$api" == ""; then
17431 api=-D__WINDOWS_DS__
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
17434 $as_echo "using DirectSound" >&6; }
17435 LIBS="-ldsound -lwinmm $LIBS"
17438 LIBS="-lole32 $LIBS"
17442 # Default case for unknown realtime systems.
17443 as_fn_error $? "Unknown system type for realtime support!" "$LINENO" 5
17447 CPPFLAGS="$CPPFLAGS $api"
17449 cat >confcache <<\_ACEOF
17450 # This file is a shell script that caches the results of configure
17451 # tests run on this system so they can be shared between configure
17452 # scripts and configure runs, see configure's option --config-cache.
17453 # It is not useful on other systems. If it contains results you don't
17454 # want to keep, you may remove or edit it.
17456 # config.status only pays attention to the cache file if you give it
17457 # the --recheck option to rerun configure.
17459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17461 # following values.
17465 # The following way of writing the cache mishandles newlines in values,
17466 # but we know of no workaround that is simple, portable, and efficient.
17467 # So, we kill variables containing newlines.
17468 # Ultrix sh set writes to stderr and can't be redirected directly,
17469 # and sets the high bit in the cache file unless we assign to the vars.
17471 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17472 eval ac_val=\$$ac_var
17476 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17480 _ | IFS | as_nl) ;; #(
17481 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17482 *) { eval $ac_var=; unset $ac_var;} ;;
17488 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17489 *${as_nl}ac_space=\ *)
17490 # `set' does not quote correctly, so add quotes: double-quote
17491 # substitution turns \\\\ into \\, and sed turns \\ into \.
17494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17497 # `set' quotes correctly as required by POSIX, so do not add quotes.
17498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17507 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17509 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17511 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17512 if test -w "$cache_file"; then
17513 if test "x$cache_file" != "x/dev/null"; then
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17515 $as_echo "$as_me: updating cache $cache_file" >&6;}
17516 if test ! -f "$cache_file" || test -h "$cache_file"; then
17517 cat confcache >"$cache_file"
17519 case $cache_file in #(
17521 mv -f confcache "$cache_file"$$ &&
17522 mv -f "$cache_file"$$ "$cache_file" ;; #(
17524 mv -f confcache "$cache_file" ;;
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17530 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17535 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17536 # Let make expand exec_prefix.
17537 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17539 # Transform confdefs.h into DEFS.
17540 # Protect against shell expansion while executing Makefile rules.
17541 # Protect against Makefile macro expansion.
17543 # If the first sed substitution is executed (which looks for macros that
17544 # take arguments), then branch to the quote section. Otherwise,
17545 # look for a macro that doesn't take arguments.
17555 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17557 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17561 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17574 DEFS=`sed -n "$ac_script" confdefs.h`
17580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17581 # 1. Remove the extension, and $U if already installed.
17582 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17583 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17584 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17585 # will be set to the directory where LIBOBJS objects are built.
17586 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17587 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17589 LIBOBJS=$ac_libobjs
17591 LTLIBOBJS=$ac_ltlibobjs
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17595 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17596 if test -n "$am_sleep_pid"; then
17597 # Hide warnings about reused PIDs.
17598 wait $am_sleep_pid 2>/dev/null
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17601 $as_echo "done" >&6; }
17602 if test -n "$EXEEXT"; then
17604 am__EXEEXT_FALSE='#'
17606 am__EXEEXT_TRUE='#'
17610 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17611 as_fn_error $? "conditional \"AMDEP\" was never defined.
17612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17614 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17615 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17618 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17619 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17622 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17623 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17626 if test -z "${MAKE_DOC_TRUE}" && test -z "${MAKE_DOC_FALSE}"; then
17627 as_fn_error $? "conditional \"MAKE_DOC\" was never defined.
17628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17631 : "${CONFIG_STATUS=./config.status}"
17633 ac_clean_files_save=$ac_clean_files
17634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17636 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17638 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17640 # Generated by $as_me.
17641 # Run this file to recreate the current configuration.
17642 # Compiler output produced by configure, useful for debugging
17643 # configure, is in config.log if it exists.
17646 ac_cs_recheck=false
17649 SHELL=\${CONFIG_SHELL-$SHELL}
17652 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17653 ## -------------------- ##
17654 ## M4sh Initialization. ##
17655 ## -------------------- ##
17657 # Be more Bourne compatible
17658 DUALCASE=1; export DUALCASE # for MKS sh
17659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17662 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17663 # is contrary to our usage. Disable this feature.
17664 alias -g '${1+"$@"}'='"$@"'
17665 setopt NO_GLOB_SUBST
17667 case `(set -o) 2>/dev/null` in #(
17679 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17680 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17683 # Prefer a ksh shell builtin over an external printf program on Solaris,
17684 # but without wasting forks for bash or zsh.
17685 if test -z "$BASH_VERSION$ZSH_VERSION" \
17686 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17687 as_echo='print -r --'
17688 as_echo_n='print -rn --'
17689 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17690 as_echo='printf %s\n'
17691 as_echo_n='printf %s'
17693 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17694 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17695 as_echo_n='/usr/ucb/echo -n'
17697 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17698 as_echo_n_body='eval
17702 expr "X$arg" : "X\\(.*\\)$as_nl";
17703 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17705 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17707 export as_echo_n_body
17708 as_echo_n='sh -c $as_echo_n_body as_echo'
17710 export as_echo_body
17711 as_echo='sh -c $as_echo_body as_echo'
17714 # The user is always right.
17715 if test "${PATH_SEPARATOR+set}" != set; then
17717 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17718 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17725 # We need space, tab and new line, in precisely that order. Quoting is
17726 # there to prevent editors from complaining about space-tab.
17727 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17728 # splitting by setting IFS to empty value.)
17731 # Find who we are. Look in the path if we contain no directory separator.
17734 *[\\/]* ) as_myself=$0 ;;
17735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17736 for as_dir in $PATH
17739 test -z "$as_dir" && as_dir=.
17740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17746 # We did not find ourselves, most probably we were run as `sh COMMAND'
17747 # in which case we are not to be found in the path.
17748 if test "x$as_myself" = x; then
17751 if test ! -f "$as_myself"; then
17752 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17756 # Unset variables that we do not need and which cause bugs (e.g. in
17757 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17758 # suppresses any "Segmentation fault" message there. '((' could
17759 # trigger a bug in pdksh 5.2.14.
17760 for as_var in BASH_ENV ENV MAIL MAILPATH
17761 do eval test x\${$as_var+set} = xset \
17762 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17775 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17778 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17779 # ----------------------------------------
17780 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17781 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17782 # script with STATUS, using 1 if that was 0.
17785 as_status=$1; test $as_status -eq 0 && as_status=1
17787 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17788 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17790 $as_echo "$as_me: error: $2" >&2
17791 as_fn_exit $as_status
17795 # as_fn_set_status STATUS
17796 # -----------------------
17797 # Set $? to STATUS, without forking.
17798 as_fn_set_status ()
17801 } # as_fn_set_status
17803 # as_fn_exit STATUS
17804 # -----------------
17805 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17809 as_fn_set_status $1
17815 # Portably unset VAR.
17818 { eval $1=; unset $1;}
17820 as_unset=as_fn_unset
17821 # as_fn_append VAR VALUE
17822 # ----------------------
17823 # Append the text in VALUE to the end of the definition contained in VAR. Take
17824 # advantage of any shell optimizations that allow amortized linear growth over
17825 # repeated appends, instead of the typical quadratic growth present in naive
17827 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17828 eval 'as_fn_append ()
17839 # as_fn_arith ARG...
17840 # ------------------
17841 # Perform arithmetic evaluation on the ARGs, and store the result in the
17842 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17843 # must be portable across $(()) and expr.
17844 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17845 eval 'as_fn_arith ()
17852 as_val=`expr "$@" || test $? -eq 1`
17857 if expr a : '\(a\)' >/dev/null 2>&1 &&
17858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17864 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17865 as_basename=basename
17870 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17876 as_me=`$as_basename -- "$0" ||
17877 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17878 X"$0" : 'X\(//\)$' \| \
17879 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17881 sed '/^.*\/\([^/][^/]*\)\/*$/{
17895 # Avoid depending upon Character Ranges.
17896 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17897 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17898 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17899 as_cr_digits='0123456789'
17900 as_cr_alnum=$as_cr_Letters$as_cr_digits
17902 ECHO_C= ECHO_N= ECHO_T=
17903 case `echo -n x` in #(((((
17905 case `echo 'xy\c'` in
17906 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17908 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17915 rm -f conf$$ conf$$.exe conf$$.file
17916 if test -d conf$$.dir; then
17917 rm -f conf$$.dir/conf$$.file
17920 mkdir conf$$.dir 2>/dev/null
17922 if (echo >conf$$.file) 2>/dev/null; then
17923 if ln -s conf$$.file conf$$ 2>/dev/null; then
17925 # ... but there are two gotchas:
17926 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17927 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17928 # In both cases, we have to default to `cp -pR'.
17929 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17931 elif ln conf$$.file conf$$ 2>/dev/null; then
17939 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17940 rmdir conf$$.dir 2>/dev/null
17945 # Create "$as_dir" as a directory, including parents if necessary.
17950 -*) as_dir=./$as_dir;;
17952 test -d "$as_dir" || eval $as_mkdir_p || {
17956 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17957 *) as_qdir=$as_dir;;
17959 as_dirs="'$as_qdir' $as_dirs"
17960 as_dir=`$as_dirname -- "$as_dir" ||
17961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17962 X"$as_dir" : 'X\(//\)[^/]' \| \
17963 X"$as_dir" : 'X\(//\)$' \| \
17964 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17965 $as_echo X"$as_dir" |
17966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17970 /^X\(\/\/\)[^/].*/{
17983 test -d "$as_dir" && break
17985 test -z "$as_dirs" || eval "mkdir $as_dirs"
17986 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17990 if mkdir -p . 2>/dev/null; then
17991 as_mkdir_p='mkdir -p "$as_dir"'
17993 test -d ./-p && rmdir ./-p
17998 # as_fn_executable_p FILE
17999 # -----------------------
18000 # Test if FILE is an executable regular file.
18001 as_fn_executable_p ()
18003 test -f "$1" && test -x "$1"
18004 } # as_fn_executable_p
18005 as_test_x='test -x'
18006 as_executable_p=as_fn_executable_p
18008 # Sed expression to map a string onto a valid CPP name.
18009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18011 # Sed expression to map a string onto a valid variable name.
18012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18016 ## ----------------------------------- ##
18017 ## Main body of $CONFIG_STATUS script. ##
18018 ## ----------------------------------- ##
18020 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023 # Save the log message, to keep $0 and so on meaningful, and to
18024 # report actual input values of CONFIG_FILES etc. instead of their
18025 # values after options handling.
18027 This file was extended by RtAudio $as_me 5.0.0, which was
18028 generated by GNU Autoconf 2.69. Invocation command line was
18030 CONFIG_FILES = $CONFIG_FILES
18031 CONFIG_HEADERS = $CONFIG_HEADERS
18032 CONFIG_LINKS = $CONFIG_LINKS
18033 CONFIG_COMMANDS = $CONFIG_COMMANDS
18036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18041 case $ac_config_files in *"
18042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18048 # Files that config.status was made for.
18049 config_files="$ac_config_files"
18050 config_links="$ac_config_links"
18051 config_commands="$ac_config_commands"
18055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18057 \`$as_me' instantiates files and other configuration actions
18058 from templates according to the current configuration. Unless the files
18059 and actions are specified as TAGs, all are instantiated by default.
18061 Usage: $0 [OPTION]... [TAG]...
18063 -h, --help print this help, then exit
18064 -V, --version print version number and configuration settings, then exit
18065 --config print configuration, then exit
18066 -q, --quiet, --silent
18067 do not print progress messages
18068 -d, --debug don't remove temporary files
18069 --recheck update $as_me by reconfiguring in the same conditions
18070 --file=FILE[:TEMPLATE]
18071 instantiate the configuration file FILE
18073 Configuration files:
18076 Configuration links:
18079 Configuration commands:
18082 Report bugs to <gary@music.mcgill.ca>."
18085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18086 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18088 RtAudio config.status 5.0.0
18089 configured by $0, generated by GNU Autoconf 2.69,
18090 with options \\"\$ac_cs_config\\"
18092 Copyright (C) 2012 Free Software Foundation, Inc.
18093 This config.status script is free software; the Free Software Foundation
18094 gives unlimited permission to copy, distribute and modify it."
18101 test -n "\$AWK" || AWK=awk
18104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18105 # The default lists apply if the user does not specify any file.
18111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18112 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18128 # Handling of the options.
18129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18132 $as_echo "$ac_cs_version"; exit ;;
18133 --config | --confi | --conf | --con | --co | --c )
18134 $as_echo "$ac_cs_config"; exit ;;
18135 --debug | --debu | --deb | --de | --d | -d )
18137 --file | --fil | --fi | --f )
18140 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18141 '') as_fn_error $? "missing file argument" ;;
18143 as_fn_append CONFIG_FILES " '$ac_optarg'"
18144 ac_need_defaults=false;;
18145 --he | --h | --help | --hel | -h )
18146 $as_echo "$ac_cs_usage"; exit ;;
18147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18151 # This is an error.
18152 -*) as_fn_error $? "unrecognized option: \`$1'
18153 Try \`$0 --help' for more information." ;;
18155 *) as_fn_append ac_config_targets " $1"
18156 ac_need_defaults=false ;;
18162 ac_configure_extra_args=
18164 if $ac_cs_silent; then
18166 ac_configure_extra_args="$ac_configure_extra_args --silent"
18170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18171 if \$ac_cs_recheck; then
18172 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18175 CONFIG_SHELL='$SHELL'
18176 export CONFIG_SHELL
18181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18186 ## Running $as_me. ##
18192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18196 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18199 # The HP-UX ksh and POSIX shell print the target directory to stdout
18200 # if CDPATH is set.
18201 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18203 sed_quote_subst='$sed_quote_subst'
18204 double_quote_subst='$double_quote_subst'
18205 delay_variable_subst='$delay_variable_subst'
18206 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18207 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18208 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18209 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18210 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18211 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18212 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18213 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18214 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18215 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18216 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18217 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18218 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18219 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18220 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18221 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18222 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18223 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18224 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18225 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18226 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18227 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18228 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18229 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18230 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18231 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18232 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18233 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18234 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18235 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18236 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18237 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18238 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18239 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18240 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18241 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18242 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18243 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18244 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18245 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18246 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18247 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18248 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18249 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18250 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18251 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18252 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18253 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18254 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18255 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18256 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18257 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18258 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18259 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18260 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18261 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18262 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18263 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18264 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18265 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"`'
18266 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18267 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18268 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18269 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18270 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18271 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18272 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18273 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18274 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18275 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18276 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18277 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18278 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18279 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18280 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18281 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18282 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18283 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18284 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18285 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18286 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18287 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18288 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18289 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18290 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18291 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18292 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18293 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18294 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18295 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18296 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18297 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18298 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18299 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18300 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18301 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18302 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18303 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18304 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18305 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18306 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18307 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18308 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18309 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18310 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18311 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18312 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18313 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18314 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18315 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18316 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18317 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18318 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18319 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18320 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18321 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18322 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18323 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18324 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18325 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18326 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18327 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18328 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18329 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18330 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18331 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18332 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18333 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18334 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18335 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18336 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18337 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18338 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18339 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18340 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18341 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18342 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18343 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18344 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18345 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18346 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18347 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18348 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18349 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18350 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18351 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18352 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18353 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18354 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18355 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18356 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18357 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18358 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18359 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18360 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18361 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18362 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18363 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18364 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18365 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18366 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18367 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18368 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18369 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18370 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18371 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18372 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18373 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18374 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18375 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18376 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18377 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18378 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18379 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18380 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18381 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18382 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18383 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18384 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18385 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18386 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18387 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18388 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18389 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18390 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18391 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18392 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18393 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18394 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18395 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18398 LTCFLAGS='$LTCFLAGS'
18399 compiler='$compiler_DEFAULT'
18401 # A function that is used when there is no print builtin or printf.
18402 func_fallback_echo ()
18404 eval 'cat <<_LTECHO_EOF
18409 # Quote evaled strings.
18426 deplibs_check_method \
18430 sharedlib_from_linklib_cmd \
18433 archiver_list_spec \
18439 lt_cv_sys_global_symbol_pipe \
18440 lt_cv_sys_global_symbol_to_cdecl \
18441 lt_cv_sys_global_symbol_to_import \
18442 lt_cv_sys_global_symbol_to_c_name_address \
18443 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18444 lt_cv_nm_interface \
18445 nm_file_list_spec \
18446 lt_cv_truncate_bin \
18447 lt_prog_compiler_no_builtin_flag \
18448 lt_prog_compiler_pic \
18449 lt_prog_compiler_wl \
18450 lt_prog_compiler_static \
18451 lt_cv_prog_compiler_c_o \
18460 export_dynamic_flag_spec \
18461 whole_archive_flag_spec \
18462 compiler_needs_object \
18464 allow_undefined_flag \
18465 no_undefined_flag \
18466 hardcode_libdir_flag_spec \
18467 hardcode_libdir_separator \
18471 variables_saved_for_relink \
18473 library_names_spec \
18475 install_override_mode \
18479 compiler_lib_search_dirs \
18484 compiler_lib_search_path \
18488 lt_prog_compiler_no_builtin_flag_CXX \
18489 lt_prog_compiler_pic_CXX \
18490 lt_prog_compiler_wl_CXX \
18491 lt_prog_compiler_static_CXX \
18492 lt_cv_prog_compiler_c_o_CXX \
18493 export_dynamic_flag_spec_CXX \
18494 whole_archive_flag_spec_CXX \
18495 compiler_needs_object_CXX \
18497 allow_undefined_flag_CXX \
18498 no_undefined_flag_CXX \
18499 hardcode_libdir_flag_spec_CXX \
18500 hardcode_libdir_separator_CXX \
18501 exclude_expsyms_CXX \
18502 include_expsyms_CXX \
18503 file_list_spec_CXX \
18504 compiler_lib_search_dirs_CXX \
18505 predep_objects_CXX \
18506 postdep_objects_CXX \
18509 compiler_lib_search_path_CXX; do
18510 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18511 *[\\\\\\\`\\"\\\$]*)
18512 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18515 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18520 # Double-quote double-evaled strings.
18521 for var in reload_cmds \
18522 old_postinstall_cmds \
18523 old_postuninstall_cmds \
18525 extract_expsyms_cmds \
18526 old_archive_from_new_cmds \
18527 old_archive_from_expsyms_cmds \
18529 archive_expsym_cmds \
18531 module_expsym_cmds \
18532 export_symbols_cmds \
18536 postuninstall_cmds \
18538 sys_lib_search_path_spec \
18539 configure_time_dlsearch_path \
18540 configure_time_lt_sys_library_path \
18542 old_archive_cmds_CXX \
18543 old_archive_from_new_cmds_CXX \
18544 old_archive_from_expsyms_cmds_CXX \
18546 archive_expsym_cmds_CXX \
18548 module_expsym_cmds_CXX \
18549 export_symbols_cmds_CXX \
18551 postlink_cmds_CXX; do
18552 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18553 *[\\\\\\\`\\"\\\$]*)
18554 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18557 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18562 ac_aux_dir='$ac_aux_dir'
18564 # See if we are running on zsh, and set the options that allow our
18565 # commands through without removal of \ escapes INIT.
18566 if test -n "\${ZSH_VERSION+set}"; then
18567 setopt NO_GLOB_SUBST
18583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18585 # Handling of arguments.
18586 for ac_config_target in $ac_config_targets
18588 case $ac_config_target in
18589 "rtaudio.pc") CONFIG_FILES="$CONFIG_FILES rtaudio.pc" ;;
18590 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18591 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18592 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18593 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
18594 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18595 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18596 "doc/release.txt") CONFIG_LINKS="$CONFIG_LINKS doc/release.txt:doc/release.txt" ;;
18597 "doc/doxygen/footer.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/footer.html:doc/doxygen/footer.html" ;;
18598 "doc/doxygen/error.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/error.txt:doc/doxygen/error.txt" ;;
18599 "doc/doxygen/tutorial.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt" ;;
18600 "doc/doxygen/compiling.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/compiling.txt:doc/doxygen/compiling.txt" ;;
18601 "doc/doxygen/acknowledge.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt" ;;
18602 "doc/doxygen/license.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/license.txt:doc/doxygen/license.txt" ;;
18603 "doc/doxygen/header.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/header.html:doc/doxygen/header.html" ;;
18604 "doc/doxygen/duplex.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/duplex.txt:doc/doxygen/duplex.txt" ;;
18605 "doc/doxygen/settings.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/settings.txt:doc/doxygen/settings.txt" ;;
18606 "doc/doxygen/probe.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/probe.txt:doc/doxygen/probe.txt" ;;
18607 "doc/doxygen/playback.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/playback.txt:doc/doxygen/playback.txt" ;;
18608 "doc/doxygen/multi.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/multi.txt:doc/doxygen/multi.txt" ;;
18609 "doc/doxygen/recording.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/recording.txt:doc/doxygen/recording.txt" ;;
18610 "doc/doxygen/apinotes.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt" ;;
18611 "doc/images/mcgill.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/mcgill.gif:doc/images/mcgill.gif" ;;
18612 "doc/images/ccrma.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/ccrma.gif:doc/images/ccrma.gif" ;;
18614 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18619 # If the user did not use the arguments to specify the items to instantiate,
18620 # then the envvar interface is used. Set only those that are not.
18621 # We use the long form for the default assignment because of an extremely
18622 # bizarre bug on SunOS 4.1.3.
18623 if $ac_need_defaults; then
18624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18625 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18626 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18629 # Have a temporary directory for convenience. Make it in the build tree
18630 # simply because there is no reason against having it here, and in addition,
18631 # creating and moving files from /tmp can sometimes cause problems.
18632 # Hook for its removal unless debugging.
18633 # Note that there is a small window in which the directory will not be cleaned:
18634 # after its creation but before its name has been assigned to `$tmp'.
18638 trap 'exit_status=$?
18639 : "${ac_tmp:=$tmp}"
18640 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18642 trap 'as_fn_exit 1' 1 2 13 15
18644 # Create a (secure) tmp directory for tmp files.
18647 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18651 tmp=./conf$$-$RANDOM
18652 (umask 077 && mkdir "$tmp")
18653 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18656 # Set up the scripts for CONFIG_FILES section.
18657 # No need to generate them if there are no CONFIG_FILES.
18658 # This happens for instance with `./config.status config.h'.
18659 if test -n "$CONFIG_FILES"; then
18662 ac_cr=`echo X | tr X '\015'`
18663 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18664 # But we know of no other shell where ac_cr would be empty at this
18665 # point, so we can use a bashism as a fallback.
18666 if test "x$ac_cr" = x; then
18667 eval ac_cr=\$\'\\r\'
18669 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18670 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18673 ac_cs_awk_cr=$ac_cr
18676 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18681 echo "cat >conf$$subs.awk <<_ACEOF" &&
18682 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18684 } >conf$$subs.sh ||
18685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18686 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18688 for ac_last_try in false false false false false :; do
18689 . ./conf$$subs.sh ||
18690 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18692 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18693 if test $ac_delim_n = $ac_delim_num; then
18695 elif $ac_last_try; then
18696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18701 rm -f conf$$subs.sh
18703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18704 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18708 s/^/S["/; s/!.*/"]=/
18718 s/\(.\{148\}\)..*/\1/
18720 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18732 s/\(.\{148\}\)..*/\1/
18734 s/["\\]/\\&/g; s/^/"/; s/$/"/
18738 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18743 ' <conf$$subs.awk | sed '
18748 ' >>$CONFIG_STATUS || ac_write_fail=1
18749 rm -f conf$$subs.awk
18750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18752 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18753 for (key in S) S_is_set[key] = 1
18759 nfields = split(line, field, "@")
18761 len = length(field[1])
18762 for (i = 2; i < nfields; i++) {
18764 keylen = length(key)
18765 if (S_is_set[key]) {
18767 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18768 len += length(value) + length(field[++i])
18779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18780 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18781 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18784 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18785 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18788 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18789 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18790 # trailing colons and then remove the whole line if VPATH becomes empty
18791 # (actually we leave an empty line to preserve line numbers).
18792 if test "x$srcdir" = x.; then
18793 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18812 fi # test -n "$CONFIG_FILES"
18815 eval set X " :F $CONFIG_FILES :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18820 :[FHLC]) ac_mode=$ac_tag; continue;;
18822 case $ac_mode$ac_tag in
18824 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18825 :[FH]-) ac_tag=-:-;;
18826 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18843 -) ac_f="$ac_tmp/stdin";;
18844 *) # Look for the file first in the build tree, then in the source tree
18845 # (if the path is not absolute). The absolute path cannot be DOS-style,
18846 # because $ac_f cannot contain `:'.
18850 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18852 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18854 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18855 as_fn_append ac_file_inputs " '$ac_f'"
18858 # Let's still pretend it is `configure' which instantiates (i.e., don't
18859 # use $as_me), people would be surprised to read:
18860 # /* config.h. Generated by config.status. */
18861 configure_input='Generated from '`
18862 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18864 if test x"$ac_file" != x-; then
18865 configure_input="$ac_file. $configure_input"
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18867 $as_echo "$as_me: creating $ac_file" >&6;}
18869 # Neutralize special characters interpreted by sed in replacement strings.
18870 case $configure_input in #(
18871 *\&* | *\|* | *\\* )
18872 ac_sed_conf_input=`$as_echo "$configure_input" |
18873 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18874 *) ac_sed_conf_input=$configure_input;;
18878 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18884 ac_dir=`$as_dirname -- "$ac_file" ||
18885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18886 X"$ac_file" : 'X\(//\)[^/]' \| \
18887 X"$ac_file" : 'X\(//\)$' \| \
18888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18889 $as_echo X"$ac_file" |
18890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18894 /^X\(\/\/\)[^/].*/{
18907 as_dir="$ac_dir"; as_fn_mkdir_p
18911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18914 # A ".." for each directory in $ac_dir_suffix.
18915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18916 case $ac_top_builddir_sub in
18917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18921 ac_abs_top_builddir=$ac_pwd
18922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18923 # for backward compatibility:
18924 ac_top_builddir=$ac_top_build_prefix
18927 .) # We are building in place.
18929 ac_top_srcdir=$ac_top_builddir_sub
18930 ac_abs_top_srcdir=$ac_pwd ;;
18931 [\\/]* | ?:[\\/]* ) # Absolute name.
18932 ac_srcdir=$srcdir$ac_dir_suffix;
18933 ac_top_srcdir=$srcdir
18934 ac_abs_top_srcdir=$srcdir ;;
18935 *) # Relative name.
18936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18937 ac_top_srcdir=$ac_top_build_prefix$srcdir
18938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18950 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18951 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18953 ac_MKDIR_P=$MKDIR_P
18955 [\\/$]* | ?:[\\/]* ) ;;
18956 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18961 # If the template does not know about datarootdir, expand it.
18962 # FIXME: This hack should be removed a few years after 2.60.
18963 ac_datarootdir_hack=; ac_datarootdir_seen=
18974 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18975 *datarootdir*) ac_datarootdir_seen=yes;;
18976 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18978 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18981 ac_datarootdir_hack='
18982 s&@datadir@&$datadir&g
18983 s&@docdir@&$docdir&g
18984 s&@infodir@&$infodir&g
18985 s&@localedir@&$localedir&g
18986 s&@mandir@&$mandir&g
18987 s&\\\${datarootdir}&$datarootdir&g' ;;
18991 # Neutralize VPATH when `$srcdir' = `.'.
18992 # Shell code in configure.ac might set extrasub.
18993 # FIXME: do we really want to maintain this feature?
18994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18995 ac_sed_extra="$ac_vpsub
18998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19001 s|@configure_input@|$ac_sed_conf_input|;t t
19002 s&@top_builddir@&$ac_top_builddir_sub&;t t
19003 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19004 s&@srcdir@&$ac_srcdir&;t t
19005 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19006 s&@top_srcdir@&$ac_top_srcdir&;t t
19007 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19008 s&@builddir@&$ac_builddir&;t t
19009 s&@abs_builddir@&$ac_abs_builddir&;t t
19010 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19011 s&@INSTALL@&$ac_INSTALL&;t t
19012 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19013 $ac_datarootdir_hack
19015 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19016 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19018 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19019 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19020 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19021 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19023 which seems to be undefined. Please make sure it is defined" >&5
19024 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19025 which seems to be undefined. Please make sure it is defined" >&2;}
19027 rm -f "$ac_tmp/stdin"
19029 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19030 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19040 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19043 # Prefer the file from the source tree if names are identical.
19044 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19045 ac_source=$srcdir/$ac_source
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19049 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19051 if test ! -r "$ac_source"; then
19052 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19056 # Try a relative symlink, then a hard link, then a copy.
19058 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19059 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19061 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19062 ln "$ac_source" "$ac_file" 2>/dev/null ||
19063 cp -p "$ac_source" "$ac_file" ||
19064 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19067 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19068 $as_echo "$as_me: executing $ac_file commands" >&6;}
19073 case $ac_file$ac_mode in
19074 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19075 # Older Autoconf quotes --file arguments for eval, but not when files
19076 # are listed without --file. Let's play safe and only enable the eval
19077 # if we detect the quoting.
19078 case $CONFIG_FILES in
19079 *\'*) eval set x "$CONFIG_FILES" ;;
19080 *) set x $CONFIG_FILES ;;
19085 # Strip MF so we end up with the name of the file.
19086 mf=`echo "$mf" | sed -e 's/:.*$//'`
19087 # Check whether this is an Automake generated Makefile or not.
19088 # We used to match only the files named 'Makefile.in', but
19089 # some people rename them; so instead we look at the file content.
19090 # Grep'ing the first line is not enough: some people post-process
19091 # each Makefile.in and add a new line on top of each file to say so.
19092 # Grep'ing the whole file is not good either: AIX grep has a line
19093 # limit of 2048, but all sed's we know have understand at least 4000.
19094 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19095 dirpart=`$as_dirname -- "$mf" ||
19096 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19097 X"$mf" : 'X\(//\)[^/]' \| \
19098 X"$mf" : 'X\(//\)$' \| \
19099 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19105 /^X\(\/\/\)[^/].*/{
19121 # Extract the definition of DEPDIR, am__include, and am__quote
19122 # from the Makefile without running 'make'.
19123 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19124 test -z "$DEPDIR" && continue
19125 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19126 test -z "$am__include" && continue
19127 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19128 # Find all dependency output files, they are included files with
19129 # $(DEPDIR) in their names. We invoke sed twice because it is the
19130 # simplest approach to changing $(DEPDIR) to its actual value in the
19132 for file in `sed -n "
19133 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19134 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19135 # Make sure the directory exists.
19136 test -f "$dirpart/$file" && continue
19137 fdir=`$as_dirname -- "$file" ||
19138 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19139 X"$file" : 'X\(//\)[^/]' \| \
19140 X"$file" : 'X\(//\)$' \| \
19141 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19142 $as_echo X"$file" |
19143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19147 /^X\(\/\/\)[^/].*/{
19160 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19161 # echo "creating $dirpart/$file"
19162 echo '# dummy' > "$dirpart/$file"
19169 # See if we are running on zsh, and set the options that allow our
19170 # commands through without removal of \ escapes.
19171 if test -n "${ZSH_VERSION+set}"; then
19172 setopt NO_GLOB_SUBST
19176 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19179 cat <<_LT_EOF >> "$cfgfile"
19181 # Generated automatically by $as_me ($PACKAGE) $VERSION
19182 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19184 # Provide generalized library-building support services.
19185 # Written by Gordon Matzigkeit, 1996
19187 # Copyright (C) 2014 Free Software Foundation, Inc.
19188 # This is free software; see the source for copying conditions. There is NO
19189 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19191 # GNU Libtool is free software; you can redistribute it and/or modify
19192 # it under the terms of the GNU General Public License as published by
19193 # the Free Software Foundation; either version 2 of of the License, or
19194 # (at your option) any later version.
19196 # As a special exception to the GNU General Public License, if you
19197 # distribute this file as part of a program or library that is built
19198 # using GNU Libtool, you may include this file under the same
19199 # distribution terms that you use for the rest of that program.
19201 # GNU Libtool is distributed in the hope that it will be useful, but
19202 # WITHOUT ANY WARRANTY; without even the implied warranty of
19203 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19204 # GNU General Public License for more details.
19206 # You should have received a copy of the GNU General Public License
19207 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19210 # The names of the tagged configurations supported by this script.
19211 available_tags='CXX '
19213 # Configured defaults for sys_lib_dlsearch_path munging.
19214 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19216 # ### BEGIN LIBTOOL CONFIG
19218 # Which release of libtool.m4 was used?
19219 macro_version=$macro_version
19220 macro_revision=$macro_revision
19222 # Assembler program.
19225 # DLL creation program.
19226 DLLTOOL=$lt_DLLTOOL
19228 # Object dumper program.
19229 OBJDUMP=$lt_OBJDUMP
19231 # Whether or not to build shared libraries.
19232 build_libtool_libs=$enable_shared
19234 # Whether or not to build static libraries.
19235 build_old_libs=$enable_static
19237 # What type of objects to build.
19240 # Whether or not to optimize for fast installation.
19241 fast_install=$enable_fast_install
19243 # Shared archive member basename,for filename based shared library versioning on AIX.
19244 shared_archive_member_spec=$shared_archive_member_spec
19246 # Shell to use when invoking shell scripts.
19249 # An echo program that protects backslashes.
19252 # The PATH separator for the build system.
19253 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19256 host_alias=$host_alias
19260 # The build system.
19261 build_alias=$build_alias
19265 # A sed program that does not truncate output.
19268 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19269 Xsed="\$SED -e 1s/^X//"
19271 # A grep program that handles long lines.
19277 # A literal string matcher.
19280 # A BSD- or MS-compatible name lister.
19283 # Whether we need soft or hard links.
19286 # What is the maximum length of a command?
19287 max_cmd_len=$max_cmd_len
19289 # Object file suffix (normally "o").
19292 # Executable file suffix (normally "").
19295 # whether the shell understands "unset".
19298 # turn spaces into newlines.
19301 # turn newlines into spaces.
19304 # convert \$build file names to \$host format.
19305 to_host_file_cmd=$lt_cv_to_host_file_cmd
19307 # convert \$build files to toolchain format.
19308 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19310 # Method to check whether dependent libraries are shared objects.
19311 deplibs_check_method=$lt_deplibs_check_method
19313 # Command to use when deplibs_check_method = "file_magic".
19314 file_magic_cmd=$lt_file_magic_cmd
19316 # How to find potential files when deplibs_check_method = "file_magic".
19317 file_magic_glob=$lt_file_magic_glob
19319 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19320 want_nocaseglob=$lt_want_nocaseglob
19322 # Command to associate shared and link libraries.
19323 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19328 # Flags to create an archive.
19329 AR_FLAGS=$lt_AR_FLAGS
19331 # How to feed a file listing to the archiver.
19332 archiver_list_spec=$lt_archiver_list_spec
19334 # A symbol stripping program.
19337 # Commands used to install an old-style archive.
19339 old_postinstall_cmds=$lt_old_postinstall_cmds
19340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19342 # Whether to use a lock for old archive extraction.
19343 lock_old_archive_extraction=$lock_old_archive_extraction
19348 # LTCC compiler flags.
19349 LTCFLAGS=$lt_CFLAGS
19351 # Take the output of nm and produce a listing of raw symbols and C names.
19352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19354 # Transform the output of nm in a proper C declaration.
19355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19357 # Transform the output of nm into a list of symbols to manually relocate.
19358 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19360 # Transform the output of nm in a C name address pair.
19361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19363 # Transform the output of nm in a C name address pair when lib prefix is needed.
19364 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19366 # The name lister interface.
19367 nm_interface=$lt_lt_cv_nm_interface
19369 # Specify filename containing input files for \$NM.
19370 nm_file_list_spec=$lt_nm_file_list_spec
19372 # The root where to search for dependent libraries,and where our libraries should be installed.
19373 lt_sysroot=$lt_sysroot
19375 # Command to truncate a binary pipe.
19376 lt_truncate_bin=$lt_lt_cv_truncate_bin
19378 # The name of the directory that contains temporary libtool files.
19381 # Used to examine libraries when file_magic_cmd begins with "file".
19382 MAGIC_CMD=$MAGIC_CMD
19384 # Must we lock files when doing compilation?
19385 need_locks=$lt_need_locks
19388 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19390 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19391 DSYMUTIL=$lt_DSYMUTIL
19393 # Tool to change global to local symbols on Mac OS X.
19396 # Tool to manipulate fat objects and archives on Mac OS X.
19399 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19402 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19403 OTOOL64=$lt_OTOOL64
19405 # Old archive suffix (normally "a").
19408 # Shared library suffix (normally ".so").
19409 shrext_cmds=$lt_shrext_cmds
19411 # The commands to extract the exported symbol list from a shared archive.
19412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19414 # Variables whose values should be saved in libtool wrapper scripts and
19415 # restored at link time.
19416 variables_saved_for_relink=$lt_variables_saved_for_relink
19418 # Do we need the "lib" prefix for modules?
19419 need_lib_prefix=$need_lib_prefix
19421 # Do we need a version for libraries?
19422 need_version=$need_version
19424 # Library versioning type.
19425 version_type=$version_type
19427 # Shared library runtime path variable.
19428 runpath_var=$runpath_var
19430 # Shared library path variable.
19431 shlibpath_var=$shlibpath_var
19433 # Is shlibpath searched before the hard-coded library search path?
19434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19436 # Format of library name prefix.
19437 libname_spec=$lt_libname_spec
19439 # List of archive names. First name is the real one, the rest are links.
19440 # The last name is the one that the linker finds with -lNAME
19441 library_names_spec=$lt_library_names_spec
19443 # The coded name of the library, if different from the real name.
19444 soname_spec=$lt_soname_spec
19446 # Permission mode override for installation of shared libraries.
19447 install_override_mode=$lt_install_override_mode
19449 # Command to use after installation of a shared archive.
19450 postinstall_cmds=$lt_postinstall_cmds
19452 # Command to use after uninstallation of a shared archive.
19453 postuninstall_cmds=$lt_postuninstall_cmds
19455 # Commands used to finish a libtool library installation in a directory.
19456 finish_cmds=$lt_finish_cmds
19458 # As "finish_cmds", except a single script fragment to be evaled but
19460 finish_eval=$lt_finish_eval
19462 # Whether we should hardcode library paths into libraries.
19463 hardcode_into_libs=$hardcode_into_libs
19465 # Compile-time system search path for libraries.
19466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19468 # Detected run-time system search path for libraries.
19469 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19471 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19472 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19474 # Whether dlopen is supported.
19475 dlopen_support=$enable_dlopen
19477 # Whether dlopen of programs is supported.
19478 dlopen_self=$enable_dlopen_self
19480 # Whether dlopen of statically linked programs is supported.
19481 dlopen_self_static=$enable_dlopen_self_static
19483 # Commands to strip libraries.
19484 old_striplib=$lt_old_striplib
19485 striplib=$lt_striplib
19488 # The linker used to build libraries.
19491 # How to create reloadable object files.
19492 reload_flag=$lt_reload_flag
19493 reload_cmds=$lt_reload_cmds
19495 # Commands used to build an old-style archive.
19496 old_archive_cmds=$lt_old_archive_cmds
19498 # A language specific compiler.
19501 # Is the compiler the GNU compiler?
19504 # Compiler flag to turn off builtin functions.
19505 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19507 # Additional compiler flags for building library objects.
19508 pic_flag=$lt_lt_prog_compiler_pic
19510 # How to pass a linker flag through the compiler.
19511 wl=$lt_lt_prog_compiler_wl
19513 # Compiler flag to prevent dynamic linking.
19514 link_static_flag=$lt_lt_prog_compiler_static
19516 # Does compiler simultaneously support -c and -o options?
19517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19519 # Whether or not to add -lc for building shared libraries.
19520 build_libtool_need_lc=$archive_cmds_need_lc
19522 # Whether or not to disallow shared libs when runtime libs are static.
19523 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19525 # Compiler flag to allow reflexive dlopens.
19526 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19528 # Compiler flag to generate shared objects directly from archives.
19529 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19531 # Whether the compiler copes with passing no objects directly.
19532 compiler_needs_object=$lt_compiler_needs_object
19534 # Create an old-style archive from a shared archive.
19535 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19537 # Create a temporary old-style archive to link instead of a shared archive.
19538 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19540 # Commands used to build a shared archive.
19541 archive_cmds=$lt_archive_cmds
19542 archive_expsym_cmds=$lt_archive_expsym_cmds
19544 # Commands used to build a loadable module if different from building
19545 # a shared archive.
19546 module_cmds=$lt_module_cmds
19547 module_expsym_cmds=$lt_module_expsym_cmds
19549 # Whether we are building with GNU ld or not.
19550 with_gnu_ld=$lt_with_gnu_ld
19552 # Flag that allows shared libraries with undefined symbols to be built.
19553 allow_undefined_flag=$lt_allow_undefined_flag
19555 # Flag that enforces no undefined symbols.
19556 no_undefined_flag=$lt_no_undefined_flag
19558 # Flag to hardcode \$libdir into a binary during linking.
19559 # This must work even if \$libdir does not exist
19560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19562 # Whether we need a single "-rpath" flag with a separated argument.
19563 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19565 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19566 # DIR into the resulting binary.
19567 hardcode_direct=$hardcode_direct
19569 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19570 # DIR into the resulting binary and the resulting library dependency is
19571 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19572 # library is relocated.
19573 hardcode_direct_absolute=$hardcode_direct_absolute
19575 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19576 # into the resulting binary.
19577 hardcode_minus_L=$hardcode_minus_L
19579 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19580 # into the resulting binary.
19581 hardcode_shlibpath_var=$hardcode_shlibpath_var
19583 # Set to "yes" if building a shared library automatically hardcodes DIR
19584 # into the library and all subsequent libraries and executables linked
19586 hardcode_automatic=$hardcode_automatic
19588 # Set to yes if linker adds runtime paths of dependent libraries
19589 # to runtime path list.
19590 inherit_rpath=$inherit_rpath
19592 # Whether libtool must link a program against all its dependency libraries.
19593 link_all_deplibs=$link_all_deplibs
19595 # Set to "yes" if exported symbols are required.
19596 always_export_symbols=$always_export_symbols
19598 # The commands to list exported symbols.
19599 export_symbols_cmds=$lt_export_symbols_cmds
19601 # Symbols that should not be listed in the preloaded symbols.
19602 exclude_expsyms=$lt_exclude_expsyms
19604 # Symbols that must always be exported.
19605 include_expsyms=$lt_include_expsyms
19607 # Commands necessary for linking programs (against libraries) with templates.
19608 prelink_cmds=$lt_prelink_cmds
19610 # Commands necessary for finishing linking programs.
19611 postlink_cmds=$lt_postlink_cmds
19613 # Specify filename containing input files.
19614 file_list_spec=$lt_file_list_spec
19616 # How to hardcode a shared library path into an executable.
19617 hardcode_action=$hardcode_action
19619 # The directories searched by this compiler when creating a shared library.
19620 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19622 # Dependencies to place before and after the objects being linked to
19623 # create a shared library.
19624 predep_objects=$lt_predep_objects
19625 postdep_objects=$lt_postdep_objects
19626 predeps=$lt_predeps
19627 postdeps=$lt_postdeps
19629 # The library search path used internally by the compiler when linking
19630 # a shared library.
19631 compiler_lib_search_path=$lt_compiler_lib_search_path
19633 # ### END LIBTOOL CONFIG
19637 cat <<'_LT_EOF' >> "$cfgfile"
19639 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19641 # func_munge_path_list VARIABLE PATH
19642 # -----------------------------------
19643 # VARIABLE is name of variable containing _space_ separated list of
19644 # directories to be munged by the contents of PATH, which is string
19647 # string "DIR[ DIR]" will be prepended to VARIABLE
19649 # string "DIR[ DIR]" will be appended to VARIABLE
19650 # "DIRP[:DIRP]::[DIRA:]DIRA"
19651 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19652 # "DIRA[ DIRA]" will be appended to VARIABLE
19654 # VARIABLE will be replaced by "DIR[ DIR]"
19655 func_munge_path_list ()
19661 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19664 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19667 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19668 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19671 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19677 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19678 func_cc_basename ()
19680 for cc_temp in $*""; do
19682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19688 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19692 # ### END FUNCTIONS SHARED WITH CONFIGURE
19698 cat <<\_LT_EOF >> "$cfgfile"
19699 # AIX sometimes has problems with the GCC collect2 program. For some
19700 # reason, if we set the COLLECT_NAMES environment variable, the problems
19701 # vanish in a puff of smoke.
19702 if test set != "${COLLECT_NAMES+set}"; then
19704 export COLLECT_NAMES
19711 ltmain=$ac_aux_dir/ltmain.sh
19714 # We use sed instead of cat because bash on DJGPP gets confused if
19715 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19716 # text mode, it properly converts lines to CR/LF. This bash problem
19717 # is reportedly fixed, but why not run on old versions too?
19718 sed '$q' "$ltmain" >> "$cfgfile" \
19719 || (rm -f "$cfgfile"; exit 1)
19721 mv -f "$cfgfile" "$ofile" ||
19722 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19726 cat <<_LT_EOF >> "$ofile"
19728 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19730 # The linker used to build libraries.
19733 # How to create reloadable object files.
19734 reload_flag=$lt_reload_flag_CXX
19735 reload_cmds=$lt_reload_cmds_CXX
19737 # Commands used to build an old-style archive.
19738 old_archive_cmds=$lt_old_archive_cmds_CXX
19740 # A language specific compiler.
19741 CC=$lt_compiler_CXX
19743 # Is the compiler the GNU compiler?
19746 # Compiler flag to turn off builtin functions.
19747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19749 # Additional compiler flags for building library objects.
19750 pic_flag=$lt_lt_prog_compiler_pic_CXX
19752 # How to pass a linker flag through the compiler.
19753 wl=$lt_lt_prog_compiler_wl_CXX
19755 # Compiler flag to prevent dynamic linking.
19756 link_static_flag=$lt_lt_prog_compiler_static_CXX
19758 # Does compiler simultaneously support -c and -o options?
19759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19761 # Whether or not to add -lc for building shared libraries.
19762 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19764 # Whether or not to disallow shared libs when runtime libs are static.
19765 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19767 # Compiler flag to allow reflexive dlopens.
19768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19770 # Compiler flag to generate shared objects directly from archives.
19771 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19773 # Whether the compiler copes with passing no objects directly.
19774 compiler_needs_object=$lt_compiler_needs_object_CXX
19776 # Create an old-style archive from a shared archive.
19777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19779 # Create a temporary old-style archive to link instead of a shared archive.
19780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19782 # Commands used to build a shared archive.
19783 archive_cmds=$lt_archive_cmds_CXX
19784 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19786 # Commands used to build a loadable module if different from building
19787 # a shared archive.
19788 module_cmds=$lt_module_cmds_CXX
19789 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19791 # Whether we are building with GNU ld or not.
19792 with_gnu_ld=$lt_with_gnu_ld_CXX
19794 # Flag that allows shared libraries with undefined symbols to be built.
19795 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19797 # Flag that enforces no undefined symbols.
19798 no_undefined_flag=$lt_no_undefined_flag_CXX
19800 # Flag to hardcode \$libdir into a binary during linking.
19801 # This must work even if \$libdir does not exist
19802 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19804 # Whether we need a single "-rpath" flag with a separated argument.
19805 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19807 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19808 # DIR into the resulting binary.
19809 hardcode_direct=$hardcode_direct_CXX
19811 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19812 # DIR into the resulting binary and the resulting library dependency is
19813 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19814 # library is relocated.
19815 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19817 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19818 # into the resulting binary.
19819 hardcode_minus_L=$hardcode_minus_L_CXX
19821 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19822 # into the resulting binary.
19823 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19825 # Set to "yes" if building a shared library automatically hardcodes DIR
19826 # into the library and all subsequent libraries and executables linked
19828 hardcode_automatic=$hardcode_automatic_CXX
19830 # Set to yes if linker adds runtime paths of dependent libraries
19831 # to runtime path list.
19832 inherit_rpath=$inherit_rpath_CXX
19834 # Whether libtool must link a program against all its dependency libraries.
19835 link_all_deplibs=$link_all_deplibs_CXX
19837 # Set to "yes" if exported symbols are required.
19838 always_export_symbols=$always_export_symbols_CXX
19840 # The commands to list exported symbols.
19841 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19843 # Symbols that should not be listed in the preloaded symbols.
19844 exclude_expsyms=$lt_exclude_expsyms_CXX
19846 # Symbols that must always be exported.
19847 include_expsyms=$lt_include_expsyms_CXX
19849 # Commands necessary for linking programs (against libraries) with templates.
19850 prelink_cmds=$lt_prelink_cmds_CXX
19852 # Commands necessary for finishing linking programs.
19853 postlink_cmds=$lt_postlink_cmds_CXX
19855 # Specify filename containing input files.
19856 file_list_spec=$lt_file_list_spec_CXX
19858 # How to hardcode a shared library path into an executable.
19859 hardcode_action=$hardcode_action_CXX
19861 # The directories searched by this compiler when creating a shared library.
19862 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19864 # Dependencies to place before and after the objects being linked to
19865 # create a shared library.
19866 predep_objects=$lt_predep_objects_CXX
19867 postdep_objects=$lt_postdep_objects_CXX
19868 predeps=$lt_predeps_CXX
19869 postdeps=$lt_postdeps_CXX
19871 # The library search path used internally by the compiler when linking
19872 # a shared library.
19873 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19875 # ### END LIBTOOL TAG CONFIG: CXX
19886 ac_clean_files=$ac_clean_files_save
19888 test $ac_write_fail = 0 ||
19889 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19892 # configure is writing to config.log, and then calls config.status.
19893 # config.status does its own redirection, appending to config.log.
19894 # Unfortunately, on DOS this fails, as config.log is still kept open
19895 # by configure, so config.status won't be able to write to it; its
19896 # output is simply discarded. So we exec the FD to /dev/null,
19897 # effectively closing config.log, so it can be properly (re)opened and
19898 # appended to by config.status. When coming back to configure, we
19899 # need to make the FD available again.
19900 if test "$no_create" != yes; then
19902 ac_config_status_args=
19903 test "$silent" = yes &&
19904 ac_config_status_args="$ac_config_status_args --quiet"
19906 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19908 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19909 # would make configure fail if this is the last instruction.
19910 $ac_cs_success || as_fn_exit 1
19912 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19914 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}