2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libvorbis 1.3.7.
5 # Report bugs to <vorbis-dev@xiph.org>.
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: vorbis-dev@xiph.org 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='libvorbis'
592 PACKAGE_TARNAME='libvorbis'
593 PACKAGE_VERSION='1.3.7'
594 PACKAGE_STRING='libvorbis 1.3.7'
595 PACKAGE_BUGREPORT='vorbis-dev@xiph.org'
598 ac_unique_file="lib/mdct.c"
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
708 MAINTAINER_MODE_FALSE
722 INSTALL_STRIP_PROGRAM
773 program_transform_name
787 enable_option_checking
789 enable_maintainer_mode
790 enable_dependency_tracking
806 ac_precious_vars='build_alias
821 # Initialize some variables set by options.
823 ac_init_version=false
824 ac_unrecognized_opts=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name=s,x,x,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 runstatedir='${localstatedir}/run'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
980 -help | --help | --hel | --he | -h)
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1110 -runstatedir | --runstatedir | --runstatedi | --runstated \
1111 | --runstate | --runstat | --runsta | --runst | --runs \
1112 | --run | --ru | --r)
1113 ac_prev=runstatedir ;;
1114 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1115 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1116 | --run=* | --ru=* | --r=*)
1117 runstatedir=$ac_optarg ;;
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 sbindir=$ac_optarg ;;
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1138 -site=* | --site=* | --sit=*)
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1178 eval with_$ac_useropt=\$ac_optarg ;;
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1194 eval with_$ac_useropt=no ;;
1197 # Obsolete; use --with-x.
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir runstatedir
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1265 # Be sure to have absolute directory names.
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292 test "$silent" = yes && exec 6>/dev/null
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1369 \`configure' configures libvorbis 1.3.7 to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/libvorbis]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433 --build=BUILD configure for building on BUILD [guessed]
1434 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 if test -n "$ac_init_help"; then
1439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of libvorbis 1.3.7:";;
1445 --disable-option-checking ignore unrecognized --enable/--with options
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-silent-rules less verbose build output (undo: "make V=1")
1449 --disable-silent-rules verbose build output (undo: "make V=0")
1450 --enable-maintainer-mode
1451 enable make rules and dependencies not useful (and
1452 sometimes confusing) to the casual installer
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-docs build the documentation
1463 --enable-examples build the examples
1464 --disable-oggtest Do not try to compile and run a test Ogg program
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1471 --with-aix-soname=aix|svr4|both
1472 shared library versioning (aka "SONAME") variant to
1473 provide on AIX, [default=aix].
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1476 compiler's sysroot if not specified).
1477 --with-ogg=PFX Prefix where libogg is installed (optional)
1478 --with-ogg-libraries=DIR
1479 Directory where libogg library is installed
1481 --with-ogg-includes=DIR Directory where libogg header files are installed
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1494 User-defined run-time library search path.
1495 PKG_CONFIG path to pkg-config utility
1496 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1497 OGG_LIBS linker flags for OGG, overriding pkg-config
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1502 Report bugs to <vorbis-dev@xiph.org>.
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1532 .) # We are building in place.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1565 libvorbis configure 1.3.7
1566 generated by GNU Autoconf 2.69
1568 Copyright (C) 2012 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; then :
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1615 } # ac_fn_c_try_compile
1617 # ac_fn_c_try_cpp LINENO
1618 # ----------------------
1619 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } > conftest.i && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1654 # ac_fn_c_try_link LINENO
1655 # -----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded.
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext conftest$ac_exeext
1661 if { { ac_try="$ac_link"
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 test -x conftest$ac_exeext
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1698 } # ac_fn_c_try_link
1700 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists and can be compiled using the include files in
1703 # INCLUDES, setting the cache variable VAR accordingly.
1704 ac_fn_c_check_header_compile ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \${$3+:} false; then :
1710 $as_echo_n "(cached) " >&6
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1717 if ac_fn_c_try_compile "$LINENO"; then :
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 } # ac_fn_c_check_header_compile
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=$ac_status
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1796 # include <limits.h>
1798 # include <assert.h>
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1825 if ac_fn_c_try_link "$LINENO"; then :
1830 rm -f core conftest.err conftest.$ac_objext \
1831 conftest$ac_exeext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_func
1840 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1843 # the include files in INCLUDES and setting the cache variable VAR
1845 ac_fn_c_check_header_mongrel ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if eval \${$3+:} false; then :
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1858 # Is the header compilable?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1860 $as_echo_n "checking $2 usability... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867 ac_header_compiler=yes
1869 ac_header_compiler=no
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1873 $as_echo "$ac_header_compiler" >&6; }
1875 # Is the header present?
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1877 $as_echo_n "checking $2 presence... " >&6; }
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1882 if ac_fn_c_try_cpp "$LINENO"; then :
1883 ac_header_preproc=yes
1885 ac_header_preproc=no
1887 rm -f conftest.err conftest.i conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1889 $as_echo "$ac_header_preproc" >&6; }
1891 # So? What about this header?
1892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1895 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1901 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1903 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1905 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1907 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 ( $as_echo "## ---------------------------------- ##
1911 ## Report this to vorbis-dev@xiph.org ##
1912 ## ---------------------------------- ##"
1913 ) | sed "s/^/$as_me: WARNING: /" >&2
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1921 eval "$3=\$ac_header_compiler"
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_header_mongrel
1931 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1932 # -------------------------------------------
1933 # Tests whether TYPE exists after having included INCLUDES, setting cache
1934 # variable VAR accordingly.
1935 ac_fn_c_check_type ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_type
1984 cat >config.log <<_ACEOF
1985 This file contains any messages produced by compilers while
1986 running configure, to aid debugging if configure makes a mistake.
1988 It was created by libvorbis $as_me 1.3.7, which was
1989 generated by GNU Autoconf 2.69. Invocation command line was
2001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2013 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 $as_echo "PATH: $as_dir"
2041 # Keep a trace of the command line.
2042 # Strip out --no-create and --no-recursion so they do not pile up.
2043 # Strip out --silent because we don't want to record it for future runs.
2044 # Also quote any args containing shell meta-characters.
2045 # Make two passes to allow for proper duplicate-argument suppression.
2049 ac_must_keep_next=false
2055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2057 | -silent | --silent | --silen | --sile | --sil)
2060 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2065 as_fn_append ac_configure_args1 " '$ac_arg'"
2066 if test $ac_must_keep_next = true; then
2067 ac_must_keep_next=false # Got value, back to normal.
2070 *=* | --config-cache | -C | -disable-* | --disable-* \
2071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2073 | -with-* | --with-* | -without-* | --without-* | --x)
2074 case "$ac_configure_args0 " in
2075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078 -* ) ac_must_keep_next=true ;;
2081 as_fn_append ac_configure_args " '$ac_arg'"
2086 { ac_configure_args0=; unset ac_configure_args0;}
2087 { ac_configure_args1=; unset ac_configure_args1;}
2089 # When interrupted or exit'd, cleanup temporary files, and complete
2090 # config.log. We remove comments because anyway the quotes in there
2091 # would cause problems or look ugly.
2092 # WARNING: Use '\'' to represent an apostrophe within the trap.
2093 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2094 trap 'exit_status=$?
2095 # Save into config.log some information that might help in debugging.
2099 $as_echo "## ---------------- ##
2100 ## Cache variables. ##
2101 ## ---------------- ##"
2103 # The following way of writing the cache mishandles newlines in values,
2105 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2106 eval ac_val=\$$ac_var
2110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114 _ | IFS | as_nl) ;; #(
2115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116 *) { eval $ac_var=; unset $ac_var;} ;;
2121 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2122 *${as_nl}ac_space=\ *)
2124 "s/'\''/'\''\\\\'\'''\''/g;
2125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2135 $as_echo "## ----------------- ##
2136 ## Output variables. ##
2137 ## ----------------- ##"
2139 for ac_var in $ac_subst_vars
2141 eval ac_val=\$$ac_var
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 $as_echo "$ac_var='\''$ac_val'\''"
2149 if test -n "$ac_subst_files"; then
2150 $as_echo "## ------------------- ##
2151 ## File substitutions. ##
2152 ## ------------------- ##"
2154 for ac_var in $ac_subst_files
2156 eval ac_val=\$$ac_var
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2160 $as_echo "$ac_var='\''$ac_val'\''"
2165 if test -s confdefs.h; then
2166 $as_echo "## ----------- ##
2173 test "$ac_signal" != 0 &&
2174 $as_echo "$as_me: caught signal $ac_signal"
2175 $as_echo "$as_me: exit $exit_status"
2177 rm -f core *.core core.conftest.* &&
2178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181 for ac_signal in 1 2 13 15; do
2182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2187 rm -f -r conftest* confdefs.h
2189 $as_echo "/* confdefs.h */" > confdefs.h
2191 # Predefined preprocessor variables.
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_URL "$PACKAGE_URL"
2218 # Let the site file select an alternate cache file if it wants to.
2219 # Prefer an explicitly selected file to automatically selected ones.
2222 if test -n "$CONFIG_SITE"; then
2223 # We do not want a PATH search for config.site.
2224 case $CONFIG_SITE in #((
2225 -*) ac_site_file1=./$CONFIG_SITE;;
2226 */*) ac_site_file1=$CONFIG_SITE;;
2227 *) ac_site_file1=./$CONFIG_SITE;;
2229 elif test "x$prefix" != xNONE; then
2230 ac_site_file1=$prefix/share/config.site
2231 ac_site_file2=$prefix/etc/config.site
2233 ac_site_file1=$ac_default_prefix/share/config.site
2234 ac_site_file2=$ac_default_prefix/etc/config.site
2236 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2238 test "x$ac_site_file" = xNONE && continue
2239 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2241 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2242 sed 's/^/| /' "$ac_site_file" >&5
2244 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 as_fn_error $? "failed to load site script $ac_site_file
2247 See \`config.log' for more details" "$LINENO" 5; }
2251 if test -r "$cache_file"; then
2252 # Some versions of bash will fail to source /dev/null (special files
2253 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2254 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2256 $as_echo "$as_me: loading cache $cache_file" >&6;}
2258 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2259 *) . "./$cache_file";;
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2264 $as_echo "$as_me: creating cache $cache_file" >&6;}
2268 # Check that the precious variables saved in the cache have kept the same
2270 ac_cache_corrupted=false
2271 for ac_var in $ac_precious_vars; do
2272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273 eval ac_new_set=\$ac_env_${ac_var}_set
2274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275 eval ac_new_val=\$ac_env_${ac_var}_value
2276 case $ac_old_set,$ac_new_set in
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2287 if test "x$ac_old_val" != "x$ac_new_val"; then
2288 # differences in whitespace do not lead to failure.
2289 ac_old_val_w=`echo x $ac_old_val`
2290 ac_new_val_w=`echo x $ac_new_val`
2291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294 ac_cache_corrupted=:
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298 eval $ac_var=\$ac_old_val
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2301 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 # Pass precious variables to config.status.
2307 if test "$ac_new_set" = set; then
2309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310 *) ac_arg=$ac_var=$ac_new_val ;;
2312 case " $ac_configure_args " in
2313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2318 if $ac_cache_corrupted; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2325 ## -------------------- ##
2326 ## Main body of script. ##
2327 ## -------------------- ##
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2342 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2343 if test -f "$ac_dir/install-sh"; then
2345 ac_install_sh="$ac_aux_dir/install-sh -c"
2347 elif test -f "$ac_dir/install.sh"; then
2349 ac_install_sh="$ac_aux_dir/install.sh -c"
2351 elif test -f "$ac_dir/shtool"; then
2353 ac_install_sh="$ac_aux_dir/shtool install -c"
2357 if test -z "$ac_aux_dir"; then
2358 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2361 # These three variables are undocumented and unsupported,
2362 # and are intended to be withdrawn in a future Autoconf release.
2363 # They can cause serious problems if a builder's source tree is in a directory
2364 # whose full name contains unusual characters.
2365 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2366 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2367 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370 # Make sure we can run config.sub.
2371 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2372 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2375 $as_echo_n "checking build system type... " >&6; }
2376 if ${ac_cv_build+:} false; then :
2377 $as_echo_n "(cached) " >&6
2379 ac_build_alias=$build_alias
2380 test "x$ac_build_alias" = x &&
2381 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2382 test "x$ac_build_alias" = x &&
2383 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2384 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2385 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2389 $as_echo "$ac_cv_build" >&6; }
2390 case $ac_cv_build in
2392 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2395 ac_save_IFS=$IFS; IFS='-'
2401 # Remember, the first character of IFS is used to create $*,
2402 # except with old shells:
2405 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2409 $as_echo_n "checking host system type... " >&6; }
2410 if ${ac_cv_host+:} false; then :
2411 $as_echo_n "(cached) " >&6
2413 if test "x$host_alias" = x; then
2414 ac_cv_host=$ac_cv_build
2416 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2417 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2422 $as_echo "$ac_cv_host" >&6; }
2425 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2428 ac_save_IFS=$IFS; IFS='-'
2434 # Remember, the first character of IFS is used to create $*,
2435 # except with old shells:
2438 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2442 am__api_version='1.16'
2444 # Find a good install program. We prefer a C program (faster),
2445 # so one script is as good as another. But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 # Reject install programs that cannot install multiple files.
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2460 if test -z "$INSTALL"; then
2461 if ${ac_cv_path_install+:} false; then :
2462 $as_echo_n "(cached) " >&6
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 # Account for people who put trailing slashes in PATH elements.
2470 case $as_dir/ in #((
2471 ./ | .// | /[cC]/* | \
2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2476 # OSF1 and SCO ODT 3.0 have their own names for install.
2477 # Don't use installbsd from OSF since it installs stuff as root
2479 for ac_prog in ginstall scoinst install; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2482 if test $ac_prog = install &&
2483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # AIX install. It has an incompatible calling convention.
2486 elif test $ac_prog = install &&
2487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2491 rm -rf conftest.one conftest.two conftest.dir
2492 echo one > conftest.one
2493 echo two > conftest.two
2495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496 test -s conftest.one && test -s conftest.two &&
2497 test -s conftest.dir/conftest.one &&
2498 test -s conftest.dir/conftest.two
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2513 rm -rf conftest.one conftest.two conftest.dir
2516 if test "${ac_cv_path_install+set}" = set; then
2517 INSTALL=$ac_cv_path_install
2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for INSTALL within a source directory, because that will
2521 # break other packages using the cache if that directory is
2522 # removed, or if the value is a relative name.
2523 INSTALL=$ac_install_sh
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527 $as_echo "$INSTALL" >&6; }
2529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530 # It thinks the first close brace ends the variable substitution.
2531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2538 $as_echo_n "checking whether build environment is sane... " >&6; }
2539 # Reject unsafe characters in $srcdir or the absolute working directory
2540 # name. Accept space and tab only in the latter.
2544 *[\\\"\#\$\&\'\`$am_lf]*)
2545 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2548 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2549 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2552 # Do 'set' in a subshell so we don't clobber the current shell's
2553 # arguments. Must try -L first in case configure is actually a
2554 # symlink; some systems play weird games with the mod time of symlinks
2555 # (eg FreeBSD returns the mod time of the symlink's containing
2559 for am_try in 1 2; do
2560 echo "timestamp, slept: $am_has_slept" > conftest.file
2561 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2562 if test "$*" = "X"; then
2564 set X `ls -t "$srcdir/configure" conftest.file`
2566 if test "$*" != "X $srcdir/configure conftest.file" \
2567 && test "$*" != "X conftest.file $srcdir/configure"; then
2569 # If neither matched, then we have a broken ls. This can happen
2570 # if, for instance, CONFIG_SHELL is bash and it inherits a
2571 # broken ls alias from the environment. This has actually
2572 # happened. Such a system could not be considered "sane".
2573 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2574 alias in your environment" "$LINENO" 5
2576 if test "$2" = conftest.file || test $am_try -eq 2; then
2583 test "$2" = conftest.file
2589 as_fn_error $? "newly created file is older than distributed files!
2590 Check your system clock" "$LINENO" 5
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2593 $as_echo "yes" >&6; }
2594 # If we didn't sleep, we still need to ensure time stamps of config.status and
2595 # generated files are strictly newer.
2597 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2604 test "$program_prefix" != NONE &&
2605 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2606 # Use a double $ so make ignores it.
2607 test "$program_suffix" != NONE &&
2608 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2609 # Double any \ or $.
2610 # By default was `s,x,x', remove it if useless.
2611 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2612 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2614 # Expand $ac_aux_dir to an absolute path.
2615 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2617 if test x"${MISSING+set}" != xset; then
2620 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2622 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2625 # Use eval to expand $SHELL
2626 if eval "$MISSING --is-lightweight"; then
2627 am_missing_run="$MISSING "
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2631 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2634 if test x"${install_sh+set}" != xset; then
2637 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2639 install_sh="\${SHELL} $am_aux_dir/install-sh"
2643 # Installed binaries are usually stripped using 'strip' when the user
2644 # run "make install-strip". However 'strip' might not be the right
2645 # tool to use in cross-compilation environments, therefore Automake
2646 # will honor the 'STRIP' environment variable to overrule this program.
2647 if test "$cross_compiling" != no; then
2648 if test -n "$ac_tool_prefix"; then
2649 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2650 set dummy ${ac_tool_prefix}strip; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_STRIP+:} false; then :
2654 $as_echo_n "(cached) " >&6
2656 if test -n "$STRIP"; then
2657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 STRIP=$ac_cv_prog_STRIP
2677 if test -n "$STRIP"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2679 $as_echo "$STRIP" >&6; }
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2687 if test -z "$ac_cv_prog_STRIP"; then
2689 # Extract the first word of "strip", so it can be a program name with args.
2690 set dummy strip; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2694 $as_echo_n "(cached) " >&6
2696 if test -n "$ac_ct_STRIP"; then
2697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_ac_ct_STRIP="strip"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2717 if test -n "$ac_ct_STRIP"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2719 $as_echo "$ac_ct_STRIP" >&6; }
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2725 if test "x$ac_ct_STRIP" = x; then
2728 case $cross_compiling:$ac_tool_warned in
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2732 ac_tool_warned=yes ;;
2737 STRIP="$ac_cv_prog_STRIP"
2741 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2744 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2745 if test -z "$MKDIR_P"; then
2746 if ${ac_cv_path_mkdir+:} false; then :
2747 $as_echo_n "(cached) " >&6
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2753 test -z "$as_dir" && as_dir=.
2754 for ac_prog in mkdir gmkdir; do
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2757 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2758 'mkdir (GNU coreutils) '* | \
2759 'mkdir (coreutils) '* | \
2760 'mkdir (fileutils) '4.1*)
2761 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2771 test -d ./--version && rmdir ./--version
2772 if test "${ac_cv_path_mkdir+set}" = set; then
2773 MKDIR_P="$ac_cv_path_mkdir -p"
2775 # As a last resort, use the slow shell script. Don't cache a
2776 # value for MKDIR_P within a source directory, because that will
2777 # break other packages using the cache if that directory is
2778 # removed, or if the value is a relative name.
2779 MKDIR_P="$ac_install_sh -d"
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2783 $as_echo "$MKDIR_P" >&6; }
2785 for ac_prog in gawk mawk nawk awk
2787 # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_AWK+:} false; then :
2792 $as_echo_n "(cached) " >&6
2794 if test -n "$AWK"; then
2795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_AWK="$ac_prog"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 if test -n "$AWK"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2817 $as_echo "$AWK" >&6; }
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2824 test -n "$AWK" && break
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2828 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2830 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2831 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2832 $as_echo_n "(cached) " >&6
2834 cat >conftest.make <<\_ACEOF
2837 @echo '@@@%%%=$(MAKE)=@@@%%%'
2839 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2840 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2842 eval ac_cv_prog_make_${ac_make}_set=yes;;
2844 eval ac_cv_prog_make_${ac_make}_set=no;;
2848 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850 $as_echo "yes" >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 SET_MAKE="MAKE=${MAKE-make}"
2858 rm -rf .tst 2>/dev/null
2859 mkdir .tst 2>/dev/null
2860 if test -d .tst; then
2865 rmdir .tst 2>/dev/null
2867 # Check whether --enable-silent-rules was given.
2868 if test "${enable_silent_rules+set}" = set; then :
2869 enableval=$enable_silent_rules;
2872 case $enable_silent_rules in # (((
2873 yes) AM_DEFAULT_VERBOSITY=0;;
2874 no) AM_DEFAULT_VERBOSITY=1;;
2875 *) AM_DEFAULT_VERBOSITY=1;;
2877 am_make=${MAKE-make}
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2879 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2880 if ${am_cv_make_support_nested_variables+:} false; then :
2881 $as_echo_n "(cached) " >&6
2883 if $as_echo 'TRUE=$(BAR$(V))
2889 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2890 am_cv_make_support_nested_variables=yes
2892 am_cv_make_support_nested_variables=no
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2896 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2897 if test $am_cv_make_support_nested_variables = yes; then
2899 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2901 AM_V=$AM_DEFAULT_VERBOSITY
2902 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2906 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2907 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2908 # is not polluted with repeated "-I."
2909 am__isrc=' -I$(srcdir)'
2910 # test to see if srcdir already configured
2911 if test -f $srcdir/config.status; then
2912 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2916 # test whether we have cygpath
2917 if test -z "$CYGPATH_W"; then
2918 if (cygpath --version) >/dev/null 2>/dev/null; then
2919 CYGPATH_W='cygpath -w'
2926 # Define the identity of the package.
2931 cat >>confdefs.h <<_ACEOF
2932 #define PACKAGE "$PACKAGE"
2936 cat >>confdefs.h <<_ACEOF
2937 #define VERSION "$VERSION"
2940 # Some tools Automake needs.
2942 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2951 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2954 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2956 # For better backward compatibility. To be removed once Automake 1.9.x
2957 # dies out for good. For more background, see:
2958 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2959 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2960 mkdir_p='$(MKDIR_P)'
2962 # We need awk for the "check" target (and possibly the TAP driver). The
2963 # system "awk" is bad on some platforms.
2964 # Always define AMTAR for backward compatibility. Yes, it's still used
2965 # in the wild :-( We should find a proper way to deprecate it ...
2969 # We'll loop over all known methods to create a tar archive until one works.
2970 _am_tools='gnutar pax cpio none'
2972 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2979 # POSIX will say in a future version that running "rm -f" with no argument
2980 # is OK; and we want to be able to make that assumption in our Makefile
2981 # recipes. So use an aggressive probe to check that the usage we want is
2982 # actually supported "in the wild" to an acceptable degree.
2983 # See automake bug#10828.
2984 # To make any issue more visible, cause the running configure to be aborted
2985 # by default if the 'rm' program in use doesn't match our expectations; the
2986 # user can still override this though.
2987 if rm -f && rm -fr && rm -rf; then : OK; else
2991 Your 'rm' program seems unable to run without file operands specified
2992 on the command line, even when the '-f' option is present. This is contrary
2993 to the behaviour of most rm programs out there, and not conforming with
2994 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2996 Please tell bug-automake@gnu.org about your system, including the value
2997 of your $PATH and any error possibly output before this message. This
2998 can help us improve future automake versions.
3001 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3002 echo 'Configuration will proceed anyway, since you have set the' >&2
3003 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3007 Aborting the configuration process, to ensure you take notice of the issue.
3009 You can download and install GNU coreutils to get an 'rm' implementation
3010 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3012 If you want to complete the configuration process using your problematic
3013 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3014 to "yes", and re-run configure.
3017 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3023 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3024 # Check whether --enable-maintainer-mode was given.
3025 if test "${enable_maintainer_mode+set}" = set; then :
3026 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3028 USE_MAINTAINER_MODE=no
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3032 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3033 if test $USE_MAINTAINER_MODE = yes; then
3034 MAINTAINER_MODE_TRUE=
3035 MAINTAINER_MODE_FALSE='#'
3037 MAINTAINER_MODE_TRUE='#'
3038 MAINTAINER_MODE_FALSE=
3041 MAINT=$MAINTAINER_MODE_TRUE
3045 ACLOCAL_AMFLAGS="-I m4"
3048 # Check whether --enable-silent-rules was given.
3049 if test "${enable_silent_rules+set}" = set; then :
3050 enableval=$enable_silent_rules;
3053 case $enable_silent_rules in # (((
3054 yes) AM_DEFAULT_VERBOSITY=0;;
3055 no) AM_DEFAULT_VERBOSITY=1;;
3056 *) AM_DEFAULT_VERBOSITY=0;;
3058 am_make=${MAKE-make}
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3060 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3061 if ${am_cv_make_support_nested_variables+:} false; then :
3062 $as_echo_n "(cached) " >&6
3064 if $as_echo 'TRUE=$(BAR$(V))
3070 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3071 am_cv_make_support_nested_variables=yes
3073 am_cv_make_support_nested_variables=no
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3077 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3078 if test $am_cv_make_support_nested_variables = yes; then
3080 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3082 AM_V=$AM_DEFAULT_VERBOSITY
3083 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3112 cflags_save="$CFLAGS"
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118 if test -n "$ac_tool_prefix"; then
3119 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3120 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3157 if test -z "$ac_cv_prog_CC"; then
3159 # Extract the first word of "gcc", so it can be a program name with args.
3160 set dummy gcc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -n "$ac_ct_CC"; then
3167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_ac_ct_CC="gcc"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3189 $as_echo "$ac_ct_CC" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3195 if test "x$ac_ct_CC" = x; then
3198 case $cross_compiling:$ac_tool_warned in
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3202 ac_tool_warned=yes ;;
3210 if test -z "$CC"; then
3211 if test -n "$ac_tool_prefix"; then
3212 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3213 set dummy ${ac_tool_prefix}cc; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC="$CC" # Let the user override the test.
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_CC="${ac_tool_prefix}cc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 if test -n "$CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242 $as_echo "$CC" >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3251 if test -z "$CC"; then
3252 # Extract the first word of "cc", so it can be a program name with args.
3253 set dummy cc; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_CC+:} false; then :
3257 $as_echo_n "(cached) " >&6
3259 if test -n "$CC"; then
3260 ac_cv_prog_CC="$CC" # Let the user override the test.
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3271 ac_prog_rejected=yes
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 if test $ac_prog_rejected = yes; then
3283 # We found a bogon in the path, so make sure we never use it.
3284 set dummy $ac_cv_prog_CC
3286 if test $# != 0; then
3287 # We chose a different compiler from the bogus one.
3288 # However, it has the same basename, so the bogon will be chosen
3289 # first if we set CC to just the basename; use the full file name.
3291 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3307 if test -z "$CC"; then
3308 if test -n "$ac_tool_prefix"; then
3309 for ac_prog in cl.exe
3311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3348 test -n "$CC" && break
3351 if test -z "$CC"; then
3353 for ac_prog in cl.exe
3355 # Extract the first word of "$ac_prog", so it can be a program name with args.
3356 set dummy $ac_prog; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3360 $as_echo_n "(cached) " >&6
3362 if test -n "$ac_ct_CC"; then
3363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_ac_ct_CC="$ac_prog"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3383 if test -n "$ac_ct_CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385 $as_echo "$ac_ct_CC" >&6; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3392 test -n "$ac_ct_CC" && break
3395 if test "x$ac_ct_CC" = x; then
3398 case $cross_compiling:$ac_tool_warned in
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402 ac_tool_warned=yes ;;
3411 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "no acceptable C compiler found in \$PATH
3414 See \`config.log' for more details" "$LINENO" 5; }
3416 # Provide some information about the compiler.
3417 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3420 for ac_option in --version -v -V -qversion; do
3421 { { ac_try="$ac_compiler $ac_option >&5"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3430 if test -s conftest.err; then
3432 ... rest of stderr output deleted ...
3433 10q' conftest.err >conftest.er1
3434 cat conftest.er1 >&5
3436 rm -f conftest.er1 conftest.err
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3452 ac_clean_files_save=$ac_clean_files
3453 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3454 # Try to create an executable without -o first, disregard a.out.
3455 # It will help us diagnose broken compilers, and finding out an intuition
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3458 $as_echo_n "checking whether the C compiler works... " >&6; }
3459 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3461 # The possible output files:
3462 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3465 for ac_file in $ac_files
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3469 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3474 if { { ac_try="$ac_link_default"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_link_default") 2>&5
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
3485 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3486 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3487 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3488 # so that the user can short-circuit this test for compilers unknown to
3490 for ac_file in $ac_files ''
3492 test -f "$ac_file" || continue
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3497 # We found the default executable, but exeext='' is most
3501 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3503 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3505 # We set ac_cv_exeext here because the later test for it is not
3506 # safe: cross compilers may not add the suffix if given an `-o'
3507 # argument, so we may need to know it at that point already.
3508 # Even if this section looks crufty: it has the advantage of
3515 test "$ac_cv_exeext" = no && ac_cv_exeext=
3520 if test -z "$ac_file"; then :
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3523 $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error 77 "C compiler cannot create executables
3529 See \`config.log' for more details" "$LINENO" 5; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532 $as_echo "yes" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3535 $as_echo_n "checking for C compiler default output file name... " >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3537 $as_echo "$ac_file" >&6; }
3538 ac_exeext=$ac_cv_exeext
3540 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3541 ac_clean_files=$ac_clean_files_save
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3543 $as_echo_n "checking for suffix of executables... " >&6; }
3544 if { { ac_try="$ac_link"
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_link") 2>&5
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }; then :
3555 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3556 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3557 # work properly (i.e., refer to `conftest.exe'), while it won't with
3559 for ac_file in conftest.exe conftest conftest.*; do
3560 test -f "$ac_file" || continue
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3572 See \`config.log' for more details" "$LINENO" 5; }
3574 rm -f conftest conftest$ac_cv_exeext
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3576 $as_echo "$ac_cv_exeext" >&6; }
3578 rm -f conftest.$ac_ext
3579 EXEEXT=$ac_cv_exeext
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3587 FILE *f = fopen ("conftest.out", "w");
3588 return ferror (f) || fclose (f) != 0;
3594 ac_clean_files="$ac_clean_files conftest.out"
3595 # Check that the compiler produces executables we can run. If not, either
3596 # the compiler is broken, or we cross compile.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3598 $as_echo_n "checking whether we are cross compiling... " >&6; }
3599 if test "$cross_compiling" != yes; then
3600 { { ac_try="$ac_link"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link") 2>&5
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }
3611 if { ac_try='./conftest$ac_cv_exeext'
3612 { { case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_try") 2>&5
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; }; then
3624 if test "$cross_compiling" = maybe; then
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $? "cannot run C compiled programs.
3630 If you meant to cross compile, use \`--host'.
3631 See \`config.log' for more details" "$LINENO" 5; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3636 $as_echo "$cross_compiling" >&6; }
3638 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3639 ac_clean_files=$ac_clean_files_save
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3641 $as_echo_n "checking for suffix of object files... " >&6; }
3642 if ${ac_cv_objext+:} false; then :
3643 $as_echo_n "(cached) " >&6
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3656 rm -f conftest.o conftest.obj
3657 if { { ac_try="$ac_compile"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_compile") 2>&5
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }; then :
3668 for ac_file in conftest.o conftest.obj conftest.*; do
3669 test -f "$ac_file" || continue;
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3672 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error $? "cannot compute suffix of object files: cannot compile
3683 See \`config.log' for more details" "$LINENO" 5; }
3685 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3688 $as_echo "$ac_cv_objext" >&6; }
3689 OBJEXT=$ac_cv_objext
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3692 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3693 if ${ac_cv_c_compiler_gnu+:} false; then :
3694 $as_echo_n "(cached) " >&6
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3710 if ac_fn_c_try_compile "$LINENO"; then :
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3720 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3721 if test $ac_compiler_gnu = yes; then
3726 ac_test_CFLAGS=${CFLAGS+set}
3727 ac_save_CFLAGS=$CFLAGS
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3729 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3730 if ${ac_cv_prog_cc_g+:} false; then :
3731 $as_echo_n "(cached) " >&6
3733 ac_save_c_werror_flag=$ac_c_werror_flag
3734 ac_c_werror_flag=yes
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3748 if ac_fn_c_try_compile "$LINENO"; then :
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3763 if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_c_werror_flag=$ac_save_c_werror_flag
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3779 if ac_fn_c_try_compile "$LINENO"; then :
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3790 $as_echo "$ac_cv_prog_cc_g" >&6; }
3791 if test "$ac_test_CFLAGS" = set; then
3792 CFLAGS=$ac_save_CFLAGS
3793 elif test $ac_cv_prog_cc_g = yes; then
3794 if test "$GCC" = yes; then
3800 if test "$GCC" = yes; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3807 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3808 if ${ac_cv_prog_cc_c89+:} false; then :
3809 $as_echo_n "(cached) " >&6
3811 ac_cv_prog_cc_c89=no
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3818 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3819 struct buf { int x; };
3820 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3821 static char *e (p, i)
3827 static char *f (char * (*g) (char **, int), char **p, ...)
3832 s = g (p, va_arg (v,int));
3837 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3838 function prototypes and stuff, but not '\xHH' hex character constants.
3839 These don't provoke an error unfortunately, instead are silently treated
3840 as 'x'. The following induces an error, until -std is added to get
3841 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3842 array size at least. It's necessary to write '\x00'==0 to get something
3843 that's true only with -std. */
3844 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3846 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3847 inside strings and character constants. */
3849 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3851 int test (int i, double x);
3852 struct s1 {int (*f) (int a);};
3853 struct s2 {int (*f) (double a);};
3854 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3860 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3865 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3866 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3868 CC="$ac_save_CC $ac_arg"
3869 if ac_fn_c_try_compile "$LINENO"; then :
3870 ac_cv_prog_cc_c89=$ac_arg
3872 rm -f core conftest.err conftest.$ac_objext
3873 test "x$ac_cv_prog_cc_c89" != "xno" && break
3875 rm -f conftest.$ac_ext
3880 case "x$ac_cv_prog_cc_c89" in
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3883 $as_echo "none needed" >&6; } ;;
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3886 $as_echo "unsupported" >&6; } ;;
3888 CC="$CC $ac_cv_prog_cc_c89"
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3890 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3892 if test "x$ac_cv_prog_cc_c89" != xno; then :
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3908 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3909 if ${am_cv_prog_cc_c_o+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3923 # Make sure it works both with $CC and with simple cc.
3924 # Following AC_PROG_CC_C_O, we do the test twice because some
3925 # compilers refuse to overwrite an existing .o file with -o,
3926 # though they will create one.
3927 am_cv_prog_cc_c_o=yes
3929 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3930 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } \
3934 && test -f conftest2.$ac_objext; then
3937 am_cv_prog_cc_c_o=no
3941 rm -f core conftest*
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3945 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3946 if test "$am_cv_prog_cc_c_o" != yes; then
3947 # Losing compiler, so override with the script.
3948 # FIXME: It is wrong to rewrite CC.
3949 # But if we don't then we get into trouble of one sort or another.
3950 # A longer-term fix would be to have automake use am__CC in this case,
3951 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3952 CC="$am_aux_dir/compile $CC"
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960 DEPDIR="${am__leading_dot}deps"
3962 ac_config_commands="$ac_config_commands depfiles"
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3965 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3966 cat > confinc.mk << 'END'
3968 @echo this is the am__doit target >confinc.out
3973 # BSD make does it like this.
3974 echo '.include "confinc.mk" # ignored' > confmf.BSD
3975 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3976 echo 'include confinc.mk # ignored' > confmf.GNU
3978 for s in GNU BSD; do
3979 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3980 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }
3984 case $?:`cat confinc.out 2>/dev/null` in #(
3985 '0:this is the am__doit target') :
3988 am__include='.include' am__quote='"' ;; #(
3990 am__include='include' am__quote='' ;;
3995 if test "$am__include" != "#"; then
3996 _am_result="yes ($s style)"
4000 rm -f confinc.* confmf.*
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4002 $as_echo "${_am_result}" >&6; }
4004 # Check whether --enable-dependency-tracking was given.
4005 if test "${enable_dependency_tracking+set}" = set; then :
4006 enableval=$enable_dependency_tracking;
4009 if test "x$enable_dependency_tracking" != xno; then
4010 am_depcomp="$ac_aux_dir/depcomp"
4014 if test "x$enable_dependency_tracking" != xno; then
4024 depcc="$CC" am_compiler_list=
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4027 $as_echo_n "checking dependency style of $depcc... " >&6; }
4028 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4029 $as_echo_n "(cached) " >&6
4031 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4032 # We make a subdir and do the tests there. Otherwise we can end up
4033 # making bogus files that we don't know about and never remove. For
4034 # instance it was reported that on HP-UX the gcc test will end up
4035 # making a dummy file named 'D' -- because '-MD' means "put the output
4039 # Copy depcomp to subdir because otherwise we won't find it if we're
4040 # using a relative directory.
4041 cp "$am_depcomp" conftest.dir
4043 # We will build objects and dependencies in a subdirectory because
4044 # it helps to detect inapplicable dependency modes. For instance
4045 # both Tru64's cc and ICC support -MD to output dependencies as a
4046 # side effect of compilation, but ICC will put the dependencies in
4047 # the current directory while Tru64 will put them in the object
4051 am_cv_CC_dependencies_compiler_type=none
4052 if test "$am_compiler_list" = ""; then
4053 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4056 case " $depcc " in #(
4057 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4060 for depmode in $am_compiler_list; do
4061 # Setup a source with many dependencies, because some compilers
4062 # like to wrap large dependency lists on column 80 (with \), and
4063 # we should not choose a depcomp mode which is confused by this.
4065 # We need to recreate these files for each test, as the compiler may
4066 # overwrite some of them when testing with obscure command lines.
4067 # This happens at least with the AIX C compiler.
4069 for i in 1 2 3 4 5 6; do
4070 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4071 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4072 # Solaris 10 /bin/sh.
4073 echo '/* dummy */' > sub/conftst$i.h
4075 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4077 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4078 # mode. It turns out that the SunPro C++ compiler does not properly
4079 # handle '-M -o', and we need to detect this. Also, some Intel
4080 # versions had trouble with output in subdirs.
4081 am__obj=sub/conftest.${OBJEXT-o}
4082 am__minus_obj="-o $am__obj"
4085 # This depmode causes a compiler race in universal mode.
4086 test "$am__universal" = false || continue
4089 # After this tag, mechanisms are not by side-effect, so they'll
4090 # only be used when explicitly requested.
4091 if test "x$enable_dependency_tracking" = xyes; then
4097 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4098 # This compiler won't grok '-c -o', but also, the minuso test has
4099 # not run yet. These depmodes are late enough in the game, and
4100 # so weak that their functioning should not be impacted.
4101 am__obj=conftest.${OBJEXT-o}
4106 if depmode=$depmode \
4107 source=sub/conftest.c object=$am__obj \
4108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4109 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4110 >/dev/null 2>conftest.err &&
4111 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4113 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4115 # icc doesn't choke on unknown options, it will just issue warnings
4116 # or remarks (even with -Werror). So we grep stderr for any message
4117 # that says an option was ignored or not supported.
4118 # When given -MP, icc 7.0 and 7.1 complain thusly:
4119 # icc: Command line warning: ignoring option '-M'; no argument required
4120 # The diagnosis changed in icc 8.0:
4121 # icc: Command line remark: option '-MP' not supported
4122 if (grep 'ignoring option' conftest.err ||
4123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4124 am_cv_CC_dependencies_compiler_type=$depmode
4133 am_cv_CC_dependencies_compiler_type=none
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4138 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4139 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4142 test "x$enable_dependency_tracking" != xno \
4143 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4145 am__fastdepCC_FALSE='#'
4147 am__fastdepCC_TRUE='#'
4148 am__fastdepCC_FALSE=
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4158 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4159 # On Suns, sometimes $CPP names a directory.
4160 if test -n "$CPP" && test -d "$CPP"; then
4163 if test -z "$CPP"; then
4164 if ${ac_cv_prog_CPP+:} false; then :
4165 $as_echo_n "(cached) " >&6
4167 # Double quotes because CPP needs to be expanded
4168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4171 for ac_c_preproc_warn_flag in '' yes
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4182 # include <limits.h>
4184 # include <assert.h>
4188 if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: fails on valid input.
4194 rm -f conftest.err conftest.i conftest.$ac_ext
4196 # OK, works on sane cases. Now check whether nonexistent headers
4197 # can be detected and how.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #include <ac_nonexistent.h>
4202 if ac_fn_c_try_cpp "$LINENO"; then :
4203 # Broken: success on invalid input.
4206 # Passes both tests.
4210 rm -f conftest.err conftest.i conftest.$ac_ext
4213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4214 rm -f conftest.i conftest.err conftest.$ac_ext
4215 if $ac_preproc_ok; then :
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4228 $as_echo "$CPP" >&6; }
4230 for ac_c_preproc_warn_flag in '' yes
4232 # Use a header file that comes with gcc, so configuring glibc
4233 # with a fresh cross-compiler works.
4234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4235 # <limits.h> exists even on freestanding compilers.
4236 # On the NeXT, cc -E runs the code through the compiler's parser,
4237 # not just through cpp. "Syntax error" is here to catch this case.
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4241 # include <limits.h>
4243 # include <assert.h>
4247 if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: fails on valid input.
4253 rm -f conftest.err conftest.i conftest.$ac_ext
4255 # OK, works on sane cases. Now check whether nonexistent headers
4256 # can be detected and how.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #include <ac_nonexistent.h>
4261 if ac_fn_c_try_cpp "$LINENO"; then :
4262 # Broken: success on invalid input.
4265 # Passes both tests.
4269 rm -f conftest.err conftest.i conftest.$ac_ext
4272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4273 rm -f conftest.i conftest.err conftest.$ac_ext
4274 if $ac_preproc_ok; then :
4277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4279 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4280 See \`config.log' for more details" "$LINENO" 5; }
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289 CFLAGS="$cflags_save"
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4293 $as_echo_n "checking for inline... " >&6; }
4294 if ${ac_cv_c_inline+:} false; then :
4295 $as_echo_n "(cached) " >&6
4298 for ac_kw in inline __inline__ __inline; do
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4303 static $ac_kw foo_t static_foo () {return 0; }
4304 $ac_kw foo_t foo () {return 0; }
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309 ac_cv_c_inline=$ac_kw
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 test "$ac_cv_c_inline" != no && break
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4317 $as_echo "$ac_cv_c_inline" >&6; }
4319 case $ac_cv_c_inline in
4322 case $ac_cv_c_inline in
4324 *) ac_val=$ac_cv_c_inline;;
4326 cat >>confdefs.h <<_ACEOF
4328 #define inline $ac_val
4335 enable_win32_dll=yes
4338 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4339 if test -n "$ac_tool_prefix"; then
4340 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4341 set dummy ${ac_tool_prefix}as; ac_word=$2
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343 $as_echo_n "checking for $ac_word... " >&6; }
4344 if ${ac_cv_prog_AS+:} false; then :
4345 $as_echo_n "(cached) " >&6
4347 if test -n "$AS"; then
4348 ac_cv_prog_AS="$AS" # Let the user override the test.
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357 ac_cv_prog_AS="${ac_tool_prefix}as"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 if test -n "$AS"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4370 $as_echo "$AS" >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 $as_echo "no" >&6; }
4378 if test -z "$ac_cv_prog_AS"; then
4380 # Extract the first word of "as", so it can be a program name with args.
4381 set dummy as; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4385 $as_echo_n "(cached) " >&6
4387 if test -n "$ac_ct_AS"; then
4388 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397 ac_cv_prog_ac_ct_AS="as"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4408 if test -n "$ac_ct_AS"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4410 $as_echo "$ac_ct_AS" >&6; }
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413 $as_echo "no" >&6; }
4416 if test "x$ac_ct_AS" = x; then
4419 case $cross_compiling:$ac_tool_warned in
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423 ac_tool_warned=yes ;;
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if ${ac_cv_prog_DLLTOOL+:} false; then :
4437 $as_echo_n "(cached) " >&6
4439 if test -n "$DLLTOOL"; then
4440 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 DLLTOOL=$ac_cv_prog_DLLTOOL
4460 if test -n "$DLLTOOL"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4462 $as_echo "$DLLTOOL" >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4470 if test -z "$ac_cv_prog_DLLTOOL"; then
4471 ac_ct_DLLTOOL=$DLLTOOL
4472 # Extract the first word of "dlltool", so it can be a program name with args.
4473 set dummy dlltool; ac_word=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4477 $as_echo_n "(cached) " >&6
4479 if test -n "$ac_ct_DLLTOOL"; then
4480 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4500 if test -n "$ac_ct_DLLTOOL"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4502 $as_echo "$ac_ct_DLLTOOL" >&6; }
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 $as_echo "no" >&6; }
4508 if test "x$ac_ct_DLLTOOL" = x; then
4511 case $cross_compiling:$ac_tool_warned in
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4515 ac_tool_warned=yes ;;
4517 DLLTOOL=$ac_ct_DLLTOOL
4520 DLLTOOL="$ac_cv_prog_DLLTOOL"
4523 if test -n "$ac_tool_prefix"; then
4524 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4525 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527 $as_echo_n "checking for $ac_word... " >&6; }
4528 if ${ac_cv_prog_OBJDUMP+:} false; then :
4529 $as_echo_n "(cached) " >&6
4531 if test -n "$OBJDUMP"; then
4532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 OBJDUMP=$ac_cv_prog_OBJDUMP
4552 if test -n "$OBJDUMP"; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4554 $as_echo "$OBJDUMP" >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4562 if test -z "$ac_cv_prog_OBJDUMP"; then
4563 ac_ct_OBJDUMP=$OBJDUMP
4564 # Extract the first word of "objdump", so it can be a program name with args.
4565 set dummy objdump; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4569 $as_echo_n "(cached) " >&6
4571 if test -n "$ac_ct_OBJDUMP"; then
4572 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4592 if test -n "$ac_ct_OBJDUMP"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4594 $as_echo "$ac_ct_OBJDUMP" >&6; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4600 if test "x$ac_ct_OBJDUMP" = x; then
4603 case $cross_compiling:$ac_tool_warned in
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4607 ac_tool_warned=yes ;;
4609 OBJDUMP=$ac_ct_OBJDUMP
4612 OBJDUMP="$ac_cv_prog_OBJDUMP"
4618 test -z "$AS" && AS=as
4624 test -z "$DLLTOOL" && DLLTOOL=dlltool
4630 test -z "$OBJDUMP" && OBJDUMP=objdump
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4641 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4646 macro_version='2.4.6'
4647 macro_revision='2.4.6'
4661 ltmain=$ac_aux_dir/ltmain.sh
4663 # Backslashify metacharacters that are still active within
4664 # double-quoted strings.
4665 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4667 # Same as above, but do not quote variable references.
4668 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4670 # Sed substitution to delay expansion of an escaped shell variable in a
4671 # double_quote_subst'ed string.
4672 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4674 # Sed substitution to delay expansion of an escaped single quote.
4675 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4677 # Sed substitution to avoid accidental globbing in evaled expressions
4678 no_glob_subst='s/\*/\\\*/g'
4680 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4681 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4682 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4685 $as_echo_n "checking how to print strings... " >&6; }
4686 # Test print first, because it will be a builtin if present.
4687 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4688 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4690 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4693 # Use this function as a fallback that always works.
4694 func_fallback_echo ()
4696 eval 'cat <<_LTECHO_EOF
4700 ECHO='func_fallback_echo'
4703 # func_echo_all arg...
4704 # Invoke $ECHO with all args, space-separated.
4711 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4712 $as_echo "printf" >&6; } ;;
4713 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4714 $as_echo "print -r" >&6; } ;;
4715 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4716 $as_echo "cat" >&6; } ;;
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4733 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4734 if ${ac_cv_path_SED+:} false; then :
4735 $as_echo_n "(cached) " >&6
4737 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4738 for ac_i in 1 2 3 4 5 6 7; do
4739 ac_script="$ac_script$as_nl$ac_script"
4741 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4742 { ac_script=; unset ac_script;}
4743 if test -z "$SED"; then
4744 ac_path_SED_found=false
4745 # Loop through the user's path and test for each of PROGNAME-LIST
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_prog in sed gsed; do
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4754 as_fn_executable_p "$ac_path_SED" || continue
4755 # Check for GNU ac_path_SED and select it if it is found.
4756 # Check for GNU $ac_path_SED
4757 case `"$ac_path_SED" --version 2>&1` in
4759 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4762 $as_echo_n 0123456789 >"conftest.in"
4765 cat "conftest.in" "conftest.in" >"conftest.tmp"
4766 mv "conftest.tmp" "conftest.in"
4767 cp "conftest.in" "conftest.nl"
4768 $as_echo '' >> "conftest.nl"
4769 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771 as_fn_arith $ac_count + 1 && ac_count=$as_val
4772 if test $ac_count -gt ${ac_path_SED_max-0}; then
4773 # Best one so far, save it but keep looking for a better one
4774 ac_cv_path_SED="$ac_path_SED"
4775 ac_path_SED_max=$ac_count
4777 # 10*(2^10) chars as input seems more than enough
4778 test $ac_count -gt 10 && break
4780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4783 $ac_path_SED_found && break 3
4788 if test -z "$ac_cv_path_SED"; then
4789 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4797 $as_echo "$ac_cv_path_SED" >&6; }
4798 SED="$ac_cv_path_SED"
4801 test -z "$SED" && SED=sed
4802 Xsed="$SED -e 1s/^X//"
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4815 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4816 if ${ac_cv_path_GREP+:} false; then :
4817 $as_echo_n "(cached) " >&6
4819 if test -z "$GREP"; then
4820 ac_path_GREP_found=false
4821 # Loop through the user's path and test for each of PROGNAME-LIST
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4826 test -z "$as_dir" && as_dir=.
4827 for ac_prog in grep ggrep; do
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4830 as_fn_executable_p "$ac_path_GREP" || continue
4831 # Check for GNU ac_path_GREP and select it if it is found.
4832 # Check for GNU $ac_path_GREP
4833 case `"$ac_path_GREP" --version 2>&1` in
4835 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4838 $as_echo_n 0123456789 >"conftest.in"
4841 cat "conftest.in" "conftest.in" >"conftest.tmp"
4842 mv "conftest.tmp" "conftest.in"
4843 cp "conftest.in" "conftest.nl"
4844 $as_echo 'GREP' >> "conftest.nl"
4845 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4847 as_fn_arith $ac_count + 1 && ac_count=$as_val
4848 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4849 # Best one so far, save it but keep looking for a better one
4850 ac_cv_path_GREP="$ac_path_GREP"
4851 ac_path_GREP_max=$ac_count
4853 # 10*(2^10) chars as input seems more than enough
4854 test $ac_count -gt 10 && break
4856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859 $ac_path_GREP_found && break 3
4864 if test -z "$ac_cv_path_GREP"; then
4865 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4868 ac_cv_path_GREP=$GREP
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4873 $as_echo "$ac_cv_path_GREP" >&6; }
4874 GREP="$ac_cv_path_GREP"
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4878 $as_echo_n "checking for egrep... " >&6; }
4879 if ${ac_cv_path_EGREP+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4883 then ac_cv_path_EGREP="$GREP -E"
4885 if test -z "$EGREP"; then
4886 ac_path_EGREP_found=false
4887 # Loop through the user's path and test for each of PROGNAME-LIST
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4892 test -z "$as_dir" && as_dir=.
4893 for ac_prog in egrep; do
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4896 as_fn_executable_p "$ac_path_EGREP" || continue
4897 # Check for GNU ac_path_EGREP and select it if it is found.
4898 # Check for GNU $ac_path_EGREP
4899 case `"$ac_path_EGREP" --version 2>&1` in
4901 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4904 $as_echo_n 0123456789 >"conftest.in"
4907 cat "conftest.in" "conftest.in" >"conftest.tmp"
4908 mv "conftest.tmp" "conftest.in"
4909 cp "conftest.in" "conftest.nl"
4910 $as_echo 'EGREP' >> "conftest.nl"
4911 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4913 as_fn_arith $ac_count + 1 && ac_count=$as_val
4914 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4915 # Best one so far, save it but keep looking for a better one
4916 ac_cv_path_EGREP="$ac_path_EGREP"
4917 ac_path_EGREP_max=$ac_count
4919 # 10*(2^10) chars as input seems more than enough
4920 test $ac_count -gt 10 && break
4922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4925 $ac_path_EGREP_found && break 3
4930 if test -z "$ac_cv_path_EGREP"; then
4931 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4934 ac_cv_path_EGREP=$EGREP
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4940 $as_echo "$ac_cv_path_EGREP" >&6; }
4941 EGREP="$ac_cv_path_EGREP"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4945 $as_echo_n "checking for fgrep... " >&6; }
4946 if ${ac_cv_path_FGREP+:} false; then :
4947 $as_echo_n "(cached) " >&6
4949 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4950 then ac_cv_path_FGREP="$GREP -F"
4952 if test -z "$FGREP"; then
4953 ac_path_FGREP_found=false
4954 # Loop through the user's path and test for each of PROGNAME-LIST
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4959 test -z "$as_dir" && as_dir=.
4960 for ac_prog in fgrep; do
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4963 as_fn_executable_p "$ac_path_FGREP" || continue
4964 # Check for GNU ac_path_FGREP and select it if it is found.
4965 # Check for GNU $ac_path_FGREP
4966 case `"$ac_path_FGREP" --version 2>&1` in
4968 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4971 $as_echo_n 0123456789 >"conftest.in"
4974 cat "conftest.in" "conftest.in" >"conftest.tmp"
4975 mv "conftest.tmp" "conftest.in"
4976 cp "conftest.in" "conftest.nl"
4977 $as_echo 'FGREP' >> "conftest.nl"
4978 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4980 as_fn_arith $ac_count + 1 && ac_count=$as_val
4981 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4982 # Best one so far, save it but keep looking for a better one
4983 ac_cv_path_FGREP="$ac_path_FGREP"
4984 ac_path_FGREP_max=$ac_count
4986 # 10*(2^10) chars as input seems more than enough
4987 test $ac_count -gt 10 && break
4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4992 $ac_path_FGREP_found && break 3
4997 if test -z "$ac_cv_path_FGREP"; then
4998 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5001 ac_cv_path_FGREP=$FGREP
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5007 $as_echo "$ac_cv_path_FGREP" >&6; }
5008 FGREP="$ac_cv_path_FGREP"
5011 test -z "$GREP" && GREP=grep
5031 # Check whether --with-gnu-ld was given.
5032 if test "${with_gnu_ld+set}" = set; then :
5033 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5039 if test yes = "$GCC"; then
5040 # Check if gcc -print-prog-name=ld gives a path.
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5042 $as_echo_n "checking for ld used by $CC... " >&6; }
5045 # gcc leaves a trailing carriage return, which upsets mingw
5046 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5048 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5051 # Accept absolute paths.
5053 re_direlt='/[^/][^/]*/\.\./'
5054 # Canonicalize the pathname of ld
5055 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5056 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5057 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5059 test -z "$LD" && LD=$ac_prog
5062 # If it fails, then pretend we aren't using GCC.
5066 # If it is relative, then search for the first ld in PATH.
5070 elif test yes = "$with_gnu_ld"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5072 $as_echo_n "checking for GNU ld... " >&6; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5075 $as_echo_n "checking for non-GNU ld... " >&6; }
5077 if ${lt_cv_path_LD+:} false; then :
5078 $as_echo_n "(cached) " >&6
5080 if test -z "$LD"; then
5081 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5082 for ac_dir in $PATH; do
5084 test -z "$ac_dir" && ac_dir=.
5085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5086 lt_cv_path_LD=$ac_dir/$ac_prog
5087 # Check to see if the program is GNU ld. I'd rather use --version,
5088 # but apparently some variants of GNU ld only accept -v.
5089 # Break only if it was the GNU/non-GNU ld that we prefer.
5090 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5091 *GNU* | *'with BFD'*)
5092 test no != "$with_gnu_ld" && break
5095 test yes != "$with_gnu_ld" && break
5102 lt_cv_path_LD=$LD # Let the user override the test with a path.
5107 if test -n "$LD"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5109 $as_echo "$LD" >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5114 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5116 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5117 if ${lt_cv_prog_gnu_ld+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5121 case `$LD -v 2>&1 </dev/null` in
5122 *GNU* | *'with BFD'*)
5123 lt_cv_prog_gnu_ld=yes
5126 lt_cv_prog_gnu_ld=no
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5131 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5132 with_gnu_ld=$lt_cv_prog_gnu_ld
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5143 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5144 if ${lt_cv_path_NM+:} false; then :
5145 $as_echo_n "(cached) " >&6
5147 if test -n "$NM"; then
5148 # Let the user override the test.
5151 lt_nm_to_check=${ac_tool_prefix}nm
5152 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5153 lt_nm_to_check="$lt_nm_to_check nm"
5155 for lt_tmp_nm in $lt_nm_to_check; do
5156 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5157 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5159 test -z "$ac_dir" && ac_dir=.
5160 tmp_nm=$ac_dir/$lt_tmp_nm
5161 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5162 # Check to see if the nm accepts a BSD-compat flag.
5163 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5164 # nm: unknown option "B" ignored
5165 # Tru64's nm complains that /dev/null is an invalid object file
5166 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5168 mingw*) lt_bad_file=conftest.nm/nofile ;;
5169 *) lt_bad_file=/dev/null ;;
5171 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5172 *$lt_bad_file* | *'Invalid file or object type'*)
5173 lt_cv_path_NM="$tmp_nm -B"
5177 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5179 lt_cv_path_NM="$tmp_nm -p"
5183 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5184 continue # so that we can try to find one that supports BSD flags
5193 : ${lt_cv_path_NM=no}
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5197 $as_echo "$lt_cv_path_NM" >&6; }
5198 if test no != "$lt_cv_path_NM"; then
5201 # Didn't find any BSD compatible name lister, look for dumpbin.
5202 if test -n "$DUMPBIN"; then :
5203 # Let the user override the test.
5205 if test -n "$ac_tool_prefix"; then
5206 for ac_prog in dumpbin "link -dump"
5208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_DUMPBIN+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 if test -n "$DUMPBIN"; then
5216 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 DUMPBIN=$ac_cv_prog_DUMPBIN
5236 if test -n "$DUMPBIN"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5238 $as_echo "$DUMPBIN" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5245 test -n "$DUMPBIN" && break
5248 if test -z "$DUMPBIN"; then
5249 ac_ct_DUMPBIN=$DUMPBIN
5250 for ac_prog in dumpbin "link -dump"
5252 # Extract the first word of "$ac_prog", so it can be a program name with args.
5253 set dummy $ac_prog; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5257 $as_echo_n "(cached) " >&6
5259 if test -n "$ac_ct_DUMPBIN"; then
5260 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5280 if test -n "$ac_ct_DUMPBIN"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5282 $as_echo "$ac_ct_DUMPBIN" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5289 test -n "$ac_ct_DUMPBIN" && break
5292 if test "x$ac_ct_DUMPBIN" = x; then
5295 case $cross_compiling:$ac_tool_warned in
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5301 DUMPBIN=$ac_ct_DUMPBIN
5305 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5307 DUMPBIN="$DUMPBIN -symbols -headers"
5315 if test : != "$DUMPBIN"; then
5319 test -z "$NM" && NM=nm
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5327 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5328 if ${lt_cv_nm_interface+:} false; then :
5329 $as_echo_n "(cached) " >&6
5331 lt_cv_nm_interface="BSD nm"
5332 echo "int some_variable = 0;" > conftest.$ac_ext
5333 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5334 (eval "$ac_compile" 2>conftest.err)
5335 cat conftest.err >&5
5336 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5337 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5338 cat conftest.err >&5
5339 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5340 cat conftest.out >&5
5341 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5342 lt_cv_nm_interface="MS dumpbin"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5347 $as_echo "$lt_cv_nm_interface" >&6; }
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5350 $as_echo_n "checking whether ln -s works... " >&6; }
5352 if test "$LN_S" = "ln -s"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5354 $as_echo "yes" >&6; }
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5357 $as_echo "no, using $LN_S" >&6; }
5360 # find the maximum length of command line arguments
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5362 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5363 if ${lt_cv_sys_max_cmd_len+:} false; then :
5364 $as_echo_n "(cached) " >&6
5371 # On DJGPP, this test can blow up pretty badly due to problems in libc
5372 # (any single argument exceeding 2000 bytes causes a buffer overrun
5373 # during glob expansion). Even if it were fixed, the result of this
5374 # check would be larger than it should be.
5375 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5379 # Under GNU Hurd, this test is not required because there is
5380 # no limit to the length of command line arguments.
5381 # Libtool will interpret -1 as no limit whatsoever
5382 lt_cv_sys_max_cmd_len=-1;
5385 cygwin* | mingw* | cegcc*)
5386 # On Win9x/ME, this test blows up -- it succeeds, but takes
5387 # about 5 minutes as the teststring grows exponentially.
5388 # Worse, since 9x/ME are not pre-emptively multitasking,
5389 # you end up with a "frozen" computer, even though with patience
5390 # the test eventually succeeds (with a max line length of 256k).
5391 # Instead, let's just punt: use the minimum linelength reported by
5392 # all of the supported platforms: 8192 (on NT/2K/XP).
5393 lt_cv_sys_max_cmd_len=8192;
5397 # On MiNT this can take a long time and run out of memory.
5398 lt_cv_sys_max_cmd_len=8192;
5402 # On AmigaOS with pdksh, this test takes hours, literally.
5403 # So we just punt and use a minimum line length of 8192.
5404 lt_cv_sys_max_cmd_len=8192;
5407 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5408 # This has been around since 386BSD, at least. Likely further.
5409 if test -x /sbin/sysctl; then
5410 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5411 elif test -x /usr/sbin/sysctl; then
5412 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5414 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5416 # And add a safety zone
5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5422 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5423 lt_cv_sys_max_cmd_len=196608
5427 # The test takes a long time on OS/2.
5428 lt_cv_sys_max_cmd_len=8192
5432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5434 # nice to cause kernel panics so lets avoid the loop below.
5435 # First set a reasonable default.
5436 lt_cv_sys_max_cmd_len=16384
5438 if test -x /sbin/sysconfig; then
5439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5440 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5445 lt_cv_sys_max_cmd_len=102400
5447 sysv5* | sco5v6* | sysv4.2uw2*)
5448 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5449 if test -n "$kargmax"; then
5450 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5452 lt_cv_sys_max_cmd_len=32768
5456 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5457 if test -n "$lt_cv_sys_max_cmd_len" && \
5458 test undefined != "$lt_cv_sys_max_cmd_len"; then
5459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5462 # Make teststring a little bigger before we do anything with it.
5463 # a 1K string should be a reasonable start.
5464 for i in 1 2 3 4 5 6 7 8; do
5465 teststring=$teststring$teststring
5467 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5468 # If test is not a shell built-in, we'll probably end up computing a
5469 # maximum length that is only half of the actual maximum length, but
5471 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5472 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5473 test 17 != "$i" # 1/2 MB should be enough
5476 teststring=$teststring$teststring
5478 # Only check the string length outside the loop.
5479 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5481 # Add a significant safety factor because C++ compilers can tack on
5482 # massive amounts of additional arguments before passing them to the
5483 # linker. It appears as though 1/2 is a usable value.
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5491 if test -n "$lt_cv_sys_max_cmd_len"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5493 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5496 $as_echo "none" >&6; }
5498 max_cmd_len=$lt_cv_sys_max_cmd_len
5509 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5519 # test EBCDIC or ASCII
5520 case `echo X|tr X '\101'` in
5521 A) # ASCII based system
5522 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5523 lt_SP2NL='tr \040 \012'
5524 lt_NL2SP='tr \015\012 \040\040'
5526 *) # EBCDIC based system
5527 lt_SP2NL='tr \100 \n'
5528 lt_NL2SP='tr \r\n \100\100'
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5541 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5542 if ${lt_cv_to_host_file_cmd+:} false; then :
5543 $as_echo_n "(cached) " >&6
5548 *-*-mingw* ) # actually msys
5549 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5552 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5554 * ) # otherwise, assume *nix
5555 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5561 *-*-mingw* ) # actually msys
5562 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5565 lt_cv_to_host_file_cmd=func_convert_file_noop
5567 * ) # otherwise, assume *nix
5568 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5572 * ) # unhandled hosts (and "normal" native builds)
5573 lt_cv_to_host_file_cmd=func_convert_file_noop
5579 to_host_file_cmd=$lt_cv_to_host_file_cmd
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5581 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5588 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5589 if ${lt_cv_to_tool_file_cmd+:} false; then :
5590 $as_echo_n "(cached) " >&6
5592 #assume ordinary cross tools, or native build.
5593 lt_cv_to_tool_file_cmd=func_convert_file_noop
5597 *-*-mingw* ) # actually msys
5598 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5606 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5608 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5615 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5616 if ${lt_cv_ld_reload_flag+:} false; then :
5617 $as_echo_n "(cached) " >&6
5619 lt_cv_ld_reload_flag='-r'
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5622 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5623 reload_flag=$lt_cv_ld_reload_flag
5624 case $reload_flag in
5626 *) reload_flag=" $reload_flag" ;;
5628 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5630 cygwin* | mingw* | pw32* | cegcc*)
5631 if test yes != "$GCC"; then
5636 if test yes = "$GCC"; then
5637 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5639 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5652 if test -n "$ac_tool_prefix"; then
5653 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5654 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_prog_OBJDUMP+:} false; then :
5658 $as_echo_n "(cached) " >&6
5660 if test -n "$OBJDUMP"; then
5661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 OBJDUMP=$ac_cv_prog_OBJDUMP
5681 if test -n "$OBJDUMP"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5683 $as_echo "$OBJDUMP" >&6; }
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5691 if test -z "$ac_cv_prog_OBJDUMP"; then
5692 ac_ct_OBJDUMP=$OBJDUMP
5693 # Extract the first word of "objdump", so it can be a program name with args.
5694 set dummy objdump; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5698 $as_echo_n "(cached) " >&6
5700 if test -n "$ac_ct_OBJDUMP"; then
5701 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5721 if test -n "$ac_ct_OBJDUMP"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5723 $as_echo "$ac_ct_OBJDUMP" >&6; }
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5729 if test "x$ac_ct_OBJDUMP" = x; then
5732 case $cross_compiling:$ac_tool_warned in
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5736 ac_tool_warned=yes ;;
5738 OBJDUMP=$ac_ct_OBJDUMP
5741 OBJDUMP="$ac_cv_prog_OBJDUMP"
5744 test -z "$OBJDUMP" && OBJDUMP=objdump
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5752 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5753 if ${lt_cv_deplibs_check_method+:} false; then :
5754 $as_echo_n "(cached) " >&6
5756 lt_cv_file_magic_cmd='$MAGIC_CMD'
5757 lt_cv_file_magic_test_file=
5758 lt_cv_deplibs_check_method='unknown'
5759 # Need to set the preceding variable on all platforms that support
5760 # interlibrary dependencies.
5761 # 'none' -- dependencies not supported.
5762 # 'unknown' -- same as none, but documents that we really don't know.
5763 # 'pass_all' -- all dependencies passed with no checks.
5764 # 'test_compile' -- check by making test program.
5765 # 'file_magic [[regex]]' -- check by looking for files in library path
5766 # that responds to the $file_magic_cmd with a given extended regex.
5767 # If you have 'file' or equivalent on your system and you're not sure
5768 # whether 'pass_all' will *always* work, you probably want this one.
5772 lt_cv_deplibs_check_method=pass_all
5776 lt_cv_deplibs_check_method=pass_all
5780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5781 lt_cv_file_magic_cmd='/usr/bin/file -L'
5782 lt_cv_file_magic_test_file=/shlib/libc.so
5786 # func_win32_libid is a shell function defined in ltmain.sh
5787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5788 lt_cv_file_magic_cmd='func_win32_libid'
5792 # Base MSYS/MinGW do not provide the 'file' command needed by
5793 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5794 # unless we find 'file', for example because we are cross-compiling.
5795 if ( file / ) >/dev/null 2>&1; then
5796 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5797 lt_cv_file_magic_cmd='func_win32_libid'
5799 # Keep this pattern in sync with the one in func_win32_libid.
5800 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5801 lt_cv_file_magic_cmd='$OBJDUMP -f'
5806 # use the weaker test based on 'objdump'. See mingw*.
5807 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5808 lt_cv_file_magic_cmd='$OBJDUMP -f'
5811 darwin* | rhapsody*)
5812 lt_cv_deplibs_check_method=pass_all
5815 freebsd* | dragonfly*)
5816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5819 # Not sure whether the presence of OpenBSD here was a mistake.
5820 # Let's accept both of them until this is cleared up.
5821 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5822 lt_cv_file_magic_cmd=/usr/bin/file
5823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5827 lt_cv_deplibs_check_method=pass_all
5832 lt_cv_deplibs_check_method=pass_all
5835 hpux10.20* | hpux11*)
5836 lt_cv_file_magic_cmd=/usr/bin/file
5839 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5840 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5843 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]'
5844 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5847 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5848 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5854 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5855 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5858 irix5* | irix6* | nonstopux*)
5860 *-32|*"-32 ") libmagic=32-bit;;
5861 *-n32|*"-n32 ") libmagic=N32;;
5862 *-64|*"-64 ") libmagic=64-bit;;
5863 *) libmagic=never-match;;
5865 lt_cv_deplibs_check_method=pass_all
5868 # This must be glibc/ELF.
5869 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5870 lt_cv_deplibs_check_method=pass_all
5873 netbsd* | netbsdelf*-gnu)
5874 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5883 lt_cv_file_magic_cmd=/usr/bin/file
5884 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5888 lt_cv_deplibs_check_method=pass_all
5892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5899 osf3* | osf4* | osf5*)
5900 lt_cv_deplibs_check_method=pass_all
5904 lt_cv_deplibs_check_method=pass_all
5908 lt_cv_deplibs_check_method=pass_all
5911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5912 lt_cv_deplibs_check_method=pass_all
5916 case $host_vendor in
5918 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]'
5919 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5922 lt_cv_deplibs_check_method=pass_all
5925 lt_cv_file_magic_cmd='/bin/file'
5926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5929 lt_cv_file_magic_cmd='/bin/file'
5930 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5931 lt_cv_file_magic_test_file=/lib/libc.so
5934 lt_cv_deplibs_check_method=pass_all
5937 lt_cv_deplibs_check_method=pass_all
5943 lt_cv_deplibs_check_method=pass_all
5946 lt_cv_deplibs_check_method=pass_all
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5952 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5956 if test "$build" = "$host"; then
5959 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5962 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5968 file_magic_cmd=$lt_cv_file_magic_cmd
5969 deplibs_check_method=$lt_cv_deplibs_check_method
5970 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5993 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5995 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_DLLTOOL+:} false; then :
5999 $as_echo_n "(cached) " >&6
6001 if test -n "$DLLTOOL"; then
6002 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 DLLTOOL=$ac_cv_prog_DLLTOOL
6022 if test -n "$DLLTOOL"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6024 $as_echo "$DLLTOOL" >&6; }
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6032 if test -z "$ac_cv_prog_DLLTOOL"; then
6033 ac_ct_DLLTOOL=$DLLTOOL
6034 # Extract the first word of "dlltool", so it can be a program name with args.
6035 set dummy dlltool; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6039 $as_echo_n "(cached) " >&6
6041 if test -n "$ac_ct_DLLTOOL"; then
6042 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6062 if test -n "$ac_ct_DLLTOOL"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6064 $as_echo "$ac_ct_DLLTOOL" >&6; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6070 if test "x$ac_ct_DLLTOOL" = x; then
6073 case $cross_compiling:$ac_tool_warned in
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077 ac_tool_warned=yes ;;
6079 DLLTOOL=$ac_ct_DLLTOOL
6082 DLLTOOL="$ac_cv_prog_DLLTOOL"
6085 test -z "$DLLTOOL" && DLLTOOL=dlltool
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6094 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6095 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6096 $as_echo_n "(cached) " >&6
6098 lt_cv_sharedlib_from_linklib_cmd='unknown'
6101 cygwin* | mingw* | pw32* | cegcc*)
6102 # two different shell functions defined in ltmain.sh;
6103 # decide which one to use based on capabilities of $DLLTOOL
6104 case `$DLLTOOL --help 2>&1` in
6105 *--identify-strict*)
6106 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6109 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6114 # fallback: assume linklib IS sharedlib
6115 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6121 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6122 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6123 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6131 if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_prog_AR+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 if test -n "$AR"; then
6142 ac_cv_prog_AR="$AR" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 if test -n "$AR"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6164 $as_echo "$AR" >&6; }
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6171 test -n "$AR" && break
6174 if test -z "$AR"; then
6178 # Extract the first word of "$ac_prog", so it can be a program name with args.
6179 set dummy $ac_prog; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6183 $as_echo_n "(cached) " >&6
6185 if test -n "$ac_ct_AR"; then
6186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195 ac_cv_prog_ac_ct_AR="$ac_prog"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6206 if test -n "$ac_ct_AR"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6208 $as_echo "$ac_ct_AR" >&6; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6215 test -n "$ac_ct_AR" && break
6218 if test "x$ac_ct_AR" = x; then
6221 case $cross_compiling:$ac_tool_warned in
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225 ac_tool_warned=yes ;;
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6245 $as_echo_n "checking for archiver @FILE support... " >&6; }
6246 if ${lt_cv_ar_at_file+:} false; then :
6247 $as_echo_n "(cached) " >&6
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6261 if ac_fn_c_try_compile "$LINENO"; then :
6262 echo conftest.$ac_objext > conftest.lst
6263 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6265 (eval $lt_ar_try) 2>&5
6267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268 test $ac_status = 0; }
6269 if test 0 -eq "$ac_status"; then
6270 # Ensure the archiver fails upon bogus file names.
6271 rm -f conftest.$ac_objext libconftest.a
6272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6273 (eval $lt_ar_try) 2>&5
6275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276 test $ac_status = 0; }
6277 if test 0 -ne "$ac_status"; then
6281 rm -f conftest.* libconftest.a
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6288 $as_echo "$lt_cv_ar_at_file" >&6; }
6290 if test no = "$lt_cv_ar_at_file"; then
6293 archiver_list_spec=$lt_cv_ar_at_file
6302 if test -n "$ac_tool_prefix"; then
6303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6304 set dummy ${ac_tool_prefix}strip; ac_word=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if ${ac_cv_prog_STRIP+:} false; then :
6308 $as_echo_n "(cached) " >&6
6310 if test -n "$STRIP"; then
6311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 STRIP=$ac_cv_prog_STRIP
6331 if test -n "$STRIP"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6333 $as_echo "$STRIP" >&6; }
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6341 if test -z "$ac_cv_prog_STRIP"; then
6343 # Extract the first word of "strip", so it can be a program name with args.
6344 set dummy strip; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6348 $as_echo_n "(cached) " >&6
6350 if test -n "$ac_ct_STRIP"; then
6351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_ac_ct_STRIP="strip"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6371 if test -n "$ac_ct_STRIP"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6373 $as_echo "$ac_ct_STRIP" >&6; }
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6379 if test "x$ac_ct_STRIP" = x; then
6382 case $cross_compiling:$ac_tool_warned in
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386 ac_tool_warned=yes ;;
6391 STRIP="$ac_cv_prog_STRIP"
6394 test -z "$STRIP" && STRIP=:
6401 if test -n "$ac_tool_prefix"; then
6402 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6403 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if ${ac_cv_prog_RANLIB+:} false; then :
6407 $as_echo_n "(cached) " >&6
6409 if test -n "$RANLIB"; then
6410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6419 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 RANLIB=$ac_cv_prog_RANLIB
6430 if test -n "$RANLIB"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6432 $as_echo "$RANLIB" >&6; }
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6440 if test -z "$ac_cv_prog_RANLIB"; then
6441 ac_ct_RANLIB=$RANLIB
6442 # Extract the first word of "ranlib", so it can be a program name with args.
6443 set dummy ranlib; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6447 $as_echo_n "(cached) " >&6
6449 if test -n "$ac_ct_RANLIB"; then
6450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_ac_ct_RANLIB="ranlib"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6470 if test -n "$ac_ct_RANLIB"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6472 $as_echo "$ac_ct_RANLIB" >&6; }
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6478 if test "x$ac_ct_RANLIB" = x; then
6481 case $cross_compiling:$ac_tool_warned in
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485 ac_tool_warned=yes ;;
6487 RANLIB=$ac_ct_RANLIB
6490 RANLIB="$ac_cv_prog_RANLIB"
6493 test -z "$RANLIB" && RANLIB=:
6500 # Determine commands to create old-style static archives.
6501 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6502 old_postinstall_cmds='chmod 644 $oldlib'
6503 old_postuninstall_cmds=
6505 if test -n "$RANLIB"; then
6508 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6514 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6519 lock_old_archive_extraction=yes ;;
6521 lock_old_archive_extraction=no ;;
6562 # If no C compiler was specified, use CC.
6565 # If no C compiler flags were specified, use CFLAGS.
6566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6568 # Allow CC to be a program name with arguments.
6572 # Check for command to grab the raw symbol name followed by C symbol from nm.
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6574 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6575 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6576 $as_echo_n "(cached) " >&6
6579 # These are sane defaults that work on at least a few old systems.
6580 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6582 # Character class describing NM global symbol codes.
6583 symcode='[BCDEGRST]'
6585 # Regexp to match symbols that can be accessed directly from C.
6586 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6588 # Define system-specific variables.
6593 cygwin* | mingw* | pw32* | cegcc*)
6594 symcode='[ABCDGISTW]'
6597 if test ia64 = "$host_cpu"; then
6598 symcode='[ABCDEGRST]'
6602 symcode='[BCDEGRST]'
6605 symcode='[BCDEGQRST]'
6616 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6624 # If we're using GNU nm, then use its standard symbol codes.
6625 case `$NM -V 2>&1` in
6626 *GNU* | *'with BFD'*)
6627 symcode='[ABCDGIRSTW]' ;;
6630 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6631 # Gets list of data symbols to import.
6632 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6633 # Adjust the below global symbol transforms to fixup imported variables.
6634 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6635 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6636 lt_c_name_lib_hook="\
6637 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6638 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6640 # Disable hooks by default.
6641 lt_cv_sys_global_symbol_to_import=
6647 # Transform an extracted symbol line into a proper C declaration.
6648 # Some systems (esp. on ia64) link data and code symbols differently,
6649 # so use this general approach.
6650 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6652 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6653 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6655 # Transform an extracted symbol line into symbol name and symbol address
6656 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6658 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6659 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6661 # Transform an extracted symbol line into symbol name with lib prefix and
6663 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6664 $lt_c_name_lib_hook\
6665 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6666 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6667 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6669 # Handle CRLF in mingw tool chain
6673 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6677 # Try without a prefix underscore, then with it.
6678 for ac_symprfx in "" "_"; do
6680 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6681 symxfrm="\\1 $ac_symprfx\\2 \\2"
6683 # Write the raw and C identifiers.
6684 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6685 # Fake it for dumpbin and say T for any non-static function,
6686 # D for any global variable and I for any imported variable.
6687 # Also find C++ and __fastcall symbols from MSVC++,
6688 # which start with @ or ?.
6689 lt_cv_sys_global_symbol_pipe="$AWK '"\
6690 " {last_section=section; section=\$ 3};"\
6691 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6692 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6693 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6694 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6695 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6696 " \$ 0!~/External *\|/{next};"\
6697 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6698 " {if(hide[section]) next};"\
6699 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6700 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6701 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6702 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6703 " ' prfx=^$ac_symprfx"
6705 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6707 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6709 # Check to see that the pipe works correctly.
6713 cat > conftest.$ac_ext <<_LT_EOF
6718 void nm_test_func(void);
6719 void nm_test_func(void){}
6723 int main(){nm_test_var='a';nm_test_func();return(0);}
6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6727 (eval $ac_compile) 2>&5
6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; }; then
6731 # Now try to grab the symbols.
6733 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6734 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6735 # Try sorting and uniquifying the output.
6736 if sort "$nlist" | uniq > "$nlist"T; then
6737 mv -f "$nlist"T "$nlist"
6742 # Make sure that we snagged all the symbols we need.
6743 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6744 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6745 cat <<_LT_EOF > conftest.$ac_ext
6746 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6747 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6748 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6749 relocations are performed -- see ld's documentation on pseudo-relocs. */
6750 # define LT_DLSYM_CONST
6751 #elif defined __osf__
6752 /* This system does not cope well with relocations in const data. */
6753 # define LT_DLSYM_CONST
6755 # define LT_DLSYM_CONST const
6763 # Now generate the symbol file.
6764 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6766 cat <<_LT_EOF >> conftest.$ac_ext
6768 /* The mapping between symbol names and symbols. */
6769 LT_DLSYM_CONST struct {
6773 lt__PROGRAM__LTX_preloaded_symbols[] =
6775 { "@PROGRAM@", (void *) 0 },
6777 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6778 cat <<\_LT_EOF >> conftest.$ac_ext
6782 /* This works around a problem in FreeBSD linker */
6783 #ifdef FREEBSD_WORKAROUND
6784 static const void *lt_preloaded_setup() {
6785 return lt__PROGRAM__LTX_preloaded_symbols;
6793 # Now try linking the two files.
6794 mv conftest.$ac_objext conftstm.$ac_objext
6795 lt_globsym_save_LIBS=$LIBS
6796 lt_globsym_save_CFLAGS=$CFLAGS
6797 LIBS=conftstm.$ac_objext
6798 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6800 (eval $ac_link) 2>&5
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6806 LIBS=$lt_globsym_save_LIBS
6807 CFLAGS=$lt_globsym_save_CFLAGS
6809 echo "cannot find nm_test_func in $nlist" >&5
6812 echo "cannot find nm_test_var in $nlist" >&5
6815 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6818 echo "$progname: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6821 rm -rf conftest* conftst*
6823 # Do not use the global_symbol_pipe unless it works.
6824 if test yes = "$pipe_works"; then
6827 lt_cv_sys_global_symbol_pipe=
6833 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6834 lt_cv_sys_global_symbol_to_cdecl=
6836 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6838 $as_echo "failed" >&6; }
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6841 $as_echo "ok" >&6; }
6844 # Response file support.
6845 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6846 nm_file_list_spec='@'
6847 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6848 nm_file_list_spec='@'
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6888 $as_echo_n "checking for sysroot... " >&6; }
6890 # Check whether --with-sysroot was given.
6891 if test "${with_sysroot+set}" = set; then :
6892 withval=$with_sysroot;
6899 case $with_sysroot in #(
6901 if test yes = "$GCC"; then
6902 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6906 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6912 $as_echo "$with_sysroot" >&6; }
6913 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6918 $as_echo "${lt_sysroot:-no}" >&6; }
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6925 $as_echo_n "checking for a working dd... " >&6; }
6926 if ${ac_cv_path_lt_DD+:} false; then :
6927 $as_echo_n "(cached) " >&6
6929 printf 0123456789abcdef0123456789abcdef >conftest.i
6930 cat conftest.i conftest.i >conftest2.i
6932 if test -z "$lt_DD"; then
6933 ac_path_lt_DD_found=false
6934 # Loop through the user's path and test for each of PROGNAME-LIST
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_prog in dd; do
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6943 as_fn_executable_p "$ac_path_lt_DD" || continue
6944 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6945 cmp -s conftest.i conftest.out \
6946 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6948 $ac_path_lt_DD_found && break 3
6953 if test -z "$ac_cv_path_lt_DD"; then
6957 ac_cv_path_lt_DD=$lt_DD
6960 rm -f conftest.i conftest2.i conftest.out
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6963 $as_echo "$ac_cv_path_lt_DD" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6967 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6968 if ${lt_cv_truncate_bin+:} false; then :
6969 $as_echo_n "(cached) " >&6
6971 printf 0123456789abcdef0123456789abcdef >conftest.i
6972 cat conftest.i conftest.i >conftest2.i
6974 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6975 cmp -s conftest.i conftest.out \
6976 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6978 rm -f conftest.i conftest2.i conftest.out
6979 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6982 $as_echo "$lt_cv_truncate_bin" >&6; }
6990 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6993 for cc_temp in $*""; do
6995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7001 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7004 # Check whether --enable-libtool-lock was given.
7005 if test "${enable_libtool_lock+set}" = set; then :
7006 enableval=$enable_libtool_lock;
7009 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7011 # Some flags need to be propagated to the compiler or linker for good
7015 # Find out what ABI is being produced by ac_compile, and set mode
7016 # options accordingly.
7017 echo 'int i;' > conftest.$ac_ext
7018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7019 (eval $ac_compile) 2>&5
7021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7022 test $ac_status = 0; }; then
7023 case `/usr/bin/file conftest.$ac_objext` in
7035 # Find out what ABI is being produced by ac_compile, and set linker
7036 # options accordingly.
7037 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7039 (eval $ac_compile) 2>&5
7041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042 test $ac_status = 0; }; then
7043 if test yes = "$lt_cv_prog_gnu_ld"; then
7044 case `/usr/bin/file conftest.$ac_objext` in
7046 LD="${LD-ld} -melf32bsmip"
7049 LD="${LD-ld} -melf32bmipn32"
7052 LD="${LD-ld} -melf64bmip"
7056 case `/usr/bin/file conftest.$ac_objext` in
7073 # Find out what ABI is being produced by ac_compile, and set linker
7074 # options accordingly.
7075 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7077 (eval $ac_compile) 2>&5
7079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7080 test $ac_status = 0; }; then
7082 case `/usr/bin/file conftest.$ac_objext` in
7090 case `/usr/bin/file conftest.$ac_objext` in
7092 emul="${emul}btsmip"
7095 emul="${emul}ltsmip"
7098 case `/usr/bin/file conftest.$ac_objext` in
7103 LD="${LD-ld} -m $emul"
7108 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7109 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7110 # Find out what ABI is being produced by ac_compile, and set linker
7111 # options accordingly. Note that the listed cases only cover the
7112 # situations where additional linker options are needed (such as when
7113 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7114 # vice versa); the common cases where no linker options are needed do
7115 # not appear in the list.
7116 echo 'int i;' > conftest.$ac_ext
7117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7118 (eval $ac_compile) 2>&5
7120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121 test $ac_status = 0; }; then
7122 case `/usr/bin/file conftest.o` in
7125 x86_64-*kfreebsd*-gnu)
7126 LD="${LD-ld} -m elf_i386_fbsd"
7129 case `/usr/bin/file conftest.o` in
7131 LD="${LD-ld} -m elf32_x86_64"
7134 LD="${LD-ld} -m elf_i386"
7138 powerpc64le-*linux*)
7139 LD="${LD-ld} -m elf32lppclinux"
7142 LD="${LD-ld} -m elf32ppclinux"
7145 LD="${LD-ld} -m elf_s390"
7148 LD="${LD-ld} -m elf32_sparc"
7154 x86_64-*kfreebsd*-gnu)
7155 LD="${LD-ld} -m elf_x86_64_fbsd"
7158 LD="${LD-ld} -m elf_x86_64"
7161 LD="${LD-ld} -m elf64lppc"
7164 LD="${LD-ld} -m elf64ppc"
7166 s390*-*linux*|s390*-*tpf*)
7167 LD="${LD-ld} -m elf64_s390"
7170 LD="${LD-ld} -m elf64_sparc"
7180 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7182 CFLAGS="$CFLAGS -belf"
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7184 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7185 if ${lt_cv_cc_needs_belf+:} false; then :
7186 $as_echo_n "(cached) " >&6
7189 ac_cpp='$CPP $CPPFLAGS'
7190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7205 if ac_fn_c_try_link "$LINENO"; then :
7206 lt_cv_cc_needs_belf=yes
7208 lt_cv_cc_needs_belf=no
7210 rm -f core conftest.err conftest.$ac_objext \
7211 conftest$ac_exeext conftest.$ac_ext
7213 ac_cpp='$CPP $CPPFLAGS'
7214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7220 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7221 if test yes != "$lt_cv_cc_needs_belf"; then
7222 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7227 # Find out what ABI is being produced by ac_compile, and set linker
7228 # options accordingly.
7229 echo 'int i;' > conftest.$ac_ext
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7231 (eval $ac_compile) 2>&5
7233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; }; then
7235 case `/usr/bin/file conftest.o` in
7237 case $lt_cv_prog_gnu_ld in
7240 i?86-*-solaris*|x86_64-*-solaris*)
7241 LD="${LD-ld} -m elf_x86_64"
7244 LD="${LD-ld} -m elf64_sparc"
7247 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7248 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7253 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7265 need_locks=$enable_libtool_lock
7267 if test -n "$ac_tool_prefix"; then
7268 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7269 set dummy ${ac_tool_prefix}mt; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7273 $as_echo_n "(cached) " >&6
7275 if test -n "$MANIFEST_TOOL"; then
7276 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7296 if test -n "$MANIFEST_TOOL"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7298 $as_echo "$MANIFEST_TOOL" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7306 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7307 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7308 # Extract the first word of "mt", so it can be a program name with args.
7309 set dummy mt; ac_word=$2
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311 $as_echo_n "checking for $ac_word... " >&6; }
7312 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7313 $as_echo_n "(cached) " >&6
7315 if test -n "$ac_ct_MANIFEST_TOOL"; then
7316 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7336 if test -n "$ac_ct_MANIFEST_TOOL"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7338 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7344 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7347 case $cross_compiling:$ac_tool_warned in
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7351 ac_tool_warned=yes ;;
7353 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7356 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7359 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7361 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7362 if ${lt_cv_path_mainfest_tool+:} false; then :
7363 $as_echo_n "(cached) " >&6
7365 lt_cv_path_mainfest_tool=no
7366 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7367 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7368 cat conftest.err >&5
7369 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7370 lt_cv_path_mainfest_tool=yes
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7375 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7376 if test yes != "$lt_cv_path_mainfest_tool"; then
7386 rhapsody* | darwin*)
7387 if test -n "$ac_tool_prefix"; then
7388 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7389 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7393 $as_echo_n "(cached) " >&6
7395 if test -n "$DSYMUTIL"; then
7396 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7416 if test -n "$DSYMUTIL"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7418 $as_echo "$DSYMUTIL" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7426 if test -z "$ac_cv_prog_DSYMUTIL"; then
7427 ac_ct_DSYMUTIL=$DSYMUTIL
7428 # Extract the first word of "dsymutil", so it can be a program name with args.
7429 set dummy dsymutil; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7433 $as_echo_n "(cached) " >&6
7435 if test -n "$ac_ct_DSYMUTIL"; then
7436 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7456 if test -n "$ac_ct_DSYMUTIL"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7458 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7464 if test "x$ac_ct_DSYMUTIL" = x; then
7467 case $cross_compiling:$ac_tool_warned in
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7471 ac_tool_warned=yes ;;
7473 DSYMUTIL=$ac_ct_DSYMUTIL
7476 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7479 if test -n "$ac_tool_prefix"; then
7480 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7481 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_NMEDIT+:} false; then :
7485 $as_echo_n "(cached) " >&6
7487 if test -n "$NMEDIT"; then
7488 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 NMEDIT=$ac_cv_prog_NMEDIT
7508 if test -n "$NMEDIT"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7510 $as_echo "$NMEDIT" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7518 if test -z "$ac_cv_prog_NMEDIT"; then
7519 ac_ct_NMEDIT=$NMEDIT
7520 # Extract the first word of "nmedit", so it can be a program name with args.
7521 set dummy nmedit; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7525 $as_echo_n "(cached) " >&6
7527 if test -n "$ac_ct_NMEDIT"; then
7528 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7548 if test -n "$ac_ct_NMEDIT"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7550 $as_echo "$ac_ct_NMEDIT" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7556 if test "x$ac_ct_NMEDIT" = x; then
7559 case $cross_compiling:$ac_tool_warned in
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7563 ac_tool_warned=yes ;;
7565 NMEDIT=$ac_ct_NMEDIT
7568 NMEDIT="$ac_cv_prog_NMEDIT"
7571 if test -n "$ac_tool_prefix"; then
7572 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7573 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_LIPO+:} false; then :
7577 $as_echo_n "(cached) " >&6
7579 if test -n "$LIPO"; then
7580 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 LIPO=$ac_cv_prog_LIPO
7600 if test -n "$LIPO"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7602 $as_echo "$LIPO" >&6; }
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7610 if test -z "$ac_cv_prog_LIPO"; then
7612 # Extract the first word of "lipo", so it can be a program name with args.
7613 set dummy lipo; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7617 $as_echo_n "(cached) " >&6
7619 if test -n "$ac_ct_LIPO"; then
7620 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_LIPO="lipo"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7640 if test -n "$ac_ct_LIPO"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7642 $as_echo "$ac_ct_LIPO" >&6; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7648 if test "x$ac_ct_LIPO" = x; then
7651 case $cross_compiling:$ac_tool_warned in
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655 ac_tool_warned=yes ;;
7660 LIPO="$ac_cv_prog_LIPO"
7663 if test -n "$ac_tool_prefix"; then
7664 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7665 set dummy ${ac_tool_prefix}otool; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if ${ac_cv_prog_OTOOL+:} false; then :
7669 $as_echo_n "(cached) " >&6
7671 if test -n "$OTOOL"; then
7672 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 OTOOL=$ac_cv_prog_OTOOL
7692 if test -n "$OTOOL"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7694 $as_echo "$OTOOL" >&6; }
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7702 if test -z "$ac_cv_prog_OTOOL"; then
7704 # Extract the first word of "otool", so it can be a program name with args.
7705 set dummy otool; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7709 $as_echo_n "(cached) " >&6
7711 if test -n "$ac_ct_OTOOL"; then
7712 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_ac_ct_OTOOL="otool"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7732 if test -n "$ac_ct_OTOOL"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7734 $as_echo "$ac_ct_OTOOL" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7740 if test "x$ac_ct_OTOOL" = x; then
7743 case $cross_compiling:$ac_tool_warned in
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7747 ac_tool_warned=yes ;;
7752 OTOOL="$ac_cv_prog_OTOOL"
7755 if test -n "$ac_tool_prefix"; then
7756 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7757 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_OTOOL64+:} false; then :
7761 $as_echo_n "(cached) " >&6
7763 if test -n "$OTOOL64"; then
7764 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 OTOOL64=$ac_cv_prog_OTOOL64
7784 if test -n "$OTOOL64"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7786 $as_echo "$OTOOL64" >&6; }
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7794 if test -z "$ac_cv_prog_OTOOL64"; then
7795 ac_ct_OTOOL64=$OTOOL64
7796 # Extract the first word of "otool64", so it can be a program name with args.
7797 set dummy otool64; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7801 $as_echo_n "(cached) " >&6
7803 if test -n "$ac_ct_OTOOL64"; then
7804 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_ac_ct_OTOOL64="otool64"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7824 if test -n "$ac_ct_OTOOL64"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7826 $as_echo "$ac_ct_OTOOL64" >&6; }
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7832 if test "x$ac_ct_OTOOL64" = x; then
7835 case $cross_compiling:$ac_tool_warned in
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7839 ac_tool_warned=yes ;;
7841 OTOOL64=$ac_ct_OTOOL64
7844 OTOOL64="$ac_cv_prog_OTOOL64"
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7874 $as_echo_n "checking for -single_module linker flag... " >&6; }
7875 if ${lt_cv_apple_cc_single_mod+:} false; then :
7876 $as_echo_n "(cached) " >&6
7878 lt_cv_apple_cc_single_mod=no
7879 if test -z "$LT_MULTI_MODULE"; then
7880 # By default we will add the -single_module flag. You can override
7881 # by either setting the environment variable LT_MULTI_MODULE
7882 # non-empty at configure time, or by adding -multi_module to the
7884 rm -rf libconftest.dylib*
7885 echo "int foo(void){return 1;}" > conftest.c
7886 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7887 -dynamiclib -Wl,-single_module conftest.c" >&5
7888 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7889 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7891 # If there is a non-empty error log, and "single_module"
7892 # appears in it, assume the flag caused a linker warning
7893 if test -s conftest.err && $GREP single_module conftest.err; then
7894 cat conftest.err >&5
7895 # Otherwise, if the output was created with a 0 exit code from
7896 # the compiler, it worked.
7897 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7898 lt_cv_apple_cc_single_mod=yes
7900 cat conftest.err >&5
7902 rm -rf libconftest.dylib*
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7907 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7910 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7911 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7912 $as_echo_n "(cached) " >&6
7914 lt_cv_ld_exported_symbols_list=no
7915 save_LDFLAGS=$LDFLAGS
7916 echo "_main" > conftest.sym
7917 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7929 if ac_fn_c_try_link "$LINENO"; then :
7930 lt_cv_ld_exported_symbols_list=yes
7932 lt_cv_ld_exported_symbols_list=no
7934 rm -f core conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 LDFLAGS=$save_LDFLAGS
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7940 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7943 $as_echo_n "checking for -force_load linker flag... " >&6; }
7944 if ${lt_cv_ld_force_load+:} false; then :
7945 $as_echo_n "(cached) " >&6
7947 lt_cv_ld_force_load=no
7948 cat > conftest.c << _LT_EOF
7949 int forced_loaded() { return 2;}
7951 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7952 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7953 echo "$AR cr libconftest.a conftest.o" >&5
7954 $AR cr libconftest.a conftest.o 2>&5
7955 echo "$RANLIB libconftest.a" >&5
7956 $RANLIB libconftest.a 2>&5
7957 cat > conftest.c << _LT_EOF
7958 int main() { return 0;}
7960 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7961 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7963 if test -s conftest.err && $GREP force_load conftest.err; then
7964 cat conftest.err >&5
7965 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7966 lt_cv_ld_force_load=yes
7968 cat conftest.err >&5
7970 rm -f conftest.err libconftest.a conftest conftest.c
7971 rm -rf conftest.dSYM
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7975 $as_echo "$lt_cv_ld_force_load" >&6; }
7977 rhapsody* | darwin1.[012])
7978 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7980 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7981 darwin*) # darwin 5.x on
7982 # if running on 10.5 or later, the deployment target defaults
7983 # to the OS version, if on x86, and 10.4, the deployment
7984 # target defaults to 10.4. Don't you love it?
7985 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7986 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7987 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7989 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7991 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7995 if test yes = "$lt_cv_apple_cc_single_mod"; then
7996 _lt_dar_single_mod='$single_module'
7998 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7999 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8001 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8003 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8004 _lt_dsymutil='~$DSYMUTIL $lib || :'
8011 # func_munge_path_list VARIABLE PATH
8012 # -----------------------------------
8013 # VARIABLE is name of variable containing _space_ separated list of
8014 # directories to be munged by the contents of PATH, which is string
8017 # string "DIR[ DIR]" will be prepended to VARIABLE
8019 # string "DIR[ DIR]" will be appended to VARIABLE
8020 # "DIRP[:DIRP]::[DIRA:]DIRA"
8021 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8022 # "DIRA[ DIRA]" will be appended to VARIABLE
8024 # VARIABLE will be replaced by "DIR[ DIR]"
8025 func_munge_path_list ()
8031 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8034 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8037 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8038 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8041 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8048 $as_echo_n "checking for ANSI C header files... " >&6; }
8049 if ${ac_cv_header_stdc+:} false; then :
8050 $as_echo_n "(cached) " >&6
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068 ac_cv_header_stdc=yes
8070 ac_cv_header_stdc=no
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 if test $ac_cv_header_stdc = yes; then
8075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8082 $EGREP "memchr" >/dev/null 2>&1; then :
8085 ac_cv_header_stdc=no
8091 if test $ac_cv_header_stdc = yes; then
8092 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099 $EGREP "free" >/dev/null 2>&1; then :
8102 ac_cv_header_stdc=no
8108 if test $ac_cv_header_stdc = yes; then
8109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8110 if test "$cross_compiling" = yes; then :
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8117 #if ((' ' & 0x0FF) == 0x020)
8118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8121 # define ISLOWER(c) \
8122 (('a' <= (c) && (c) <= 'i') \
8123 || ('j' <= (c) && (c) <= 'r') \
8124 || ('s' <= (c) && (c) <= 'z'))
8125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8133 for (i = 0; i < 256; i++)
8134 if (XOR (islower (i), ISLOWER (i))
8135 || toupper (i) != TOUPPER (i))
8140 if ac_fn_c_try_run "$LINENO"; then :
8143 ac_cv_header_stdc=no
8145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8146 conftest.$ac_objext conftest.beam conftest.$ac_ext
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8152 $as_echo "$ac_cv_header_stdc" >&6; }
8153 if test $ac_cv_header_stdc = yes; then
8155 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8159 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8160 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8161 inttypes.h stdint.h unistd.h
8163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8164 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8166 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8167 cat >>confdefs.h <<_ACEOF
8168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8176 for ac_header in dlfcn.h
8178 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8180 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8181 cat >>confdefs.h <<_ACEOF
8182 #define HAVE_DLFCN_H 1
8201 # Check whether --enable-shared was given.
8202 if test "${enable_shared+set}" = set; then :
8203 enableval=$enable_shared; p=${PACKAGE-default}
8205 yes) enable_shared=yes ;;
8206 no) enable_shared=no ;;
8209 # Look at the argument we got. We use all the common list separators.
8210 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8211 for pkg in $enableval; do
8213 if test "X$pkg" = "X$p"; then
8232 # Check whether --enable-static was given.
8233 if test "${enable_static+set}" = set; then :
8234 enableval=$enable_static; p=${PACKAGE-default}
8236 yes) enable_static=yes ;;
8237 no) enable_static=no ;;
8240 # Look at the argument we got. We use all the common list separators.
8241 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8242 for pkg in $enableval; do
8244 if test "X$pkg" = "X$p"; then
8264 # Check whether --with-pic was given.
8265 if test "${with_pic+set}" = set; then :
8266 withval=$with_pic; lt_p=${PACKAGE-default}
8268 yes|no) pic_mode=$withval ;;
8271 # Look at the argument we got. We use all the common list separators.
8272 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8273 for lt_pkg in $withval; do
8275 if test "X$lt_pkg" = "X$lt_p"; then
8293 # Check whether --enable-fast-install was given.
8294 if test "${enable_fast_install+set}" = set; then :
8295 enableval=$enable_fast_install; p=${PACKAGE-default}
8297 yes) enable_fast_install=yes ;;
8298 no) enable_fast_install=no ;;
8300 enable_fast_install=no
8301 # Look at the argument we got. We use all the common list separators.
8302 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8303 for pkg in $enableval; do
8305 if test "X$pkg" = "X$p"; then
8306 enable_fast_install=yes
8313 enable_fast_install=yes
8323 shared_archive_member_spec=
8324 case $host,$enable_shared in
8325 power*-*-aix[5-9]*,yes)
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8327 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8329 # Check whether --with-aix-soname was given.
8330 if test "${with_aix_soname+set}" = set; then :
8331 withval=$with_aix_soname; case $withval in
8335 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8338 lt_cv_with_aix_soname=$with_aix_soname
8340 if ${lt_cv_with_aix_soname+:} false; then :
8341 $as_echo_n "(cached) " >&6
8343 lt_cv_with_aix_soname=aix
8346 with_aix_soname=$lt_cv_with_aix_soname
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8350 $as_echo "$with_aix_soname" >&6; }
8351 if test aix != "$with_aix_soname"; then
8352 # For the AIX way of multilib, we name the shared archive member
8353 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8354 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8355 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8356 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8357 if test 64 = "${OBJECT_MODE-32}"; then
8358 shared_archive_member_spec=shr_64
8360 shared_archive_member_spec=shr
8378 # This can be used to rebuild libtool when needed
8379 LIBTOOL_DEPS=$ltmain
8381 # Always use our own libtool.
8382 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8413 test -z "$LN_S" && LN_S="ln -s"
8428 if test -n "${ZSH_VERSION+set}"; then
8429 setopt NO_GLOB_SUBST
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8433 $as_echo_n "checking for objdir... " >&6; }
8434 if ${lt_cv_objdir+:} false; then :
8435 $as_echo_n "(cached) " >&6
8437 rm -f .libs 2>/dev/null
8438 mkdir .libs 2>/dev/null
8439 if test -d .libs; then
8442 # MS-DOS does not allow filenames that begin with a dot.
8445 rmdir .libs 2>/dev/null
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8448 $as_echo "$lt_cv_objdir" >&6; }
8449 objdir=$lt_cv_objdir
8455 cat >>confdefs.h <<_ACEOF
8456 #define LT_OBJDIR "$lt_cv_objdir/"
8464 # AIX sometimes has problems with the GCC collect2 program. For some
8465 # reason, if we set the COLLECT_NAMES environment variable, the problems
8466 # vanish in a puff of smoke.
8467 if test set != "${COLLECT_NAMES+set}"; then
8469 export COLLECT_NAMES
8476 can_build_shared=yes
8478 # All known linkers require a '.a' archive for static linking (except MSVC,
8479 # which needs '.lib').
8482 with_gnu_ld=$lt_cv_prog_gnu_ld
8487 # Set sane defaults for various variables
8488 test -z "$CC" && CC=cc
8489 test -z "$LTCC" && LTCC=$CC
8490 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8491 test -z "$LD" && LD=ld
8492 test -z "$ac_objext" && ac_objext=o
8494 func_cc_basename $compiler
8495 cc_basename=$func_cc_basename_result
8498 # Only perform the check for file, if the check method requires it
8499 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8500 case $deplibs_check_method in
8502 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8504 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8505 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8506 $as_echo_n "(cached) " >&6
8510 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8513 lt_save_MAGIC_CMD=$MAGIC_CMD
8514 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8516 for ac_dir in $ac_dummy; do
8518 test -z "$ac_dir" && ac_dir=.
8519 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8520 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8521 if test -n "$file_magic_test_file"; then
8522 case $deplibs_check_method in
8524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8525 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8527 $EGREP "$file_magic_regex" > /dev/null; then
8532 *** Warning: the command libtool uses to detect shared libraries,
8533 *** $file_magic_cmd, produces output that libtool cannot recognize.
8534 *** The result is that libtool may fail to recognize shared libraries
8535 *** as such. This will affect the creation of libtool libraries that
8536 *** depend on shared libraries, but programs linked with such libtool
8537 *** libraries will work regardless of this problem. Nevertheless, you
8538 *** may want to report the problem to your system manager and/or to
8539 *** bug-libtool@gnu.org
8549 MAGIC_CMD=$lt_save_MAGIC_CMD
8554 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8555 if test -n "$MAGIC_CMD"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8557 $as_echo "$MAGIC_CMD" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8567 if test -z "$lt_cv_path_MAGIC_CMD"; then
8568 if test -n "$ac_tool_prefix"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8570 $as_echo_n "checking for file... " >&6; }
8571 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8572 $as_echo_n "(cached) " >&6
8576 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8579 lt_save_MAGIC_CMD=$MAGIC_CMD
8580 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8581 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8582 for ac_dir in $ac_dummy; do
8584 test -z "$ac_dir" && ac_dir=.
8585 if test -f "$ac_dir/file"; then
8586 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8587 if test -n "$file_magic_test_file"; then
8588 case $deplibs_check_method in
8590 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8591 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8592 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8593 $EGREP "$file_magic_regex" > /dev/null; then
8598 *** Warning: the command libtool uses to detect shared libraries,
8599 *** $file_magic_cmd, produces output that libtool cannot recognize.
8600 *** The result is that libtool may fail to recognize shared libraries
8601 *** as such. This will affect the creation of libtool libraries that
8602 *** depend on shared libraries, but programs linked with such libtool
8603 *** libraries will work regardless of this problem. Nevertheless, you
8604 *** may want to report the problem to your system manager and/or to
8605 *** bug-libtool@gnu.org
8615 MAGIC_CMD=$lt_save_MAGIC_CMD
8620 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8621 if test -n "$MAGIC_CMD"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8623 $as_echo "$MAGIC_CMD" >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8639 # Use C for the default configuration in the libtool script
8643 ac_cpp='$CPP $CPPFLAGS'
8644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8649 # Source file extension for C test sources.
8652 # Object file extension for compiled C test sources.
8656 # Code to be used in simple compile tests
8657 lt_simple_compile_test_code="int some_variable = 0;"
8659 # Code to be used in simple link tests
8660 lt_simple_link_test_code='int main(){return(0);}'
8668 # If no C compiler was specified, use CC.
8671 # If no C compiler flags were specified, use CFLAGS.
8672 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8674 # Allow CC to be a program name with arguments.
8677 # Save the default compiler, since it gets overwritten when the other
8678 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8679 compiler_DEFAULT=$CC
8681 # save warnings/boilerplate of simple test code
8682 ac_outfile=conftest.$ac_objext
8683 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8684 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8685 _lt_compiler_boilerplate=`cat conftest.err`
8688 ac_outfile=conftest.$ac_objext
8689 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8690 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8691 _lt_linker_boilerplate=`cat conftest.err`
8696 ## There is no encapsulation within the following macros, do not change
8697 ## the running order or otherwise move them around unless you know exactly
8698 ## what you are doing...
8699 if test -n "$compiler"; then
8701 lt_prog_compiler_no_builtin_flag=
8703 if test yes = "$GCC"; then
8704 case $cc_basename in
8706 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8708 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8712 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8713 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8714 $as_echo_n "(cached) " >&6
8716 lt_cv_prog_compiler_rtti_exceptions=no
8717 ac_outfile=conftest.$ac_objext
8718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8719 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8720 # Insert the option either (1) after the last *FLAGS variable, or
8721 # (2) before a word containing "conftest.", or (3) at the end.
8722 # Note that $ac_compile itself does not contain backslashes and begins
8723 # with a dollar sign (not a hyphen), so the echo should work correctly.
8724 # The option is referenced via a variable to avoid confusing sed.
8725 lt_compile=`echo "$ac_compile" | $SED \
8726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8728 -e 's:$: $lt_compiler_flag:'`
8729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8730 (eval "$lt_compile" 2>conftest.err)
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 if (exit $ac_status) && test -s "$ac_outfile"; then
8735 # The compiler can only warn and ignore the option if not recognized
8736 # So say no if there are warnings other than the usual output.
8737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8740 lt_cv_prog_compiler_rtti_exceptions=yes
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8747 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8749 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8750 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8762 lt_prog_compiler_wl=
8763 lt_prog_compiler_pic=
8764 lt_prog_compiler_static=
8767 if test yes = "$GCC"; then
8768 lt_prog_compiler_wl='-Wl,'
8769 lt_prog_compiler_static='-static'
8773 # All AIX code is PIC.
8774 if test ia64 = "$host_cpu"; then
8775 # AIX 5 now supports IA64 processor
8776 lt_prog_compiler_static='-Bstatic'
8778 lt_prog_compiler_pic='-fPIC'
8784 # see comment about AmigaOS4 .so support
8785 lt_prog_compiler_pic='-fPIC'
8788 # FIXME: we need at least 68020 code to build shared libraries, but
8789 # adding the '-m68020' flag to GCC prevents building anything better,
8791 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8796 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8797 # PIC is the default for these OSes.
8800 mingw* | cygwin* | pw32* | os2* | cegcc*)
8801 # This hack is so that the source file can tell whether it is being
8802 # built for inclusion in a dll (and should export symbols for example).
8803 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8804 # (--disable-auto-import) libraries
8805 lt_prog_compiler_pic='-DDLL_EXPORT'
8808 lt_prog_compiler_static='$wl-static'
8813 darwin* | rhapsody*)
8814 # PIC is the default on this platform
8815 # Common symbols not allowed in MH_DYLIB files
8816 lt_prog_compiler_pic='-fno-common'
8820 # PIC is the default for Haiku.
8821 # The "-static" flag exists, but is broken.
8822 lt_prog_compiler_static=
8826 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8827 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8828 # sets the default TLS model and affects inlining.
8834 lt_prog_compiler_pic='-fPIC'
8840 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8841 # Instead, we relocate shared libraries at runtime.
8845 # Just because we use GCC doesn't mean we suddenly get shared libraries
8846 # on systems that don't support them.
8847 lt_prog_compiler_can_build_shared=no
8852 # QNX uses GNU C++, but need to define -shared option too, otherwise
8854 lt_prog_compiler_pic='-fPIC -shared'
8858 if test -d /usr/nec; then
8859 lt_prog_compiler_pic=-Kconform_pic
8864 lt_prog_compiler_pic='-fPIC'
8868 case $cc_basename in
8869 nvcc*) # Cuda Compiler Driver 2.2
8870 lt_prog_compiler_wl='-Xlinker '
8871 if test -n "$lt_prog_compiler_pic"; then
8872 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8877 # PORTME Check for flag to pass linker flags through the system compiler.
8880 lt_prog_compiler_wl='-Wl,'
8881 if test ia64 = "$host_cpu"; then
8882 # AIX 5 now supports IA64 processor
8883 lt_prog_compiler_static='-Bstatic'
8885 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8889 darwin* | rhapsody*)
8890 # PIC is the default on this platform
8891 # Common symbols not allowed in MH_DYLIB files
8892 lt_prog_compiler_pic='-fno-common'
8893 case $cc_basename in
8895 # NAG Fortran compiler
8896 lt_prog_compiler_wl='-Wl,-Wl,,'
8897 lt_prog_compiler_pic='-PIC'
8898 lt_prog_compiler_static='-Bstatic'
8903 mingw* | cygwin* | pw32* | os2* | cegcc*)
8904 # This hack is so that the source file can tell whether it is being
8905 # built for inclusion in a dll (and should export symbols for example).
8906 lt_prog_compiler_pic='-DDLL_EXPORT'
8909 lt_prog_compiler_static='$wl-static'
8914 hpux9* | hpux10* | hpux11*)
8915 lt_prog_compiler_wl='-Wl,'
8916 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8923 lt_prog_compiler_pic='+Z'
8926 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8927 lt_prog_compiler_static='$wl-a ${wl}archive'
8930 irix5* | irix6* | nonstopux*)
8931 lt_prog_compiler_wl='-Wl,'
8932 # PIC (with -KPIC) is the default.
8933 lt_prog_compiler_static='-non_shared'
8936 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8937 case $cc_basename in
8938 # old Intel for x86_64, which still supported -KPIC.
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_pic='-KPIC'
8942 lt_prog_compiler_static='-static'
8944 # flang / f18. f95 an alias for gfortran or flang on Debian
8945 flang* | f18* | f95*)
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_pic='-fPIC'
8948 lt_prog_compiler_static='-static'
8950 # icc used to be incompatible with GCC.
8951 # ICC 10 doesn't accept -KPIC any more.
8953 lt_prog_compiler_wl='-Wl,'
8954 lt_prog_compiler_pic='-fPIC'
8955 lt_prog_compiler_static='-static'
8957 # Lahey Fortran 8.1.
8959 lt_prog_compiler_wl='-Wl,'
8960 lt_prog_compiler_pic='--shared'
8961 lt_prog_compiler_static='--static'
8964 # NAG Fortran compiler
8965 lt_prog_compiler_wl='-Wl,-Wl,,'
8966 lt_prog_compiler_pic='-PIC'
8967 lt_prog_compiler_static='-Bstatic'
8970 # Fabrice Bellard et al's Tiny C Compiler
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_pic='-fPIC'
8973 lt_prog_compiler_static='-static'
8975 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8976 # Portland Group compilers (*not* the Pentium gcc compiler,
8977 # which looks to be a dead project)
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-fpic'
8980 lt_prog_compiler_static='-Bstatic'
8983 lt_prog_compiler_wl='-Wl,'
8984 # All Alpha code is PIC.
8985 lt_prog_compiler_static='-non_shared'
8987 xl* | bgxl* | bgf* | mpixl*)
8988 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-qpic'
8991 lt_prog_compiler_static='-qstaticlink'
8994 case `$CC -V 2>&1 | sed 5q` in
8995 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8996 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8997 lt_prog_compiler_pic='-KPIC'
8998 lt_prog_compiler_static='-Bstatic'
8999 lt_prog_compiler_wl=''
9001 *Sun\ F* | *Sun*Fortran*)
9002 lt_prog_compiler_pic='-KPIC'
9003 lt_prog_compiler_static='-Bstatic'
9004 lt_prog_compiler_wl='-Qoption ld '
9008 lt_prog_compiler_pic='-KPIC'
9009 lt_prog_compiler_static='-Bstatic'
9010 lt_prog_compiler_wl='-Wl,'
9012 *Intel*\ [CF]*Compiler*)
9013 lt_prog_compiler_wl='-Wl,'
9014 lt_prog_compiler_pic='-fPIC'
9015 lt_prog_compiler_static='-static'
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-fpic'
9020 lt_prog_compiler_static='-Bstatic'
9028 lt_prog_compiler_pic='-KPIC'
9029 lt_prog_compiler_static='-Bstatic'
9033 # QNX uses GNU C++, but need to define -shared option too, otherwise
9035 lt_prog_compiler_pic='-fPIC -shared'
9038 osf3* | osf4* | osf5*)
9039 lt_prog_compiler_wl='-Wl,'
9040 # All OSF/1 code is PIC.
9041 lt_prog_compiler_static='-non_shared'
9045 lt_prog_compiler_static='-non_shared'
9049 lt_prog_compiler_pic='-KPIC'
9050 lt_prog_compiler_static='-Bstatic'
9051 case $cc_basename in
9052 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9053 lt_prog_compiler_wl='-Qoption ld ';;
9055 lt_prog_compiler_wl='-Wl,';;
9060 lt_prog_compiler_wl='-Qoption ld '
9061 lt_prog_compiler_pic='-PIC'
9062 lt_prog_compiler_static='-Bstatic'
9065 sysv4 | sysv4.2uw2* | sysv4.3*)
9066 lt_prog_compiler_wl='-Wl,'
9067 lt_prog_compiler_pic='-KPIC'
9068 lt_prog_compiler_static='-Bstatic'
9072 if test -d /usr/nec; then
9073 lt_prog_compiler_pic='-Kconform_pic'
9074 lt_prog_compiler_static='-Bstatic'
9078 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9079 lt_prog_compiler_wl='-Wl,'
9080 lt_prog_compiler_pic='-KPIC'
9081 lt_prog_compiler_static='-Bstatic'
9085 lt_prog_compiler_wl='-Wl,'
9086 lt_prog_compiler_can_build_shared=no
9090 lt_prog_compiler_pic='-pic'
9091 lt_prog_compiler_static='-Bstatic'
9095 lt_prog_compiler_can_build_shared=no
9101 # For platforms that do not support PIC, -DPIC is meaningless:
9103 lt_prog_compiler_pic=
9106 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9111 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9112 if ${lt_cv_prog_compiler_pic+:} false; then :
9113 $as_echo_n "(cached) " >&6
9115 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9118 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9119 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9122 # Check to make sure the PIC flag actually works.
9124 if test -n "$lt_prog_compiler_pic"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9126 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9127 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9128 $as_echo_n "(cached) " >&6
9130 lt_cv_prog_compiler_pic_works=no
9131 ac_outfile=conftest.$ac_objext
9132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9134 # Insert the option either (1) after the last *FLAGS variable, or
9135 # (2) before a word containing "conftest.", or (3) at the end.
9136 # Note that $ac_compile itself does not contain backslashes and begins
9137 # with a dollar sign (not a hyphen), so the echo should work correctly.
9138 # The option is referenced via a variable to avoid confusing sed.
9139 lt_compile=`echo "$ac_compile" | $SED \
9140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9142 -e 's:$: $lt_compiler_flag:'`
9143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9144 (eval "$lt_compile" 2>conftest.err)
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 if (exit $ac_status) && test -s "$ac_outfile"; then
9149 # The compiler can only warn and ignore the option if not recognized
9150 # So say no if there are warnings other than the usual output.
9151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9154 lt_cv_prog_compiler_pic_works=yes
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9161 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9163 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9164 case $lt_prog_compiler_pic in
9166 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9169 lt_prog_compiler_pic=
9170 lt_prog_compiler_can_build_shared=no
9186 # Check to make sure the static flag actually works.
9188 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9190 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9191 if ${lt_cv_prog_compiler_static_works+:} false; then :
9192 $as_echo_n "(cached) " >&6
9194 lt_cv_prog_compiler_static_works=no
9195 save_LDFLAGS=$LDFLAGS
9196 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9197 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9199 # The linker can only warn and ignore the option if not recognized
9200 # So say no if there are warnings
9201 if test -s conftest.err; then
9202 # Append any errors to the config.log.
9203 cat conftest.err 1>&5
9204 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9206 if diff conftest.exp conftest.er2 >/dev/null; then
9207 lt_cv_prog_compiler_static_works=yes
9210 lt_cv_prog_compiler_static_works=yes
9214 LDFLAGS=$save_LDFLAGS
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9218 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9220 if test yes = "$lt_cv_prog_compiler_static_works"; then
9223 lt_prog_compiler_static=
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9233 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9234 if ${lt_cv_prog_compiler_c_o+:} false; then :
9235 $as_echo_n "(cached) " >&6
9237 lt_cv_prog_compiler_c_o=no
9238 $RM -r conftest 2>/dev/null
9242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9244 lt_compiler_flag="-o out/conftest2.$ac_objext"
9245 # Insert the option either (1) after the last *FLAGS variable, or
9246 # (2) before a word containing "conftest.", or (3) at the end.
9247 # Note that $ac_compile itself does not contain backslashes and begins
9248 # with a dollar sign (not a hyphen), so the echo should work correctly.
9249 lt_compile=`echo "$ac_compile" | $SED \
9250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9252 -e 's:$: $lt_compiler_flag:'`
9253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9254 (eval "$lt_compile" 2>out/conftest.err)
9256 cat out/conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9260 # The compiler can only warn and ignore the option if not recognized
9261 # So say no if there are warnings
9262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9263 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9264 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9265 lt_cv_prog_compiler_c_o=yes
9270 # SGI C++ compiler will create directory out/ii_files/ for
9271 # template instantiation
9272 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9273 $RM out/* && rmdir out
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9280 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9289 if ${lt_cv_prog_compiler_c_o+:} false; then :
9290 $as_echo_n "(cached) " >&6
9292 lt_cv_prog_compiler_c_o=no
9293 $RM -r conftest 2>/dev/null
9297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9299 lt_compiler_flag="-o out/conftest2.$ac_objext"
9300 # Insert the option either (1) after the last *FLAGS variable, or
9301 # (2) before a word containing "conftest.", or (3) at the end.
9302 # Note that $ac_compile itself does not contain backslashes and begins
9303 # with a dollar sign (not a hyphen), so the echo should work correctly.
9304 lt_compile=`echo "$ac_compile" | $SED \
9305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9307 -e 's:$: $lt_compiler_flag:'`
9308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9309 (eval "$lt_compile" 2>out/conftest.err)
9311 cat out/conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9315 # The compiler can only warn and ignore the option if not recognized
9316 # So say no if there are warnings
9317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9320 lt_cv_prog_compiler_c_o=yes
9325 # SGI C++ compiler will create directory out/ii_files/ for
9326 # template instantiation
9327 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9328 $RM out/* && rmdir out
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9335 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9340 hard_links=nottested
9341 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9342 # do not overwrite the value of need_locks provided by the user
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9344 $as_echo_n "checking if we can lock with hard links... " >&6; }
9347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9349 ln conftest.a conftest.b 2>&5 || hard_links=no
9350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9352 $as_echo "$hard_links" >&6; }
9353 if test no = "$hard_links"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9355 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9368 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9371 allow_undefined_flag=
9372 always_export_symbols=no
9374 archive_expsym_cmds=
9375 compiler_needs_object=no
9376 enable_shared_with_static_runtimes=no
9377 export_dynamic_flag_spec=
9378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9379 hardcode_automatic=no
9381 hardcode_direct_absolute=no
9382 hardcode_libdir_flag_spec=
9383 hardcode_libdir_separator=
9385 hardcode_shlibpath_var=unsupported
9387 link_all_deplibs=unknown
9390 old_archive_from_new_cmds=
9391 old_archive_from_expsyms_cmds=
9392 thread_safe_flag_spec=
9393 whole_archive_flag_spec=
9394 # include_expsyms should be a list of space-separated symbols to be *always*
9395 # included in the symbol list
9397 # exclude_expsyms can be an extended regexp of symbols to exclude
9398 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9399 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9400 # as well as any symbol that contains 'd'.
9401 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9402 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9403 # platforms (ab)use it in PIC code, but their linkers get confused if
9404 # the symbol is explicitly referenced. Since portable code cannot
9405 # rely on this symbol name, it's probably fine to never include it in
9406 # preloaded symbol tables.
9407 # Exclude shared library initialization/finalization symbols.
9408 extract_expsyms_cmds=
9411 cygwin* | mingw* | pw32* | cegcc*)
9412 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9413 # When not using gcc, we currently assume that we are using
9414 # Microsoft Visual C++.
9415 if test yes != "$GCC"; then
9420 # we just hope/assume this is gcc and not c89 (= MSVC++)
9426 linux* | k*bsd*-gnu | gnu*)
9433 # On some targets, GNU ld is compatible enough with the native linker
9434 # that we're better off using the native interface for both.
9435 lt_use_gnu_ld_interface=no
9436 if test yes = "$with_gnu_ld"; then
9439 # The AIX port of GNU ld has always aspired to compatibility
9440 # with the native linker. However, as the warning in the GNU ld
9441 # block says, versions before 2.19.5* couldn't really create working
9442 # shared libraries, regardless of the interface used.
9443 case `$LD -v 2>&1` in
9444 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9445 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9446 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9448 lt_use_gnu_ld_interface=yes
9453 lt_use_gnu_ld_interface=yes
9458 if test yes = "$lt_use_gnu_ld_interface"; then
9459 # If archive_cmds runs LD, not CC, wlarc should be empty
9462 # Set some defaults for GNU ld with shared library support. These
9463 # are reset later if shared libraries are not supported. Putting them
9464 # here allows them to be overridden if necessary.
9465 runpath_var=LD_RUN_PATH
9466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9467 export_dynamic_flag_spec='$wl--export-dynamic'
9468 # ancient GNU ld didn't support --whole-archive et. al.
9469 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9470 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9472 whole_archive_flag_spec=
9474 supports_anon_versioning=no
9475 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9476 *GNU\ gold*) supports_anon_versioning=yes ;;
9477 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9478 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9479 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9480 *\ 2.11.*) ;; # other 2.11 versions
9481 *) supports_anon_versioning=yes ;;
9484 # See if GNU ld supports shared libraries.
9487 # On AIX/PPC, the GNU linker is very broken
9488 if test ia64 != "$host_cpu"; then
9492 *** Warning: the GNU linker, at least up to release 2.19, is reported
9493 *** to be unable to reliably create shared libraries on AIX.
9494 *** Therefore, libtool is disabling shared libraries support. If you
9495 *** really care for shared libraries, you may want to install binutils
9496 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9497 *** You will then need to restart the configuration process.
9506 # see comment about AmigaOS4 .so support
9507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9508 archive_expsym_cmds=''
9511 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)'
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_minus_L=yes
9519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9520 allow_undefined_flag=unsupported
9521 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9522 # support --undefined. This deserves some investigation. FIXME
9523 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9529 cygwin* | mingw* | pw32* | cegcc*)
9530 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9531 # as there is no search path for DLLs.
9532 hardcode_libdir_flag_spec='-L$libdir'
9533 export_dynamic_flag_spec='$wl--export-all-symbols'
9534 allow_undefined_flag=unsupported
9535 always_export_symbols=no
9536 enable_shared_with_static_runtimes=yes
9537 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'
9538 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9540 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9542 # If the export-symbols file already is a .def file, use it as
9543 # is; otherwise, prepend EXPORTS...
9544 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9545 cp $export_symbols $output_objdir/$soname.def;
9547 echo EXPORTS > $output_objdir/$soname.def;
9548 cat $export_symbols >> $output_objdir/$soname.def;
9550 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9558 link_all_deplibs=yes
9562 hardcode_libdir_flag_spec='-L$libdir'
9563 hardcode_minus_L=yes
9564 allow_undefined_flag=unsupported
9566 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9567 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9568 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9569 $ECHO EXPORTS >> $output_objdir/$libname.def~
9570 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9571 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9572 emximp -o $lib $output_objdir/$libname.def'
9573 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9574 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9575 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9576 $ECHO EXPORTS >> $output_objdir/$libname.def~
9578 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9579 prefix_cmds="$prefix_cmds -e 1d";
9581 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9582 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9583 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9584 emximp -o $lib $output_objdir/$libname.def'
9585 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9586 enable_shared_with_static_runtimes=yes
9591 hardcode_shlibpath_var=no
9592 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9593 export_dynamic_flag_spec='$wl-E'
9594 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9595 # Instead, shared libraries are loaded at an image base (0x10000000 by
9596 # default) and relocated if they conflict, which is a slow very memory
9597 # consuming and fragmenting process. To avoid this, we pick a random,
9598 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9599 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9600 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9601 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'
9604 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9606 if test linux-dietlibc = "$host_os"; then
9607 case $cc_basename in
9608 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9611 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9612 && test no = "$tmp_diet"
9614 tmp_addflag=' $pic_flag'
9615 tmp_sharedflag='-shared'
9616 case $cc_basename,$host_cpu in
9617 pgcc*) # Portland Group C compiler
9618 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'
9619 tmp_addflag=' $pic_flag'
9621 pgf77* | pgf90* | pgf95* | pgfortran*)
9622 # Portland Group f77 and f90 compilers
9623 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'
9624 tmp_addflag=' $pic_flag -Mnomain' ;;
9625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9626 tmp_addflag=' -i_dynamic' ;;
9627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9628 tmp_addflag=' -i_dynamic -nofor_main' ;;
9629 ifc* | ifort*) # Intel Fortran compiler
9630 tmp_addflag=' -nofor_main' ;;
9631 lf95*) # Lahey Fortran 8.1
9632 whole_archive_flag_spec=
9633 tmp_sharedflag='--shared' ;;
9634 nagfor*) # NAGFOR 5.3
9635 tmp_sharedflag='-Wl,-shared' ;;
9636 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9637 tmp_sharedflag='-qmkshrobj'
9639 nvcc*) # Cuda Compiler Driver 2.2
9640 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'
9641 compiler_needs_object=yes
9644 case `$CC -V 2>&1 | sed 5q` in
9645 *Sun\ C*) # Sun C 5.9
9646 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'
9647 compiler_needs_object=yes
9648 tmp_sharedflag='-G' ;;
9649 *Sun\ F*) # Sun Fortran 8.3
9650 tmp_sharedflag='-G' ;;
9652 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9654 if test yes = "$supports_anon_versioning"; then
9655 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9656 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9657 echo "local: *; };" >> $output_objdir/$libname.ver~
9658 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9661 case $cc_basename in
9663 export_dynamic_flag_spec='-rdynamic'
9665 xlf* | bgf* | bgxlf* | mpixlf*)
9666 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9667 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9668 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9669 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9670 if test yes = "$supports_anon_versioning"; then
9671 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9673 echo "local: *; };" >> $output_objdir/$libname.ver~
9674 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9683 netbsd* | netbsdelf*-gnu)
9684 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9685 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9689 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9694 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9698 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9699 *** create shared libraries on Solaris systems. Therefore, libtool
9700 *** is disabling shared libraries support. We urge you to upgrade GNU
9701 *** binutils to release 2.9.1 or newer. Another option is to modify
9702 *** your PATH or compiler configuration so that the native linker is
9703 *** used, and then restart.
9706 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9708 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9715 case `$LD -v 2>&1` in
9716 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9720 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9721 *** reliably create shared libraries on SCO systems. Therefore, libtool
9722 *** is disabling shared libraries support. We urge you to upgrade GNU
9723 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9724 *** your PATH or compiler configuration so that the native linker is
9725 *** used, and then restart.
9730 # For security reasons, it is highly recommended that you always
9731 # use absolute paths for naming shared libraries, and exclude the
9732 # DT_RUNPATH tag from executables and libraries. But doing so
9733 # requires that you compile everything twice, which is a pain.
9734 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9735 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9746 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_shlibpath_var=no
9753 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9754 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9755 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9762 if test no = "$ld_shlibs"; then
9764 hardcode_libdir_flag_spec=
9765 export_dynamic_flag_spec=
9766 whole_archive_flag_spec=
9769 # PORTME fill in a description of your system's linker (not GNU ld)
9772 allow_undefined_flag=unsupported
9773 always_export_symbols=yes
9774 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'
9775 # Note: this linker hardcodes the directories in LIBPATH if there
9776 # are no directories specified by -L.
9777 hardcode_minus_L=yes
9778 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9779 # Neither direct hardcoding nor static linking is supported with a
9781 hardcode_direct=unsupported
9786 if test ia64 = "$host_cpu"; then
9787 # On IA64, the linker does run time linking by default, so we don't
9788 # have to do anything special.
9789 aix_use_runtimelinking=no
9790 exp_sym_flag='-Bexport'
9793 # If we're using GNU nm, then we don't want the "-C" option.
9794 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9795 # Without the "-l" option, or with the "-B" option, AIX nm treats
9796 # weak defined symbols like other global defined symbols, whereas
9797 # GNU nm marks them as "W".
9798 # While the 'weak' keyword is ignored in the Export File, we need
9799 # it in the Import File for the 'aix-soname' feature, so we have
9800 # to replace the "-B" option with "-P" for AIX nm.
9801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9802 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'
9804 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'
9806 aix_use_runtimelinking=no
9808 # Test if we are trying to use run time linking or normal
9809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9810 # have runtime linking enabled, and use it for executables.
9811 # For shared libraries, we enable/disable runtime linking
9812 # depending on the kind of the shared library created -
9813 # when "with_aix_soname,aix_use_runtimelinking" is:
9814 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9815 # "aix,yes" lib.so shared, rtl:yes, for executables
9816 # lib.a static archive
9817 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9818 # lib.a(lib.so.V) shared, rtl:no, for executables
9819 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9820 # lib.a(lib.so.V) shared, rtl:no
9821 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9822 # lib.a static archive
9823 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9824 for ld_flag in $LDFLAGS; do
9825 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9826 aix_use_runtimelinking=yes
9830 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9831 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9832 # so we don't have lib.a shared libs to link our executables.
9833 # We have to force runtime linking in this case.
9834 aix_use_runtimelinking=yes
9835 LDFLAGS="$LDFLAGS -Wl,-brtl"
9840 exp_sym_flag='-bexport'
9841 no_entry_flag='-bnoentry'
9844 # When large executables or shared objects are built, AIX ld can
9845 # have problems creating the table of contents. If linking a library
9846 # or program results in "error TOC overflow" add -mminimal-toc to
9847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9852 hardcode_direct_absolute=yes
9853 hardcode_libdir_separator=':'
9854 link_all_deplibs=yes
9855 file_list_spec='$wl-f,'
9856 case $with_aix_soname,$aix_use_runtimelinking in
9857 aix,*) ;; # traditional, no import file
9858 svr4,* | *,yes) # use import file
9859 # The Import File defines what to hardcode.
9861 hardcode_direct_absolute=no
9865 if test yes = "$GCC"; then
9866 case $host_os in aix4.[012]|aix4.[012].*)
9867 # We only want to do this on AIX 4.2 and lower, the check
9868 # below for broken collect2 doesn't work under 4.3+
9869 collect2name=`$CC -print-prog-name=collect2`
9870 if test -f "$collect2name" &&
9871 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9873 # We have reworked collect2
9876 # We have old collect2
9877 hardcode_direct=unsupported
9878 # It fails to find uninstalled libraries when the uninstalled
9879 # path is not listed in the libpath. Setting hardcode_minus_L
9880 # to unsupported forces relinking
9881 hardcode_minus_L=yes
9882 hardcode_libdir_flag_spec='-L$libdir'
9883 hardcode_libdir_separator=
9887 shared_flag='-shared'
9888 if test yes = "$aix_use_runtimelinking"; then
9889 shared_flag="$shared_flag "'$wl-G'
9891 # Need to ensure runtime linking is disabled for the traditional
9892 # shared library, or the linker may eventually find shared libraries
9893 # /with/ Import File - we do not want to mix them.
9894 shared_flag_aix='-shared'
9895 shared_flag_svr4='-shared $wl-G'
9898 if test ia64 = "$host_cpu"; then
9899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9900 # chokes on -Wl,-G. The following line is correct:
9903 if test yes = "$aix_use_runtimelinking"; then
9906 shared_flag='$wl-bM:SRE'
9908 shared_flag_aix='$wl-bM:SRE'
9909 shared_flag_svr4='$wl-G'
9913 export_dynamic_flag_spec='$wl-bexpall'
9914 # It seems that -bexpall does not export symbols beginning with
9915 # underscore (_), so it is better to generate a list of symbols to export.
9916 always_export_symbols=yes
9917 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9918 # Warning - without using the other runtime loading flags (-brtl),
9919 # -berok will link without error, but may produce a broken library.
9920 allow_undefined_flag='-berok'
9921 # Determine the default libpath from the value encoded in an
9923 if test set = "${lt_cv_aix_libpath+set}"; then
9924 aix_libpath=$lt_cv_aix_libpath
9926 if ${lt_cv_aix_libpath_+:} false; then :
9927 $as_echo_n "(cached) " >&6
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9940 if ac_fn_c_try_link "$LINENO"; then :
9942 lt_aix_libpath_sed='
9943 /Import File Strings/,/^$/ {
9945 s/^0 *\([^ ]*\) *$/\1/
9949 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9950 # Check for a 64-bit object if we didn't find anything.
9951 if test -z "$lt_cv_aix_libpath_"; then
9952 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9955 rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 if test -z "$lt_cv_aix_libpath_"; then
9958 lt_cv_aix_libpath_=/usr/lib:/lib
9963 aix_libpath=$lt_cv_aix_libpath_
9966 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9967 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
9969 if test ia64 = "$host_cpu"; then
9970 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9971 allow_undefined_flag="-z nodefs"
9972 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"
9974 # Determine the default libpath from the value encoded in an
9976 if test set = "${lt_cv_aix_libpath+set}"; then
9977 aix_libpath=$lt_cv_aix_libpath
9979 if ${lt_cv_aix_libpath_+:} false; then :
9980 $as_echo_n "(cached) " >&6
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9993 if ac_fn_c_try_link "$LINENO"; then :
9995 lt_aix_libpath_sed='
9996 /Import File Strings/,/^$/ {
9998 s/^0 *\([^ ]*\) *$/\1/
10002 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10003 # Check for a 64-bit object if we didn't find anything.
10004 if test -z "$lt_cv_aix_libpath_"; then
10005 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10008 rm -f core conftest.err conftest.$ac_objext \
10009 conftest$ac_exeext conftest.$ac_ext
10010 if test -z "$lt_cv_aix_libpath_"; then
10011 lt_cv_aix_libpath_=/usr/lib:/lib
10016 aix_libpath=$lt_cv_aix_libpath_
10019 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10020 # Warning - without using the other run time loading flags,
10021 # -berok will link without error, but may produce a broken library.
10022 no_undefined_flag=' $wl-bernotok'
10023 allow_undefined_flag=' $wl-berok'
10024 if test yes = "$with_gnu_ld"; then
10025 # We only use this code for GNU lds that support --whole-archive.
10026 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10028 # Exported symbols can be pulled into shared objects from archives
10029 whole_archive_flag_spec='$convenience'
10031 archive_cmds_need_lc=yes
10032 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10033 # -brtl affects multiple linker settings, -berok does not and is overridden later
10034 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10035 if test svr4 != "$with_aix_soname"; then
10036 # This is similar to how AIX traditionally builds its shared libraries.
10037 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'
10039 if test aix != "$with_aix_soname"; then
10040 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'
10042 # used by -dlpreopen to get the symbols
10043 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10045 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10053 # see comment about AmigaOS4 .so support
10054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10055 archive_expsym_cmds=''
10058 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)'
10059 hardcode_libdir_flag_spec='-L$libdir'
10060 hardcode_minus_L=yes
10066 export_dynamic_flag_spec=-rdynamic
10069 cygwin* | mingw* | pw32* | cegcc*)
10070 # When not using gcc, we currently assume that we are using
10071 # Microsoft Visual C++.
10072 # hardcode_libdir_flag_spec is actually meaningless, as there is
10073 # no search path for DLLs.
10074 case $cc_basename in
10077 hardcode_libdir_flag_spec=' '
10078 allow_undefined_flag=unsupported
10079 always_export_symbols=yes
10081 # Tell ltmain to make .lib files, not .a files.
10083 # Tell ltmain to make .dll files, not .so files.
10085 # FIXME: Setting linknames here is a bad hack.
10086 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10087 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10088 cp "$export_symbols" "$output_objdir/$soname.def";
10089 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10091 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10093 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10095 # The linker will not automatically build a static lib if we build a DLL.
10096 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10097 enable_shared_with_static_runtimes=yes
10098 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10101 old_postinstall_cmds='chmod 644 $oldlib'
10102 postlink_cmds='lt_outputfile="@OUTPUT@"~
10103 lt_tool_outputfile="@TOOL_OUTPUT@"~
10104 case $lt_outputfile in
10107 lt_outputfile=$lt_outputfile.exe
10108 lt_tool_outputfile=$lt_tool_outputfile.exe
10111 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10112 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10113 $RM "$lt_outputfile.manifest";
10117 # Assume MSVC wrapper
10118 hardcode_libdir_flag_spec=' '
10119 allow_undefined_flag=unsupported
10120 # Tell ltmain to make .lib files, not .a files.
10122 # Tell ltmain to make .dll files, not .so files.
10124 # FIXME: Setting linknames here is a bad hack.
10125 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10126 # The linker will automatically build a .lib file if we build a DLL.
10127 old_archive_from_new_cmds='true'
10128 # FIXME: Should let the user specify the lib program.
10129 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10130 enable_shared_with_static_runtimes=yes
10135 darwin* | rhapsody*)
10138 archive_cmds_need_lc=no
10140 hardcode_automatic=yes
10141 hardcode_shlibpath_var=unsupported
10142 if test yes = "$lt_cv_ld_force_load"; then
10143 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\"`'
10146 whole_archive_flag_spec=''
10148 link_all_deplibs=yes
10149 allow_undefined_flag=$_lt_dar_allow_undefined
10150 case $cc_basename in
10151 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10152 *) _lt_dar_can_shared=$GCC ;;
10154 if test yes = "$_lt_dar_can_shared"; then
10155 output_verbose_link_cmd=func_echo_all
10156 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10157 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10158 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"
10159 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"
10168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169 hardcode_libdir_flag_spec='-L$libdir'
10170 hardcode_shlibpath_var=no
10173 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10174 # support. Future versions do this automatically, but an explicit c++rt0.o
10175 # does not break anything, and helps significantly (at the cost of a little
10178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10179 hardcode_libdir_flag_spec='-R$libdir'
10180 hardcode_direct=yes
10181 hardcode_shlibpath_var=no
10184 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10187 hardcode_direct=yes
10188 hardcode_minus_L=yes
10189 hardcode_shlibpath_var=no
10192 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10193 freebsd* | dragonfly*)
10194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10195 hardcode_libdir_flag_spec='-R$libdir'
10196 hardcode_direct=yes
10197 hardcode_shlibpath_var=no
10201 if test yes = "$GCC"; then
10202 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'
10204 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'
10206 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10207 hardcode_libdir_separator=:
10208 hardcode_direct=yes
10210 # hardcode_minus_L: Not really in the search PATH,
10211 # but as the default location of the library.
10212 hardcode_minus_L=yes
10213 export_dynamic_flag_spec='$wl-E'
10217 if test yes,no = "$GCC,$with_gnu_ld"; then
10218 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10222 if test no = "$with_gnu_ld"; then
10223 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10224 hardcode_libdir_separator=:
10225 hardcode_direct=yes
10226 hardcode_direct_absolute=yes
10227 export_dynamic_flag_spec='$wl-E'
10228 # hardcode_minus_L: Not really in the search PATH,
10229 # but as the default location of the library.
10230 hardcode_minus_L=yes
10235 if test yes,no = "$GCC,$with_gnu_ld"; then
10238 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10250 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10253 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10257 # Older versions of the 11.00 compiler do not understand -b yet
10258 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10260 $as_echo_n "checking if $CC understands -b... " >&6; }
10261 if ${lt_cv_prog_compiler__b+:} false; then :
10262 $as_echo_n "(cached) " >&6
10264 lt_cv_prog_compiler__b=no
10265 save_LDFLAGS=$LDFLAGS
10266 LDFLAGS="$LDFLAGS -b"
10267 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10268 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10269 # The linker can only warn and ignore the option if not recognized
10270 # So say no if there are warnings
10271 if test -s conftest.err; then
10272 # Append any errors to the config.log.
10273 cat conftest.err 1>&5
10274 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10276 if diff conftest.exp conftest.er2 >/dev/null; then
10277 lt_cv_prog_compiler__b=yes
10280 lt_cv_prog_compiler__b=yes
10284 LDFLAGS=$save_LDFLAGS
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10288 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10290 if test yes = "$lt_cv_prog_compiler__b"; then
10291 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10293 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10299 if test no = "$with_gnu_ld"; then
10300 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10301 hardcode_libdir_separator=:
10306 hardcode_shlibpath_var=no
10309 hardcode_direct=yes
10310 hardcode_direct_absolute=yes
10311 export_dynamic_flag_spec='$wl-E'
10313 # hardcode_minus_L: Not really in the search PATH,
10314 # but as the default location of the library.
10315 hardcode_minus_L=yes
10321 irix5* | irix6* | nonstopux*)
10322 if test yes = "$GCC"; then
10323 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'
10324 # Try to use the -exported_symbol ld option, if it does not
10325 # work, assume that -exports_file does not work either and
10326 # implicitly export all symbols.
10327 # This should be the same for all languages, so no per-tag cache variable.
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10329 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10330 if ${lt_cv_irix_exported_symbol+:} false; then :
10331 $as_echo_n "(cached) " >&6
10333 save_LDFLAGS=$LDFLAGS
10334 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336 /* end confdefs.h. */
10337 int foo (void) { return 0; }
10339 if ac_fn_c_try_link "$LINENO"; then :
10340 lt_cv_irix_exported_symbol=yes
10342 lt_cv_irix_exported_symbol=no
10344 rm -f core conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LDFLAGS=$save_LDFLAGS
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10349 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10350 if test yes = "$lt_cv_irix_exported_symbol"; then
10351 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'
10353 link_all_deplibs=no
10355 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'
10356 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'
10358 archive_cmds_need_lc='no'
10359 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10360 hardcode_libdir_separator=:
10362 link_all_deplibs=yes
10366 case $cc_basename in
10368 # Fabrice Bellard et al's Tiny C Compiler
10370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10375 netbsd* | netbsdelf*-gnu)
10376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10379 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10381 hardcode_libdir_flag_spec='-R$libdir'
10382 hardcode_direct=yes
10383 hardcode_shlibpath_var=no
10387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10388 hardcode_direct=yes
10389 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10390 hardcode_libdir_separator=:
10391 hardcode_shlibpath_var=no
10397 openbsd* | bitrig*)
10398 if test -f /usr/libexec/ld.so; then
10399 hardcode_direct=yes
10400 hardcode_shlibpath_var=no
10401 hardcode_direct_absolute=yes
10402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10403 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10404 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10405 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10406 export_dynamic_flag_spec='$wl-E'
10408 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10409 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10417 hardcode_libdir_flag_spec='-L$libdir'
10418 hardcode_minus_L=yes
10419 allow_undefined_flag=unsupported
10421 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10422 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10423 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10424 $ECHO EXPORTS >> $output_objdir/$libname.def~
10425 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10426 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10427 emximp -o $lib $output_objdir/$libname.def'
10428 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10429 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10430 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10431 $ECHO EXPORTS >> $output_objdir/$libname.def~
10432 prefix_cmds="$SED"~
10433 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10434 prefix_cmds="$prefix_cmds -e 1d";
10436 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10437 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10438 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10439 emximp -o $lib $output_objdir/$libname.def'
10440 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10441 enable_shared_with_static_runtimes=yes
10445 if test yes = "$GCC"; then
10446 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10447 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'
10449 allow_undefined_flag=' -expect_unresolved \*'
10450 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'
10452 archive_cmds_need_lc='no'
10453 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10454 hardcode_libdir_separator=:
10457 osf4* | osf5*) # as osf3* with the addition of -msym flag
10458 if test yes = "$GCC"; then
10459 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10460 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'
10461 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10463 allow_undefined_flag=' -expect_unresolved \*'
10464 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'
10465 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~
10466 $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'
10468 # Both c and cxx compiler support -rpath directly
10469 hardcode_libdir_flag_spec='-rpath $libdir'
10471 archive_cmds_need_lc='no'
10472 hardcode_libdir_separator=:
10476 no_undefined_flag=' -z defs'
10477 if test yes = "$GCC"; then
10479 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10481 $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'
10483 case `$CC -V 2>&1` in
10486 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10487 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10488 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10492 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10493 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10494 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10498 hardcode_libdir_flag_spec='-R$libdir'
10499 hardcode_shlibpath_var=no
10501 solaris2.[0-5] | solaris2.[0-5].*) ;;
10503 # The compiler driver will combine and reorder linker options,
10504 # but understands '-z linker_flag'. GCC discards it without '$wl',
10505 # but is careful enough not to reorder.
10506 # Supported since Solaris 2.6 (maybe 2.5.1?)
10507 if test yes = "$GCC"; then
10508 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10510 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10514 link_all_deplibs=yes
10518 if test sequent = "$host_vendor"; then
10519 # Use $CC to link under sequent, because it throws in some extra .o
10520 # files that make .init and .fini sections work.
10521 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10523 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10525 hardcode_libdir_flag_spec='-L$libdir'
10526 hardcode_direct=yes
10527 hardcode_minus_L=yes
10528 hardcode_shlibpath_var=no
10532 case $host_vendor in
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_direct=yes # is this really true???
10538 ## LD is ld it makes a PLAMLIB
10539 ## CC just makes a GrossModule.
10540 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10541 reload_cmds='$CC -r -o $output$reload_objs'
10545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10549 runpath_var='LD_RUN_PATH'
10550 hardcode_shlibpath_var=no
10554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10555 hardcode_shlibpath_var=no
10556 export_dynamic_flag_spec='-Bexport'
10560 if test -d /usr/nec; then
10561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562 hardcode_shlibpath_var=no
10563 runpath_var=LD_RUN_PATH
10564 hardcode_runpath_var=yes
10569 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10570 no_undefined_flag='$wl-z,text'
10571 archive_cmds_need_lc=no
10572 hardcode_shlibpath_var=no
10573 runpath_var='LD_RUN_PATH'
10575 if test yes = "$GCC"; then
10576 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10577 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10579 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10580 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584 sysv5* | sco3.2v5* | sco5v6*)
10585 # Note: We CANNOT use -z defs as we might desire, because we do not
10586 # link with -lc, and that would cause any symbols used from libc to
10587 # always be unresolved, which means just about no library would
10588 # ever link correctly. If we're not using GNU ld we use -z text
10589 # though, which does catch some bad symbols but isn't as heavy-handed
10591 no_undefined_flag='$wl-z,text'
10592 allow_undefined_flag='$wl-z,nodefs'
10593 archive_cmds_need_lc=no
10594 hardcode_shlibpath_var=no
10595 hardcode_libdir_flag_spec='$wl-R,$libdir'
10596 hardcode_libdir_separator=':'
10597 link_all_deplibs=yes
10598 export_dynamic_flag_spec='$wl-Bexport'
10599 runpath_var='LD_RUN_PATH'
10601 if test yes = "$GCC"; then
10602 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10603 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10605 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10612 hardcode_libdir_flag_spec='-L$libdir'
10613 hardcode_shlibpath_var=no
10621 if test sni = "$host_vendor"; then
10623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10624 export_dynamic_flag_spec='$wl-Blargedynsym'
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10631 $as_echo "$ld_shlibs" >&6; }
10632 test no = "$ld_shlibs" && can_build_shared=no
10634 with_gnu_ld=$with_gnu_ld
10651 # Do we need to explicitly link libc?
10653 case "x$archive_cmds_need_lc" in
10655 # Assume -lc should be added
10656 archive_cmds_need_lc=yes
10658 if test yes,yes = "$GCC,$enable_shared"; then
10659 case $archive_cmds in
10661 # FIXME: we may have to deal with multi-command sequences.
10664 # Test whether the compiler implicitly links with -lc since on some
10665 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10666 # to ld, don't add -lc before -lgcc.
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10668 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10669 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10670 $as_echo_n "(cached) " >&6
10673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10676 (eval $ac_compile) 2>&5
10678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10679 test $ac_status = 0; } 2>conftest.err; then
10682 libobjs=conftest.$ac_objext
10684 wl=$lt_prog_compiler_wl
10685 pic_flag=$lt_prog_compiler_pic
10691 lt_save_allow_undefined_flag=$allow_undefined_flag
10692 allow_undefined_flag=
10693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10694 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10697 test $ac_status = 0; }
10699 lt_cv_archive_cmds_need_lc=no
10701 lt_cv_archive_cmds_need_lc=yes
10703 allow_undefined_flag=$lt_save_allow_undefined_flag
10705 cat conftest.err 1>&5
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10711 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10712 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10871 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10873 if test yes = "$GCC"; then
10875 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10876 *) lt_awk_arg='/^libraries:/' ;;
10879 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10880 *) lt_sed_strip_eq='s|=/|/|g' ;;
10882 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10883 case $lt_search_path_spec in
10885 # if the path contains ";" then we assume it to be the separator
10886 # otherwise default to the standard path separator (i.e. ":") - it is
10887 # assumed that no part of a normal pathname contains ";" but that should
10888 # okay in the real world where ";" in dirpaths is itself problematic.
10889 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10892 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10895 # Ok, now we have the path, separated by spaces, we can step through it
10896 # and add multilib dir if necessary...
10897 lt_tmp_lt_search_path_spec=
10898 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10899 # ...but if some path component already ends with the multilib dir we assume
10900 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10901 case "$lt_multi_os_dir; $lt_search_path_spec " in
10902 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10906 for lt_sys_path in $lt_search_path_spec; do
10907 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10908 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10909 elif test -n "$lt_multi_os_dir"; then
10910 test -d "$lt_sys_path" && \
10911 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10914 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10915 BEGIN {RS = " "; FS = "/|\n";} {
10918 for (lt_i = NF; lt_i > 0; lt_i--) {
10919 if ($lt_i != "" && $lt_i != ".") {
10920 if ($lt_i == "..") {
10923 if (lt_count == 0) {
10924 lt_foo = "/" $lt_i lt_foo;
10931 if (lt_foo != "") { lt_freq[lt_foo]++; }
10932 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10934 # AWK program above erroneously prepends '/' to C:/dos/paths
10937 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10938 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10940 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10944 library_names_spec=
10945 libname_spec='lib$name'
10949 postuninstall_cmds=
10953 shlibpath_overrides_runpath=unknown
10955 dynamic_linker="$host_os ld.so"
10956 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10957 need_lib_prefix=unknown
10958 hardcode_into_libs=no
10960 # when you set need_version to no, make sure it does not cause -set_version
10961 # flags to be left without arguments
10962 need_version=unknown
10968 version_type=linux # correct to gnu/linux during the next big refactor
10969 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10970 shlibpath_var=LIBPATH
10972 # AIX 3 has no versioning support, so we append a major version to the name.
10973 soname_spec='$libname$release$shared_ext$major'
10977 version_type=linux # correct to gnu/linux during the next big refactor
10980 hardcode_into_libs=yes
10981 if test ia64 = "$host_cpu"; then
10982 # AIX 5 supports IA64
10983 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10984 shlibpath_var=LD_LIBRARY_PATH
10986 # With GCC up to 2.95.x, collect2 would create an import file
10987 # for dependence libraries. The import file would start with
10988 # the line '#! .'. This would cause the generated library to
10989 # depend on '.', always an invalid library. This was fixed in
10990 # development snapshots of GCC prior to 3.0.
10992 aix4 | aix4.[01] | aix4.[01].*)
10993 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10995 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10998 can_build_shared=no
11002 # Using Import Files as archive members, it is possible to support
11003 # filename-based versioning of shared library archives on AIX. While
11004 # this would work for both with and without runtime linking, it will
11005 # prevent static linking of such archives. So we do filename-based
11006 # shared library versioning with .so extension only, which is used
11007 # when both runtime linking and shared linking is enabled.
11008 # Unfortunately, runtime linking may impact performance, so we do
11009 # not want this to be the default eventually. Also, we use the
11010 # versioned .so libs for executables only if there is the -brtl
11011 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11012 # To allow for filename-based versioning support, we need to create
11013 # libNAME.so.V as an archive file, containing:
11014 # *) an Import File, referring to the versioned filename of the
11015 # archive as well as the shared archive member, telling the
11016 # bitwidth (32 or 64) of that shared object, and providing the
11017 # list of exported symbols of that shared object, eventually
11018 # decorated with the 'weak' keyword
11019 # *) the shared object with the F_LOADONLY flag set, to really avoid
11020 # it being seen by the linker.
11021 # At run time we better use the real file rather than another symlink,
11022 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11024 case $with_aix_soname,$aix_use_runtimelinking in
11025 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11026 # soname into executable. Probably we can add versioning support to
11027 # collect2, so additional links can be useful in future.
11028 aix,yes) # traditional libtool
11029 dynamic_linker='AIX unversionable lib.so'
11030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11031 # instead of lib<name>.a to let people know that these are not
11032 # typical AIX shared libraries.
11033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11035 aix,no) # traditional AIX only
11036 dynamic_linker='AIX lib.a(lib.so.V)'
11037 # We preserve .a as extension for shared libraries through AIX4.2
11038 # and later when we are not doing run time linking.
11039 library_names_spec='$libname$release.a $libname.a'
11040 soname_spec='$libname$release$shared_ext$major'
11042 svr4,*) # full svr4 only
11043 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11044 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11045 # We do not specify a path in Import Files, so LIBPATH fires.
11046 shlibpath_overrides_runpath=yes
11048 *,yes) # both, prefer svr4
11049 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11050 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11051 # unpreferred sharedlib libNAME.a needs extra handling
11052 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"'
11053 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"'
11054 # We do not specify a path in Import Files, so LIBPATH fires.
11055 shlibpath_overrides_runpath=yes
11057 *,no) # both, prefer aix
11058 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11059 library_names_spec='$libname$release.a $libname.a'
11060 soname_spec='$libname$release$shared_ext$major'
11061 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11062 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)'
11063 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"'
11066 shlibpath_var=LIBPATH
11073 # Since July 2007 AmigaOS4 officially supports .so libraries.
11074 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11078 library_names_spec='$libname.ixlibrary $libname.a'
11079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11080 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'
11086 library_names_spec='$libname$shared_ext'
11087 dynamic_linker="$host_os ld.so"
11088 shlibpath_var=LIBRARY_PATH
11092 version_type=linux # correct to gnu/linux during the next big refactor
11094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11095 soname_spec='$libname$release$shared_ext$major'
11096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11100 # the default ld.so.conf also contains /usr/contrib/lib and
11101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11102 # libtool to hard-code these into programs
11105 cygwin* | mingw* | pw32* | cegcc*)
11106 version_type=windows
11111 case $GCC,$cc_basename in
11114 library_names_spec='$libname.dll.a'
11115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11116 postinstall_cmds='base_file=`basename \$file`~
11117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11118 dldir=$destdir/`dirname \$dlpath`~
11119 test -d \$dldir || mkdir -p \$dldir~
11120 $install_prog $dir/$dlname \$dldir/$dlname~
11121 chmod a+x \$dldir/$dlname~
11122 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11123 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11125 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11126 dlpath=$dir/\$dldll~
11128 shlibpath_overrides_runpath=yes
11132 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11133 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11135 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11138 # MinGW DLLs use traditional 'lib' prefix
11139 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11142 # pw32 DLLs use 'pw' prefix rather than 'lib'
11143 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11146 dynamic_linker='Win32 ld.exe'
11151 libname_spec='$name'
11152 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11153 library_names_spec='$libname.dll.lib'
11157 sys_lib_search_path_spec=
11160 for lt_path in $LIB
11163 # Let DOS variable expansion print the short 8.3 style file name.
11164 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11165 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11168 # Convert to MSYS style.
11169 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11172 # Convert to unix form, then to dos form, then back to unix form
11173 # but this time dos style (no spaces!) so that the unix form looks
11174 # like /cygdrive/c/PROGRA~1:/cygdr...
11175 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11176 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11177 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11180 sys_lib_search_path_spec=$LIB
11181 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11182 # It is most probably a Windows format PATH.
11183 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11185 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11187 # FIXME: find the short name or the path components, as spaces are
11188 # common. (e.g. "Program Files" -> "PROGRA~1")
11192 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11193 postinstall_cmds='base_file=`basename \$file`~
11194 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11195 dldir=$destdir/`dirname \$dlpath`~
11196 test -d \$dldir || mkdir -p \$dldir~
11197 $install_prog $dir/$dlname \$dldir/$dlname'
11198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11199 dlpath=$dir/\$dldll~
11201 shlibpath_overrides_runpath=yes
11202 dynamic_linker='Win32 link.exe'
11206 # Assume MSVC wrapper
11207 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11208 dynamic_linker='Win32 ld.exe'
11211 # FIXME: first we should search . and the directory the executable is in
11215 darwin* | rhapsody*)
11216 dynamic_linker="$host_os dyld"
11217 version_type=darwin
11220 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11221 soname_spec='$libname$release$major$shared_ext'
11222 shlibpath_overrides_runpath=yes
11223 shlibpath_var=DYLD_LIBRARY_PATH
11224 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11226 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11227 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11231 version_type=linux # correct to gnu/linux during the next big refactor
11234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11235 soname_spec='$libname$release$shared_ext$major'
11236 shlibpath_var=LD_LIBRARY_PATH
11239 freebsd* | dragonfly*)
11240 # DragonFly does not have aout. When/if they implement a new
11241 # versioning mechanism, adjust this.
11242 if test -x /usr/bin/objformat; then
11243 objformat=`/usr/bin/objformat`
11246 freebsd[23].*) objformat=aout ;;
11247 *) objformat=elf ;;
11250 version_type=freebsd-$objformat
11251 case $version_type in
11253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11254 soname_spec='$libname$release$shared_ext$major'
11259 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11263 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=yes
11268 freebsd3.[01]* | freebsdelf3.[01]*)
11269 shlibpath_overrides_runpath=yes
11270 hardcode_into_libs=yes
11272 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11273 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11274 shlibpath_overrides_runpath=no
11275 hardcode_into_libs=yes
11277 *) # from 4.6 on, and DragonFly
11278 shlibpath_overrides_runpath=yes
11279 hardcode_into_libs=yes
11285 version_type=linux # correct to gnu/linux during the next big refactor
11288 dynamic_linker="$host_os runtime_loader"
11289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11290 soname_spec='$libname$release$shared_ext$major'
11291 shlibpath_var=LIBRARY_PATH
11292 shlibpath_overrides_runpath=no
11293 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11294 hardcode_into_libs=yes
11297 hpux9* | hpux10* | hpux11*)
11298 # Give a soname corresponding to the major version so that dld.sl refuses to
11299 # link against other versions.
11306 hardcode_into_libs=yes
11307 dynamic_linker="$host_os dld.so"
11308 shlibpath_var=LD_LIBRARY_PATH
11309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11311 soname_spec='$libname$release$shared_ext$major'
11312 if test 32 = "$HPUX_IA64_MODE"; then
11313 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11314 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11316 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11317 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11322 hardcode_into_libs=yes
11323 dynamic_linker="$host_os dld.sl"
11324 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11327 soname_spec='$libname$release$shared_ext$major'
11328 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11333 dynamic_linker="$host_os dld.sl"
11334 shlibpath_var=SHLIB_PATH
11335 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11337 soname_spec='$libname$release$shared_ext$major'
11340 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11341 postinstall_cmds='chmod 555 $lib'
11342 # or fails outright, so override atomically:
11343 install_override_mode=555
11347 version_type=linux # correct to gnu/linux during the next big refactor
11350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11351 soname_spec='$libname$release$shared_ext$major'
11352 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
11355 hardcode_into_libs=yes
11358 irix5* | irix6* | nonstopux*)
11360 nonstopux*) version_type=nonstopux ;;
11362 if test yes = "$lt_cv_prog_gnu_ld"; then
11363 version_type=linux # correct to gnu/linux during the next big refactor
11370 soname_spec='$libname$release$shared_ext$major'
11371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11373 irix5* | nonstopux*)
11374 libsuff= shlibsuff=
11377 case $LD in # libtool.m4 will add one of these switches to LD
11378 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11379 libsuff= shlibsuff= libmagic=32-bit;;
11380 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11381 libsuff=32 shlibsuff=N32 libmagic=N32;;
11382 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11383 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11384 *) libsuff= shlibsuff= libmagic=never-match;;
11388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11389 shlibpath_overrides_runpath=no
11390 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11391 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11392 hardcode_into_libs=yes
11395 # No shared lib support for Linux oldld, aout, or coff.
11396 linux*oldld* | linux*aout* | linux*coff*)
11401 version_type=none # Android doesn't support versioned libraries.
11404 library_names_spec='$libname$release$shared_ext'
11405 soname_spec='$libname$release$shared_ext'
11407 shlibpath_var=LD_LIBRARY_PATH
11408 shlibpath_overrides_runpath=yes
11410 # This implies no fast_install, which is unacceptable.
11411 # Some rework will be needed to allow for fast_install
11412 # before this can be enabled.
11413 hardcode_into_libs=yes
11415 dynamic_linker='Android linker'
11416 # Don't embed -rpath directories since the linker doesn't support them.
11417 hardcode_libdir_flag_spec='-L$libdir'
11420 # This must be glibc/ELF.
11421 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11422 version_type=linux # correct to gnu/linux during the next big refactor
11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11426 soname_spec='$libname$release$shared_ext$major'
11427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 shlibpath_overrides_runpath=no
11431 # Some binutils ld are patched to set DT_RUNPATH
11432 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11433 $as_echo_n "(cached) " >&6
11435 lt_cv_shlibpath_overrides_runpath=no
11436 save_LDFLAGS=$LDFLAGS
11437 save_libdir=$libdir
11438 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11439 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11451 if ac_fn_c_try_link "$LINENO"; then :
11452 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11453 lt_cv_shlibpath_overrides_runpath=yes
11456 rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458 LDFLAGS=$save_LDFLAGS
11459 libdir=$save_libdir
11463 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11465 # This implies no fast_install, which is unacceptable.
11466 # Some rework will be needed to allow for fast_install
11467 # before this can be enabled.
11468 hardcode_into_libs=yes
11470 # Ideally, we could use ldconfig to report *all* directores which are
11471 # searched for libraries, however this is still not possible. Aside from not
11472 # being certain /sbin/ldconfig is available, command
11473 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11474 # even though it is searched at run-time. Try to do the best guess by
11475 # appending ld.so.conf contents (and includes) to the search path.
11476 if test -f /etc/ld.so.conf; then
11477 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' ' '`
11478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11481 # We used to test for /lib/ld.so.1 and disable shared libraries on
11482 # powerpc, because MkLinux only supported shared libraries with the
11483 # GNU dynamic linker. Since this was broken with cross compilers,
11484 # most powerpc-linux boxes support dynamic linking these days and
11485 # people can always --disable-shared, the test was removed, and we
11486 # assume the GNU/Linux dynamic linker is in use.
11487 dynamic_linker='GNU/Linux ld.so'
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=no
11498 hardcode_into_libs=yes
11499 dynamic_linker='NetBSD ld.elf_so'
11506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11507 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11509 dynamic_linker='NetBSD (a.out) ld.so'
11511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11512 soname_spec='$libname$release$shared_ext$major'
11513 dynamic_linker='NetBSD ld.elf_so'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 shlibpath_overrides_runpath=yes
11517 hardcode_into_libs=yes
11521 version_type=linux # correct to gnu/linux during the next big refactor
11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=yes
11531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11532 soname_spec='$libname$release$shared_ext$major'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=no
11535 hardcode_into_libs=yes
11536 dynamic_linker='ldqnx.so'
11539 openbsd* | bitrig*)
11541 sys_lib_dlsearch_path_spec=/usr/lib
11543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 shlibpath_overrides_runpath=yes
11555 libname_spec='$name'
11556 version_type=windows
11560 # OS/2 can only load a DLL with a base name of 8 characters or less.
11561 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11562 v=$($ECHO $release$versuffix | tr -d .-);
11563 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11564 $ECHO $n$v`$shared_ext'
11565 library_names_spec='${libname}_dll.$libext'
11566 dynamic_linker='OS/2 ld.exe'
11567 shlibpath_var=BEGINLIBPATH
11568 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11570 postinstall_cmds='base_file=`basename \$file`~
11571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11572 dldir=$destdir/`dirname \$dlpath`~
11573 test -d \$dldir || mkdir -p \$dldir~
11574 $install_prog $dir/$dlname \$dldir/$dlname~
11575 chmod a+x \$dldir/$dlname~
11576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11580 dlpath=$dir/\$dldll~
11584 osf3* | osf4* | osf5*)
11588 soname_spec='$libname$release$shared_ext$major'
11589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11600 version_type=linux # correct to gnu/linux during the next big refactor
11603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11604 soname_spec='$libname$release$shared_ext$major'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=yes
11607 hardcode_into_libs=yes
11608 # ldd complains unless libraries are executable
11609 postinstall_cmds='chmod +x $lib'
11614 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11616 shlibpath_var=LD_LIBRARY_PATH
11617 shlibpath_overrides_runpath=yes
11618 if test yes = "$with_gnu_ld"; then
11625 version_type=linux # correct to gnu/linux during the next big refactor
11626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11627 soname_spec='$libname$release$shared_ext$major'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 case $host_vendor in
11631 shlibpath_overrides_runpath=no
11633 runpath_var=LD_RUN_PATH
11641 shlibpath_overrides_runpath=no
11642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11648 if test -d /usr/nec; then
11649 version_type=linux # correct to gnu/linux during the next big refactor
11650 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11651 soname_spec='$libname$shared_ext.$major'
11652 shlibpath_var=LD_LIBRARY_PATH
11656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11661 soname_spec='$libname$release$shared_ext$major'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=yes
11664 hardcode_into_libs=yes
11665 if test yes = "$with_gnu_ld"; then
11666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11668 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11671 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11675 sys_lib_dlsearch_path_spec='/usr/lib'
11679 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11680 version_type=linux # correct to gnu/linux during the next big refactor
11683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11684 shlibpath_var=LD_LIBRARY_PATH
11685 shlibpath_overrides_runpath=no
11686 hardcode_into_libs=yes
11690 version_type=linux # correct to gnu/linux during the next big refactor
11691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11692 soname_spec='$libname$release$shared_ext$major'
11693 shlibpath_var=LD_LIBRARY_PATH
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11701 $as_echo "$dynamic_linker" >&6; }
11702 test no = "$dynamic_linker" && can_build_shared=no
11704 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11705 if test yes = "$GCC"; then
11706 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11709 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11710 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11713 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11714 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11717 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11718 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11720 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11721 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11723 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11724 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11823 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11825 if test -n "$hardcode_libdir_flag_spec" ||
11826 test -n "$runpath_var" ||
11827 test yes = "$hardcode_automatic"; then
11829 # We can hardcode non-existent directories.
11830 if test no != "$hardcode_direct" &&
11831 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11832 # have to relink, otherwise we might link with an installed library
11833 # when we should be linking with a yet-to-be-installed one
11834 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11835 test no != "$hardcode_minus_L"; then
11836 # Linking always hardcodes the temporary library directory.
11837 hardcode_action=relink
11839 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11840 hardcode_action=immediate
11843 # We cannot hardcode anything, or else we can only hardcode existing
11845 hardcode_action=unsupported
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11848 $as_echo "$hardcode_action" >&6; }
11850 if test relink = "$hardcode_action" ||
11851 test yes = "$inherit_rpath"; then
11852 # Fast installation is not supported
11853 enable_fast_install=no
11854 elif test yes = "$shlibpath_overrides_runpath" ||
11855 test no = "$enable_shared"; then
11856 # Fast installation is not necessary
11857 enable_fast_install=needless
11865 if test yes != "$enable_dlopen"; then
11866 enable_dlopen=unknown
11867 enable_dlopen_self=unknown
11868 enable_dlopen_self_static=unknown
11875 lt_cv_dlopen=load_add_on
11877 lt_cv_dlopen_self=yes
11880 mingw* | pw32* | cegcc*)
11881 lt_cv_dlopen=LoadLibrary
11886 lt_cv_dlopen=dlopen
11891 # if libdl is installed we need to link against it
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11893 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11894 if ${ac_cv_lib_dl_dlopen+:} false; then :
11895 $as_echo_n "(cached) " >&6
11897 ac_check_lib_save_LIBS=$LIBS
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11902 /* Override any GCC internal prototype to avoid an error.
11903 Use char because int might match the return type of a GCC
11904 builtin and then its argument prototype would still apply. */
11917 if ac_fn_c_try_link "$LINENO"; then :
11918 ac_cv_lib_dl_dlopen=yes
11920 ac_cv_lib_dl_dlopen=no
11922 rm -f core conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11927 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11928 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11929 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11934 lt_cv_dlopen_self=yes
11941 # Don't try to run any link tests for TPF. We know it's impossible
11942 # because TPF is a cross-compiler, and we know how we open DSOs.
11943 lt_cv_dlopen=dlopen
11945 lt_cv_dlopen_self=no
11949 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11950 if test "x$ac_cv_func_shl_load" = xyes; then :
11951 lt_cv_dlopen=shl_load
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11954 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11955 if ${ac_cv_lib_dld_shl_load+:} false; then :
11956 $as_echo_n "(cached) " >&6
11958 ac_check_lib_save_LIBS=$LIBS
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11963 /* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11973 return shl_load ();
11978 if ac_fn_c_try_link "$LINENO"; then :
11979 ac_cv_lib_dld_shl_load=yes
11981 ac_cv_lib_dld_shl_load=no
11983 rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 LIBS=$ac_check_lib_save_LIBS
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11988 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11989 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11990 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11992 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11993 if test "x$ac_cv_func_dlopen" = xyes; then :
11994 lt_cv_dlopen=dlopen
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11997 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11998 if ${ac_cv_lib_dl_dlopen+:} false; then :
11999 $as_echo_n "(cached) " >&6
12001 ac_check_lib_save_LIBS=$LIBS
12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004 /* end confdefs.h. */
12006 /* Override any GCC internal prototype to avoid an error.
12007 Use char because int might match the return type of a GCC
12008 builtin and then its argument prototype would still apply. */
12021 if ac_fn_c_try_link "$LINENO"; then :
12022 ac_cv_lib_dl_dlopen=yes
12024 ac_cv_lib_dl_dlopen=no
12026 rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12028 LIBS=$ac_check_lib_save_LIBS
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12031 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12032 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12033 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12036 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12037 if ${ac_cv_lib_svld_dlopen+:} false; then :
12038 $as_echo_n "(cached) " >&6
12040 ac_check_lib_save_LIBS=$LIBS
12041 LIBS="-lsvld $LIBS"
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12045 /* Override any GCC internal prototype to avoid an error.
12046 Use char because int might match the return type of a GCC
12047 builtin and then its argument prototype would still apply. */
12060 if ac_fn_c_try_link "$LINENO"; then :
12061 ac_cv_lib_svld_dlopen=yes
12063 ac_cv_lib_svld_dlopen=no
12065 rm -f core conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12067 LIBS=$ac_check_lib_save_LIBS
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12070 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12071 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12072 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12075 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12076 if ${ac_cv_lib_dld_dld_link+:} false; then :
12077 $as_echo_n "(cached) " >&6
12079 ac_check_lib_save_LIBS=$LIBS
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12084 /* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12094 return dld_link ();
12099 if ac_fn_c_try_link "$LINENO"; then :
12100 ac_cv_lib_dld_dld_link=yes
12102 ac_cv_lib_dld_dld_link=no
12104 rm -f core conftest.err conftest.$ac_objext \
12105 conftest$ac_exeext conftest.$ac_ext
12106 LIBS=$ac_check_lib_save_LIBS
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12109 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12110 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12111 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12132 if test no = "$lt_cv_dlopen"; then
12138 case $lt_cv_dlopen in
12140 save_CPPFLAGS=$CPPFLAGS
12141 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12143 save_LDFLAGS=$LDFLAGS
12144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12147 LIBS="$lt_cv_dlopen_libs $LIBS"
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12150 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12151 if ${lt_cv_dlopen_self+:} false; then :
12152 $as_echo_n "(cached) " >&6
12154 if test yes = "$cross_compiling"; then :
12155 lt_cv_dlopen_self=cross
12157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12158 lt_status=$lt_dlunknown
12159 cat > conftest.$ac_ext <<_LT_EOF
12160 #line $LINENO "configure"
12161 #include "confdefs.h"
12170 # define LT_DLGLOBAL RTLD_GLOBAL
12173 # define LT_DLGLOBAL DL_GLOBAL
12175 # define LT_DLGLOBAL 0
12179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12180 find out it does not work in some platform. */
12181 #ifndef LT_DLLAZY_OR_NOW
12183 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12186 # define LT_DLLAZY_OR_NOW DL_LAZY
12189 # define LT_DLLAZY_OR_NOW RTLD_NOW
12192 # define LT_DLLAZY_OR_NOW DL_NOW
12194 # define LT_DLLAZY_OR_NOW 0
12201 /* When -fvisibility=hidden is used, assume the code has been annotated
12202 correspondingly for the symbols needed. */
12203 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12204 int fnord () __attribute__((visibility("default")));
12207 int fnord () { return 42; }
12210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12211 int status = $lt_dlunknown;
12215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12218 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12219 else puts (dlerror ());
12221 /* dlclose (self); */
12229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12230 (eval $ac_link) 2>&5
12232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12233 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12234 (./conftest; exit; ) >&5 2>/dev/null
12236 case x$lt_status in
12237 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12238 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12239 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12242 # compilation failed
12243 lt_cv_dlopen_self=no
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12251 $as_echo "$lt_cv_dlopen_self" >&6; }
12253 if test yes = "$lt_cv_dlopen_self"; then
12254 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12256 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12257 if ${lt_cv_dlopen_self_static+:} false; then :
12258 $as_echo_n "(cached) " >&6
12260 if test yes = "$cross_compiling"; then :
12261 lt_cv_dlopen_self_static=cross
12263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12264 lt_status=$lt_dlunknown
12265 cat > conftest.$ac_ext <<_LT_EOF
12266 #line $LINENO "configure"
12267 #include "confdefs.h"
12276 # define LT_DLGLOBAL RTLD_GLOBAL
12279 # define LT_DLGLOBAL DL_GLOBAL
12281 # define LT_DLGLOBAL 0
12285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12286 find out it does not work in some platform. */
12287 #ifndef LT_DLLAZY_OR_NOW
12289 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12292 # define LT_DLLAZY_OR_NOW DL_LAZY
12295 # define LT_DLLAZY_OR_NOW RTLD_NOW
12298 # define LT_DLLAZY_OR_NOW DL_NOW
12300 # define LT_DLLAZY_OR_NOW 0
12307 /* When -fvisibility=hidden is used, assume the code has been annotated
12308 correspondingly for the symbols needed. */
12309 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12310 int fnord () __attribute__((visibility("default")));
12313 int fnord () { return 42; }
12316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12317 int status = $lt_dlunknown;
12321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12324 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12325 else puts (dlerror ());
12327 /* dlclose (self); */
12335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12336 (eval $ac_link) 2>&5
12338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12339 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12340 (./conftest; exit; ) >&5 2>/dev/null
12342 case x$lt_status in
12343 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12344 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12345 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12348 # compilation failed
12349 lt_cv_dlopen_self_static=no
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12357 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12360 CPPFLAGS=$save_CPPFLAGS
12361 LDFLAGS=$save_LDFLAGS
12366 case $lt_cv_dlopen_self in
12367 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12368 *) enable_dlopen_self=unknown ;;
12371 case $lt_cv_dlopen_self_static in
12372 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12373 *) enable_dlopen_self_static=unknown ;;
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12396 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12397 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12398 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12399 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12401 $as_echo "yes" >&6; }
12403 # FIXME - insert some real tests, host_os isn't really good enough
12406 if test -n "$STRIP"; then
12407 striplib="$STRIP -x"
12408 old_striplib="$STRIP -S"
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12410 $as_echo "yes" >&6; }
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12434 # Report what library types will actually be built
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12436 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12438 $as_echo "$can_build_shared" >&6; }
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12441 $as_echo_n "checking whether to build shared libraries... " >&6; }
12442 test no = "$can_build_shared" && enable_shared=no
12444 # On AIX, shared libraries and static libraries use the same namespace, and
12445 # are all built from PIC.
12448 test yes = "$enable_shared" && enable_static=no
12449 if test -n "$RANLIB"; then
12450 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12451 postinstall_cmds='$RANLIB $lib'
12456 if test ia64 != "$host_cpu"; then
12457 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12458 yes,aix,yes) ;; # shared object as lib.so file only
12459 yes,svr4,*) ;; # shared object as lib.so archive member only
12460 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12466 $as_echo "$enable_shared" >&6; }
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12469 $as_echo_n "checking whether to build static libraries... " >&6; }
12470 # Make sure either enable_shared or enable_static is yes.
12471 test yes = "$enable_shared" || enable_static=yes
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12473 $as_echo "$enable_static" >&6; }
12480 ac_cpp='$CPP $CPPFLAGS'
12481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12501 ac_config_commands="$ac_config_commands libtool"
12506 # Only expand once:
12511 if test "x$enable_docs" = xyes; then
12512 # Extract the first word of "doxygen", so it can be a program name with args.
12513 set dummy doxygen; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
12517 $as_echo_n "(cached) " >&6
12519 if test -n "$HAVE_DOXYGEN"; then
12520 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529 ac_cv_prog_HAVE_DOXYGEN="true"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
12540 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
12541 if test -n "$HAVE_DOXYGEN"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
12543 $as_echo "$HAVE_DOXYGEN" >&6; }
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12550 if test $HAVE_DOXYGEN = "false"; then
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** doxygen not found, API documentation will not be built" >&5
12552 $as_echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;}
12557 if $HAVE_DOXYGEN; then
12559 HAVE_DOXYGEN_FALSE='#'
12561 HAVE_DOXYGEN_TRUE='#'
12562 HAVE_DOXYGEN_FALSE=
12566 # Check whether --enable-docs was given.
12567 if test "${enable_docs+set}" = set; then :
12568 enableval=$enable_docs;
12572 if test "x$enable_docs" = xyes; then
12573 for ac_prog in pdflatex
12575 # Extract the first word of "$ac_prog", so it can be a program name with args.
12576 set dummy $ac_prog; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if ${ac_cv_prog_PDFLATEX+:} false; then :
12580 $as_echo_n "(cached) " >&6
12582 if test -n "$PDFLATEX"; then
12583 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592 ac_cv_prog_PDFLATEX="$ac_prog"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 PDFLATEX=$ac_cv_prog_PDFLATEX
12603 if test -n "$PDFLATEX"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
12605 $as_echo "$PDFLATEX" >&6; }
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12612 test -n "$PDFLATEX" && break
12614 test -n "$PDFLATEX" || PDFLATEX="/bin/false"
12616 for ac_prog in htlatex
12618 # Extract the first word of "$ac_prog", so it can be a program name with args.
12619 set dummy $ac_prog; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if ${ac_cv_prog_HTLATEX+:} false; then :
12623 $as_echo_n "(cached) " >&6
12625 if test -n "$HTLATEX"; then
12626 ac_cv_prog_HTLATEX="$HTLATEX" # Let the user override the test.
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12635 ac_cv_prog_HTLATEX="$ac_prog"
12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 HTLATEX=$ac_cv_prog_HTLATEX
12646 if test -n "$HTLATEX"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTLATEX" >&5
12648 $as_echo "$HTLATEX" >&6; }
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12655 test -n "$HTLATEX" && break
12657 test -n "$HTLATEX" || HTLATEX="/bin/false"
12659 if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation will not be built!" >&5
12662 $as_echo "$as_me: WARNING: Documentation will not be built!" >&2;}
12666 if test "x$enable_docs" = xyes; then
12668 BUILD_DOCS_FALSE='#'
12670 BUILD_DOCS_TRUE='#'
12675 # Check whether --enable-examples was given.
12676 if test "${enable_examples+set}" = set; then :
12677 enableval=$enable_examples;
12681 if test "x$enable_examples" = xyes; then
12682 BUILD_EXAMPLES_TRUE=
12683 BUILD_EXAMPLES_FALSE='#'
12685 BUILD_EXAMPLES_TRUE='#'
12686 BUILD_EXAMPLES_FALSE=
12692 cflags_save="$CFLAGS"
12693 if test -z "$GCC"; then
12696 if test -z "$CC"; then
12700 CFLAGS="-O2 -w -signed"
12701 PROFILE="-p -g3 -O2 -signed" ;;
12702 sparc-sun-solaris*)
12704 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
12705 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC version" >&5
12714 $as_echo_n "checking GCC version... " >&6; }
12715 GCC_VERSION=`$CC -dumpversion`
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
12717 $as_echo "$GCC_VERSION" >&6; }
12720 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
12721 CFLAGS="-O3 -Wall -Wextra -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
12722 # PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
12723 PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
12725 # glibc < 2.1.3 has a serious FP bug in the math inline header
12726 # that will cripple Vorbis. Look to see if the magic FP stack
12727 # clobber is missing in the mathinline header, thus indicating
12728 # the buggy version
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12733 #define __LIBC_INTERNAL_MATH_INLINES 1
12734 #define __OPTIMIZE__
12738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12739 $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then :
12746 if test ${bad} = "maybe" ;then
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12750 #define __LIBC_INTERNAL_MATH_INLINES 1
12751 #define __OPTIMIZE__
12755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12756 $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then :
12764 if test ${bad} = "yes" ;then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
12766 $as_echo "$as_me: WARNING: " >&2;}
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
12768 $as_echo "$as_me: WARNING: ********************************************************" >&2;}
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5
12770 $as_echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
12772 $as_echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not just Ogg, built on this *" >&5
12774 $as_echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5
12776 $as_echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * to correct the problem. Note that upgrading glibc *" >&5
12778 $as_echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;}
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will not fix any previously built programs; this is *" >&5
12780 $as_echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;}
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * a compile-time bug. *" >&5
12782 $as_echo "$as_me: WARNING: * a compile-time bug. *" >&2;}
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of Ogg, *" >&5
12784 $as_echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;}
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5
12786 $as_echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
12788 $as_echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5
12790 $as_echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;}
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5
12792 $as_echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
12794 $as_echo "$as_me: WARNING: ********************************************************" >&2;}
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
12796 $as_echo "$as_me: WARNING: " >&2;}
12798 CFLAGS=${OPT}" -D__NO_MATH_INLINES"
12799 PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
12801 powerpc-*-linux*spe)
12802 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
12803 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -D_REENTRANT"
12804 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";;
12806 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
12807 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
12808 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
12810 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
12811 CFLAGS="-O3 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char"
12812 PROFILE="-pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char";;
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -mv8" >&5
12816 $as_echo_n "checking if gcc supports -mv8... " >&6; }
12817 old_cflags="$CFLAGS"
12818 CFLAGS="$CFLAGS -mv8"
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12830 if ac_fn_c_try_compile "$LINENO"; then :
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12833 $as_echo "yes" >&6; }
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 CFLAGS="$old_cflags"
12839 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
12840 CFLAGS="-O3 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
12841 PROFILE="-pg -g -O3 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
12843 DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
12844 CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O3 -ffast-math -fsigned-char"
12845 PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O3 -ffast-math -fsigned-char";;
12847 # Use -W instead of -Wextra because gcc on OS/2 is an old version.
12848 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
12849 CFLAGS="-O3 -Wall -W -ffast-math -D_REENTRANT -fsigned-char"
12850 PROFILE="-pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char";;
12852 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
12853 CFLAGS="-O3 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
12854 PROFILE="-O3 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
12858 $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
12859 ac_add_cflags__old_cflags="$CFLAGS"
12860 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12867 puts("Hello, World!"); return 0;
12872 if ac_fn_c_try_link "$LINENO"; then :
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12874 $as_echo "yes" >&6; }
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12878 CFLAGS="$ac_add_cflags__old_cflags"
12880 rm -f core conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12884 CFLAGS="$CFLAGS $cflags_save"
12887 ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
12888 if test "x$ac_cv_header_memory_h" = xyes; then :
12889 CFLAGS="$CFLAGS -DUSE_MEMORY_H"
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12900 $as_echo_n "checking for cos in -lm... " >&6; }
12901 if ${ac_cv_lib_m_cos+:} false; then :
12902 $as_echo_n "(cached) " >&6
12904 ac_check_lib_save_LIBS=$LIBS
12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12909 /* Override any GCC internal prototype to avoid an error.
12910 Use char because int might match the return type of a GCC
12911 builtin and then its argument prototype would still apply. */
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 ac_cv_lib_m_cos=yes
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12931 LIBS=$ac_check_lib_save_LIBS
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12934 $as_echo "$ac_cv_lib_m_cos" >&6; }
12935 if test "x$ac_cv_lib_m_cos" = xyes; then :
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12942 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12943 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12944 $as_echo_n "(cached) " >&6
12946 ac_check_lib_save_LIBS=$LIBS
12947 LIBS="-lpthread $LIBS"
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12951 /* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12957 char pthread_create ();
12961 return pthread_create ();
12966 if ac_fn_c_try_link "$LINENO"; then :
12967 ac_cv_lib_pthread_pthread_create=yes
12969 ac_cv_lib_pthread_pthread_create=no
12971 rm -f core conftest.err conftest.$ac_objext \
12972 conftest$ac_exeext conftest.$ac_ext
12973 LIBS=$ac_check_lib_save_LIBS
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12976 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12977 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12978 pthread_lib="-lpthread"
12986 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12987 if test -n "$ac_tool_prefix"; then
12988 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12989 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991 $as_echo_n "checking for $ac_word... " >&6; }
12992 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12993 $as_echo_n "(cached) " >&6
12995 case $PKG_CONFIG in
12997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13004 test -z "$as_dir" && as_dir=.
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13019 if test -n "$PKG_CONFIG"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13021 $as_echo "$PKG_CONFIG" >&6; }
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13029 if test -z "$ac_cv_path_PKG_CONFIG"; then
13030 ac_pt_PKG_CONFIG=$PKG_CONFIG
13031 # Extract the first word of "pkg-config", so it can be a program name with args.
13032 set dummy pkg-config; ac_word=$2
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034 $as_echo_n "checking for $ac_word... " >&6; }
13035 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13036 $as_echo_n "(cached) " >&6
13038 case $ac_pt_PKG_CONFIG in
13040 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13050 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13062 if test -n "$ac_pt_PKG_CONFIG"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13064 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13070 if test "x$ac_pt_PKG_CONFIG" = x; then
13073 case $cross_compiling:$ac_tool_warned in
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13077 ac_tool_warned=yes ;;
13079 PKG_CONFIG=$ac_pt_PKG_CONFIG
13082 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13086 if test -n "$PKG_CONFIG"; then
13087 _pkg_min_version=0.9.0
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13089 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13090 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13092 $as_echo "yes" >&6; }
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13102 if test "x$PKG_CONFIG" != "x"
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5
13107 $as_echo_n "checking for OGG... " >&6; }
13109 if test -n "$PKG_CONFIG"; then
13110 if test -n "$OGG_CFLAGS"; then
13111 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
13113 if test -n "$PKG_CONFIG" && \
13114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
13115 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
13117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13118 test $ac_status = 0; }; then
13119 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
13127 if test -n "$PKG_CONFIG"; then
13128 if test -n "$OGG_LIBS"; then
13129 pkg_cv_OGG_LIBS="$OGG_LIBS"
13131 if test -n "$PKG_CONFIG" && \
13132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
13133 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
13135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13136 test $ac_status = 0; }; then
13137 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
13148 if test $pkg_failed = yes; then
13150 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13151 _pkg_short_errors_supported=yes
13153 _pkg_short_errors_supported=no
13155 if test $_pkg_short_errors_supported = yes; then
13156 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"`
13158 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
13160 # Put the nasty error message in config.log where it belongs
13161 echo "$OGG_PKG_ERRORS" >&5
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13166 elif test $pkg_failed = untried; then
13169 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
13170 OGG_LIBS=$pkg_cv_OGG_LIBS
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13172 $as_echo "yes" >&6; }
13176 if test "x$HAVE_OGG" = "xno"
13179 # Check whether --with-ogg was given.
13180 if test "${with_ogg+set}" = set; then :
13181 withval=$with_ogg; ogg_prefix="$withval"
13187 # Check whether --with-ogg-libraries was given.
13188 if test "${with_ogg_libraries+set}" = set; then :
13189 withval=$with_ogg_libraries; ogg_libraries="$withval"
13195 # Check whether --with-ogg-includes was given.
13196 if test "${with_ogg_includes+set}" = set; then :
13197 withval=$with_ogg_includes; ogg_includes="$withval"
13202 # Check whether --enable-oggtest was given.
13203 if test "${enable_oggtest+set}" = set; then :
13204 enableval=$enable_oggtest;
13210 if test "x$ogg_libraries" != "x" ; then
13211 OGG_LIBS="-L$ogg_libraries"
13212 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
13214 elif test "x$ogg_prefix" != "x" ; then
13215 OGG_LIBS="-L$ogg_prefix/lib"
13216 elif test "x$prefix" != "xNONE" ; then
13217 OGG_LIBS="-L$prefix/lib"
13220 if test "x$ogg_prefix" != "xno" ; then
13221 OGG_LIBS="$OGG_LIBS -logg"
13224 if test "x$ogg_includes" != "x" ; then
13225 OGG_CFLAGS="-I$ogg_includes"
13226 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
13228 elif test "x$ogg_prefix" != "x" ; then
13229 OGG_CFLAGS="-I$ogg_prefix/include"
13230 elif test "x$prefix" != "xNONE"; then
13231 OGG_CFLAGS="-I$prefix/include"
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5
13235 $as_echo_n "checking for Ogg... " >&6; }
13236 if test "x$ogg_prefix" = "xno" ; then
13238 enable_oggtest="no"
13244 if test "x$enable_oggtest" = "xyes" ; then
13245 ac_save_CFLAGS="$CFLAGS"
13246 ac_save_LIBS="$LIBS"
13247 CFLAGS="$CFLAGS $OGG_CFLAGS"
13248 LIBS="$LIBS $OGG_LIBS"
13250 if test "$cross_compiling" = yes; then :
13251 echo $ac_n "cross compiling; assumed OK... $ac_c"
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13257 #include <stdlib.h>
13258 #include <string.h>
13259 #include <ogg/ogg.h>
13263 system("touch conf.oggtest");
13269 if ac_fn_c_try_run "$LINENO"; then :
13274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13275 conftest.$ac_objext conftest.beam conftest.$ac_ext
13278 CFLAGS="$ac_save_CFLAGS"
13279 LIBS="$ac_save_LIBS"
13282 if test "x$no_ogg" = "xdisabled" ; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284 $as_echo "no" >&6; }
13285 as_fn_error $? "must have Ogg installed!" "$LINENO" 5
13286 elif test "x$no_ogg" = "x" ; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13288 $as_echo "yes" >&6; }
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292 $as_echo "no" >&6; }
13293 if test -f conf.oggtest ; then
13296 echo "*** Could not run Ogg test program, checking why..."
13297 CFLAGS="$CFLAGS $OGG_CFLAGS"
13298 LIBS="$LIBS $OGG_LIBS"
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13303 #include <ogg/ogg.h>
13313 if ac_fn_c_try_link "$LINENO"; then :
13314 echo "*** The test program compiled, but did not run. This usually means"
13315 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
13316 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
13317 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13318 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13319 echo "*** is required on your system"
13321 echo "*** If you have an old version installed, it is best to remove it, although"
13322 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13324 echo "*** The test program failed to compile or link. See the file config.log for the"
13325 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
13326 echo "*** or that you have moved Ogg since it was installed."
13328 rm -f core conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13330 CFLAGS="$ac_save_CFLAGS"
13331 LIBS="$ac_save_LIBS"
13335 as_fn_error $? "must have Ogg installed!" "$LINENO" 5
13342 LIBS="$OGG_LIBS $VORBIS_LIBS"
13343 ac_fn_c_check_func "$LINENO" "oggpack_writealign" "ac_cv_func_oggpack_writealign"
13344 if test "x$ac_cv_func_oggpack_writealign" = xyes; then :
13347 as_fn_error $? "Ogg >= 1.0 required !" "$LINENO" 5
13354 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13355 if test "x$ac_cv_type_size_t" = xyes; then :
13359 cat >>confdefs.h <<_ACEOF
13360 #define size_t unsigned int
13365 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13366 # for constant arguments. Useless!
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13368 $as_echo_n "checking for working alloca.h... " >&6; }
13369 if ${ac_cv_working_alloca_h+:} false; then :
13370 $as_echo_n "(cached) " >&6
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 #include <alloca.h>
13378 char *p = (char *) alloca (2 * sizeof (int));
13384 if ac_fn_c_try_link "$LINENO"; then :
13385 ac_cv_working_alloca_h=yes
13387 ac_cv_working_alloca_h=no
13389 rm -f core conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext conftest.$ac_ext
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13393 $as_echo "$ac_cv_working_alloca_h" >&6; }
13394 if test $ac_cv_working_alloca_h = yes; then
13396 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13401 $as_echo_n "checking for alloca... " >&6; }
13402 if ${ac_cv_func_alloca_works+:} false; then :
13403 $as_echo_n "(cached) " >&6
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13408 # define alloca __builtin_alloca
13411 # include <malloc.h>
13412 # define alloca _alloca
13414 # ifdef HAVE_ALLOCA_H
13415 # include <alloca.h>
13420 # ifndef alloca /* predefined by HP cc +Olibcalls */
13421 void *alloca (size_t);
13431 char *p = (char *) alloca (1);
13437 if ac_fn_c_try_link "$LINENO"; then :
13438 ac_cv_func_alloca_works=yes
13440 ac_cv_func_alloca_works=no
13442 rm -f core conftest.err conftest.$ac_objext \
13443 conftest$ac_exeext conftest.$ac_ext
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13446 $as_echo "$ac_cv_func_alloca_works" >&6; }
13448 if test $ac_cv_func_alloca_works = yes; then
13450 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13453 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13454 # that cause trouble. Some versions do not even contain alloca or
13455 # contain a buggy version. If you still want to use their alloca,
13456 # use ar to extract alloca.o from them instead of compiling alloca.c.
13458 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13460 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13464 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13465 if ${ac_cv_os_cray+:} false; then :
13466 $as_echo_n "(cached) " >&6
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13470 #if defined CRAY && ! defined CRAY2
13477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13478 $EGREP "webecray" >/dev/null 2>&1; then :
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13487 $as_echo "$ac_cv_os_cray" >&6; }
13488 if test $ac_cv_os_cray = yes; then
13489 for ac_func in _getb67 GETB67 getb67; do
13490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13491 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13492 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13494 cat >>confdefs.h <<_ACEOF
13495 #define CRAY_STACKSEG_END $ac_func
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13505 $as_echo_n "checking stack direction for C alloca... " >&6; }
13506 if ${ac_cv_c_stack_direction+:} false; then :
13507 $as_echo_n "(cached) " >&6
13509 if test "$cross_compiling" = yes; then :
13510 ac_cv_c_stack_direction=0
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514 $ac_includes_default
13516 find_stack_direction (int *addr, int depth)
13518 int dir, dummy = 0;
13521 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13522 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13523 return dir + dummy;
13527 main (int argc, char **argv)
13529 return find_stack_direction (0, argc + !argv + 20) < 0;
13532 if ac_fn_c_try_run "$LINENO"; then :
13533 ac_cv_c_stack_direction=1
13535 ac_cv_c_stack_direction=-1
13537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13538 conftest.$ac_objext conftest.beam conftest.$ac_ext
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13543 $as_echo "$ac_cv_c_stack_direction" >&6; }
13544 cat >>confdefs.h <<_ACEOF
13545 #define STACK_DIRECTION $ac_cv_c_stack_direction
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
13552 $as_echo_n "checking for working memcmp... " >&6; }
13553 if ${ac_cv_func_memcmp_working+:} false; then :
13554 $as_echo_n "(cached) " >&6
13556 if test "$cross_compiling" = yes; then :
13557 ac_cv_func_memcmp_working=no
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561 $ac_includes_default
13566 /* Some versions of memcmp are not 8-bit clean. */
13567 char c0 = '\100', c1 = '\200', c2 = '\201';
13568 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13571 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13572 or more and with at least one buffer not starting on a 4-byte boundary.
13573 William Lewis provided this test program. */
13578 for (i = 0; i < 4; i++)
13582 strcpy (a, "--------01111111");
13583 strcpy (b, "--------10000000");
13584 if (memcmp (a, b, 16) >= 0)
13594 if ac_fn_c_try_run "$LINENO"; then :
13595 ac_cv_func_memcmp_working=yes
13597 ac_cv_func_memcmp_working=no
13599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13600 conftest.$ac_objext conftest.beam conftest.$ac_ext
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13605 $as_echo "$ac_cv_func_memcmp_working" >&6; }
13606 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13607 *" memcmp.$ac_objext "* ) ;;
13608 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13622 ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile doc/libvorbis/Makefile doc/Doxyfile include/Makefile include/vorbis/Makefile examples/Makefile test/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc"
13624 ac_config_headers="$ac_config_headers config.h"
13627 cat >confcache <<\_ACEOF
13628 # This file is a shell script that caches the results of configure
13629 # tests run on this system so they can be shared between configure
13630 # scripts and configure runs, see configure's option --config-cache.
13631 # It is not useful on other systems. If it contains results you don't
13632 # want to keep, you may remove or edit it.
13634 # config.status only pays attention to the cache file if you give it
13635 # the --recheck option to rerun configure.
13637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13639 # following values.
13643 # The following way of writing the cache mishandles newlines in values,
13644 # but we know of no workaround that is simple, portable, and efficient.
13645 # So, we kill variables containing newlines.
13646 # Ultrix sh set writes to stderr and can't be redirected directly,
13647 # and sets the high bit in the cache file unless we assign to the vars.
13649 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13650 eval ac_val=\$$ac_var
13654 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13655 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13658 _ | IFS | as_nl) ;; #(
13659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13660 *) { eval $ac_var=; unset $ac_var;} ;;
13666 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13667 *${as_nl}ac_space=\ *)
13668 # `set' does not quote correctly, so add quotes: double-quote
13669 # substitution turns \\\\ into \\, and sed turns \\ into \.
13672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13675 # `set' quotes correctly as required by POSIX, so do not add quotes.
13676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13687 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13689 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13690 if test -w "$cache_file"; then
13691 if test "x$cache_file" != "x/dev/null"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13693 $as_echo "$as_me: updating cache $cache_file" >&6;}
13694 if test ! -f "$cache_file" || test -h "$cache_file"; then
13695 cat confcache >"$cache_file"
13697 case $cache_file in #(
13699 mv -f confcache "$cache_file"$$ &&
13700 mv -f "$cache_file"$$ "$cache_file" ;; #(
13702 mv -f confcache "$cache_file" ;;
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13708 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13714 # Let make expand exec_prefix.
13715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13717 DEFS=-DHAVE_CONFIG_H
13722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13723 # 1. Remove the extension, and $U if already installed.
13724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13725 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13727 # will be set to the directory where LIBOBJS objects are built.
13728 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13729 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13731 LIBOBJS=$ac_libobjs
13733 LTLIBOBJS=$ac_ltlibobjs
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13737 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13738 if test -n "$am_sleep_pid"; then
13739 # Hide warnings about reused PIDs.
13740 wait $am_sleep_pid 2>/dev/null
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13743 $as_echo "done" >&6; }
13744 if test -n "$EXEEXT"; then
13746 am__EXEEXT_FALSE='#'
13748 am__EXEEXT_TRUE='#'
13752 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13753 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13756 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13757 as_fn_error $? "conditional \"AMDEP\" was never defined.
13758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13760 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13761 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13764 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
13765 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
13766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13768 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
13769 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
13770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13772 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
13773 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
13774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13777 : "${CONFIG_STATUS=./config.status}"
13779 ac_clean_files_save=$ac_clean_files
13780 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13782 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13784 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13786 # Generated by $as_me.
13787 # Run this file to recreate the current configuration.
13788 # Compiler output produced by configure, useful for debugging
13789 # configure, is in config.log if it exists.
13792 ac_cs_recheck=false
13795 SHELL=\${CONFIG_SHELL-$SHELL}
13798 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13799 ## -------------------- ##
13800 ## M4sh Initialization. ##
13801 ## -------------------- ##
13803 # Be more Bourne compatible
13804 DUALCASE=1; export DUALCASE # for MKS sh
13805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13809 # is contrary to our usage. Disable this feature.
13810 alias -g '${1+"$@"}'='"$@"'
13811 setopt NO_GLOB_SUBST
13813 case `(set -o) 2>/dev/null` in #(
13825 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13826 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13828 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13829 # Prefer a ksh shell builtin over an external printf program on Solaris,
13830 # but without wasting forks for bash or zsh.
13831 if test -z "$BASH_VERSION$ZSH_VERSION" \
13832 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13833 as_echo='print -r --'
13834 as_echo_n='print -rn --'
13835 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13836 as_echo='printf %s\n'
13837 as_echo_n='printf %s'
13839 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13840 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13841 as_echo_n='/usr/ucb/echo -n'
13843 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13844 as_echo_n_body='eval
13848 expr "X$arg" : "X\\(.*\\)$as_nl";
13849 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13851 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13853 export as_echo_n_body
13854 as_echo_n='sh -c $as_echo_n_body as_echo'
13856 export as_echo_body
13857 as_echo='sh -c $as_echo_body as_echo'
13860 # The user is always right.
13861 if test "${PATH_SEPARATOR+set}" != set; then
13863 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13864 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13871 # We need space, tab and new line, in precisely that order. Quoting is
13872 # there to prevent editors from complaining about space-tab.
13873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13874 # splitting by setting IFS to empty value.)
13877 # Find who we are. Look in the path if we contain no directory separator.
13880 *[\\/]* ) as_myself=$0 ;;
13881 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13882 for as_dir in $PATH
13885 test -z "$as_dir" && as_dir=.
13886 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13892 # We did not find ourselves, most probably we were run as `sh COMMAND'
13893 # in which case we are not to be found in the path.
13894 if test "x$as_myself" = x; then
13897 if test ! -f "$as_myself"; then
13898 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13902 # Unset variables that we do not need and which cause bugs (e.g. in
13903 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13904 # suppresses any "Segmentation fault" message there. '((' could
13905 # trigger a bug in pdksh 5.2.14.
13906 for as_var in BASH_ENV ENV MAIL MAILPATH
13907 do eval test x\${$as_var+set} = xset \
13908 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13921 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13924 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13925 # ----------------------------------------
13926 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13927 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13928 # script with STATUS, using 1 if that was 0.
13931 as_status=$1; test $as_status -eq 0 && as_status=1
13933 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13934 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13936 $as_echo "$as_me: error: $2" >&2
13937 as_fn_exit $as_status
13941 # as_fn_set_status STATUS
13942 # -----------------------
13943 # Set $? to STATUS, without forking.
13944 as_fn_set_status ()
13947 } # as_fn_set_status
13949 # as_fn_exit STATUS
13950 # -----------------
13951 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13955 as_fn_set_status $1
13961 # Portably unset VAR.
13964 { eval $1=; unset $1;}
13966 as_unset=as_fn_unset
13967 # as_fn_append VAR VALUE
13968 # ----------------------
13969 # Append the text in VALUE to the end of the definition contained in VAR. Take
13970 # advantage of any shell optimizations that allow amortized linear growth over
13971 # repeated appends, instead of the typical quadratic growth present in naive
13973 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13974 eval 'as_fn_append ()
13985 # as_fn_arith ARG...
13986 # ------------------
13987 # Perform arithmetic evaluation on the ARGs, and store the result in the
13988 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13989 # must be portable across $(()) and expr.
13990 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13991 eval 'as_fn_arith ()
13998 as_val=`expr "$@" || test $? -eq 1`
14003 if expr a : '\(a\)' >/dev/null 2>&1 &&
14004 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14010 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14011 as_basename=basename
14016 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14022 as_me=`$as_basename -- "$0" ||
14023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14024 X"$0" : 'X\(//\)$' \| \
14025 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14027 sed '/^.*\/\([^/][^/]*\)\/*$/{
14041 # Avoid depending upon Character Ranges.
14042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14045 as_cr_digits='0123456789'
14046 as_cr_alnum=$as_cr_Letters$as_cr_digits
14048 ECHO_C= ECHO_N= ECHO_T=
14049 case `echo -n x` in #(((((
14051 case `echo 'xy\c'` in
14052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14054 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14061 rm -f conf$$ conf$$.exe conf$$.file
14062 if test -d conf$$.dir; then
14063 rm -f conf$$.dir/conf$$.file
14066 mkdir conf$$.dir 2>/dev/null
14068 if (echo >conf$$.file) 2>/dev/null; then
14069 if ln -s conf$$.file conf$$ 2>/dev/null; then
14071 # ... but there are two gotchas:
14072 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14073 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14074 # In both cases, we have to default to `cp -pR'.
14075 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14077 elif ln conf$$.file conf$$ 2>/dev/null; then
14085 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14086 rmdir conf$$.dir 2>/dev/null
14091 # Create "$as_dir" as a directory, including parents if necessary.
14096 -*) as_dir=./$as_dir;;
14098 test -d "$as_dir" || eval $as_mkdir_p || {
14102 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14103 *) as_qdir=$as_dir;;
14105 as_dirs="'$as_qdir' $as_dirs"
14106 as_dir=`$as_dirname -- "$as_dir" ||
14107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14108 X"$as_dir" : 'X\(//\)[^/]' \| \
14109 X"$as_dir" : 'X\(//\)$' \| \
14110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14111 $as_echo X"$as_dir" |
14112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14116 /^X\(\/\/\)[^/].*/{
14129 test -d "$as_dir" && break
14131 test -z "$as_dirs" || eval "mkdir $as_dirs"
14132 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14136 if mkdir -p . 2>/dev/null; then
14137 as_mkdir_p='mkdir -p "$as_dir"'
14139 test -d ./-p && rmdir ./-p
14144 # as_fn_executable_p FILE
14145 # -----------------------
14146 # Test if FILE is an executable regular file.
14147 as_fn_executable_p ()
14149 test -f "$1" && test -x "$1"
14150 } # as_fn_executable_p
14151 as_test_x='test -x'
14152 as_executable_p=as_fn_executable_p
14154 # Sed expression to map a string onto a valid CPP name.
14155 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14157 # Sed expression to map a string onto a valid variable name.
14158 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14162 ## ----------------------------------- ##
14163 ## Main body of $CONFIG_STATUS script. ##
14164 ## ----------------------------------- ##
14166 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14169 # Save the log message, to keep $0 and so on meaningful, and to
14170 # report actual input values of CONFIG_FILES etc. instead of their
14171 # values after options handling.
14173 This file was extended by libvorbis $as_me 1.3.7, which was
14174 generated by GNU Autoconf 2.69. Invocation command line was
14176 CONFIG_FILES = $CONFIG_FILES
14177 CONFIG_HEADERS = $CONFIG_HEADERS
14178 CONFIG_LINKS = $CONFIG_LINKS
14179 CONFIG_COMMANDS = $CONFIG_COMMANDS
14182 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14187 case $ac_config_files in *"
14188 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14191 case $ac_config_headers in *"
14192 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14197 # Files that config.status was made for.
14198 config_files="$ac_config_files"
14199 config_headers="$ac_config_headers"
14200 config_commands="$ac_config_commands"
14204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14206 \`$as_me' instantiates files and other configuration actions
14207 from templates according to the current configuration. Unless the files
14208 and actions are specified as TAGs, all are instantiated by default.
14210 Usage: $0 [OPTION]... [TAG]...
14212 -h, --help print this help, then exit
14213 -V, --version print version number and configuration settings, then exit
14214 --config print configuration, then exit
14215 -q, --quiet, --silent
14216 do not print progress messages
14217 -d, --debug don't remove temporary files
14218 --recheck update $as_me by reconfiguring in the same conditions
14219 --file=FILE[:TEMPLATE]
14220 instantiate the configuration file FILE
14221 --header=FILE[:TEMPLATE]
14222 instantiate the configuration header FILE
14224 Configuration files:
14227 Configuration headers:
14230 Configuration commands:
14233 Report bugs to <vorbis-dev@xiph.org>."
14236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14237 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14239 libvorbis config.status 1.3.7
14240 configured by $0, generated by GNU Autoconf 2.69,
14241 with options \\"\$ac_cs_config\\"
14243 Copyright (C) 2012 Free Software Foundation, Inc.
14244 This config.status script is free software; the Free Software Foundation
14245 gives unlimited permission to copy, distribute and modify it."
14252 test -n "\$AWK" || AWK=awk
14255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14256 # The default lists apply if the user does not specify any file.
14262 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14263 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14267 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14279 # Handling of the options.
14280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14282 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14283 $as_echo "$ac_cs_version"; exit ;;
14284 --config | --confi | --conf | --con | --co | --c )
14285 $as_echo "$ac_cs_config"; exit ;;
14286 --debug | --debu | --deb | --de | --d | -d )
14288 --file | --fil | --fi | --f )
14291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14292 '') as_fn_error $? "missing file argument" ;;
14294 as_fn_append CONFIG_FILES " '$ac_optarg'"
14295 ac_need_defaults=false;;
14296 --header | --heade | --head | --hea )
14299 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14301 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14302 ac_need_defaults=false;;
14304 # Conflict between --help and --header
14305 as_fn_error $? "ambiguous option: \`$1'
14306 Try \`$0 --help' for more information.";;
14307 --help | --hel | -h )
14308 $as_echo "$ac_cs_usage"; exit ;;
14309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14310 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14313 # This is an error.
14314 -*) as_fn_error $? "unrecognized option: \`$1'
14315 Try \`$0 --help' for more information." ;;
14317 *) as_fn_append ac_config_targets " $1"
14318 ac_need_defaults=false ;;
14324 ac_configure_extra_args=
14326 if $ac_cs_silent; then
14328 ac_configure_extra_args="$ac_configure_extra_args --silent"
14332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14333 if \$ac_cs_recheck; then
14334 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14336 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14337 CONFIG_SHELL='$SHELL'
14338 export CONFIG_SHELL
14343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14347 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14348 ## Running $as_me. ##
14354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14358 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14361 # The HP-UX ksh and POSIX shell print the target directory to stdout
14362 # if CDPATH is set.
14363 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14365 sed_quote_subst='$sed_quote_subst'
14366 double_quote_subst='$double_quote_subst'
14367 delay_variable_subst='$delay_variable_subst'
14368 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14369 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14370 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14371 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14372 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14373 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14374 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14375 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14376 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14377 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14378 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14379 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14380 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14381 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14382 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14383 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14384 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14385 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14386 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14387 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14388 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14389 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14390 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14391 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14392 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14393 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14394 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14395 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14396 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14397 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14398 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14399 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14400 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14401 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14402 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14403 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14404 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14405 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14406 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14407 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14408 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14409 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14410 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14411 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14412 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14413 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14414 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14415 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14416 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14417 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14418 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14419 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14420 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14421 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14422 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14423 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14424 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14425 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14426 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14427 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"`'
14428 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14429 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14430 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14431 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14432 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14433 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14434 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14435 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14436 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14437 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14438 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14439 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14440 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14441 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14442 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14443 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14444 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14445 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14446 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14447 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14448 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14449 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14450 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14451 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14452 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14453 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14454 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14455 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14456 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14457 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14458 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14459 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14460 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14461 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14462 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14463 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14464 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14465 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14466 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14467 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14468 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14469 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14470 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14471 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14472 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14473 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14474 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14475 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14476 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14477 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14478 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14479 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14480 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14481 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14482 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14483 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14484 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14485 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14486 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14487 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14488 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14489 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14490 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14491 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14492 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14493 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14494 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14495 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14496 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14497 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14498 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14499 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14500 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14501 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14502 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14503 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14506 LTCFLAGS='$LTCFLAGS'
14507 compiler='$compiler_DEFAULT'
14509 # A function that is used when there is no print builtin or printf.
14510 func_fallback_echo ()
14512 eval 'cat <<_LTECHO_EOF
14517 # Quote evaled strings.
14534 deplibs_check_method \
14538 sharedlib_from_linklib_cmd \
14541 archiver_list_spec \
14547 lt_cv_sys_global_symbol_pipe \
14548 lt_cv_sys_global_symbol_to_cdecl \
14549 lt_cv_sys_global_symbol_to_import \
14550 lt_cv_sys_global_symbol_to_c_name_address \
14551 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14552 lt_cv_nm_interface \
14553 nm_file_list_spec \
14554 lt_cv_truncate_bin \
14555 lt_prog_compiler_no_builtin_flag \
14556 lt_prog_compiler_pic \
14557 lt_prog_compiler_wl \
14558 lt_prog_compiler_static \
14559 lt_cv_prog_compiler_c_o \
14568 export_dynamic_flag_spec \
14569 whole_archive_flag_spec \
14570 compiler_needs_object \
14572 allow_undefined_flag \
14573 no_undefined_flag \
14574 hardcode_libdir_flag_spec \
14575 hardcode_libdir_separator \
14579 variables_saved_for_relink \
14581 library_names_spec \
14583 install_override_mode \
14587 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14588 *[\\\\\\\`\\"\\\$]*)
14589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14597 # Double-quote double-evaled strings.
14598 for var in reload_cmds \
14599 old_postinstall_cmds \
14600 old_postuninstall_cmds \
14602 extract_expsyms_cmds \
14603 old_archive_from_new_cmds \
14604 old_archive_from_expsyms_cmds \
14606 archive_expsym_cmds \
14608 module_expsym_cmds \
14609 export_symbols_cmds \
14613 postuninstall_cmds \
14615 sys_lib_search_path_spec \
14616 configure_time_dlsearch_path \
14617 configure_time_lt_sys_library_path; do
14618 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14619 *[\\\\\\\`\\"\\\$]*)
14620 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14623 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14628 ac_aux_dir='$ac_aux_dir'
14630 # See if we are running on zsh, and set the options that allow our
14631 # commands through without removal of \ escapes INIT.
14632 if test -n "\${ZSH_VERSION+set}"; then
14633 setopt NO_GLOB_SUBST
14647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14649 # Handling of arguments.
14650 for ac_config_target in $ac_config_targets
14652 case $ac_config_target in
14653 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14654 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14655 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14656 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14657 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14658 "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
14659 "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
14660 "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
14661 "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
14662 "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
14663 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14664 "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
14665 "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
14666 "doc/libvorbis/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libvorbis/Makefile" ;;
14667 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14668 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14669 "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
14670 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14671 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14672 "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
14673 "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;;
14674 "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
14675 "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
14676 "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
14677 "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;;
14678 "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;;
14679 "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;;
14680 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14682 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14687 # If the user did not use the arguments to specify the items to instantiate,
14688 # then the envvar interface is used. Set only those that are not.
14689 # We use the long form for the default assignment because of an extremely
14690 # bizarre bug on SunOS 4.1.3.
14691 if $ac_need_defaults; then
14692 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14693 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14694 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14697 # Have a temporary directory for convenience. Make it in the build tree
14698 # simply because there is no reason against having it here, and in addition,
14699 # creating and moving files from /tmp can sometimes cause problems.
14700 # Hook for its removal unless debugging.
14701 # Note that there is a small window in which the directory will not be cleaned:
14702 # after its creation but before its name has been assigned to `$tmp'.
14706 trap 'exit_status=$?
14707 : "${ac_tmp:=$tmp}"
14708 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14710 trap 'as_fn_exit 1' 1 2 13 15
14712 # Create a (secure) tmp directory for tmp files.
14715 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14719 tmp=./conf$$-$RANDOM
14720 (umask 077 && mkdir "$tmp")
14721 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14724 # Set up the scripts for CONFIG_FILES section.
14725 # No need to generate them if there are no CONFIG_FILES.
14726 # This happens for instance with `./config.status config.h'.
14727 if test -n "$CONFIG_FILES"; then
14730 ac_cr=`echo X | tr X '\015'`
14731 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14732 # But we know of no other shell where ac_cr would be empty at this
14733 # point, so we can use a bashism as a fallback.
14734 if test "x$ac_cr" = x; then
14735 eval ac_cr=\$\'\\r\'
14737 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14738 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14741 ac_cs_awk_cr=$ac_cr
14744 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14749 echo "cat >conf$$subs.awk <<_ACEOF" &&
14750 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14752 } >conf$$subs.sh ||
14753 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14754 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14756 for ac_last_try in false false false false false :; do
14757 . ./conf$$subs.sh ||
14758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14760 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14761 if test $ac_delim_n = $ac_delim_num; then
14763 elif $ac_last_try; then
14764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14769 rm -f conf$$subs.sh
14771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14772 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14776 s/^/S["/; s/!.*/"]=/
14786 s/\(.\{148\}\)..*/\1/
14788 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14793 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14800 s/\(.\{148\}\)..*/\1/
14802 s/["\\]/\\&/g; s/^/"/; s/$/"/
14806 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14811 ' <conf$$subs.awk | sed '
14816 ' >>$CONFIG_STATUS || ac_write_fail=1
14817 rm -f conf$$subs.awk
14818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14820 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14821 for (key in S) S_is_set[key] = 1
14827 nfields = split(line, field, "@")
14829 len = length(field[1])
14830 for (i = 2; i < nfields; i++) {
14832 keylen = length(key)
14833 if (S_is_set[key]) {
14835 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14836 len += length(value) + length(field[++i])
14847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14848 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14849 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14852 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14853 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14856 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14857 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14858 # trailing colons and then remove the whole line if VPATH becomes empty
14859 # (actually we leave an empty line to preserve line numbers).
14860 if test "x$srcdir" = x.; then
14861 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14880 fi # test -n "$CONFIG_FILES"
14882 # Set up the scripts for CONFIG_HEADERS section.
14883 # No need to generate them if there are no CONFIG_HEADERS.
14884 # This happens for instance with `./config.status Makefile'.
14885 if test -n "$CONFIG_HEADERS"; then
14886 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14890 # Transform confdefs.h into an awk script `defines.awk', embedded as
14891 # here-document in config.status, that substitutes the proper values into
14892 # config.h.in to produce config.h.
14894 # Create a delimiter string that does not exist in confdefs.h, to ease
14895 # handling of long lines.
14897 for ac_last_try in false false :; do
14898 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14899 if test -z "$ac_tt"; then
14901 elif $ac_last_try; then
14902 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14908 # For the awk script, D is an array of macro values keyed by name,
14909 # likewise P contains macro parameters if any. Preserve backslash
14910 # newline sequences.
14912 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14914 s/.\{148\}/&'"$ac_delim"'/g
14917 s/^[ ]*#[ ]*define[ ][ ]*/ /
14924 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14926 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14931 D["\1"]=" \3\\\\\\n"\\/p
14933 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14938 s/.\{148\}/&'"$ac_delim"'/g
14943 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14946 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14948 ' <confdefs.h | sed '
14949 s/'"$ac_delim"'/"\\\
14950 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14953 for (key in D) D_is_set[key] = 1
14956 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14958 split(line, arg, " ")
14959 if (arg[1] == "#") {
14963 defundef = substr(arg[1], 2)
14966 split(mac1, mac2, "(") #)
14968 prefix = substr(line, 1, index(line, defundef) - 1)
14969 if (D_is_set[macro]) {
14970 # Preserve the white space surrounding the "#".
14971 print prefix "define", macro P[macro] D[macro]
14974 # Replace #undef with comments. This is necessary, for example,
14975 # in the case of _POSIX_SOURCE, which is predefined and required
14976 # on some systems where configure will not decide to define it.
14977 if (defundef == "undef") {
14978 print "/*", prefix defundef, macro, "*/"
14986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14987 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14988 fi # test -n "$CONFIG_HEADERS"
14991 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14996 :[FHLC]) ac_mode=$ac_tag; continue;;
14998 case $ac_mode$ac_tag in
15000 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15001 :[FH]-) ac_tag=-:-;;
15002 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15019 -) ac_f="$ac_tmp/stdin";;
15020 *) # Look for the file first in the build tree, then in the source tree
15021 # (if the path is not absolute). The absolute path cannot be DOS-style,
15022 # because $ac_f cannot contain `:'.
15026 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15028 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15030 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15031 as_fn_append ac_file_inputs " '$ac_f'"
15034 # Let's still pretend it is `configure' which instantiates (i.e., don't
15035 # use $as_me), people would be surprised to read:
15036 # /* config.h. Generated by config.status. */
15037 configure_input='Generated from '`
15038 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15040 if test x"$ac_file" != x-; then
15041 configure_input="$ac_file. $configure_input"
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15043 $as_echo "$as_me: creating $ac_file" >&6;}
15045 # Neutralize special characters interpreted by sed in replacement strings.
15046 case $configure_input in #(
15047 *\&* | *\|* | *\\* )
15048 ac_sed_conf_input=`$as_echo "$configure_input" |
15049 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15050 *) ac_sed_conf_input=$configure_input;;
15054 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15055 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15060 ac_dir=`$as_dirname -- "$ac_file" ||
15061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15062 X"$ac_file" : 'X\(//\)[^/]' \| \
15063 X"$ac_file" : 'X\(//\)$' \| \
15064 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15065 $as_echo X"$ac_file" |
15066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15070 /^X\(\/\/\)[^/].*/{
15083 as_dir="$ac_dir"; as_fn_mkdir_p
15087 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15089 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15090 # A ".." for each directory in $ac_dir_suffix.
15091 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15092 case $ac_top_builddir_sub in
15093 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15094 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15097 ac_abs_top_builddir=$ac_pwd
15098 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15099 # for backward compatibility:
15100 ac_top_builddir=$ac_top_build_prefix
15103 .) # We are building in place.
15105 ac_top_srcdir=$ac_top_builddir_sub
15106 ac_abs_top_srcdir=$ac_pwd ;;
15107 [\\/]* | ?:[\\/]* ) # Absolute name.
15108 ac_srcdir=$srcdir$ac_dir_suffix;
15109 ac_top_srcdir=$srcdir
15110 ac_abs_top_srcdir=$srcdir ;;
15111 *) # Relative name.
15112 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15113 ac_top_srcdir=$ac_top_build_prefix$srcdir
15114 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15116 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15126 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15127 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15129 ac_MKDIR_P=$MKDIR_P
15131 [\\/$]* | ?:[\\/]* ) ;;
15132 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15137 # If the template does not know about datarootdir, expand it.
15138 # FIXME: This hack should be removed a few years after 2.60.
15139 ac_datarootdir_hack=; ac_datarootdir_seen=
15150 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15151 *datarootdir*) ac_datarootdir_seen=yes;;
15152 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15154 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15157 ac_datarootdir_hack='
15158 s&@datadir@&$datadir&g
15159 s&@docdir@&$docdir&g
15160 s&@infodir@&$infodir&g
15161 s&@localedir@&$localedir&g
15162 s&@mandir@&$mandir&g
15163 s&\\\${datarootdir}&$datarootdir&g' ;;
15167 # Neutralize VPATH when `$srcdir' = `.'.
15168 # Shell code in configure.ac might set extrasub.
15169 # FIXME: do we really want to maintain this feature?
15170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171 ac_sed_extra="$ac_vpsub
15174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15177 s|@configure_input@|$ac_sed_conf_input|;t t
15178 s&@top_builddir@&$ac_top_builddir_sub&;t t
15179 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15180 s&@srcdir@&$ac_srcdir&;t t
15181 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15182 s&@top_srcdir@&$ac_top_srcdir&;t t
15183 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15184 s&@builddir@&$ac_builddir&;t t
15185 s&@abs_builddir@&$ac_abs_builddir&;t t
15186 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15187 s&@INSTALL@&$ac_INSTALL&;t t
15188 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15189 $ac_datarootdir_hack
15191 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15192 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15194 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15195 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15196 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15197 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15199 which seems to be undefined. Please make sure it is defined" >&5
15200 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15201 which seems to be undefined. Please make sure it is defined" >&2;}
15203 rm -f "$ac_tmp/stdin"
15205 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15206 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15214 if test x"$ac_file" != x-; then
15216 $as_echo "/* $configure_input */" \
15217 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15218 } >"$ac_tmp/config.h" \
15219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15220 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15222 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15225 mv "$ac_tmp/config.h" "$ac_file" \
15226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15229 $as_echo "/* $configure_input */" \
15230 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15231 || as_fn_error $? "could not create -" "$LINENO" 5
15233 # Compute "$ac_file"'s index in $config_headers.
15236 for _am_header in $config_headers :; do
15237 case $_am_header in
15238 $_am_arg | $_am_arg:* )
15241 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15244 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15245 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15246 X"$_am_arg" : 'X\(//\)[^/]' \| \
15247 X"$_am_arg" : 'X\(//\)$' \| \
15248 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15249 $as_echo X"$_am_arg" |
15250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15254 /^X\(\/\/\)[^/].*/{
15266 s/.*/./; q'`/stamp-h$_am_stamp_count
15269 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15270 $as_echo "$as_me: executing $ac_file commands" >&6;}
15275 case $ac_file$ac_mode in
15276 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15277 # Older Autoconf quotes --file arguments for eval, but not when files
15278 # are listed without --file. Let's play safe and only enable the eval
15279 # if we detect the quoting.
15280 # TODO: see whether this extra hack can be removed once we start
15281 # requiring Autoconf 2.70 or later.
15282 case $CONFIG_FILES in #(
15284 eval set x "$CONFIG_FILES" ;; #(
15286 set x $CONFIG_FILES ;; #(
15291 # Used to flag and report bootstrapping failures.
15295 # Strip MF so we end up with the name of the file.
15296 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15297 # Check whether this is an Automake generated Makefile which includes
15298 # dependency-tracking related rules and includes.
15299 # Grep'ing the whole file directly is not great: AIX grep has a line
15300 # limit of 2048, but all sed's we know have understand at least 4000.
15301 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15303 am_dirpart=`$as_dirname -- "$am_mf" ||
15304 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15305 X"$am_mf" : 'X\(//\)[^/]' \| \
15306 X"$am_mf" : 'X\(//\)$' \| \
15307 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15308 $as_echo X"$am_mf" |
15309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15313 /^X\(\/\/\)[^/].*/{
15326 am_filepart=`$as_basename -- "$am_mf" ||
15327 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15328 X"$am_mf" : 'X\(//\)$' \| \
15329 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15330 $as_echo X/"$am_mf" |
15331 sed '/^.*\/\([^/][^/]*\)\/*$/{
15344 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15345 && sed -e '/# am--include-marker/d' "$am_filepart" \
15346 | $MAKE -f - am--depfiles" >&5
15347 (cd "$am_dirpart" \
15348 && sed -e '/# am--include-marker/d' "$am_filepart" \
15349 | $MAKE -f - am--depfiles) >&5 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } || am_rc=$?
15354 if test $am_rc -ne 0; then
15355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15357 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15358 for automatic dependency tracking. If GNU make was not used, consider
15359 re-running the configure script with MAKE=\"gmake\" (or whatever is
15360 necessary). You can also try re-running configure with the
15361 '--disable-dependency-tracking' option to at least be able to build
15362 the package (albeit without support for automatic dependency tracking).
15363 See \`config.log' for more details" "$LINENO" 5; }
15365 { am_dirpart=; unset am_dirpart;}
15366 { am_filepart=; unset am_filepart;}
15367 { am_mf=; unset am_mf;}
15368 { am_rc=; unset am_rc;}
15369 rm -f conftest-deps.mk
15374 # See if we are running on zsh, and set the options that allow our
15375 # commands through without removal of \ escapes.
15376 if test -n "${ZSH_VERSION+set}"; then
15377 setopt NO_GLOB_SUBST
15381 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15384 cat <<_LT_EOF >> "$cfgfile"
15386 # Generated automatically by $as_me ($PACKAGE) $VERSION
15387 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15389 # Provide generalized library-building support services.
15390 # Written by Gordon Matzigkeit, 1996
15392 # Copyright (C) 2014 Free Software Foundation, Inc.
15393 # This is free software; see the source for copying conditions. There is NO
15394 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15396 # GNU Libtool is free software; you can redistribute it and/or modify
15397 # it under the terms of the GNU General Public License as published by
15398 # the Free Software Foundation; either version 2 of of the License, or
15399 # (at your option) any later version.
15401 # As a special exception to the GNU General Public License, if you
15402 # distribute this file as part of a program or library that is built
15403 # using GNU Libtool, you may include this file under the same
15404 # distribution terms that you use for the rest of that program.
15406 # GNU Libtool is distributed in the hope that it will be useful, but
15407 # WITHOUT ANY WARRANTY; without even the implied warranty of
15408 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15409 # GNU General Public License for more details.
15411 # You should have received a copy of the GNU General Public License
15412 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15415 # The names of the tagged configurations supported by this script.
15418 # Configured defaults for sys_lib_dlsearch_path munging.
15419 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15421 # ### BEGIN LIBTOOL CONFIG
15423 # Assembler program.
15426 # DLL creation program.
15427 DLLTOOL=$lt_DLLTOOL
15429 # Object dumper program.
15430 OBJDUMP=$lt_OBJDUMP
15432 # Which release of libtool.m4 was used?
15433 macro_version=$macro_version
15434 macro_revision=$macro_revision
15436 # Whether or not to build shared libraries.
15437 build_libtool_libs=$enable_shared
15439 # Whether or not to build static libraries.
15440 build_old_libs=$enable_static
15442 # What type of objects to build.
15445 # Whether or not to optimize for fast installation.
15446 fast_install=$enable_fast_install
15448 # Shared archive member basename,for filename based shared library versioning on AIX.
15449 shared_archive_member_spec=$shared_archive_member_spec
15451 # Shell to use when invoking shell scripts.
15454 # An echo program that protects backslashes.
15457 # The PATH separator for the build system.
15458 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15461 host_alias=$host_alias
15465 # The build system.
15466 build_alias=$build_alias
15470 # A sed program that does not truncate output.
15473 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15474 Xsed="\$SED -e 1s/^X//"
15476 # A grep program that handles long lines.
15482 # A literal string matcher.
15485 # A BSD- or MS-compatible name lister.
15488 # Whether we need soft or hard links.
15491 # What is the maximum length of a command?
15492 max_cmd_len=$max_cmd_len
15494 # Object file suffix (normally "o").
15497 # Executable file suffix (normally "").
15500 # whether the shell understands "unset".
15503 # turn spaces into newlines.
15506 # turn newlines into spaces.
15509 # convert \$build file names to \$host format.
15510 to_host_file_cmd=$lt_cv_to_host_file_cmd
15512 # convert \$build files to toolchain format.
15513 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15515 # Method to check whether dependent libraries are shared objects.
15516 deplibs_check_method=$lt_deplibs_check_method
15518 # Command to use when deplibs_check_method = "file_magic".
15519 file_magic_cmd=$lt_file_magic_cmd
15521 # How to find potential files when deplibs_check_method = "file_magic".
15522 file_magic_glob=$lt_file_magic_glob
15524 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15525 want_nocaseglob=$lt_want_nocaseglob
15527 # Command to associate shared and link libraries.
15528 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15533 # Flags to create an archive.
15534 AR_FLAGS=$lt_AR_FLAGS
15536 # How to feed a file listing to the archiver.
15537 archiver_list_spec=$lt_archiver_list_spec
15539 # A symbol stripping program.
15542 # Commands used to install an old-style archive.
15544 old_postinstall_cmds=$lt_old_postinstall_cmds
15545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15547 # Whether to use a lock for old archive extraction.
15548 lock_old_archive_extraction=$lock_old_archive_extraction
15553 # LTCC compiler flags.
15554 LTCFLAGS=$lt_CFLAGS
15556 # Take the output of nm and produce a listing of raw symbols and C names.
15557 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15559 # Transform the output of nm in a proper C declaration.
15560 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15562 # Transform the output of nm into a list of symbols to manually relocate.
15563 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15565 # Transform the output of nm in a C name address pair.
15566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15568 # Transform the output of nm in a C name address pair when lib prefix is needed.
15569 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15571 # The name lister interface.
15572 nm_interface=$lt_lt_cv_nm_interface
15574 # Specify filename containing input files for \$NM.
15575 nm_file_list_spec=$lt_nm_file_list_spec
15577 # The root where to search for dependent libraries,and where our libraries should be installed.
15578 lt_sysroot=$lt_sysroot
15580 # Command to truncate a binary pipe.
15581 lt_truncate_bin=$lt_lt_cv_truncate_bin
15583 # The name of the directory that contains temporary libtool files.
15586 # Used to examine libraries when file_magic_cmd begins with "file".
15587 MAGIC_CMD=$MAGIC_CMD
15589 # Must we lock files when doing compilation?
15590 need_locks=$lt_need_locks
15593 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15595 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15596 DSYMUTIL=$lt_DSYMUTIL
15598 # Tool to change global to local symbols on Mac OS X.
15601 # Tool to manipulate fat objects and archives on Mac OS X.
15604 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15607 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15608 OTOOL64=$lt_OTOOL64
15610 # Old archive suffix (normally "a").
15613 # Shared library suffix (normally ".so").
15614 shrext_cmds=$lt_shrext_cmds
15616 # The commands to extract the exported symbol list from a shared archive.
15617 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15619 # Variables whose values should be saved in libtool wrapper scripts and
15620 # restored at link time.
15621 variables_saved_for_relink=$lt_variables_saved_for_relink
15623 # Do we need the "lib" prefix for modules?
15624 need_lib_prefix=$need_lib_prefix
15626 # Do we need a version for libraries?
15627 need_version=$need_version
15629 # Library versioning type.
15630 version_type=$version_type
15632 # Shared library runtime path variable.
15633 runpath_var=$runpath_var
15635 # Shared library path variable.
15636 shlibpath_var=$shlibpath_var
15638 # Is shlibpath searched before the hard-coded library search path?
15639 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15641 # Format of library name prefix.
15642 libname_spec=$lt_libname_spec
15644 # List of archive names. First name is the real one, the rest are links.
15645 # The last name is the one that the linker finds with -lNAME
15646 library_names_spec=$lt_library_names_spec
15648 # The coded name of the library, if different from the real name.
15649 soname_spec=$lt_soname_spec
15651 # Permission mode override for installation of shared libraries.
15652 install_override_mode=$lt_install_override_mode
15654 # Command to use after installation of a shared archive.
15655 postinstall_cmds=$lt_postinstall_cmds
15657 # Command to use after uninstallation of a shared archive.
15658 postuninstall_cmds=$lt_postuninstall_cmds
15660 # Commands used to finish a libtool library installation in a directory.
15661 finish_cmds=$lt_finish_cmds
15663 # As "finish_cmds", except a single script fragment to be evaled but
15665 finish_eval=$lt_finish_eval
15667 # Whether we should hardcode library paths into libraries.
15668 hardcode_into_libs=$hardcode_into_libs
15670 # Compile-time system search path for libraries.
15671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15673 # Detected run-time system search path for libraries.
15674 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15676 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15677 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15679 # Whether dlopen is supported.
15680 dlopen_support=$enable_dlopen
15682 # Whether dlopen of programs is supported.
15683 dlopen_self=$enable_dlopen_self
15685 # Whether dlopen of statically linked programs is supported.
15686 dlopen_self_static=$enable_dlopen_self_static
15688 # Commands to strip libraries.
15689 old_striplib=$lt_old_striplib
15690 striplib=$lt_striplib
15693 # The linker used to build libraries.
15696 # How to create reloadable object files.
15697 reload_flag=$lt_reload_flag
15698 reload_cmds=$lt_reload_cmds
15700 # Commands used to build an old-style archive.
15701 old_archive_cmds=$lt_old_archive_cmds
15703 # A language specific compiler.
15706 # Is the compiler the GNU compiler?
15709 # Compiler flag to turn off builtin functions.
15710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15712 # Additional compiler flags for building library objects.
15713 pic_flag=$lt_lt_prog_compiler_pic
15715 # How to pass a linker flag through the compiler.
15716 wl=$lt_lt_prog_compiler_wl
15718 # Compiler flag to prevent dynamic linking.
15719 link_static_flag=$lt_lt_prog_compiler_static
15721 # Does compiler simultaneously support -c and -o options?
15722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15724 # Whether or not to add -lc for building shared libraries.
15725 build_libtool_need_lc=$archive_cmds_need_lc
15727 # Whether or not to disallow shared libs when runtime libs are static.
15728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15730 # Compiler flag to allow reflexive dlopens.
15731 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15733 # Compiler flag to generate shared objects directly from archives.
15734 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15736 # Whether the compiler copes with passing no objects directly.
15737 compiler_needs_object=$lt_compiler_needs_object
15739 # Create an old-style archive from a shared archive.
15740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15742 # Create a temporary old-style archive to link instead of a shared archive.
15743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15745 # Commands used to build a shared archive.
15746 archive_cmds=$lt_archive_cmds
15747 archive_expsym_cmds=$lt_archive_expsym_cmds
15749 # Commands used to build a loadable module if different from building
15750 # a shared archive.
15751 module_cmds=$lt_module_cmds
15752 module_expsym_cmds=$lt_module_expsym_cmds
15754 # Whether we are building with GNU ld or not.
15755 with_gnu_ld=$lt_with_gnu_ld
15757 # Flag that allows shared libraries with undefined symbols to be built.
15758 allow_undefined_flag=$lt_allow_undefined_flag
15760 # Flag that enforces no undefined symbols.
15761 no_undefined_flag=$lt_no_undefined_flag
15763 # Flag to hardcode \$libdir into a binary during linking.
15764 # This must work even if \$libdir does not exist
15765 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15767 # Whether we need a single "-rpath" flag with a separated argument.
15768 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15770 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15771 # DIR into the resulting binary.
15772 hardcode_direct=$hardcode_direct
15774 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15775 # DIR into the resulting binary and the resulting library dependency is
15776 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15777 # library is relocated.
15778 hardcode_direct_absolute=$hardcode_direct_absolute
15780 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15781 # into the resulting binary.
15782 hardcode_minus_L=$hardcode_minus_L
15784 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15785 # into the resulting binary.
15786 hardcode_shlibpath_var=$hardcode_shlibpath_var
15788 # Set to "yes" if building a shared library automatically hardcodes DIR
15789 # into the library and all subsequent libraries and executables linked
15791 hardcode_automatic=$hardcode_automatic
15793 # Set to yes if linker adds runtime paths of dependent libraries
15794 # to runtime path list.
15795 inherit_rpath=$inherit_rpath
15797 # Whether libtool must link a program against all its dependency libraries.
15798 link_all_deplibs=$link_all_deplibs
15800 # Set to "yes" if exported symbols are required.
15801 always_export_symbols=$always_export_symbols
15803 # The commands to list exported symbols.
15804 export_symbols_cmds=$lt_export_symbols_cmds
15806 # Symbols that should not be listed in the preloaded symbols.
15807 exclude_expsyms=$lt_exclude_expsyms
15809 # Symbols that must always be exported.
15810 include_expsyms=$lt_include_expsyms
15812 # Commands necessary for linking programs (against libraries) with templates.
15813 prelink_cmds=$lt_prelink_cmds
15815 # Commands necessary for finishing linking programs.
15816 postlink_cmds=$lt_postlink_cmds
15818 # Specify filename containing input files.
15819 file_list_spec=$lt_file_list_spec
15821 # How to hardcode a shared library path into an executable.
15822 hardcode_action=$hardcode_action
15824 # ### END LIBTOOL CONFIG
15828 cat <<'_LT_EOF' >> "$cfgfile"
15830 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15832 # func_munge_path_list VARIABLE PATH
15833 # -----------------------------------
15834 # VARIABLE is name of variable containing _space_ separated list of
15835 # directories to be munged by the contents of PATH, which is string
15838 # string "DIR[ DIR]" will be prepended to VARIABLE
15840 # string "DIR[ DIR]" will be appended to VARIABLE
15841 # "DIRP[:DIRP]::[DIRA:]DIRA"
15842 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15843 # "DIRA[ DIRA]" will be appended to VARIABLE
15845 # VARIABLE will be replaced by "DIR[ DIR]"
15846 func_munge_path_list ()
15852 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15855 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15858 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15859 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15862 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15868 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15869 func_cc_basename ()
15871 for cc_temp in $*""; do
15873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15879 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15883 # ### END FUNCTIONS SHARED WITH CONFIGURE
15889 cat <<\_LT_EOF >> "$cfgfile"
15890 # AIX sometimes has problems with the GCC collect2 program. For some
15891 # reason, if we set the COLLECT_NAMES environment variable, the problems
15892 # vanish in a puff of smoke.
15893 if test set != "${COLLECT_NAMES+set}"; then
15895 export COLLECT_NAMES
15902 ltmain=$ac_aux_dir/ltmain.sh
15905 # We use sed instead of cat because bash on DJGPP gets confused if
15906 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15907 # text mode, it properly converts lines to CR/LF. This bash problem
15908 # is reportedly fixed, but why not run on old versions too?
15909 sed '$q' "$ltmain" >> "$cfgfile" \
15910 || (rm -f "$cfgfile"; exit 1)
15912 mv -f "$cfgfile" "$ofile" ||
15913 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15924 ac_clean_files=$ac_clean_files_save
15926 test $ac_write_fail = 0 ||
15927 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15930 # configure is writing to config.log, and then calls config.status.
15931 # config.status does its own redirection, appending to config.log.
15932 # Unfortunately, on DOS this fails, as config.log is still kept open
15933 # by configure, so config.status won't be able to write to it; its
15934 # output is simply discarded. So we exec the FD to /dev/null,
15935 # effectively closing config.log, so it can be properly (re)opened and
15936 # appended to by config.status. When coming back to configure, we
15937 # need to make the FD available again.
15938 if test "$no_create" != yes; then
15940 ac_config_status_args=
15941 test "$silent" = yes &&
15942 ac_config_status_args="$ac_config_status_args --quiet"
15944 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15946 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15947 # would make configure fail if this is the last instruction.
15948 $ac_cs_success || as_fn_exit 1
15950 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15952 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}