2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libogg 1.3.2.
5 # Report bugs to <ogg-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 ogg-dev@xiph.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
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='libogg'
592 PACKAGE_TARNAME='libogg'
593 PACKAGE_VERSION='1.3.2'
594 PACKAGE_STRING='libogg 1.3.2'
595 PACKAGE_BUGREPORT='ogg-dev@xiph.org'
598 ac_unique_file="src/framing.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
702 MAINTAINER_MODE_FALSE
716 INSTALL_STRIP_PROGRAM
758 program_transform_name
771 enable_option_checking
773 enable_maintainer_mode
774 enable_dependency_tracking
783 ac_precious_vars='build_alias
794 # Initialize some variables set by options.
796 ac_init_version=false
797 ac_unrecognized_opts=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
808 program_transform_name=s,x,x,
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir='${datarootdir}/info'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 # Accept the important Cygnus configure options, so we can diagnose typos.
861 case $ac_dashdash$ac_option in
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
883 cache_file=config.cache ;;
885 -datadir | --datadir | --datadi | --datad)
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
897 -disable-* | --disable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
911 eval enable_$ac_useropt=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 -enable-* | --enable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
937 eval enable_$ac_useropt=\$ac_optarg ;;
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
952 -help | --help | --hel | --he | -h)
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 htmldir=$ac_optarg ;;
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
982 -libdir | --libdir | --libdi | --libd)
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
994 -localedir | --localedir | --localedi | --localed | --locale)
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
999 -localstatedir | --localstatedir | --localstatedi | --localstated \
1000 | --localstate | --localstat | --localsta | --localst | --locals)
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004 localstatedir=$ac_optarg ;;
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
1051 -program-transform-name | --program-transform-name \
1052 | --program-transform-nam | --program-transform-na \
1053 | --program-transform-n | --program-transform- \
1054 | --program-transform | --program-transfor \
1055 | --program-transfo | --program-transf \
1056 | --program-trans | --program-tran \
1057 | --progr-tra | --program-tr | --program-t)
1058 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1073 -psdir | --psdir | --psdi | --psd | --ps)
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 sbindir=$ac_optarg ;;
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 sharedstatedir=$ac_optarg ;;
1099 -site | --site | --sit)
1101 -site=* | --site=* | --sit=*)
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1141 eval with_$ac_useropt=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval with_$ac_useropt=no ;;
1160 # Obsolete; use --with-x.
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' | [0-9]* | *[!_$as_cr_alnum]* )
1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $? "missing argument to $ac_option"
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 # Check all directory arguments for consistency.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 # Remove trailing slashes.
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1228 # Be sure to have absolute directory names.
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1241 target=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $? "pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures libogg 1.3.2 to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/libogg]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of libogg 1.3.2:";;
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-silent-rules less verbose build output (undo: "make V=1")
1411 --disable-silent-rules verbose build output (undo: "make V=0")
1412 --disable-maintainer-mode
1413 disable make rules and dependencies not useful (and
1414 sometimes confusing) to the casual installer
1415 --enable-dependency-tracking
1416 do not reject slow dependency extractors
1417 --disable-dependency-tracking
1418 speeds up one-time build
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-sysroot=DIR Search for dependent libraries within DIR
1432 (or the compiler's sysroot if not specified).
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1447 Report bugs to <ogg-dev@xiph.org>.
1452 if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1477 .) # We are building in place.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1510 libogg configure 1.3.2
1511 generated by GNU Autoconf 2.69
1513 Copyright (C) 2012 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1560 } # ac_fn_c_try_compile
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 test -x conftest$ac_exeext
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1606 } # ac_fn_c_try_link
1608 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1609 # -------------------------------------------------------
1610 # Tests whether HEADER exists and can be compiled using the include files in
1611 # INCLUDES, setting the cache variable VAR accordingly.
1612 ac_fn_c_check_header_compile ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval \${$3+:} false; then :
1618 $as_echo_n "(cached) " >&6
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1625 if ac_fn_c_try_compile "$LINENO"; then :
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 } # ac_fn_c_check_header_compile
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } > conftest.i && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>&5
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 ac_retval=$ac_status
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1718 # ac_fn_c_check_func LINENO FUNC VAR
1719 # ----------------------------------
1720 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1721 ac_fn_c_check_func ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1733 #define $2 innocuous_$2
1735 /* System header to define __stub macros and hopefully few prototypes,
1736 which can conflict with char $2 (); below.
1737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738 <limits.h> exists even on freestanding compilers. */
1741 # include <limits.h>
1743 # include <assert.h>
1748 /* Override any GCC internal prototype to avoid an error.
1749 Use char because int might match the return type of a GCC
1750 builtin and then its argument prototype would still apply. */
1755 /* The GNU C library defines this for functions which it implements
1756 to always fail with ENOSYS. Some functions are actually named
1757 something starting with __ and the normal name is an alias. */
1758 #if defined __stub_$2 || defined __stub___$2
1770 if ac_fn_c_try_link "$LINENO"; then :
1775 rm -f core conftest.err conftest.$ac_objext \
1776 conftest$ac_exeext conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 } # ac_fn_c_check_func
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1790 ac_fn_c_check_header_mongrel ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if eval \${$3+:} false; then :
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1803 # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_header_compiler=yes
1814 ac_header_compiler=no
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1827 if ac_fn_c_try_cpp "$LINENO"; then :
1828 ac_header_preproc=yes
1830 ac_header_preproc=no
1832 rm -f conftest.err conftest.i conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1836 # So? What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 ( $as_echo "## ------------------------------- ##
1856 ## Report this to ogg-dev@xiph.org ##
1857 ## ------------------------------- ##"
1858 ) | sed "s/^/$as_me: WARNING: /" >&2
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1866 eval "$3=\$ac_header_compiler"
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 } # ac_fn_c_check_header_mongrel
1876 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1877 # --------------------------------------------
1878 # Tries to find the compile-time value of EXPR in a program that includes
1879 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1881 ac_fn_c_compute_int ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if test "$cross_compiling" = yes; then
1885 # Depending upon the size, compute the lo and hi bounds.
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1892 static int test_array [1 - 2 * !(($2) >= 0)];
1894 return test_array [0];
1900 if ac_fn_c_try_compile "$LINENO"; then :
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1909 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1911 return test_array [0];
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 ac_hi=$ac_mid; break
1920 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1921 if test $ac_lo -le $ac_mid; then
1925 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1936 static int test_array [1 - 2 * !(($2) < 0)];
1938 return test_array [0];
1944 if ac_fn_c_try_compile "$LINENO"; then :
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1953 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1955 return test_array [0];
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_lo=$ac_mid; break
1964 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1965 if test $ac_mid -le $ac_hi; then
1969 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 # Binary search between lo and hi bounds.
1980 while test "x$ac_lo" != "x$ac_hi"; do
1981 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1988 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1990 return test_array [0];
1996 if ac_fn_c_try_compile "$LINENO"; then :
1999 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2011 static long int longval () { return $2; }
2012 static unsigned long int ulongval () { return $2; }
2019 FILE *f = fopen ("conftest.val", "w");
2024 long int i = longval ();
2027 fprintf (f, "%ld", i);
2031 unsigned long int i = ulongval ();
2034 fprintf (f, "%lu", i);
2036 /* Do not output a trailing newline, as this causes \r\n confusion
2037 on some platforms. */
2038 return ferror (f) || fclose (f) != 0;
2044 if ac_fn_c_try_run "$LINENO"; then :
2045 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2050 conftest.$ac_objext conftest.beam conftest.$ac_ext
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 as_fn_set_status $ac_retval
2057 } # ac_fn_c_compute_int
2058 cat >config.log <<_ACEOF
2059 This file contains any messages produced by compilers while
2060 running configure, to aid debugging if configure makes a mistake.
2062 It was created by libogg $as_me 1.3.2, which was
2063 generated by GNU Autoconf 2.69. Invocation command line was
2075 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2076 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2077 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2078 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2079 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2081 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2082 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2084 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2085 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2086 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2087 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2088 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2089 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2090 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 test -z "$as_dir" && as_dir=.
2099 $as_echo "PATH: $as_dir"
2115 # Keep a trace of the command line.
2116 # Strip out --no-create and --no-recursion so they do not pile up.
2117 # Strip out --silent because we don't want to record it for future runs.
2118 # Also quote any args containing shell meta-characters.
2119 # Make two passes to allow for proper duplicate-argument suppression.
2123 ac_must_keep_next=false
2129 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2131 | -silent | --silent | --silen | --sile | --sil)
2134 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2137 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2139 as_fn_append ac_configure_args1 " '$ac_arg'"
2140 if test $ac_must_keep_next = true; then
2141 ac_must_keep_next=false # Got value, back to normal.
2144 *=* | --config-cache | -C | -disable-* | --disable-* \
2145 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2146 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2147 | -with-* | --with-* | -without-* | --without-* | --x)
2148 case "$ac_configure_args0 " in
2149 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2152 -* ) ac_must_keep_next=true ;;
2155 as_fn_append ac_configure_args " '$ac_arg'"
2160 { ac_configure_args0=; unset ac_configure_args0;}
2161 { ac_configure_args1=; unset ac_configure_args1;}
2163 # When interrupted or exit'd, cleanup temporary files, and complete
2164 # config.log. We remove comments because anyway the quotes in there
2165 # would cause problems or look ugly.
2166 # WARNING: Use '\'' to represent an apostrophe within the trap.
2167 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2168 trap 'exit_status=$?
2169 # Save into config.log some information that might help in debugging.
2173 $as_echo "## ---------------- ##
2174 ## Cache variables. ##
2175 ## ---------------- ##"
2177 # The following way of writing the cache mishandles newlines in values,
2179 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2180 eval ac_val=\$$ac_var
2184 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2185 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2188 _ | IFS | as_nl) ;; #(
2189 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2190 *) { eval $ac_var=; unset $ac_var;} ;;
2195 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2196 *${as_nl}ac_space=\ *)
2198 "s/'\''/'\''\\\\'\'''\''/g;
2199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2209 $as_echo "## ----------------- ##
2210 ## Output variables. ##
2211 ## ----------------- ##"
2213 for ac_var in $ac_subst_vars
2215 eval ac_val=\$$ac_var
2217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219 $as_echo "$ac_var='\''$ac_val'\''"
2223 if test -n "$ac_subst_files"; then
2224 $as_echo "## ------------------- ##
2225 ## File substitutions. ##
2226 ## ------------------- ##"
2228 for ac_var in $ac_subst_files
2230 eval ac_val=\$$ac_var
2232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234 $as_echo "$ac_var='\''$ac_val'\''"
2239 if test -s confdefs.h; then
2240 $as_echo "## ----------- ##
2247 test "$ac_signal" != 0 &&
2248 $as_echo "$as_me: caught signal $ac_signal"
2249 $as_echo "$as_me: exit $exit_status"
2251 rm -f core *.core core.conftest.* &&
2252 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2255 for ac_signal in 1 2 13 15; do
2256 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2260 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2261 rm -f -r conftest* confdefs.h
2263 $as_echo "/* confdefs.h */" > confdefs.h
2265 # Predefined preprocessor variables.
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_NAME "$PACKAGE_NAME"
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_STRING "$PACKAGE_STRING"
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_URL "$PACKAGE_URL"
2292 # Let the site file select an alternate cache file if it wants to.
2293 # Prefer an explicitly selected file to automatically selected ones.
2296 if test -n "$CONFIG_SITE"; then
2297 # We do not want a PATH search for config.site.
2298 case $CONFIG_SITE in #((
2299 -*) ac_site_file1=./$CONFIG_SITE;;
2300 */*) ac_site_file1=$CONFIG_SITE;;
2301 *) ac_site_file1=./$CONFIG_SITE;;
2303 elif test "x$prefix" != xNONE; then
2304 ac_site_file1=$prefix/share/config.site
2305 ac_site_file2=$prefix/etc/config.site
2307 ac_site_file1=$ac_default_prefix/share/config.site
2308 ac_site_file2=$ac_default_prefix/etc/config.site
2310 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2312 test "x$ac_site_file" = xNONE && continue
2313 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2315 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2316 sed 's/^/| /' "$ac_site_file" >&5
2318 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320 as_fn_error $? "failed to load site script $ac_site_file
2321 See \`config.log' for more details" "$LINENO" 5; }
2325 if test -r "$cache_file"; then
2326 # Some versions of bash will fail to source /dev/null (special files
2327 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2328 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2330 $as_echo "$as_me: loading cache $cache_file" >&6;}
2332 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2333 *) . "./$cache_file";;
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2338 $as_echo "$as_me: creating cache $cache_file" >&6;}
2342 # Check that the precious variables saved in the cache have kept the same
2344 ac_cache_corrupted=false
2345 for ac_var in $ac_precious_vars; do
2346 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2347 eval ac_new_set=\$ac_env_${ac_var}_set
2348 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2349 eval ac_new_val=\$ac_env_${ac_var}_value
2350 case $ac_old_set,$ac_new_set in
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2353 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2354 ac_cache_corrupted=: ;;
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2358 ac_cache_corrupted=: ;;
2361 if test "x$ac_old_val" != "x$ac_new_val"; then
2362 # differences in whitespace do not lead to failure.
2363 ac_old_val_w=`echo x $ac_old_val`
2364 ac_new_val_w=`echo x $ac_new_val`
2365 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2367 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2368 ac_cache_corrupted=:
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2371 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2372 eval $ac_var=\$ac_old_val
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2375 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2377 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2380 # Pass precious variables to config.status.
2381 if test "$ac_new_set" = set; then
2383 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2384 *) ac_arg=$ac_var=$ac_new_val ;;
2386 case " $ac_configure_args " in
2387 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2388 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2392 if $ac_cache_corrupted; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2396 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2397 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2399 ## -------------------- ##
2400 ## Main body of script. ##
2401 ## -------------------- ##
2404 ac_cpp='$CPP $CPPFLAGS'
2405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413 am__api_version='1.13'
2416 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2417 if test -f "$ac_dir/install-sh"; then
2419 ac_install_sh="$ac_aux_dir/install-sh -c"
2421 elif test -f "$ac_dir/install.sh"; then
2423 ac_install_sh="$ac_aux_dir/install.sh -c"
2425 elif test -f "$ac_dir/shtool"; then
2427 ac_install_sh="$ac_aux_dir/shtool install -c"
2431 if test -z "$ac_aux_dir"; then
2432 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2435 # These three variables are undocumented and unsupported,
2436 # and are intended to be withdrawn in a future Autoconf release.
2437 # They can cause serious problems if a builder's source tree is in a directory
2438 # whose full name contains unusual characters.
2439 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2440 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2441 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
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}" != 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 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2959 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2960 mkdir_p='$(MKDIR_P)'
2962 # We need awk for the "check" target. The system "awk" is bad on
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 -'
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2981 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2982 # Check whether --enable-maintainer-mode was given.
2983 if test "${enable_maintainer_mode+set}" = set; then :
2984 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2986 USE_MAINTAINER_MODE=yes
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2990 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2991 if test $USE_MAINTAINER_MODE = yes; then
2992 MAINTAINER_MODE_TRUE=
2993 MAINTAINER_MODE_FALSE='#'
2995 MAINTAINER_MODE_TRUE='#'
2996 MAINTAINER_MODE_FALSE=
2999 MAINT=$MAINTAINER_MODE_TRUE
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 if test -n "$ac_tool_prefix"; then
3017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_CC+:} false; then :
3022 $as_echo_n "(cached) " >&6
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 if test -n "$CC"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3047 $as_echo "$CC" >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3055 if test -z "$ac_cv_prog_CC"; then
3057 # Extract the first word of "gcc", so it can be a program name with args.
3058 set dummy gcc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3062 $as_echo_n "(cached) " >&6
3064 if test -n "$ac_ct_CC"; then
3065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_ac_ct_CC="gcc"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3085 if test -n "$ac_ct_CC"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3087 $as_echo "$ac_ct_CC" >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3093 if test "x$ac_ct_CC" = x; then
3096 case $cross_compiling:$ac_tool_warned in
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3100 ac_tool_warned=yes ;;
3108 if test -z "$CC"; then
3109 if test -n "$ac_tool_prefix"; then
3110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}cc; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_CC+:} false; then :
3115 $as_echo_n "(cached) " >&6
3117 if test -n "$CC"; then
3118 ac_cv_prog_CC="$CC" # Let the user override the test.
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_CC="${ac_tool_prefix}cc"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3149 if test -z "$CC"; then
3150 # Extract the first word of "cc", so it can be a program name with args.
3151 set dummy cc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_CC+:} false; then :
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3169 ac_prog_rejected=yes
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 if test $ac_prog_rejected = yes; then
3181 # We found a bogon in the path, so make sure we never use it.
3182 set dummy $ac_cv_prog_CC
3184 if test $# != 0; then
3185 # We chose a different compiler from the bogus one.
3186 # However, it has the same basename, so the bogon will be chosen
3187 # first if we set CC to just the basename; use the full file name.
3189 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3195 if test -n "$CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3205 if test -z "$CC"; then
3206 if test -n "$ac_tool_prefix"; then
3207 for ac_prog in cl.exe
3209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_CC+:} false; then :
3214 $as_echo_n "(cached) " >&6
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC="$CC" # Let the user override the test.
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 if test -n "$CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239 $as_echo "$CC" >&6; }
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3246 test -n "$CC" && break
3249 if test -z "$CC"; then
3251 for ac_prog in cl.exe
3253 # Extract the first word of "$ac_prog", so it can be a program name with args.
3254 set dummy $ac_prog; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3260 if test -n "$ac_ct_CC"; then
3261 ac_cv_prog_ac_ct_CC="$ac_ct_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 ac_cv_prog_ac_ct_CC="$ac_prog"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3281 if test -n "$ac_ct_CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3283 $as_echo "$ac_ct_CC" >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3290 test -n "$ac_ct_CC" && break
3293 if test "x$ac_ct_CC" = x; then
3296 case $cross_compiling:$ac_tool_warned in
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3300 ac_tool_warned=yes ;;
3309 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "no acceptable C compiler found in \$PATH
3312 See \`config.log' for more details" "$LINENO" 5; }
3314 # Provide some information about the compiler.
3315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3318 for ac_option in --version -v -V -qversion; do
3319 { { ac_try="$ac_compiler $ac_option >&5"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3328 if test -s conftest.err; then
3330 ... rest of stderr output deleted ...
3331 10q' conftest.err >conftest.er1
3332 cat conftest.er1 >&5
3334 rm -f conftest.er1 conftest.err
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3350 ac_clean_files_save=$ac_clean_files
3351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3352 # Try to create an executable without -o first, disregard a.out.
3353 # It will help us diagnose broken compilers, and finding out an intuition
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3356 $as_echo_n "checking whether the C compiler works... " >&6; }
3357 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3359 # The possible output files:
3360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3363 for ac_file in $ac_files
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3372 if { { ac_try="$ac_link_default"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link_default") 2>&5
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3386 # so that the user can short-circuit this test for compilers unknown to
3388 for ac_file in $ac_files ''
3390 test -f "$ac_file" || continue
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3395 # We found the default executable, but exeext='' is most
3399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3403 # We set ac_cv_exeext here because the later test for it is not
3404 # safe: cross compilers may not add the suffix if given an `-o'
3405 # argument, so we may need to know it at that point already.
3406 # Even if this section looks crufty: it has the advantage of
3413 test "$ac_cv_exeext" = no && ac_cv_exeext=
3418 if test -z "$ac_file"; then :
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error 77 "C compiler cannot create executables
3427 See \`config.log' for more details" "$LINENO" 5; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430 $as_echo "yes" >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3433 $as_echo_n "checking for C compiler default output file name... " >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3435 $as_echo "$ac_file" >&6; }
3436 ac_exeext=$ac_cv_exeext
3438 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3439 ac_clean_files=$ac_clean_files_save
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3441 $as_echo_n "checking for suffix of executables... " >&6; }
3442 if { { ac_try="$ac_link"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_link") 2>&5
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3455 # work properly (i.e., refer to `conftest.exe'), while it won't with
3457 for ac_file in conftest.exe conftest conftest.*; do
3458 test -f "$ac_file" || continue
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3470 See \`config.log' for more details" "$LINENO" 5; }
3472 rm -f conftest conftest$ac_cv_exeext
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3474 $as_echo "$ac_cv_exeext" >&6; }
3476 rm -f conftest.$ac_ext
3477 EXEEXT=$ac_cv_exeext
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3485 FILE *f = fopen ("conftest.out", "w");
3486 return ferror (f) || fclose (f) != 0;
3492 ac_clean_files="$ac_clean_files conftest.out"
3493 # Check that the compiler produces executables we can run. If not, either
3494 # the compiler is broken, or we cross compile.
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3496 $as_echo_n "checking whether we are cross compiling... " >&6; }
3497 if test "$cross_compiling" != yes; then
3498 { { ac_try="$ac_link"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_link") 2>&5
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }
3509 if { ac_try='./conftest$ac_cv_exeext'
3510 { { case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_try") 2>&5
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; }; then
3522 if test "$cross_compiling" = maybe; then
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot run C compiled programs.
3528 If you meant to cross compile, use \`--host'.
3529 See \`config.log' for more details" "$LINENO" 5; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3534 $as_echo "$cross_compiling" >&6; }
3536 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3537 ac_clean_files=$ac_clean_files_save
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3539 $as_echo_n "checking for suffix of object files... " >&6; }
3540 if ${ac_cv_objext+:} false; then :
3541 $as_echo_n "(cached) " >&6
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3554 rm -f conftest.o conftest.obj
3555 if { { ac_try="$ac_compile"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_compile") 2>&5
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }; then :
3566 for ac_file in conftest.o conftest.obj conftest.*; do
3567 test -f "$ac_file" || continue;
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "cannot compute suffix of object files: cannot compile
3581 See \`config.log' for more details" "$LINENO" 5; }
3583 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3586 $as_echo "$ac_cv_objext" >&6; }
3587 OBJEXT=$ac_cv_objext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3590 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3591 if ${ac_cv_c_compiler_gnu+:} false; then :
3592 $as_echo_n "(cached) " >&6
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3608 if ac_fn_c_try_compile "$LINENO"; then :
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3618 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3619 if test $ac_compiler_gnu = yes; then
3624 ac_test_CFLAGS=${CFLAGS+set}
3625 ac_save_CFLAGS=$CFLAGS
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3627 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3628 if ${ac_cv_prog_cc_g+:} false; then :
3629 $as_echo_n "(cached) " >&6
3631 ac_save_c_werror_flag=$ac_c_werror_flag
3632 ac_c_werror_flag=yes
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3646 if ac_fn_c_try_compile "$LINENO"; then :
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3661 if ac_fn_c_try_compile "$LINENO"; then :
3664 ac_c_werror_flag=$ac_save_c_werror_flag
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3677 if ac_fn_c_try_compile "$LINENO"; then :
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3688 $as_echo "$ac_cv_prog_cc_g" >&6; }
3689 if test "$ac_test_CFLAGS" = set; then
3690 CFLAGS=$ac_save_CFLAGS
3691 elif test $ac_cv_prog_cc_g = yes; then
3692 if test "$GCC" = yes; then
3698 if test "$GCC" = yes; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3705 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3706 if ${ac_cv_prog_cc_c89+:} false; then :
3707 $as_echo_n "(cached) " >&6
3709 ac_cv_prog_cc_c89=no
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3717 struct buf { int x; };
3718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3719 static char *e (p, i)
3725 static char *f (char * (*g) (char **, int), char **p, ...)
3730 s = g (p, va_arg (v,int));
3735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3736 function prototypes and stuff, but not '\xHH' hex character constants.
3737 These don't provoke an error unfortunately, instead are silently treated
3738 as 'x'. The following induces an error, until -std is added to get
3739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3740 array size at least. It's necessary to write '\x00'==0 to get something
3741 that's true only with -std. */
3742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3745 inside strings and character constants. */
3747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3749 int test (int i, double x);
3750 struct s1 {int (*f) (int a);};
3751 struct s2 {int (*f) (double a);};
3752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3766 CC="$ac_save_CC $ac_arg"
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_cv_prog_cc_c89=$ac_arg
3770 rm -f core conftest.err conftest.$ac_objext
3771 test "x$ac_cv_prog_cc_c89" != "xno" && break
3773 rm -f conftest.$ac_ext
3778 case "x$ac_cv_prog_cc_c89" in
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3781 $as_echo "none needed" >&6; } ;;
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3784 $as_echo "unsupported" >&6; } ;;
3786 CC="$CC $ac_cv_prog_cc_c89"
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3790 if test "x$ac_cv_prog_cc_c89" != xno; then :
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 DEPDIR="${am__leading_dot}deps"
3801 ac_config_commands="$ac_config_commands depfiles"
3804 am_make=${MAKE-make}
3805 cat > confinc << 'END'
3807 @echo this is the am__doit target
3810 # If we don't find an include directive, just comment out the code.
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3812 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3816 # First try GNU make style include.
3817 echo "include confinc" > confmf
3818 # Ignore all kinds of additional output from 'make'.
3819 case `$am_make -s -f confmf 2> /dev/null` in #(
3820 *the\ am__doit\ target*)
3826 # Now try BSD make style include.
3827 if test "$am__include" = "#"; then
3828 echo '.include "confinc"' > confmf
3829 case `$am_make -s -f confmf 2> /dev/null` in #(
3830 *the\ am__doit\ target*)
3831 am__include=.include
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3840 $as_echo "$_am_result" >&6; }
3841 rm -f confinc confmf
3843 # Check whether --enable-dependency-tracking was given.
3844 if test "${enable_dependency_tracking+set}" = set; then :
3845 enableval=$enable_dependency_tracking;
3848 if test "x$enable_dependency_tracking" != xno; then
3849 am_depcomp="$ac_aux_dir/depcomp"
3853 if test "x$enable_dependency_tracking" != xno; then
3863 depcc="$CC" am_compiler_list=
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3866 $as_echo_n "checking dependency style of $depcc... " >&6; }
3867 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3868 $as_echo_n "(cached) " >&6
3870 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3871 # We make a subdir and do the tests there. Otherwise we can end up
3872 # making bogus files that we don't know about and never remove. For
3873 # instance it was reported that on HP-UX the gcc test will end up
3874 # making a dummy file named 'D' -- because '-MD' means "put the output
3878 # Copy depcomp to subdir because otherwise we won't find it if we're
3879 # using a relative directory.
3880 cp "$am_depcomp" conftest.dir
3882 # We will build objects and dependencies in a subdirectory because
3883 # it helps to detect inapplicable dependency modes. For instance
3884 # both Tru64's cc and ICC support -MD to output dependencies as a
3885 # side effect of compilation, but ICC will put the dependencies in
3886 # the current directory while Tru64 will put them in the object
3890 am_cv_CC_dependencies_compiler_type=none
3891 if test "$am_compiler_list" = ""; then
3892 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3895 case " $depcc " in #(
3896 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3899 for depmode in $am_compiler_list; do
3900 # Setup a source with many dependencies, because some compilers
3901 # like to wrap large dependency lists on column 80 (with \), and
3902 # we should not choose a depcomp mode which is confused by this.
3904 # We need to recreate these files for each test, as the compiler may
3905 # overwrite some of them when testing with obscure command lines.
3906 # This happens at least with the AIX C compiler.
3908 for i in 1 2 3 4 5 6; do
3909 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3910 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3911 # Solaris 10 /bin/sh.
3912 echo '/* dummy */' > sub/conftst$i.h
3914 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3916 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3917 # mode. It turns out that the SunPro C++ compiler does not properly
3918 # handle '-M -o', and we need to detect this. Also, some Intel
3919 # versions had trouble with output in subdirs.
3920 am__obj=sub/conftest.${OBJEXT-o}
3921 am__minus_obj="-o $am__obj"
3924 # This depmode causes a compiler race in universal mode.
3925 test "$am__universal" = false || continue
3928 # After this tag, mechanisms are not by side-effect, so they'll
3929 # only be used when explicitly requested.
3930 if test "x$enable_dependency_tracking" = xyes; then
3936 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3937 # This compiler won't grok '-c -o', but also, the minuso test has
3938 # not run yet. These depmodes are late enough in the game, and
3939 # so weak that their functioning should not be impacted.
3940 am__obj=conftest.${OBJEXT-o}
3945 if depmode=$depmode \
3946 source=sub/conftest.c object=$am__obj \
3947 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3948 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3949 >/dev/null 2>conftest.err &&
3950 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3951 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3952 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3953 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3954 # icc doesn't choke on unknown options, it will just issue warnings
3955 # or remarks (even with -Werror). So we grep stderr for any message
3956 # that says an option was ignored or not supported.
3957 # When given -MP, icc 7.0 and 7.1 complain thusly:
3958 # icc: Command line warning: ignoring option '-M'; no argument required
3959 # The diagnosis changed in icc 8.0:
3960 # icc: Command line remark: option '-MP' not supported
3961 if (grep 'ignoring option' conftest.err ||
3962 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3963 am_cv_CC_dependencies_compiler_type=$depmode
3972 am_cv_CC_dependencies_compiler_type=none
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3977 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3978 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3981 test "x$enable_dependency_tracking" != xno \
3982 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3984 am__fastdepCC_FALSE='#'
3986 am__fastdepCC_TRUE='#'
3987 am__fastdepCC_FALSE=
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3994 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3999 macro_version='2.4.2'
4000 macro_revision='1.3337'
4014 ltmain="$ac_aux_dir/ltmain.sh"
4016 # Make sure we can run config.sub.
4017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4018 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4021 $as_echo_n "checking build system type... " >&6; }
4022 if ${ac_cv_build+:} false; then :
4023 $as_echo_n "(cached) " >&6
4025 ac_build_alias=$build_alias
4026 test "x$ac_build_alias" = x &&
4027 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4028 test "x$ac_build_alias" = x &&
4029 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4030 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4031 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4035 $as_echo "$ac_cv_build" >&6; }
4036 case $ac_cv_build in
4038 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4041 ac_save_IFS=$IFS; IFS='-'
4047 # Remember, the first character of IFS is used to create $*,
4048 # except with old shells:
4051 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4055 $as_echo_n "checking host system type... " >&6; }
4056 if ${ac_cv_host+:} false; then :
4057 $as_echo_n "(cached) " >&6
4059 if test "x$host_alias" = x; then
4060 ac_cv_host=$ac_cv_build
4062 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4063 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4068 $as_echo "$ac_cv_host" >&6; }
4071 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4074 ac_save_IFS=$IFS; IFS='-'
4080 # Remember, the first character of IFS is used to create $*,
4081 # except with old shells:
4084 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4087 # Backslashify metacharacters that are still active within
4088 # double-quoted strings.
4089 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4091 # Same as above, but do not quote variable references.
4092 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4094 # Sed substitution to delay expansion of an escaped shell variable in a
4095 # double_quote_subst'ed string.
4096 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4098 # Sed substitution to delay expansion of an escaped single quote.
4099 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4101 # Sed substitution to avoid accidental globbing in evaled expressions
4102 no_glob_subst='s/\*/\\\*/g'
4104 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4105 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4106 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4109 $as_echo_n "checking how to print strings... " >&6; }
4110 # Test print first, because it will be a builtin if present.
4111 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4112 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4114 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4117 # Use this function as a fallback that always works.
4118 func_fallback_echo ()
4120 eval 'cat <<_LTECHO_EOF
4124 ECHO='func_fallback_echo'
4127 # func_echo_all arg...
4128 # Invoke $ECHO with all args, space-separated.
4135 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4136 $as_echo "printf" >&6; } ;;
4137 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4138 $as_echo "print -r" >&6; } ;;
4139 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4140 $as_echo "cat" >&6; } ;;
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4157 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4158 if ${ac_cv_path_SED+:} false; then :
4159 $as_echo_n "(cached) " >&6
4161 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4162 for ac_i in 1 2 3 4 5 6 7; do
4163 ac_script="$ac_script$as_nl$ac_script"
4165 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4166 { ac_script=; unset ac_script;}
4167 if test -z "$SED"; then
4168 ac_path_SED_found=false
4169 # Loop through the user's path and test for each of PROGNAME-LIST
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_prog in sed gsed; do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4178 as_fn_executable_p "$ac_path_SED" || continue
4179 # Check for GNU ac_path_SED and select it if it is found.
4180 # Check for GNU $ac_path_SED
4181 case `"$ac_path_SED" --version 2>&1` in
4183 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4186 $as_echo_n 0123456789 >"conftest.in"
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 $as_echo '' >> "conftest.nl"
4193 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195 as_fn_arith $ac_count + 1 && ac_count=$as_val
4196 if test $ac_count -gt ${ac_path_SED_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_SED="$ac_path_SED"
4199 ac_path_SED_max=$ac_count
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4207 $ac_path_SED_found && break 3
4212 if test -z "$ac_cv_path_SED"; then
4213 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4221 $as_echo "$ac_cv_path_SED" >&6; }
4222 SED="$ac_cv_path_SED"
4225 test -z "$SED" && SED=sed
4226 Xsed="$SED -e 1s/^X//"
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4239 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4240 if ${ac_cv_path_GREP+:} false; then :
4241 $as_echo_n "(cached) " >&6
4243 if test -z "$GREP"; then
4244 ac_path_GREP_found=false
4245 # Loop through the user's path and test for each of PROGNAME-LIST
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4250 test -z "$as_dir" && as_dir=.
4251 for ac_prog in grep ggrep; do
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4254 as_fn_executable_p "$ac_path_GREP" || continue
4255 # Check for GNU ac_path_GREP and select it if it is found.
4256 # Check for GNU $ac_path_GREP
4257 case `"$ac_path_GREP" --version 2>&1` in
4259 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4262 $as_echo_n 0123456789 >"conftest.in"
4265 cat "conftest.in" "conftest.in" >"conftest.tmp"
4266 mv "conftest.tmp" "conftest.in"
4267 cp "conftest.in" "conftest.nl"
4268 $as_echo 'GREP' >> "conftest.nl"
4269 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271 as_fn_arith $ac_count + 1 && ac_count=$as_val
4272 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4273 # Best one so far, save it but keep looking for a better one
4274 ac_cv_path_GREP="$ac_path_GREP"
4275 ac_path_GREP_max=$ac_count
4277 # 10*(2^10) chars as input seems more than enough
4278 test $ac_count -gt 10 && break
4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4283 $ac_path_GREP_found && break 3
4288 if test -z "$ac_cv_path_GREP"; then
4289 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4292 ac_cv_path_GREP=$GREP
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4297 $as_echo "$ac_cv_path_GREP" >&6; }
4298 GREP="$ac_cv_path_GREP"
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4302 $as_echo_n "checking for egrep... " >&6; }
4303 if ${ac_cv_path_EGREP+:} false; then :
4304 $as_echo_n "(cached) " >&6
4306 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4307 then ac_cv_path_EGREP="$GREP -E"
4309 if test -z "$EGREP"; then
4310 ac_path_EGREP_found=false
4311 # Loop through the user's path and test for each of PROGNAME-LIST
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4316 test -z "$as_dir" && as_dir=.
4317 for ac_prog in egrep; do
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4320 as_fn_executable_p "$ac_path_EGREP" || continue
4321 # Check for GNU ac_path_EGREP and select it if it is found.
4322 # Check for GNU $ac_path_EGREP
4323 case `"$ac_path_EGREP" --version 2>&1` in
4325 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4328 $as_echo_n 0123456789 >"conftest.in"
4331 cat "conftest.in" "conftest.in" >"conftest.tmp"
4332 mv "conftest.tmp" "conftest.in"
4333 cp "conftest.in" "conftest.nl"
4334 $as_echo 'EGREP' >> "conftest.nl"
4335 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337 as_fn_arith $ac_count + 1 && ac_count=$as_val
4338 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4339 # Best one so far, save it but keep looking for a better one
4340 ac_cv_path_EGREP="$ac_path_EGREP"
4341 ac_path_EGREP_max=$ac_count
4343 # 10*(2^10) chars as input seems more than enough
4344 test $ac_count -gt 10 && break
4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4349 $ac_path_EGREP_found && break 3
4354 if test -z "$ac_cv_path_EGREP"; then
4355 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4358 ac_cv_path_EGREP=$EGREP
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4364 $as_echo "$ac_cv_path_EGREP" >&6; }
4365 EGREP="$ac_cv_path_EGREP"
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4369 $as_echo_n "checking for fgrep... " >&6; }
4370 if ${ac_cv_path_FGREP+:} false; then :
4371 $as_echo_n "(cached) " >&6
4373 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4374 then ac_cv_path_FGREP="$GREP -F"
4376 if test -z "$FGREP"; then
4377 ac_path_FGREP_found=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4383 test -z "$as_dir" && as_dir=.
4384 for ac_prog in fgrep; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4387 as_fn_executable_p "$ac_path_FGREP" || continue
4388 # Check for GNU ac_path_FGREP and select it if it is found.
4389 # Check for GNU $ac_path_FGREP
4390 case `"$ac_path_FGREP" --version 2>&1` in
4392 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4395 $as_echo_n 0123456789 >"conftest.in"
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 $as_echo 'FGREP' >> "conftest.nl"
4402 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404 as_fn_arith $ac_count + 1 && ac_count=$as_val
4405 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_FGREP="$ac_path_FGREP"
4408 ac_path_FGREP_max=$ac_count
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4416 $ac_path_FGREP_found && break 3
4421 if test -z "$ac_cv_path_FGREP"; then
4422 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4425 ac_cv_path_FGREP=$FGREP
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4431 $as_echo "$ac_cv_path_FGREP" >&6; }
4432 FGREP="$ac_cv_path_FGREP"
4435 test -z "$GREP" && GREP=grep
4455 # Check whether --with-gnu-ld was given.
4456 if test "${with_gnu_ld+set}" = set; then :
4457 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4463 if test "$GCC" = yes; then
4464 # Check if gcc -print-prog-name=ld gives a path.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4466 $as_echo_n "checking for ld used by $CC... " >&6; }
4469 # gcc leaves a trailing carriage return which upsets mingw
4470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4475 # Accept absolute paths.
4477 re_direlt='/[^/][^/]*/\.\./'
4478 # Canonicalize the pathname of ld
4479 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4480 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4481 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4483 test -z "$LD" && LD="$ac_prog"
4486 # If it fails, then pretend we aren't using GCC.
4490 # If it is relative, then search for the first ld in PATH.
4494 elif test "$with_gnu_ld" = yes; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4496 $as_echo_n "checking for GNU ld... " >&6; }
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4499 $as_echo_n "checking for non-GNU ld... " >&6; }
4501 if ${lt_cv_path_LD+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 if test -z "$LD"; then
4505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4506 for ac_dir in $PATH; do
4508 test -z "$ac_dir" && ac_dir=.
4509 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4510 lt_cv_path_LD="$ac_dir/$ac_prog"
4511 # Check to see if the program is GNU ld. I'd rather use --version,
4512 # but apparently some variants of GNU ld only accept -v.
4513 # Break only if it was the GNU/non-GNU ld that we prefer.
4514 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4515 *GNU* | *'with BFD'*)
4516 test "$with_gnu_ld" != no && break
4519 test "$with_gnu_ld" != yes && break
4526 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4531 if test -n "$LD"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4533 $as_echo "$LD" >&6; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4538 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4540 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4541 if ${lt_cv_prog_gnu_ld+:} false; then :
4542 $as_echo_n "(cached) " >&6
4544 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4545 case `$LD -v 2>&1 </dev/null` in
4546 *GNU* | *'with BFD'*)
4547 lt_cv_prog_gnu_ld=yes
4550 lt_cv_prog_gnu_ld=no
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4555 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4556 with_gnu_ld=$lt_cv_prog_gnu_ld
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4567 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4568 if ${lt_cv_path_NM+:} false; then :
4569 $as_echo_n "(cached) " >&6
4571 if test -n "$NM"; then
4572 # Let the user override the test.
4575 lt_nm_to_check="${ac_tool_prefix}nm"
4576 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4577 lt_nm_to_check="$lt_nm_to_check nm"
4579 for lt_tmp_nm in $lt_nm_to_check; do
4580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4581 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4583 test -z "$ac_dir" && ac_dir=.
4584 tmp_nm="$ac_dir/$lt_tmp_nm"
4585 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4586 # Check to see if the nm accepts a BSD-compat flag.
4587 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4588 # nm: unknown option "B" ignored
4589 # Tru64's nm complains that /dev/null is an invalid object file
4590 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4591 */dev/null* | *'Invalid file or object type'*)
4592 lt_cv_path_NM="$tmp_nm -B"
4596 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4598 lt_cv_path_NM="$tmp_nm -p"
4602 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4603 continue # so that we can try to find one that supports BSD flags
4612 : ${lt_cv_path_NM=no}
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4616 $as_echo "$lt_cv_path_NM" >&6; }
4617 if test "$lt_cv_path_NM" != "no"; then
4620 # Didn't find any BSD compatible name lister, look for dumpbin.
4621 if test -n "$DUMPBIN"; then :
4622 # Let the user override the test.
4624 if test -n "$ac_tool_prefix"; then
4625 for ac_prog in dumpbin "link -dump"
4627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if ${ac_cv_prog_DUMPBIN+:} false; then :
4632 $as_echo_n "(cached) " >&6
4634 if test -n "$DUMPBIN"; then
4635 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 DUMPBIN=$ac_cv_prog_DUMPBIN
4655 if test -n "$DUMPBIN"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4657 $as_echo "$DUMPBIN" >&6; }
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4664 test -n "$DUMPBIN" && break
4667 if test -z "$DUMPBIN"; then
4668 ac_ct_DUMPBIN=$DUMPBIN
4669 for ac_prog in dumpbin "link -dump"
4671 # Extract the first word of "$ac_prog", so it can be a program name with args.
4672 set dummy $ac_prog; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4676 $as_echo_n "(cached) " >&6
4678 if test -n "$ac_ct_DUMPBIN"; then
4679 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4699 if test -n "$ac_ct_DUMPBIN"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4701 $as_echo "$ac_ct_DUMPBIN" >&6; }
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4708 test -n "$ac_ct_DUMPBIN" && break
4711 if test "x$ac_ct_DUMPBIN" = x; then
4714 case $cross_compiling:$ac_tool_warned in
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718 ac_tool_warned=yes ;;
4720 DUMPBIN=$ac_ct_DUMPBIN
4724 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4726 DUMPBIN="$DUMPBIN -symbols"
4734 if test "$DUMPBIN" != ":"; then
4738 test -z "$NM" && NM=nm
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4746 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4747 if ${lt_cv_nm_interface+:} false; then :
4748 $as_echo_n "(cached) " >&6
4750 lt_cv_nm_interface="BSD nm"
4751 echo "int some_variable = 0;" > conftest.$ac_ext
4752 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4753 (eval "$ac_compile" 2>conftest.err)
4754 cat conftest.err >&5
4755 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4756 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4757 cat conftest.err >&5
4758 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4759 cat conftest.out >&5
4760 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4761 lt_cv_nm_interface="MS dumpbin"
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4766 $as_echo "$lt_cv_nm_interface" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4769 $as_echo_n "checking whether ln -s works... " >&6; }
4771 if test "$LN_S" = "ln -s"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4773 $as_echo "yes" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4776 $as_echo "no, using $LN_S" >&6; }
4779 # find the maximum length of command line arguments
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4781 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4782 if ${lt_cv_sys_max_cmd_len+:} false; then :
4783 $as_echo_n "(cached) " >&6
4790 # On DJGPP, this test can blow up pretty badly due to problems in libc
4791 # (any single argument exceeding 2000 bytes causes a buffer overrun
4792 # during glob expansion). Even if it were fixed, the result of this
4793 # check would be larger than it should be.
4794 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4798 # Under GNU Hurd, this test is not required because there is
4799 # no limit to the length of command line arguments.
4800 # Libtool will interpret -1 as no limit whatsoever
4801 lt_cv_sys_max_cmd_len=-1;
4804 cygwin* | mingw* | cegcc*)
4805 # On Win9x/ME, this test blows up -- it succeeds, but takes
4806 # about 5 minutes as the teststring grows exponentially.
4807 # Worse, since 9x/ME are not pre-emptively multitasking,
4808 # you end up with a "frozen" computer, even though with patience
4809 # the test eventually succeeds (with a max line length of 256k).
4810 # Instead, let's just punt: use the minimum linelength reported by
4811 # all of the supported platforms: 8192 (on NT/2K/XP).
4812 lt_cv_sys_max_cmd_len=8192;
4816 # On MiNT this can take a long time and run out of memory.
4817 lt_cv_sys_max_cmd_len=8192;
4821 # On AmigaOS with pdksh, this test takes hours, literally.
4822 # So we just punt and use a minimum line length of 8192.
4823 lt_cv_sys_max_cmd_len=8192;
4826 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4827 # This has been around since 386BSD, at least. Likely further.
4828 if test -x /sbin/sysctl; then
4829 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4830 elif test -x /usr/sbin/sysctl; then
4831 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4833 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4835 # And add a safety zone
4836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4841 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4842 lt_cv_sys_max_cmd_len=196608
4846 # The test takes a long time on OS/2.
4847 lt_cv_sys_max_cmd_len=8192
4851 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4852 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4853 # nice to cause kernel panics so lets avoid the loop below.
4854 # First set a reasonable default.
4855 lt_cv_sys_max_cmd_len=16384
4857 if test -x /sbin/sysconfig; then
4858 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4859 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4864 lt_cv_sys_max_cmd_len=102400
4866 sysv5* | sco5v6* | sysv4.2uw2*)
4867 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4868 if test -n "$kargmax"; then
4869 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4871 lt_cv_sys_max_cmd_len=32768
4875 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4876 if test -n "$lt_cv_sys_max_cmd_len"; then
4877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4880 # Make teststring a little bigger before we do anything with it.
4881 # a 1K string should be a reasonable start.
4882 for i in 1 2 3 4 5 6 7 8 ; do
4883 teststring=$teststring$teststring
4885 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4886 # If test is not a shell built-in, we'll probably end up computing a
4887 # maximum length that is only half of the actual maximum length, but
4889 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4890 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4891 test $i != 17 # 1/2 MB should be enough
4894 teststring=$teststring$teststring
4896 # Only check the string length outside the loop.
4897 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4899 # Add a significant safety factor because C++ compilers can tack on
4900 # massive amounts of additional arguments before passing them to the
4901 # linker. It appears as though 1/2 is a usable value.
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4909 if test -n $lt_cv_sys_max_cmd_len ; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4911 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4914 $as_echo "none" >&6; }
4916 max_cmd_len=$lt_cv_sys_max_cmd_len
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4928 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4929 # Try some XSI features
4932 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4934 && eval 'test $(( 1 + 1 )) -eq 2 \
4935 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4938 $as_echo "$xsi_shell" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4942 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4944 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4946 && lt_shell_append=yes
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4948 $as_echo "$lt_shell_append" >&6; }
4951 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4961 # test EBCDIC or ASCII
4962 case `echo X|tr X '\101'` in
4963 A) # ASCII based system
4964 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4965 lt_SP2NL='tr \040 \012'
4966 lt_NL2SP='tr \015\012 \040\040'
4968 *) # EBCDIC based system
4969 lt_SP2NL='tr \100 \n'
4970 lt_NL2SP='tr \r\n \100\100'
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4983 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4984 if ${lt_cv_to_host_file_cmd+:} false; then :
4985 $as_echo_n "(cached) " >&6
4990 *-*-mingw* ) # actually msys
4991 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4994 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4996 * ) # otherwise, assume *nix
4997 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5003 *-*-mingw* ) # actually msys
5004 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5007 lt_cv_to_host_file_cmd=func_convert_file_noop
5009 * ) # otherwise, assume *nix
5010 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5014 * ) # unhandled hosts (and "normal" native builds)
5015 lt_cv_to_host_file_cmd=func_convert_file_noop
5021 to_host_file_cmd=$lt_cv_to_host_file_cmd
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5023 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5030 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5031 if ${lt_cv_to_tool_file_cmd+:} false; then :
5032 $as_echo_n "(cached) " >&6
5034 #assume ordinary cross tools, or native build.
5035 lt_cv_to_tool_file_cmd=func_convert_file_noop
5039 *-*-mingw* ) # actually msys
5040 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5048 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5050 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5057 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5058 if ${lt_cv_ld_reload_flag+:} false; then :
5059 $as_echo_n "(cached) " >&6
5061 lt_cv_ld_reload_flag='-r'
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5064 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5065 reload_flag=$lt_cv_ld_reload_flag
5066 case $reload_flag in
5068 *) reload_flag=" $reload_flag" ;;
5070 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5072 cygwin* | mingw* | pw32* | cegcc*)
5073 if test "$GCC" != yes; then
5078 if test "$GCC" = yes; then
5079 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5081 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5094 if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5096 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_OBJDUMP+:} false; then :
5100 $as_echo_n "(cached) " >&6
5102 if test -n "$OBJDUMP"; then
5103 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 OBJDUMP=$ac_cv_prog_OBJDUMP
5123 if test -n "$OBJDUMP"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5125 $as_echo "$OBJDUMP" >&6; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5133 if test -z "$ac_cv_prog_OBJDUMP"; then
5134 ac_ct_OBJDUMP=$OBJDUMP
5135 # Extract the first word of "objdump", so it can be a program name with args.
5136 set dummy objdump; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5140 $as_echo_n "(cached) " >&6
5142 if test -n "$ac_ct_OBJDUMP"; then
5143 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5163 if test -n "$ac_ct_OBJDUMP"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5165 $as_echo "$ac_ct_OBJDUMP" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5171 if test "x$ac_ct_OBJDUMP" = x; then
5174 case $cross_compiling:$ac_tool_warned in
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned=yes ;;
5180 OBJDUMP=$ac_ct_OBJDUMP
5183 OBJDUMP="$ac_cv_prog_OBJDUMP"
5186 test -z "$OBJDUMP" && OBJDUMP=objdump
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5197 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5198 if ${lt_cv_deplibs_check_method+:} false; then :
5199 $as_echo_n "(cached) " >&6
5201 lt_cv_file_magic_cmd='$MAGIC_CMD'
5202 lt_cv_file_magic_test_file=
5203 lt_cv_deplibs_check_method='unknown'
5204 # Need to set the preceding variable on all platforms that support
5205 # interlibrary dependencies.
5206 # 'none' -- dependencies not supported.
5207 # `unknown' -- same as none, but documents that we really don't know.
5208 # 'pass_all' -- all dependencies passed with no checks.
5209 # 'test_compile' -- check by making test program.
5210 # 'file_magic [[regex]]' -- check by looking for files in library path
5211 # which responds to the $file_magic_cmd with a given extended regex.
5212 # If you have `file' or equivalent on your system and you're not sure
5213 # whether `pass_all' will *always* work, you probably want this one.
5217 lt_cv_deplibs_check_method=pass_all
5221 lt_cv_deplibs_check_method=pass_all
5225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5226 lt_cv_file_magic_cmd='/usr/bin/file -L'
5227 lt_cv_file_magic_test_file=/shlib/libc.so
5231 # func_win32_libid is a shell function defined in ltmain.sh
5232 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5233 lt_cv_file_magic_cmd='func_win32_libid'
5237 # Base MSYS/MinGW do not provide the 'file' command needed by
5238 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5239 # unless we find 'file', for example because we are cross-compiling.
5240 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5241 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5243 lt_cv_file_magic_cmd='func_win32_libid'
5245 # Keep this pattern in sync with the one in func_win32_libid.
5246 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5247 lt_cv_file_magic_cmd='$OBJDUMP -f'
5252 # use the weaker test based on 'objdump'. See mingw*.
5253 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5254 lt_cv_file_magic_cmd='$OBJDUMP -f'
5257 darwin* | rhapsody*)
5258 lt_cv_deplibs_check_method=pass_all
5261 freebsd* | dragonfly*)
5262 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5265 # Not sure whether the presence of OpenBSD here was a mistake.
5266 # Let's accept both of them until this is cleared up.
5267 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5268 lt_cv_file_magic_cmd=/usr/bin/file
5269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5273 lt_cv_deplibs_check_method=pass_all
5278 lt_cv_deplibs_check_method=pass_all
5282 lt_cv_deplibs_check_method=pass_all
5285 hpux10.20* | hpux11*)
5286 lt_cv_file_magic_cmd=/usr/bin/file
5289 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5290 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5293 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]'
5294 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5297 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5298 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5304 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5308 irix5* | irix6* | nonstopux*)
5310 *-32|*"-32 ") libmagic=32-bit;;
5311 *-n32|*"-n32 ") libmagic=N32;;
5312 *-64|*"-64 ") libmagic=64-bit;;
5313 *) libmagic=never-match;;
5315 lt_cv_deplibs_check_method=pass_all
5318 # This must be glibc/ELF.
5319 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5320 lt_cv_deplibs_check_method=pass_all
5324 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5333 lt_cv_file_magic_cmd=/usr/bin/file
5334 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5338 lt_cv_deplibs_check_method=pass_all
5342 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5349 osf3* | osf4* | osf5*)
5350 lt_cv_deplibs_check_method=pass_all
5354 lt_cv_deplibs_check_method=pass_all
5358 lt_cv_deplibs_check_method=pass_all
5361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5362 lt_cv_deplibs_check_method=pass_all
5366 case $host_vendor in
5368 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]'
5369 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5372 lt_cv_deplibs_check_method=pass_all
5375 lt_cv_file_magic_cmd='/bin/file'
5376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5379 lt_cv_file_magic_cmd='/bin/file'
5380 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5381 lt_cv_file_magic_test_file=/lib/libc.so
5384 lt_cv_deplibs_check_method=pass_all
5387 lt_cv_deplibs_check_method=pass_all
5393 lt_cv_deplibs_check_method=pass_all
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5399 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5403 if test "$build" = "$host"; then
5406 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5409 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5415 file_magic_cmd=$lt_cv_file_magic_cmd
5416 deplibs_check_method=$lt_cv_deplibs_check_method
5417 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5440 if test -n "$ac_tool_prefix"; then
5441 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5442 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_prog_DLLTOOL+:} false; then :
5446 $as_echo_n "(cached) " >&6
5448 if test -n "$DLLTOOL"; then
5449 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 DLLTOOL=$ac_cv_prog_DLLTOOL
5469 if test -n "$DLLTOOL"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5471 $as_echo "$DLLTOOL" >&6; }
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5479 if test -z "$ac_cv_prog_DLLTOOL"; then
5480 ac_ct_DLLTOOL=$DLLTOOL
5481 # Extract the first word of "dlltool", so it can be a program name with args.
5482 set dummy dlltool; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5486 $as_echo_n "(cached) " >&6
5488 if test -n "$ac_ct_DLLTOOL"; then
5489 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5509 if test -n "$ac_ct_DLLTOOL"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5511 $as_echo "$ac_ct_DLLTOOL" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5517 if test "x$ac_ct_DLLTOOL" = x; then
5520 case $cross_compiling:$ac_tool_warned in
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524 ac_tool_warned=yes ;;
5526 DLLTOOL=$ac_ct_DLLTOOL
5529 DLLTOOL="$ac_cv_prog_DLLTOOL"
5532 test -z "$DLLTOOL" && DLLTOOL=dlltool
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5544 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5545 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5546 $as_echo_n "(cached) " >&6
5548 lt_cv_sharedlib_from_linklib_cmd='unknown'
5551 cygwin* | mingw* | pw32* | cegcc*)
5552 # two different shell functions defined in ltmain.sh
5553 # decide which to use based on capabilities of $DLLTOOL
5554 case `$DLLTOOL --help 2>&1` in
5555 *--identify-strict*)
5556 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5559 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5564 # fallback: assume linklib IS sharedlib
5565 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5571 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5572 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5573 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5582 if test -n "$ac_tool_prefix"; then
5585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_prog_AR+:} false; then :
5590 $as_echo_n "(cached) " >&6
5592 if test -n "$AR"; then
5593 ac_cv_prog_AR="$AR" # Let the user override the test.
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 if test -n "$AR"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5615 $as_echo "$AR" >&6; }
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5622 test -n "$AR" && break
5625 if test -z "$AR"; then
5629 # Extract the first word of "$ac_prog", so it can be a program name with args.
5630 set dummy $ac_prog; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5634 $as_echo_n "(cached) " >&6
5636 if test -n "$ac_ct_AR"; then
5637 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_ac_ct_AR="$ac_prog"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5657 if test -n "$ac_ct_AR"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5659 $as_echo "$ac_ct_AR" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5666 test -n "$ac_ct_AR" && break
5669 if test "x$ac_ct_AR" = x; then
5672 case $cross_compiling:$ac_tool_warned in
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5676 ac_tool_warned=yes ;;
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5696 $as_echo_n "checking for archiver @FILE support... " >&6; }
5697 if ${lt_cv_ar_at_file+:} false; then :
5698 $as_echo_n "(cached) " >&6
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5712 if ac_fn_c_try_compile "$LINENO"; then :
5713 echo conftest.$ac_objext > conftest.lst
5714 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5716 (eval $lt_ar_try) 2>&5
5718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5719 test $ac_status = 0; }
5720 if test "$ac_status" -eq 0; then
5721 # Ensure the archiver fails upon bogus file names.
5722 rm -f conftest.$ac_objext libconftest.a
5723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5724 (eval $lt_ar_try) 2>&5
5726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5727 test $ac_status = 0; }
5728 if test "$ac_status" -ne 0; then
5732 rm -f conftest.* libconftest.a
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5739 $as_echo "$lt_cv_ar_at_file" >&6; }
5741 if test "x$lt_cv_ar_at_file" = xno; then
5744 archiver_list_spec=$lt_cv_ar_at_file
5753 if test -n "$ac_tool_prefix"; then
5754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}strip; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_STRIP+:} false; then :
5759 $as_echo_n "(cached) " >&6
5761 if test -n "$STRIP"; then
5762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 STRIP=$ac_cv_prog_STRIP
5782 if test -n "$STRIP"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5784 $as_echo "$STRIP" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5792 if test -z "$ac_cv_prog_STRIP"; then
5794 # Extract the first word of "strip", so it can be a program name with args.
5795 set dummy strip; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5799 $as_echo_n "(cached) " >&6
5801 if test -n "$ac_ct_STRIP"; then
5802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_ac_ct_STRIP="strip"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5822 if test -n "$ac_ct_STRIP"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5824 $as_echo "$ac_ct_STRIP" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5830 if test "x$ac_ct_STRIP" = x; then
5833 case $cross_compiling:$ac_tool_warned in
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837 ac_tool_warned=yes ;;
5842 STRIP="$ac_cv_prog_STRIP"
5845 test -z "$STRIP" && STRIP=:
5852 if test -n "$ac_tool_prefix"; then
5853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_prog_RANLIB+:} false; then :
5858 $as_echo_n "(cached) " >&6
5860 if test -n "$RANLIB"; then
5861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 RANLIB=$ac_cv_prog_RANLIB
5881 if test -n "$RANLIB"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5883 $as_echo "$RANLIB" >&6; }
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5891 if test -z "$ac_cv_prog_RANLIB"; then
5892 ac_ct_RANLIB=$RANLIB
5893 # Extract the first word of "ranlib", so it can be a program name with args.
5894 set dummy ranlib; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5898 $as_echo_n "(cached) " >&6
5900 if test -n "$ac_ct_RANLIB"; then
5901 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_ac_ct_RANLIB="ranlib"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5921 if test -n "$ac_ct_RANLIB"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5923 $as_echo "$ac_ct_RANLIB" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5929 if test "x$ac_ct_RANLIB" = x; then
5932 case $cross_compiling:$ac_tool_warned in
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5938 RANLIB=$ac_ct_RANLIB
5941 RANLIB="$ac_cv_prog_RANLIB"
5944 test -z "$RANLIB" && RANLIB=:
5951 # Determine commands to create old-style static archives.
5952 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5953 old_postinstall_cmds='chmod 644 $oldlib'
5954 old_postuninstall_cmds=
5956 if test -n "$RANLIB"; then
5959 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5962 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5965 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5970 lock_old_archive_extraction=yes ;;
5972 lock_old_archive_extraction=no ;;
6013 # If no C compiler was specified, use CC.
6016 # If no C compiler flags were specified, use CFLAGS.
6017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6019 # Allow CC to be a program name with arguments.
6023 # Check for command to grab the raw symbol name followed by C symbol from nm.
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6025 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6026 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6027 $as_echo_n "(cached) " >&6
6030 # These are sane defaults that work on at least a few old systems.
6031 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6033 # Character class describing NM global symbol codes.
6034 symcode='[BCDEGRST]'
6036 # Regexp to match symbols that can be accessed directly from C.
6037 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6039 # Define system-specific variables.
6044 cygwin* | mingw* | pw32* | cegcc*)
6045 symcode='[ABCDGISTW]'
6048 if test "$host_cpu" = ia64; then
6049 symcode='[ABCDEGRST]'
6053 symcode='[BCDEGRST]'
6056 symcode='[BCDEGQRST]'
6067 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6075 # If we're using GNU nm, then use its standard symbol codes.
6076 case `$NM -V 2>&1` in
6077 *GNU* | *'with BFD'*)
6078 symcode='[ABCDGIRSTW]' ;;
6081 # Transform an extracted symbol line into a proper C declaration.
6082 # Some systems (esp. on ia64) link data and code symbols differently,
6083 # so use this general approach.
6084 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6086 # Transform an extracted symbol line into symbol name and symbol address
6087 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6088 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6090 # Handle CRLF in mingw tool chain
6094 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6098 # Try without a prefix underscore, then with it.
6099 for ac_symprfx in "" "_"; do
6101 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6102 symxfrm="\\1 $ac_symprfx\\2 \\2"
6104 # Write the raw and C identifiers.
6105 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6106 # Fake it for dumpbin and say T for any non-static function
6107 # and D for any global variable.
6108 # Also find C++ and __fastcall symbols from MSVC++,
6109 # which start with @ or ?.
6110 lt_cv_sys_global_symbol_pipe="$AWK '"\
6111 " {last_section=section; section=\$ 3};"\
6112 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6113 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6114 " \$ 0!~/External *\|/{next};"\
6115 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6116 " {if(hide[section]) next};"\
6117 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6118 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6119 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6120 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6121 " ' prfx=^$ac_symprfx"
6123 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6125 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6127 # Check to see that the pipe works correctly.
6131 cat > conftest.$ac_ext <<_LT_EOF
6136 void nm_test_func(void);
6137 void nm_test_func(void){}
6141 int main(){nm_test_var='a';nm_test_func();return(0);}
6144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6145 (eval $ac_compile) 2>&5
6147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6148 test $ac_status = 0; }; then
6149 # Now try to grab the symbols.
6151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6152 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6155 test $ac_status = 0; } && test -s "$nlist"; then
6156 # Try sorting and uniquifying the output.
6157 if sort "$nlist" | uniq > "$nlist"T; then
6158 mv -f "$nlist"T "$nlist"
6163 # Make sure that we snagged all the symbols we need.
6164 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6165 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6166 cat <<_LT_EOF > conftest.$ac_ext
6167 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6168 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6169 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6170 relocations are performed -- see ld's documentation on pseudo-relocs. */
6171 # define LT_DLSYM_CONST
6172 #elif defined(__osf__)
6173 /* This system does not cope well with relocations in const data. */
6174 # define LT_DLSYM_CONST
6176 # define LT_DLSYM_CONST const
6184 # Now generate the symbol file.
6185 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6187 cat <<_LT_EOF >> conftest.$ac_ext
6189 /* The mapping between symbol names and symbols. */
6190 LT_DLSYM_CONST struct {
6194 lt__PROGRAM__LTX_preloaded_symbols[] =
6196 { "@PROGRAM@", (void *) 0 },
6198 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6199 cat <<\_LT_EOF >> conftest.$ac_ext
6203 /* This works around a problem in FreeBSD linker */
6204 #ifdef FREEBSD_WORKAROUND
6205 static const void *lt_preloaded_setup() {
6206 return lt__PROGRAM__LTX_preloaded_symbols;
6214 # Now try linking the two files.
6215 mv conftest.$ac_objext conftstm.$ac_objext
6216 lt_globsym_save_LIBS=$LIBS
6217 lt_globsym_save_CFLAGS=$CFLAGS
6218 LIBS="conftstm.$ac_objext"
6219 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6221 (eval $ac_link) 2>&5
6223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6227 LIBS=$lt_globsym_save_LIBS
6228 CFLAGS=$lt_globsym_save_CFLAGS
6230 echo "cannot find nm_test_func in $nlist" >&5
6233 echo "cannot find nm_test_var in $nlist" >&5
6236 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6239 echo "$progname: failed program was:" >&5
6240 cat conftest.$ac_ext >&5
6242 rm -rf conftest* conftst*
6244 # Do not use the global_symbol_pipe unless it works.
6245 if test "$pipe_works" = yes; then
6248 lt_cv_sys_global_symbol_pipe=
6254 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6255 lt_cv_sys_global_symbol_to_cdecl=
6257 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6259 $as_echo "failed" >&6; }
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6262 $as_echo "ok" >&6; }
6265 # Response file support.
6266 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6267 nm_file_list_spec='@'
6268 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6269 nm_file_list_spec='@'
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6299 $as_echo_n "checking for sysroot... " >&6; }
6301 # Check whether --with-sysroot was given.
6302 if test "${with_sysroot+set}" = set; then :
6303 withval=$with_sysroot;
6310 case ${with_sysroot} in #(
6312 if test "$GCC" = yes; then
6313 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6317 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6323 $as_echo "${with_sysroot}" >&6; }
6324 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6329 $as_echo "${lt_sysroot:-no}" >&6; }
6335 # Check whether --enable-libtool-lock was given.
6336 if test "${enable_libtool_lock+set}" = set; then :
6337 enableval=$enable_libtool_lock;
6340 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6342 # Some flags need to be propagated to the compiler or linker for good
6346 # Find out which ABI we are using.
6347 echo 'int i;' > conftest.$ac_ext
6348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6349 (eval $ac_compile) 2>&5
6351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6352 test $ac_status = 0; }; then
6353 case `/usr/bin/file conftest.$ac_objext` in
6365 # Find out which ABI we are using.
6366 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6368 (eval $ac_compile) 2>&5
6370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6371 test $ac_status = 0; }; then
6372 if test "$lt_cv_prog_gnu_ld" = yes; then
6373 case `/usr/bin/file conftest.$ac_objext` in
6375 LD="${LD-ld} -melf32bsmip"
6378 LD="${LD-ld} -melf32bmipn32"
6381 LD="${LD-ld} -melf64bmip"
6385 case `/usr/bin/file conftest.$ac_objext` in
6401 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6402 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6403 # Find out which ABI we are using.
6404 echo 'int i;' > conftest.$ac_ext
6405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6406 (eval $ac_compile) 2>&5
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; }; then
6410 case `/usr/bin/file conftest.o` in
6413 x86_64-*kfreebsd*-gnu)
6414 LD="${LD-ld} -m elf_i386_fbsd"
6417 LD="${LD-ld} -m elf_i386"
6419 powerpc64le-*linux*)
6420 LD="${LD-ld} -m elf32lppclinux"
6423 LD="${LD-ld} -m elf32ppclinux"
6426 LD="${LD-ld} -m elf_s390"
6429 LD="${LD-ld} -m elf32_sparc"
6435 x86_64-*kfreebsd*-gnu)
6436 LD="${LD-ld} -m elf_x86_64_fbsd"
6439 LD="${LD-ld} -m elf_x86_64"
6442 LD="${LD-ld} -m elf64lppc"
6445 LD="${LD-ld} -m elf64ppc"
6447 s390*-*linux*|s390*-*tpf*)
6448 LD="${LD-ld} -m elf64_s390"
6451 LD="${LD-ld} -m elf64_sparc"
6461 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6462 SAVE_CFLAGS="$CFLAGS"
6463 CFLAGS="$CFLAGS -belf"
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6465 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6466 if ${lt_cv_cc_needs_belf+:} false; then :
6467 $as_echo_n "(cached) " >&6
6470 ac_cpp='$CPP $CPPFLAGS'
6471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6486 if ac_fn_c_try_link "$LINENO"; then :
6487 lt_cv_cc_needs_belf=yes
6489 lt_cv_cc_needs_belf=no
6491 rm -f core conftest.err conftest.$ac_objext \
6492 conftest$ac_exeext conftest.$ac_ext
6494 ac_cpp='$CPP $CPPFLAGS'
6495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6501 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6502 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6503 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6504 CFLAGS="$SAVE_CFLAGS"
6508 # Find out which ABI we are using.
6509 echo 'int i;' > conftest.$ac_ext
6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6511 (eval $ac_compile) 2>&5
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; }; then
6515 case `/usr/bin/file conftest.o` in
6517 case $lt_cv_prog_gnu_ld in
6521 LD="${LD-ld} -m elf_x86_64"
6524 LD="${LD-ld} -m elf64_sparc"
6527 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6528 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6533 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6545 need_locks="$enable_libtool_lock"
6547 if test -n "$ac_tool_prefix"; then
6548 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}mt; ac_word=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6553 $as_echo_n "(cached) " >&6
6555 if test -n "$MANIFEST_TOOL"; then
6556 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6565 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6576 if test -n "$MANIFEST_TOOL"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6578 $as_echo "$MANIFEST_TOOL" >&6; }
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6586 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6587 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6588 # Extract the first word of "mt", so it can be a program name with args.
6589 set dummy mt; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6593 $as_echo_n "(cached) " >&6
6595 if test -n "$ac_ct_MANIFEST_TOOL"; then
6596 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6616 if test -n "$ac_ct_MANIFEST_TOOL"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6618 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6624 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6627 case $cross_compiling:$ac_tool_warned in
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6633 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6636 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6639 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6641 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6642 if ${lt_cv_path_mainfest_tool+:} false; then :
6643 $as_echo_n "(cached) " >&6
6645 lt_cv_path_mainfest_tool=no
6646 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6647 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6648 cat conftest.err >&5
6649 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6650 lt_cv_path_mainfest_tool=yes
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6655 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6656 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6666 rhapsody* | darwin*)
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6673 $as_echo_n "(cached) " >&6
6675 if test -n "$DSYMUTIL"; then
6676 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6696 if test -n "$DSYMUTIL"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6698 $as_echo "$DSYMUTIL" >&6; }
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6706 if test -z "$ac_cv_prog_DSYMUTIL"; then
6707 ac_ct_DSYMUTIL=$DSYMUTIL
6708 # Extract the first word of "dsymutil", so it can be a program name with args.
6709 set dummy dsymutil; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6713 $as_echo_n "(cached) " >&6
6715 if test -n "$ac_ct_DSYMUTIL"; then
6716 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6736 if test -n "$ac_ct_DSYMUTIL"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6738 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6744 if test "x$ac_ct_DSYMUTIL" = x; then
6747 case $cross_compiling:$ac_tool_warned in
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6753 DSYMUTIL=$ac_ct_DSYMUTIL
6756 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if ${ac_cv_prog_NMEDIT+:} false; then :
6765 $as_echo_n "(cached) " >&6
6767 if test -n "$NMEDIT"; then
6768 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 NMEDIT=$ac_cv_prog_NMEDIT
6788 if test -n "$NMEDIT"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6790 $as_echo "$NMEDIT" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6798 if test -z "$ac_cv_prog_NMEDIT"; then
6799 ac_ct_NMEDIT=$NMEDIT
6800 # Extract the first word of "nmedit", so it can be a program name with args.
6801 set dummy nmedit; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6805 $as_echo_n "(cached) " >&6
6807 if test -n "$ac_ct_NMEDIT"; then
6808 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6828 if test -n "$ac_ct_NMEDIT"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6830 $as_echo "$ac_ct_NMEDIT" >&6; }
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6836 if test "x$ac_ct_NMEDIT" = x; then
6839 case $cross_compiling:$ac_tool_warned in
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6845 NMEDIT=$ac_ct_NMEDIT
6848 NMEDIT="$ac_cv_prog_NMEDIT"
6851 if test -n "$ac_tool_prefix"; then
6852 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_LIPO+:} false; then :
6857 $as_echo_n "(cached) " >&6
6859 if test -n "$LIPO"; then
6860 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 LIPO=$ac_cv_prog_LIPO
6880 if test -n "$LIPO"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6882 $as_echo "$LIPO" >&6; }
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6890 if test -z "$ac_cv_prog_LIPO"; then
6892 # Extract the first word of "lipo", so it can be a program name with args.
6893 set dummy lipo; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6897 $as_echo_n "(cached) " >&6
6899 if test -n "$ac_ct_LIPO"; then
6900 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_ac_ct_LIPO="lipo"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6920 if test -n "$ac_ct_LIPO"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6922 $as_echo "$ac_ct_LIPO" >&6; }
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6928 if test "x$ac_ct_LIPO" = x; then
6931 case $cross_compiling:$ac_tool_warned in
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6935 ac_tool_warned=yes ;;
6940 LIPO="$ac_cv_prog_LIPO"
6943 if test -n "$ac_tool_prefix"; then
6944 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6945 set dummy ${ac_tool_prefix}otool; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_OTOOL+:} false; then :
6949 $as_echo_n "(cached) " >&6
6951 if test -n "$OTOOL"; then
6952 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 OTOOL=$ac_cv_prog_OTOOL
6972 if test -n "$OTOOL"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6974 $as_echo "$OTOOL" >&6; }
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6982 if test -z "$ac_cv_prog_OTOOL"; then
6984 # Extract the first word of "otool", so it can be a program name with args.
6985 set dummy otool; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6989 $as_echo_n "(cached) " >&6
6991 if test -n "$ac_ct_OTOOL"; then
6992 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_ac_ct_OTOOL="otool"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7012 if test -n "$ac_ct_OTOOL"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7014 $as_echo "$ac_ct_OTOOL" >&6; }
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7020 if test "x$ac_ct_OTOOL" = x; then
7023 case $cross_compiling:$ac_tool_warned in
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7027 ac_tool_warned=yes ;;
7032 OTOOL="$ac_cv_prog_OTOOL"
7035 if test -n "$ac_tool_prefix"; then
7036 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7037 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_OTOOL64+:} false; then :
7041 $as_echo_n "(cached) " >&6
7043 if test -n "$OTOOL64"; then
7044 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 OTOOL64=$ac_cv_prog_OTOOL64
7064 if test -n "$OTOOL64"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7066 $as_echo "$OTOOL64" >&6; }
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7074 if test -z "$ac_cv_prog_OTOOL64"; then
7075 ac_ct_OTOOL64=$OTOOL64
7076 # Extract the first word of "otool64", so it can be a program name with args.
7077 set dummy otool64; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7081 $as_echo_n "(cached) " >&6
7083 if test -n "$ac_ct_OTOOL64"; then
7084 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_ac_ct_OTOOL64="otool64"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7104 if test -n "$ac_ct_OTOOL64"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7106 $as_echo "$ac_ct_OTOOL64" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7112 if test "x$ac_ct_OTOOL64" = x; then
7115 case $cross_compiling:$ac_tool_warned in
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7119 ac_tool_warned=yes ;;
7121 OTOOL64=$ac_ct_OTOOL64
7124 OTOOL64="$ac_cv_prog_OTOOL64"
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7154 $as_echo_n "checking for -single_module linker flag... " >&6; }
7155 if ${lt_cv_apple_cc_single_mod+:} false; then :
7156 $as_echo_n "(cached) " >&6
7158 lt_cv_apple_cc_single_mod=no
7159 if test -z "${LT_MULTI_MODULE}"; then
7160 # By default we will add the -single_module flag. You can override
7161 # by either setting the environment variable LT_MULTI_MODULE
7162 # non-empty at configure time, or by adding -multi_module to the
7164 rm -rf libconftest.dylib*
7165 echo "int foo(void){return 1;}" > conftest.c
7166 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7167 -dynamiclib -Wl,-single_module conftest.c" >&5
7168 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7169 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7171 # If there is a non-empty error log, and "single_module"
7172 # appears in it, assume the flag caused a linker warning
7173 if test -s conftest.err && $GREP single_module conftest.err; then
7174 cat conftest.err >&5
7175 # Otherwise, if the output was created with a 0 exit code from
7176 # the compiler, it worked.
7177 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7178 lt_cv_apple_cc_single_mod=yes
7180 cat conftest.err >&5
7182 rm -rf libconftest.dylib*
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7187 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7190 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7191 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7192 $as_echo_n "(cached) " >&6
7194 lt_cv_ld_exported_symbols_list=no
7195 save_LDFLAGS=$LDFLAGS
7196 echo "_main" > conftest.sym
7197 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7209 if ac_fn_c_try_link "$LINENO"; then :
7210 lt_cv_ld_exported_symbols_list=yes
7212 lt_cv_ld_exported_symbols_list=no
7214 rm -f core conftest.err conftest.$ac_objext \
7215 conftest$ac_exeext conftest.$ac_ext
7216 LDFLAGS="$save_LDFLAGS"
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7220 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7223 $as_echo_n "checking for -force_load linker flag... " >&6; }
7224 if ${lt_cv_ld_force_load+:} false; then :
7225 $as_echo_n "(cached) " >&6
7227 lt_cv_ld_force_load=no
7228 cat > conftest.c << _LT_EOF
7229 int forced_loaded() { return 2;}
7231 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7232 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7233 echo "$AR cru libconftest.a conftest.o" >&5
7234 $AR cru libconftest.a conftest.o 2>&5
7235 echo "$RANLIB libconftest.a" >&5
7236 $RANLIB libconftest.a 2>&5
7237 cat > conftest.c << _LT_EOF
7238 int main() { return 0;}
7240 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7241 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7243 if test -s conftest.err && $GREP force_load conftest.err; then
7244 cat conftest.err >&5
7245 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7246 lt_cv_ld_force_load=yes
7248 cat conftest.err >&5
7250 rm -f conftest.err libconftest.a conftest conftest.c
7251 rm -rf conftest.dSYM
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7255 $as_echo "$lt_cv_ld_force_load" >&6; }
7257 rhapsody* | darwin1.[012])
7258 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7260 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7261 darwin*) # darwin 5.x on
7262 # if running on 10.5 or later, the deployment target defaults
7263 # to the OS version, if on x86, and 10.4, the deployment
7264 # target defaults to 10.4. Don't you love it?
7265 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7266 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7267 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7269 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7271 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7275 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7276 _lt_dar_single_mod='$single_module'
7278 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7279 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7281 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7283 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7284 _lt_dsymutil='~$DSYMUTIL $lib || :'
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7297 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7298 # On Suns, sometimes $CPP names a directory.
7299 if test -n "$CPP" && test -d "$CPP"; then
7302 if test -z "$CPP"; then
7303 if ${ac_cv_prog_CPP+:} false; then :
7304 $as_echo_n "(cached) " >&6
7306 # Double quotes because CPP needs to be expanded
7307 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7310 for ac_c_preproc_warn_flag in '' yes
7312 # Use a header file that comes with gcc, so configuring glibc
7313 # with a fresh cross-compiler works.
7314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7315 # <limits.h> exists even on freestanding compilers.
7316 # On the NeXT, cc -E runs the code through the compiler's parser,
7317 # not just through cpp. "Syntax error" is here to catch this case.
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7321 # include <limits.h>
7323 # include <assert.h>
7327 if ac_fn_c_try_cpp "$LINENO"; then :
7330 # Broken: fails on valid input.
7333 rm -f conftest.err conftest.i conftest.$ac_ext
7335 # OK, works on sane cases. Now check whether nonexistent headers
7336 # can be detected and how.
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 #include <ac_nonexistent.h>
7341 if ac_fn_c_try_cpp "$LINENO"; then :
7342 # Broken: success on invalid input.
7345 # Passes both tests.
7349 rm -f conftest.err conftest.i conftest.$ac_ext
7352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7353 rm -f conftest.i conftest.err conftest.$ac_ext
7354 if $ac_preproc_ok; then :
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7367 $as_echo "$CPP" >&6; }
7369 for ac_c_preproc_warn_flag in '' yes
7371 # Use a header file that comes with gcc, so configuring glibc
7372 # with a fresh cross-compiler works.
7373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374 # <limits.h> exists even on freestanding compilers.
7375 # On the NeXT, cc -E runs the code through the compiler's parser,
7376 # not just through cpp. "Syntax error" is here to catch this case.
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7380 # include <limits.h>
7382 # include <assert.h>
7386 if ac_fn_c_try_cpp "$LINENO"; then :
7389 # Broken: fails on valid input.
7392 rm -f conftest.err conftest.i conftest.$ac_ext
7394 # OK, works on sane cases. Now check whether nonexistent headers
7395 # can be detected and how.
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 #include <ac_nonexistent.h>
7400 if ac_fn_c_try_cpp "$LINENO"; then :
7401 # Broken: success on invalid input.
7404 # Passes both tests.
7408 rm -f conftest.err conftest.i conftest.$ac_ext
7411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7412 rm -f conftest.i conftest.err conftest.$ac_ext
7413 if $ac_preproc_ok; then :
7416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7418 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7419 See \`config.log' for more details" "$LINENO" 5; }
7423 ac_cpp='$CPP $CPPFLAGS'
7424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7430 $as_echo_n "checking for ANSI C header files... " >&6; }
7431 if ${ac_cv_header_stdc+:} false; then :
7432 $as_echo_n "(cached) " >&6
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7449 if ac_fn_c_try_compile "$LINENO"; then :
7450 ac_cv_header_stdc=yes
7452 ac_cv_header_stdc=no
7454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 if test $ac_cv_header_stdc = yes; then
7457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7464 $EGREP "memchr" >/dev/null 2>&1; then :
7467 ac_cv_header_stdc=no
7473 if test $ac_cv_header_stdc = yes; then
7474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7481 $EGREP "free" >/dev/null 2>&1; then :
7484 ac_cv_header_stdc=no
7490 if test $ac_cv_header_stdc = yes; then
7491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7492 if test "$cross_compiling" = yes; then :
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7499 #if ((' ' & 0x0FF) == 0x020)
7500 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7501 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7503 # define ISLOWER(c) \
7504 (('a' <= (c) && (c) <= 'i') \
7505 || ('j' <= (c) && (c) <= 'r') \
7506 || ('s' <= (c) && (c) <= 'z'))
7507 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7510 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7515 for (i = 0; i < 256; i++)
7516 if (XOR (islower (i), ISLOWER (i))
7517 || toupper (i) != TOUPPER (i))
7522 if ac_fn_c_try_run "$LINENO"; then :
7525 ac_cv_header_stdc=no
7527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7528 conftest.$ac_objext conftest.beam conftest.$ac_ext
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7534 $as_echo "$ac_cv_header_stdc" >&6; }
7535 if test $ac_cv_header_stdc = yes; then
7537 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7542 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7543 inttypes.h stdint.h unistd.h
7545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7546 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7549 cat >>confdefs.h <<_ACEOF
7550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7558 for ac_header in dlfcn.h
7560 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7562 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7563 cat >>confdefs.h <<_ACEOF
7564 #define HAVE_DLFCN_H 1
7585 # Check whether --enable-shared was given.
7586 if test "${enable_shared+set}" = set; then :
7587 enableval=$enable_shared; p=${PACKAGE-default}
7589 yes) enable_shared=yes ;;
7590 no) enable_shared=no ;;
7593 # Look at the argument we got. We use all the common list separators.
7594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7595 for pkg in $enableval; do
7597 if test "X$pkg" = "X$p"; then
7616 # Check whether --enable-static was given.
7617 if test "${enable_static+set}" = set; then :
7618 enableval=$enable_static; p=${PACKAGE-default}
7620 yes) enable_static=yes ;;
7621 no) enable_static=no ;;
7624 # Look at the argument we got. We use all the common list separators.
7625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7626 for pkg in $enableval; do
7628 if test "X$pkg" = "X$p"; then
7648 # Check whether --with-pic was given.
7649 if test "${with_pic+set}" = set; then :
7650 withval=$with_pic; lt_p=${PACKAGE-default}
7652 yes|no) pic_mode=$withval ;;
7655 # Look at the argument we got. We use all the common list separators.
7656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7657 for lt_pkg in $withval; do
7659 if test "X$lt_pkg" = "X$lt_p"; then
7671 test -z "$pic_mode" && pic_mode=default
7679 # Check whether --enable-fast-install was given.
7680 if test "${enable_fast_install+set}" = set; then :
7681 enableval=$enable_fast_install; p=${PACKAGE-default}
7683 yes) enable_fast_install=yes ;;
7684 no) enable_fast_install=no ;;
7686 enable_fast_install=no
7687 # Look at the argument we got. We use all the common list separators.
7688 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7689 for pkg in $enableval; do
7691 if test "X$pkg" = "X$p"; then
7692 enable_fast_install=yes
7699 enable_fast_install=yes
7712 # This can be used to rebuild libtool when needed
7713 LIBTOOL_DEPS="$ltmain"
7715 # Always use our own libtool.
7716 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7747 test -z "$LN_S" && LN_S="ln -s"
7762 if test -n "${ZSH_VERSION+set}" ; then
7763 setopt NO_GLOB_SUBST
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7767 $as_echo_n "checking for objdir... " >&6; }
7768 if ${lt_cv_objdir+:} false; then :
7769 $as_echo_n "(cached) " >&6
7771 rm -f .libs 2>/dev/null
7772 mkdir .libs 2>/dev/null
7773 if test -d .libs; then
7776 # MS-DOS does not allow filenames that begin with a dot.
7779 rmdir .libs 2>/dev/null
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7782 $as_echo "$lt_cv_objdir" >&6; }
7783 objdir=$lt_cv_objdir
7789 cat >>confdefs.h <<_ACEOF
7790 #define LT_OBJDIR "$lt_cv_objdir/"
7798 # AIX sometimes has problems with the GCC collect2 program. For some
7799 # reason, if we set the COLLECT_NAMES environment variable, the problems
7800 # vanish in a puff of smoke.
7801 if test "X${COLLECT_NAMES+set}" != Xset; then
7803 export COLLECT_NAMES
7810 can_build_shared=yes
7812 # All known linkers require a `.a' archive for static linking (except MSVC,
7813 # which needs '.lib').
7816 with_gnu_ld="$lt_cv_prog_gnu_ld"
7819 old_CFLAGS="$CFLAGS"
7821 # Set sane defaults for various variables
7822 test -z "$CC" && CC=cc
7823 test -z "$LTCC" && LTCC=$CC
7824 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7825 test -z "$LD" && LD=ld
7826 test -z "$ac_objext" && ac_objext=o
7828 for cc_temp in $compiler""; do
7830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7836 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7839 # Only perform the check for file, if the check method requires it
7840 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7841 case $deplibs_check_method in
7843 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7845 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7846 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7847 $as_echo_n "(cached) " >&6
7851 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7854 lt_save_MAGIC_CMD="$MAGIC_CMD"
7855 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7856 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7857 for ac_dir in $ac_dummy; do
7859 test -z "$ac_dir" && ac_dir=.
7860 if test -f $ac_dir/${ac_tool_prefix}file; then
7861 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7862 if test -n "$file_magic_test_file"; then
7863 case $deplibs_check_method in
7865 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7867 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7868 $EGREP "$file_magic_regex" > /dev/null; then
7873 *** Warning: the command libtool uses to detect shared libraries,
7874 *** $file_magic_cmd, produces output that libtool cannot recognize.
7875 *** The result is that libtool may fail to recognize shared libraries
7876 *** as such. This will affect the creation of libtool libraries that
7877 *** depend on shared libraries, but programs linked with such libtool
7878 *** libraries will work regardless of this problem. Nevertheless, you
7879 *** may want to report the problem to your system manager and/or to
7880 *** bug-libtool@gnu.org
7890 MAGIC_CMD="$lt_save_MAGIC_CMD"
7895 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7896 if test -n "$MAGIC_CMD"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7898 $as_echo "$MAGIC_CMD" >&6; }
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7908 if test -z "$lt_cv_path_MAGIC_CMD"; then
7909 if test -n "$ac_tool_prefix"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7911 $as_echo_n "checking for file... " >&6; }
7912 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7913 $as_echo_n "(cached) " >&6
7917 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7920 lt_save_MAGIC_CMD="$MAGIC_CMD"
7921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7922 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7923 for ac_dir in $ac_dummy; do
7925 test -z "$ac_dir" && ac_dir=.
7926 if test -f $ac_dir/file; then
7927 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7928 if test -n "$file_magic_test_file"; then
7929 case $deplibs_check_method in
7931 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7933 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7934 $EGREP "$file_magic_regex" > /dev/null; then
7939 *** Warning: the command libtool uses to detect shared libraries,
7940 *** $file_magic_cmd, produces output that libtool cannot recognize.
7941 *** The result is that libtool may fail to recognize shared libraries
7942 *** as such. This will affect the creation of libtool libraries that
7943 *** depend on shared libraries, but programs linked with such libtool
7944 *** libraries will work regardless of this problem. Nevertheless, you
7945 *** may want to report the problem to your system manager and/or to
7946 *** bug-libtool@gnu.org
7956 MAGIC_CMD="$lt_save_MAGIC_CMD"
7961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7962 if test -n "$MAGIC_CMD"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7964 $as_echo "$MAGIC_CMD" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7980 # Use C for the default configuration in the libtool script
7984 ac_cpp='$CPP $CPPFLAGS'
7985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7990 # Source file extension for C test sources.
7993 # Object file extension for compiled C test sources.
7997 # Code to be used in simple compile tests
7998 lt_simple_compile_test_code="int some_variable = 0;"
8000 # Code to be used in simple link tests
8001 lt_simple_link_test_code='int main(){return(0);}'
8009 # If no C compiler was specified, use CC.
8012 # If no C compiler flags were specified, use CFLAGS.
8013 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8015 # Allow CC to be a program name with arguments.
8018 # Save the default compiler, since it gets overwritten when the other
8019 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8020 compiler_DEFAULT=$CC
8022 # save warnings/boilerplate of simple test code
8023 ac_outfile=conftest.$ac_objext
8024 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8026 _lt_compiler_boilerplate=`cat conftest.err`
8029 ac_outfile=conftest.$ac_objext
8030 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8032 _lt_linker_boilerplate=`cat conftest.err`
8036 if test -n "$compiler"; then
8038 lt_prog_compiler_no_builtin_flag=
8040 if test "$GCC" = yes; then
8041 case $cc_basename in
8043 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8045 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8049 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8050 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8051 $as_echo_n "(cached) " >&6
8053 lt_cv_prog_compiler_rtti_exceptions=no
8054 ac_outfile=conftest.$ac_objext
8055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8056 lt_compiler_flag="-fno-rtti -fno-exceptions"
8057 # Insert the option either (1) after the last *FLAGS variable, or
8058 # (2) before a word containing "conftest.", or (3) at the end.
8059 # Note that $ac_compile itself does not contain backslashes and begins
8060 # with a dollar sign (not a hyphen), so the echo should work correctly.
8061 # The option is referenced via a variable to avoid confusing sed.
8062 lt_compile=`echo "$ac_compile" | $SED \
8063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8065 -e 's:$: $lt_compiler_flag:'`
8066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8067 (eval "$lt_compile" 2>conftest.err)
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 if (exit $ac_status) && test -s "$ac_outfile"; then
8072 # The compiler can only warn and ignore the option if not recognized
8073 # So say no if there are warnings other than the usual output.
8074 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8077 lt_cv_prog_compiler_rtti_exceptions=yes
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8084 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8086 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8087 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8099 lt_prog_compiler_wl=
8100 lt_prog_compiler_pic=
8101 lt_prog_compiler_static=
8104 if test "$GCC" = yes; then
8105 lt_prog_compiler_wl='-Wl,'
8106 lt_prog_compiler_static='-static'
8110 # All AIX code is PIC.
8111 if test "$host_cpu" = ia64; then
8112 # AIX 5 now supports IA64 processor
8113 lt_prog_compiler_static='-Bstatic'
8120 # see comment about AmigaOS4 .so support
8121 lt_prog_compiler_pic='-fPIC'
8124 # FIXME: we need at least 68020 code to build shared libraries, but
8125 # adding the `-m68020' flag to GCC prevents building anything better,
8127 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8132 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8133 # PIC is the default for these OSes.
8136 mingw* | cygwin* | pw32* | os2* | cegcc*)
8137 # This hack is so that the source file can tell whether it is being
8138 # built for inclusion in a dll (and should export symbols for example).
8139 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8140 # (--disable-auto-import) libraries
8141 lt_prog_compiler_pic='-DDLL_EXPORT'
8144 darwin* | rhapsody*)
8145 # PIC is the default on this platform
8146 # Common symbols not allowed in MH_DYLIB files
8147 lt_prog_compiler_pic='-fno-common'
8151 # PIC is the default for Haiku.
8152 # The "-static" flag exists, but is broken.
8153 lt_prog_compiler_static=
8157 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8158 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8159 # sets the default TLS model and affects inlining.
8165 lt_prog_compiler_pic='-fPIC'
8171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8172 # Instead, we relocate shared libraries at runtime.
8176 # Just because we use GCC doesn't mean we suddenly get shared libraries
8177 # on systems that don't support them.
8178 lt_prog_compiler_can_build_shared=no
8183 # QNX uses GNU C++, but need to define -shared option too, otherwise
8185 lt_prog_compiler_pic='-fPIC -shared'
8189 if test -d /usr/nec; then
8190 lt_prog_compiler_pic=-Kconform_pic
8195 lt_prog_compiler_pic='-fPIC'
8199 case $cc_basename in
8200 nvcc*) # Cuda Compiler Driver 2.2
8201 lt_prog_compiler_wl='-Xlinker '
8202 if test -n "$lt_prog_compiler_pic"; then
8203 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8208 # PORTME Check for flag to pass linker flags through the system compiler.
8211 lt_prog_compiler_wl='-Wl,'
8212 if test "$host_cpu" = ia64; then
8213 # AIX 5 now supports IA64 processor
8214 lt_prog_compiler_static='-Bstatic'
8216 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8220 mingw* | cygwin* | pw32* | os2* | cegcc*)
8221 # This hack is so that the source file can tell whether it is being
8222 # built for inclusion in a dll (and should export symbols for example).
8223 lt_prog_compiler_pic='-DDLL_EXPORT'
8226 hpux9* | hpux10* | hpux11*)
8227 lt_prog_compiler_wl='-Wl,'
8228 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8235 lt_prog_compiler_pic='+Z'
8238 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8239 lt_prog_compiler_static='${wl}-a ${wl}archive'
8242 irix5* | irix6* | nonstopux*)
8243 lt_prog_compiler_wl='-Wl,'
8244 # PIC (with -KPIC) is the default.
8245 lt_prog_compiler_static='-non_shared'
8248 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8249 case $cc_basename in
8250 # old Intel for x86_64 which still supported -KPIC.
8252 lt_prog_compiler_wl='-Wl,'
8253 lt_prog_compiler_pic='-KPIC'
8254 lt_prog_compiler_static='-static'
8256 # icc used to be incompatible with GCC.
8257 # ICC 10 doesn't accept -KPIC any more.
8259 lt_prog_compiler_wl='-Wl,'
8260 lt_prog_compiler_pic='-fPIC'
8261 lt_prog_compiler_static='-static'
8263 # Lahey Fortran 8.1.
8265 lt_prog_compiler_wl='-Wl,'
8266 lt_prog_compiler_pic='--shared'
8267 lt_prog_compiler_static='--static'
8270 # NAG Fortran compiler
8271 lt_prog_compiler_wl='-Wl,-Wl,,'
8272 lt_prog_compiler_pic='-PIC'
8273 lt_prog_compiler_static='-Bstatic'
8275 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8276 # Portland Group compilers (*not* the Pentium gcc compiler,
8277 # which looks to be a dead project)
8278 lt_prog_compiler_wl='-Wl,'
8279 lt_prog_compiler_pic='-fpic'
8280 lt_prog_compiler_static='-Bstatic'
8283 lt_prog_compiler_wl='-Wl,'
8284 # All Alpha code is PIC.
8285 lt_prog_compiler_static='-non_shared'
8287 xl* | bgxl* | bgf* | mpixl*)
8288 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8289 lt_prog_compiler_wl='-Wl,'
8290 lt_prog_compiler_pic='-qpic'
8291 lt_prog_compiler_static='-qstaticlink'
8294 case `$CC -V 2>&1 | sed 5q` in
8295 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8296 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8297 lt_prog_compiler_pic='-KPIC'
8298 lt_prog_compiler_static='-Bstatic'
8299 lt_prog_compiler_wl=''
8301 *Sun\ F* | *Sun*Fortran*)
8302 lt_prog_compiler_pic='-KPIC'
8303 lt_prog_compiler_static='-Bstatic'
8304 lt_prog_compiler_wl='-Qoption ld '
8308 lt_prog_compiler_pic='-KPIC'
8309 lt_prog_compiler_static='-Bstatic'
8310 lt_prog_compiler_wl='-Wl,'
8312 *Intel*\ [CF]*Compiler*)
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-fPIC'
8315 lt_prog_compiler_static='-static'
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_pic='-fpic'
8320 lt_prog_compiler_static='-Bstatic'
8328 lt_prog_compiler_pic='-KPIC'
8329 lt_prog_compiler_static='-Bstatic'
8333 # QNX uses GNU C++, but need to define -shared option too, otherwise
8335 lt_prog_compiler_pic='-fPIC -shared'
8338 osf3* | osf4* | osf5*)
8339 lt_prog_compiler_wl='-Wl,'
8340 # All OSF/1 code is PIC.
8341 lt_prog_compiler_static='-non_shared'
8345 lt_prog_compiler_static='-non_shared'
8349 lt_prog_compiler_pic='-KPIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 case $cc_basename in
8352 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8353 lt_prog_compiler_wl='-Qoption ld ';;
8355 lt_prog_compiler_wl='-Wl,';;
8360 lt_prog_compiler_wl='-Qoption ld '
8361 lt_prog_compiler_pic='-PIC'
8362 lt_prog_compiler_static='-Bstatic'
8365 sysv4 | sysv4.2uw2* | sysv4.3*)
8366 lt_prog_compiler_wl='-Wl,'
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-Bstatic'
8372 if test -d /usr/nec ;then
8373 lt_prog_compiler_pic='-Kconform_pic'
8374 lt_prog_compiler_static='-Bstatic'
8378 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8379 lt_prog_compiler_wl='-Wl,'
8380 lt_prog_compiler_pic='-KPIC'
8381 lt_prog_compiler_static='-Bstatic'
8385 lt_prog_compiler_wl='-Wl,'
8386 lt_prog_compiler_can_build_shared=no
8390 lt_prog_compiler_pic='-pic'
8391 lt_prog_compiler_static='-Bstatic'
8395 lt_prog_compiler_can_build_shared=no
8401 # For platforms which do not support PIC, -DPIC is meaningless:
8403 lt_prog_compiler_pic=
8406 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8411 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8412 if ${lt_cv_prog_compiler_pic+:} false; then :
8413 $as_echo_n "(cached) " >&6
8415 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8418 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8419 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8422 # Check to make sure the PIC flag actually works.
8424 if test -n "$lt_prog_compiler_pic"; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8426 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8427 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8428 $as_echo_n "(cached) " >&6
8430 lt_cv_prog_compiler_pic_works=no
8431 ac_outfile=conftest.$ac_objext
8432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8433 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8434 # Insert the option either (1) after the last *FLAGS variable, or
8435 # (2) before a word containing "conftest.", or (3) at the end.
8436 # Note that $ac_compile itself does not contain backslashes and begins
8437 # with a dollar sign (not a hyphen), so the echo should work correctly.
8438 # The option is referenced via a variable to avoid confusing sed.
8439 lt_compile=`echo "$ac_compile" | $SED \
8440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8442 -e 's:$: $lt_compiler_flag:'`
8443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8444 (eval "$lt_compile" 2>conftest.err)
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 if (exit $ac_status) && test -s "$ac_outfile"; then
8449 # The compiler can only warn and ignore the option if not recognized
8450 # So say no if there are warnings other than the usual output.
8451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8453 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8454 lt_cv_prog_compiler_pic_works=yes
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8461 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8463 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8464 case $lt_prog_compiler_pic in
8466 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8469 lt_prog_compiler_pic=
8470 lt_prog_compiler_can_build_shared=no
8486 # Check to make sure the static flag actually works.
8488 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8490 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8491 if ${lt_cv_prog_compiler_static_works+:} false; then :
8492 $as_echo_n "(cached) " >&6
8494 lt_cv_prog_compiler_static_works=no
8495 save_LDFLAGS="$LDFLAGS"
8496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8497 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8499 # The linker can only warn and ignore the option if not recognized
8500 # So say no if there are warnings
8501 if test -s conftest.err; then
8502 # Append any errors to the config.log.
8503 cat conftest.err 1>&5
8504 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8506 if diff conftest.exp conftest.er2 >/dev/null; then
8507 lt_cv_prog_compiler_static_works=yes
8510 lt_cv_prog_compiler_static_works=yes
8514 LDFLAGS="$save_LDFLAGS"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8518 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8520 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8523 lt_prog_compiler_static=
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8533 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8534 if ${lt_cv_prog_compiler_c_o+:} false; then :
8535 $as_echo_n "(cached) " >&6
8537 lt_cv_prog_compiler_c_o=no
8538 $RM -r conftest 2>/dev/null
8542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8544 lt_compiler_flag="-o out/conftest2.$ac_objext"
8545 # Insert the option either (1) after the last *FLAGS variable, or
8546 # (2) before a word containing "conftest.", or (3) at the end.
8547 # Note that $ac_compile itself does not contain backslashes and begins
8548 # with a dollar sign (not a hyphen), so the echo should work correctly.
8549 lt_compile=`echo "$ac_compile" | $SED \
8550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8552 -e 's:$: $lt_compiler_flag:'`
8553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8554 (eval "$lt_compile" 2>out/conftest.err)
8556 cat out/conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8560 # The compiler can only warn and ignore the option if not recognized
8561 # So say no if there are warnings
8562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8565 lt_cv_prog_compiler_c_o=yes
8570 # SGI C++ compiler will create directory out/ii_files/ for
8571 # template instantiation
8572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8573 $RM out/* && rmdir out
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8580 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8589 if ${lt_cv_prog_compiler_c_o+:} false; then :
8590 $as_echo_n "(cached) " >&6
8592 lt_cv_prog_compiler_c_o=no
8593 $RM -r conftest 2>/dev/null
8597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8599 lt_compiler_flag="-o out/conftest2.$ac_objext"
8600 # Insert the option either (1) after the last *FLAGS variable, or
8601 # (2) before a word containing "conftest.", or (3) at the end.
8602 # Note that $ac_compile itself does not contain backslashes and begins
8603 # with a dollar sign (not a hyphen), so the echo should work correctly.
8604 lt_compile=`echo "$ac_compile" | $SED \
8605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8607 -e 's:$: $lt_compiler_flag:'`
8608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8609 (eval "$lt_compile" 2>out/conftest.err)
8611 cat out/conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8615 # The compiler can only warn and ignore the option if not recognized
8616 # So say no if there are warnings
8617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8620 lt_cv_prog_compiler_c_o=yes
8625 # SGI C++ compiler will create directory out/ii_files/ for
8626 # template instantiation
8627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8628 $RM out/* && rmdir out
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8640 hard_links="nottested"
8641 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8642 # do not overwrite the value of need_locks provided by the user
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8644 $as_echo_n "checking if we can lock with hard links... " >&6; }
8647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8649 ln conftest.a conftest.b 2>&5 || hard_links=no
8650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8652 $as_echo "$hard_links" >&6; }
8653 if test "$hard_links" = no; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8668 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8671 allow_undefined_flag=
8672 always_export_symbols=no
8674 archive_expsym_cmds=
8675 compiler_needs_object=no
8676 enable_shared_with_static_runtimes=no
8677 export_dynamic_flag_spec=
8678 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8679 hardcode_automatic=no
8681 hardcode_direct_absolute=no
8682 hardcode_libdir_flag_spec=
8683 hardcode_libdir_separator=
8685 hardcode_shlibpath_var=unsupported
8687 link_all_deplibs=unknown
8690 old_archive_from_new_cmds=
8691 old_archive_from_expsyms_cmds=
8692 thread_safe_flag_spec=
8693 whole_archive_flag_spec=
8694 # include_expsyms should be a list of space-separated symbols to be *always*
8695 # included in the symbol list
8697 # exclude_expsyms can be an extended regexp of symbols to exclude
8698 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8699 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8700 # as well as any symbol that contains `d'.
8701 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8702 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8703 # platforms (ab)use it in PIC code, but their linkers get confused if
8704 # the symbol is explicitly referenced. Since portable code cannot
8705 # rely on this symbol name, it's probably fine to never include it in
8706 # preloaded symbol tables.
8707 # Exclude shared library initialization/finalization symbols.
8708 extract_expsyms_cmds=
8711 cygwin* | mingw* | pw32* | cegcc*)
8712 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8713 # When not using gcc, we currently assume that we are using
8714 # Microsoft Visual C++.
8715 if test "$GCC" != yes; then
8720 # we just hope/assume this is gcc and not c89 (= MSVC++)
8730 # On some targets, GNU ld is compatible enough with the native linker
8731 # that we're better off using the native interface for both.
8732 lt_use_gnu_ld_interface=no
8733 if test "$with_gnu_ld" = yes; then
8736 # The AIX port of GNU ld has always aspired to compatibility
8737 # with the native linker. However, as the warning in the GNU ld
8738 # block says, versions before 2.19.5* couldn't really create working
8739 # shared libraries, regardless of the interface used.
8740 case `$LD -v 2>&1` in
8741 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8742 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8743 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8745 lt_use_gnu_ld_interface=yes
8750 lt_use_gnu_ld_interface=yes
8755 if test "$lt_use_gnu_ld_interface" = yes; then
8756 # If archive_cmds runs LD, not CC, wlarc should be empty
8759 # Set some defaults for GNU ld with shared library support. These
8760 # are reset later if shared libraries are not supported. Putting them
8761 # here allows them to be overridden if necessary.
8762 runpath_var=LD_RUN_PATH
8763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8764 export_dynamic_flag_spec='${wl}--export-dynamic'
8765 # ancient GNU ld didn't support --whole-archive et. al.
8766 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8767 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8769 whole_archive_flag_spec=
8771 supports_anon_versioning=no
8772 case `$LD -v 2>&1` in
8773 *GNU\ gold*) supports_anon_versioning=yes ;;
8774 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8775 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8776 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8777 *\ 2.11.*) ;; # other 2.11 versions
8778 *) supports_anon_versioning=yes ;;
8781 # See if GNU ld supports shared libraries.
8784 # On AIX/PPC, the GNU linker is very broken
8785 if test "$host_cpu" != ia64; then
8789 *** Warning: the GNU linker, at least up to release 2.19, is reported
8790 *** to be unable to reliably create shared libraries on AIX.
8791 *** Therefore, libtool is disabling shared libraries support. If you
8792 *** really care for shared libraries, you may want to install binutils
8793 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8794 *** You will then need to restart the configuration process.
8803 # see comment about AmigaOS4 .so support
8804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8805 archive_expsym_cmds=''
8808 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)'
8809 hardcode_libdir_flag_spec='-L$libdir'
8810 hardcode_minus_L=yes
8816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8817 allow_undefined_flag=unsupported
8818 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8819 # support --undefined. This deserves some investigation. FIXME
8820 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8826 cygwin* | mingw* | pw32* | cegcc*)
8827 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8828 # as there is no search path for DLLs.
8829 hardcode_libdir_flag_spec='-L$libdir'
8830 export_dynamic_flag_spec='${wl}--export-all-symbols'
8831 allow_undefined_flag=unsupported
8832 always_export_symbols=no
8833 enable_shared_with_static_runtimes=yes
8834 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'
8835 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8837 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8839 # If the export-symbols file already is a .def file (1st line
8840 # is EXPORTS), use it as is; otherwise, prepend...
8841 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8842 cp $export_symbols $output_objdir/$soname.def;
8844 echo EXPORTS > $output_objdir/$soname.def;
8845 cat $export_symbols >> $output_objdir/$soname.def;
8847 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855 link_all_deplibs=yes
8860 hardcode_shlibpath_var=no
8861 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8862 export_dynamic_flag_spec='${wl}-E'
8863 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8864 # Instead, shared libraries are loaded at an image base (0x10000000 by
8865 # default) and relocated if they conflict, which is a slow very memory
8866 # consuming and fragmenting process. To avoid this, we pick a random,
8867 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8868 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8869 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8870 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'
8873 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8875 if test "$host_os" = linux-dietlibc; then
8876 case $cc_basename in
8877 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8880 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8881 && test "$tmp_diet" = no
8883 tmp_addflag=' $pic_flag'
8884 tmp_sharedflag='-shared'
8885 case $cc_basename,$host_cpu in
8886 pgcc*) # Portland Group C compiler
8887 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'
8888 tmp_addflag=' $pic_flag'
8890 pgf77* | pgf90* | pgf95* | pgfortran*)
8891 # Portland Group f77 and f90 compilers
8892 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'
8893 tmp_addflag=' $pic_flag -Mnomain' ;;
8894 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8895 tmp_addflag=' -i_dynamic' ;;
8896 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8897 tmp_addflag=' -i_dynamic -nofor_main' ;;
8898 ifc* | ifort*) # Intel Fortran compiler
8899 tmp_addflag=' -nofor_main' ;;
8900 lf95*) # Lahey Fortran 8.1
8901 whole_archive_flag_spec=
8902 tmp_sharedflag='--shared' ;;
8903 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8904 tmp_sharedflag='-qmkshrobj'
8906 nvcc*) # Cuda Compiler Driver 2.2
8907 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'
8908 compiler_needs_object=yes
8911 case `$CC -V 2>&1 | sed 5q` in
8912 *Sun\ C*) # Sun C 5.9
8913 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'
8914 compiler_needs_object=yes
8915 tmp_sharedflag='-G' ;;
8916 *Sun\ F*) # Sun Fortran 8.3
8917 tmp_sharedflag='-G' ;;
8919 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 if test "x$supports_anon_versioning" = xyes; then
8922 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8923 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8924 echo "local: *; };" >> $output_objdir/$libname.ver~
8925 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8928 case $cc_basename in
8929 xlf* | bgf* | bgxlf* | mpixlf*)
8930 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8931 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8933 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8934 if test "x$supports_anon_versioning" = xyes; then
8935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8937 echo "local: *; };" >> $output_objdir/$libname.ver~
8938 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8949 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8952 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8958 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8962 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8963 *** create shared libraries on Solaris systems. Therefore, libtool
8964 *** is disabling shared libraries support. We urge you to upgrade GNU
8965 *** binutils to release 2.9.1 or newer. Another option is to modify
8966 *** your PATH or compiler configuration so that the native linker is
8967 *** used, and then restart.
8970 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8979 case `$LD -v 2>&1` in
8980 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8984 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8985 *** reliably create shared libraries on SCO systems. Therefore, libtool
8986 *** is disabling shared libraries support. We urge you to upgrade GNU
8987 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8988 *** your PATH or compiler configuration so that the native linker is
8989 *** used, and then restart.
8994 # For security reasons, it is highly recommended that you always
8995 # use absolute paths for naming shared libraries, and exclude the
8996 # DT_RUNPATH tag from executables and libraries. But doing so
8997 # requires that you compile everything twice, which is a pain.
8998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_shlibpath_var=no
9017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9026 if test "$ld_shlibs" = no; then
9028 hardcode_libdir_flag_spec=
9029 export_dynamic_flag_spec=
9030 whole_archive_flag_spec=
9033 # PORTME fill in a description of your system's linker (not GNU ld)
9036 allow_undefined_flag=unsupported
9037 always_export_symbols=yes
9038 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'
9039 # Note: this linker hardcodes the directories in LIBPATH if there
9040 # are no directories specified by -L.
9041 hardcode_minus_L=yes
9042 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9043 # Neither direct hardcoding nor static linking is supported with a
9045 hardcode_direct=unsupported
9050 if test "$host_cpu" = ia64; then
9051 # On IA64, the linker does run time linking by default, so we don't
9052 # have to do anything special.
9053 aix_use_runtimelinking=no
9054 exp_sym_flag='-Bexport'
9057 # If we're using GNU nm, then we don't want the "-C" option.
9058 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9059 # Also, AIX nm treats weak defined symbols like other global
9060 # defined symbols, whereas GNU nm marks them as "W".
9061 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9062 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9064 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9066 aix_use_runtimelinking=no
9068 # Test if we are trying to use run time linking or normal
9069 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9070 # need to do runtime linking.
9071 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9072 for ld_flag in $LDFLAGS; do
9073 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9074 aix_use_runtimelinking=yes
9081 exp_sym_flag='-bexport'
9082 no_entry_flag='-bnoentry'
9085 # When large executables or shared objects are built, AIX ld can
9086 # have problems creating the table of contents. If linking a library
9087 # or program results in "error TOC overflow" add -mminimal-toc to
9088 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9089 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9093 hardcode_direct_absolute=yes
9094 hardcode_libdir_separator=':'
9095 link_all_deplibs=yes
9096 file_list_spec='${wl}-f,'
9098 if test "$GCC" = yes; then
9099 case $host_os in aix4.[012]|aix4.[012].*)
9100 # We only want to do this on AIX 4.2 and lower, the check
9101 # below for broken collect2 doesn't work under 4.3+
9102 collect2name=`${CC} -print-prog-name=collect2`
9103 if test -f "$collect2name" &&
9104 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9106 # We have reworked collect2
9109 # We have old collect2
9110 hardcode_direct=unsupported
9111 # It fails to find uninstalled libraries when the uninstalled
9112 # path is not listed in the libpath. Setting hardcode_minus_L
9113 # to unsupported forces relinking
9114 hardcode_minus_L=yes
9115 hardcode_libdir_flag_spec='-L$libdir'
9116 hardcode_libdir_separator=
9120 shared_flag='-shared'
9121 if test "$aix_use_runtimelinking" = yes; then
9122 shared_flag="$shared_flag "'${wl}-G'
9126 if test "$host_cpu" = ia64; then
9127 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9128 # chokes on -Wl,-G. The following line is correct:
9131 if test "$aix_use_runtimelinking" = yes; then
9132 shared_flag='${wl}-G'
9134 shared_flag='${wl}-bM:SRE'
9139 export_dynamic_flag_spec='${wl}-bexpall'
9140 # It seems that -bexpall does not export symbols beginning with
9141 # underscore (_), so it is better to generate a list of symbols to export.
9142 always_export_symbols=yes
9143 if test "$aix_use_runtimelinking" = yes; then
9144 # Warning - without using the other runtime loading flags (-brtl),
9145 # -berok will link without error, but may produce a broken library.
9146 allow_undefined_flag='-berok'
9147 # Determine the default libpath from the value encoded in an
9149 if test "${lt_cv_aix_libpath+set}" = set; then
9150 aix_libpath=$lt_cv_aix_libpath
9152 if ${lt_cv_aix_libpath_+:} false; then :
9153 $as_echo_n "(cached) " >&6
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9166 if ac_fn_c_try_link "$LINENO"; then :
9168 lt_aix_libpath_sed='
9169 /Import File Strings/,/^$/ {
9171 s/^0 *\([^ ]*\) *$/\1/
9175 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9176 # Check for a 64-bit object if we didn't find anything.
9177 if test -z "$lt_cv_aix_libpath_"; then
9178 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181 rm -f core conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext conftest.$ac_ext
9183 if test -z "$lt_cv_aix_libpath_"; then
9184 lt_cv_aix_libpath_="/usr/lib:/lib"
9189 aix_libpath=$lt_cv_aix_libpath_
9192 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9193 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9195 if test "$host_cpu" = ia64; then
9196 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9197 allow_undefined_flag="-z nodefs"
9198 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"
9200 # Determine the default libpath from the value encoded in an
9202 if test "${lt_cv_aix_libpath+set}" = set; then
9203 aix_libpath=$lt_cv_aix_libpath
9205 if ${lt_cv_aix_libpath_+:} false; then :
9206 $as_echo_n "(cached) " >&6
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9219 if ac_fn_c_try_link "$LINENO"; then :
9221 lt_aix_libpath_sed='
9222 /Import File Strings/,/^$/ {
9224 s/^0 *\([^ ]*\) *$/\1/
9228 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229 # Check for a 64-bit object if we didn't find anything.
9230 if test -z "$lt_cv_aix_libpath_"; then
9231 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9234 rm -f core conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236 if test -z "$lt_cv_aix_libpath_"; then
9237 lt_cv_aix_libpath_="/usr/lib:/lib"
9242 aix_libpath=$lt_cv_aix_libpath_
9245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9246 # Warning - without using the other run time loading flags,
9247 # -berok will link without error, but may produce a broken library.
9248 no_undefined_flag=' ${wl}-bernotok'
9249 allow_undefined_flag=' ${wl}-berok'
9250 if test "$with_gnu_ld" = yes; then
9251 # We only use this code for GNU lds that support --whole-archive.
9252 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9254 # Exported symbols can be pulled into shared objects from archives
9255 whole_archive_flag_spec='$convenience'
9257 archive_cmds_need_lc=yes
9258 # This is similar to how AIX traditionally builds its shared libraries.
9259 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9267 # see comment about AmigaOS4 .so support
9268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269 archive_expsym_cmds=''
9272 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)'
9273 hardcode_libdir_flag_spec='-L$libdir'
9274 hardcode_minus_L=yes
9280 export_dynamic_flag_spec=-rdynamic
9283 cygwin* | mingw* | pw32* | cegcc*)
9284 # When not using gcc, we currently assume that we are using
9285 # Microsoft Visual C++.
9286 # hardcode_libdir_flag_spec is actually meaningless, as there is
9287 # no search path for DLLs.
9288 case $cc_basename in
9291 hardcode_libdir_flag_spec=' '
9292 allow_undefined_flag=unsupported
9293 always_export_symbols=yes
9295 # Tell ltmain to make .lib files, not .a files.
9297 # Tell ltmain to make .dll files, not .so files.
9299 # FIXME: Setting linknames here is a bad hack.
9300 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9301 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9302 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9304 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9306 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9308 # The linker will not automatically build a static lib if we build a DLL.
9309 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9310 enable_shared_with_static_runtimes=yes
9311 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9312 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9314 old_postinstall_cmds='chmod 644 $oldlib'
9315 postlink_cmds='lt_outputfile="@OUTPUT@"~
9316 lt_tool_outputfile="@TOOL_OUTPUT@"~
9317 case $lt_outputfile in
9320 lt_outputfile="$lt_outputfile.exe"
9321 lt_tool_outputfile="$lt_tool_outputfile.exe"
9324 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9325 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9326 $RM "$lt_outputfile.manifest";
9330 # Assume MSVC wrapper
9331 hardcode_libdir_flag_spec=' '
9332 allow_undefined_flag=unsupported
9333 # Tell ltmain to make .lib files, not .a files.
9335 # Tell ltmain to make .dll files, not .so files.
9337 # FIXME: Setting linknames here is a bad hack.
9338 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9339 # The linker will automatically build a .lib file if we build a DLL.
9340 old_archive_from_new_cmds='true'
9341 # FIXME: Should let the user specify the lib program.
9342 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9343 enable_shared_with_static_runtimes=yes
9348 darwin* | rhapsody*)
9351 archive_cmds_need_lc=no
9353 hardcode_automatic=yes
9354 hardcode_shlibpath_var=unsupported
9355 if test "$lt_cv_ld_force_load" = "yes"; then
9356 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\"`'
9359 whole_archive_flag_spec=''
9361 link_all_deplibs=yes
9362 allow_undefined_flag="$_lt_dar_allow_undefined"
9363 case $cc_basename in
9364 ifort*) _lt_dar_can_shared=yes ;;
9365 *) _lt_dar_can_shared=$GCC ;;
9367 if test "$_lt_dar_can_shared" = "yes"; then
9368 output_verbose_link_cmd=func_echo_all
9369 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9370 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9371 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}"
9372 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}"
9381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_libdir_flag_spec='-L$libdir'
9383 hardcode_shlibpath_var=no
9386 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9387 # support. Future versions do this automatically, but an explicit c++rt0.o
9388 # does not break anything, and helps significantly (at the cost of a little
9391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9392 hardcode_libdir_flag_spec='-R$libdir'
9394 hardcode_shlibpath_var=no
9397 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_minus_L=yes
9402 hardcode_shlibpath_var=no
9405 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9406 freebsd* | dragonfly*)
9407 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9408 hardcode_libdir_flag_spec='-R$libdir'
9410 hardcode_shlibpath_var=no
9414 if test "$GCC" = yes; then
9415 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9417 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9420 hardcode_libdir_separator=:
9423 # hardcode_minus_L: Not really in the search PATH,
9424 # but as the default location of the library.
9425 hardcode_minus_L=yes
9426 export_dynamic_flag_spec='${wl}-E'
9430 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9431 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9435 if test "$with_gnu_ld" = no; then
9436 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9437 hardcode_libdir_separator=:
9439 hardcode_direct_absolute=yes
9440 export_dynamic_flag_spec='${wl}-E'
9441 # hardcode_minus_L: Not really in the search PATH,
9442 # but as the default location of the library.
9443 hardcode_minus_L=yes
9448 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9451 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9457 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9463 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9470 # Older versions of the 11.00 compiler do not understand -b yet
9471 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9473 $as_echo_n "checking if $CC understands -b... " >&6; }
9474 if ${lt_cv_prog_compiler__b+:} false; then :
9475 $as_echo_n "(cached) " >&6
9477 lt_cv_prog_compiler__b=no
9478 save_LDFLAGS="$LDFLAGS"
9479 LDFLAGS="$LDFLAGS -b"
9480 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9482 # The linker can only warn and ignore the option if not recognized
9483 # So say no if there are warnings
9484 if test -s conftest.err; then
9485 # Append any errors to the config.log.
9486 cat conftest.err 1>&5
9487 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9489 if diff conftest.exp conftest.er2 >/dev/null; then
9490 lt_cv_prog_compiler__b=yes
9493 lt_cv_prog_compiler__b=yes
9497 LDFLAGS="$save_LDFLAGS"
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9501 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9503 if test x"$lt_cv_prog_compiler__b" = xyes; then
9504 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9506 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9512 if test "$with_gnu_ld" = no; then
9513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514 hardcode_libdir_separator=:
9519 hardcode_shlibpath_var=no
9523 hardcode_direct_absolute=yes
9524 export_dynamic_flag_spec='${wl}-E'
9526 # hardcode_minus_L: Not really in the search PATH,
9527 # but as the default location of the library.
9528 hardcode_minus_L=yes
9534 irix5* | irix6* | nonstopux*)
9535 if test "$GCC" = yes; then
9536 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'
9537 # Try to use the -exported_symbol ld option, if it does not
9538 # work, assume that -exports_file does not work either and
9539 # implicitly export all symbols.
9540 # This should be the same for all languages, so no per-tag cache variable.
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9542 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9543 if ${lt_cv_irix_exported_symbol+:} false; then :
9544 $as_echo_n "(cached) " >&6
9546 save_LDFLAGS="$LDFLAGS"
9547 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 int foo (void) { return 0; }
9552 if ac_fn_c_try_link "$LINENO"; then :
9553 lt_cv_irix_exported_symbol=yes
9555 lt_cv_irix_exported_symbol=no
9557 rm -f core conftest.err conftest.$ac_objext \
9558 conftest$ac_exeext conftest.$ac_ext
9559 LDFLAGS="$save_LDFLAGS"
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9562 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9563 if test "$lt_cv_irix_exported_symbol" = yes; then
9564 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'
9567 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'
9568 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'
9570 archive_cmds_need_lc='no'
9571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572 hardcode_libdir_separator=:
9574 link_all_deplibs=yes
9578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9581 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9583 hardcode_libdir_flag_spec='-R$libdir'
9585 hardcode_shlibpath_var=no
9589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9592 hardcode_libdir_separator=:
9593 hardcode_shlibpath_var=no
9600 if test -f /usr/libexec/ld.so; then
9602 hardcode_shlibpath_var=no
9603 hardcode_direct_absolute=yes
9604 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9605 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9606 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9607 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9608 export_dynamic_flag_spec='${wl}-E'
9611 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9613 hardcode_libdir_flag_spec='-R$libdir'
9616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 hardcode_minus_L=yes
9629 allow_undefined_flag=unsupported
9630 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9631 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9635 if test "$GCC" = yes; then
9636 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9637 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'
9639 allow_undefined_flag=' -expect_unresolved \*'
9640 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'
9642 archive_cmds_need_lc='no'
9643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9644 hardcode_libdir_separator=:
9647 osf4* | osf5*) # as osf3* with the addition of -msym flag
9648 if test "$GCC" = yes; then
9649 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9650 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'
9651 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653 allow_undefined_flag=' -expect_unresolved \*'
9654 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'
9655 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~
9656 $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'
9658 # Both c and cxx compiler support -rpath directly
9659 hardcode_libdir_flag_spec='-rpath $libdir'
9661 archive_cmds_need_lc='no'
9662 hardcode_libdir_separator=:
9666 no_undefined_flag=' -z defs'
9667 if test "$GCC" = yes; then
9669 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9670 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9671 $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'
9673 case `$CC -V 2>&1` in
9676 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9678 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9682 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9683 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9684 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9688 hardcode_libdir_flag_spec='-R$libdir'
9689 hardcode_shlibpath_var=no
9691 solaris2.[0-5] | solaris2.[0-5].*) ;;
9693 # The compiler driver will combine and reorder linker options,
9694 # but understands `-z linker_flag'. GCC discards it without `$wl',
9695 # but is careful enough not to reorder.
9696 # Supported since Solaris 2.6 (maybe 2.5.1?)
9697 if test "$GCC" = yes; then
9698 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9700 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9704 link_all_deplibs=yes
9708 if test "x$host_vendor" = xsequent; then
9709 # Use $CC to link under sequent, because it throws in some extra .o
9710 # files that make .init and .fini sections work.
9711 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_libdir_flag_spec='-L$libdir'
9717 hardcode_minus_L=yes
9718 hardcode_shlibpath_var=no
9722 case $host_vendor in
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_direct=yes # is this really true???
9728 ## LD is ld it makes a PLAMLIB
9729 ## CC just makes a GrossModule.
9730 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9731 reload_cmds='$CC -r -o $output$reload_objs'
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9739 runpath_var='LD_RUN_PATH'
9740 hardcode_shlibpath_var=no
9744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9745 hardcode_shlibpath_var=no
9746 export_dynamic_flag_spec='-Bexport'
9750 if test -d /usr/nec; then
9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_shlibpath_var=no
9753 runpath_var=LD_RUN_PATH
9754 hardcode_runpath_var=yes
9759 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9760 no_undefined_flag='${wl}-z,text'
9761 archive_cmds_need_lc=no
9762 hardcode_shlibpath_var=no
9763 runpath_var='LD_RUN_PATH'
9765 if test "$GCC" = yes; then
9766 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 sysv5* | sco3.2v5* | sco5v6*)
9775 # Note: We can NOT use -z defs as we might desire, because we do not
9776 # link with -lc, and that would cause any symbols used from libc to
9777 # always be unresolved, which means just about no library would
9778 # ever link correctly. If we're not using GNU ld we use -z text
9779 # though, which does catch some bad symbols but isn't as heavy-handed
9781 no_undefined_flag='${wl}-z,text'
9782 allow_undefined_flag='${wl}-z,nodefs'
9783 archive_cmds_need_lc=no
9784 hardcode_shlibpath_var=no
9785 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9786 hardcode_libdir_separator=':'
9787 link_all_deplibs=yes
9788 export_dynamic_flag_spec='${wl}-Bexport'
9789 runpath_var='LD_RUN_PATH'
9791 if test "$GCC" = yes; then
9792 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9793 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9795 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9796 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802 hardcode_libdir_flag_spec='-L$libdir'
9803 hardcode_shlibpath_var=no
9811 if test x$host_vendor = xsni; then
9813 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9814 export_dynamic_flag_spec='${wl}-Blargedynsym'
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9821 $as_echo "$ld_shlibs" >&6; }
9822 test "$ld_shlibs" = no && can_build_shared=no
9824 with_gnu_ld=$with_gnu_ld
9841 # Do we need to explicitly link libc?
9843 case "x$archive_cmds_need_lc" in
9845 # Assume -lc should be added
9846 archive_cmds_need_lc=yes
9848 if test "$enable_shared" = yes && test "$GCC" = yes; then
9849 case $archive_cmds in
9851 # FIXME: we may have to deal with multi-command sequences.
9854 # Test whether the compiler implicitly links with -lc since on some
9855 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9856 # to ld, don't add -lc before -lgcc.
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9858 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9859 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9860 $as_echo_n "(cached) " >&6
9863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9866 (eval $ac_compile) 2>&5
9868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9869 test $ac_status = 0; } 2>conftest.err; then
9872 libobjs=conftest.$ac_objext
9874 wl=$lt_prog_compiler_wl
9875 pic_flag=$lt_prog_compiler_pic
9881 lt_save_allow_undefined_flag=$allow_undefined_flag
9882 allow_undefined_flag=
9883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9884 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9887 test $ac_status = 0; }
9889 lt_cv_archive_cmds_need_lc=no
9891 lt_cv_archive_cmds_need_lc=yes
9893 allow_undefined_flag=$lt_save_allow_undefined_flag
9895 cat conftest.err 1>&5
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9901 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9902 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10061 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10063 if test "$GCC" = yes; then
10065 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10066 *) lt_awk_arg="/^libraries:/" ;;
10069 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10070 *) lt_sed_strip_eq="s,=/,/,g" ;;
10072 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10073 case $lt_search_path_spec in
10075 # if the path contains ";" then we assume it to be the separator
10076 # otherwise default to the standard path separator (i.e. ":") - it is
10077 # assumed that no part of a normal pathname contains ";" but that should
10078 # okay in the real world where ";" in dirpaths is itself problematic.
10079 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10082 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10085 # Ok, now we have the path, separated by spaces, we can step through it
10086 # and add multilib dir if necessary.
10087 lt_tmp_lt_search_path_spec=
10088 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10089 for lt_sys_path in $lt_search_path_spec; do
10090 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10091 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10093 test -d "$lt_sys_path" && \
10094 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10097 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10098 BEGIN {RS=" "; FS="/|\n";} {
10101 for (lt_i = NF; lt_i > 0; lt_i--) {
10102 if ($lt_i != "" && $lt_i != ".") {
10103 if ($lt_i == "..") {
10106 if (lt_count == 0) {
10107 lt_foo="/" $lt_i lt_foo;
10114 if (lt_foo != "") { lt_freq[lt_foo]++; }
10115 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10117 # AWK program above erroneously prepends '/' to C:/dos/paths
10120 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10121 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10123 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10125 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10127 library_names_spec=
10128 libname_spec='lib$name'
10132 postuninstall_cmds=
10136 shlibpath_overrides_runpath=unknown
10138 dynamic_linker="$host_os ld.so"
10139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10140 need_lib_prefix=unknown
10141 hardcode_into_libs=no
10143 # when you set need_version to no, make sure it does not cause -set_version
10144 # flags to be left without arguments
10145 need_version=unknown
10149 version_type=linux # correct to gnu/linux during the next big refactor
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10151 shlibpath_var=LIBPATH
10153 # AIX 3 has no versioning support, so we append a major version to the name.
10154 soname_spec='${libname}${release}${shared_ext}$major'
10158 version_type=linux # correct to gnu/linux during the next big refactor
10161 hardcode_into_libs=yes
10162 if test "$host_cpu" = ia64; then
10163 # AIX 5 supports IA64
10164 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10165 shlibpath_var=LD_LIBRARY_PATH
10167 # With GCC up to 2.95.x, collect2 would create an import file
10168 # for dependence libraries. The import file would start with
10169 # the line `#! .'. This would cause the generated library to
10170 # depend on `.', always an invalid library. This was fixed in
10171 # development snapshots of GCC prior to 3.0.
10173 aix4 | aix4.[01] | aix4.[01].*)
10174 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10176 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10179 can_build_shared=no
10183 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10184 # soname into executable. Probably we can add versioning support to
10185 # collect2, so additional links can be useful in future.
10186 if test "$aix_use_runtimelinking" = yes; then
10187 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10188 # instead of lib<name>.a to let people know that these are not
10189 # typical AIX shared libraries.
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192 # We preserve .a as extension for shared libraries through AIX4.2
10193 # and later when we are not doing run time linking.
10194 library_names_spec='${libname}${release}.a $libname.a'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10197 shlibpath_var=LIBPATH
10204 # Since July 2007 AmigaOS4 officially supports .so libraries.
10205 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 library_names_spec='$libname.ixlibrary $libname.a'
10210 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10211 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10217 library_names_spec='${libname}${shared_ext}'
10218 dynamic_linker="$host_os ld.so"
10219 shlibpath_var=LIBRARY_PATH
10223 version_type=linux # correct to gnu/linux during the next big refactor
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10230 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10231 # the default ld.so.conf also contains /usr/contrib/lib and
10232 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10233 # libtool to hard-code these into programs
10236 cygwin* | mingw* | pw32* | cegcc*)
10237 version_type=windows
10242 case $GCC,$cc_basename in
10245 library_names_spec='$libname.dll.a'
10246 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10247 postinstall_cmds='base_file=`basename \${file}`~
10248 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10249 dldir=$destdir/`dirname \$dlpath`~
10250 test -d \$dldir || mkdir -p \$dldir~
10251 $install_prog $dir/$dlname \$dldir/$dlname~
10252 chmod a+x \$dldir/$dlname~
10253 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10254 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10256 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10257 dlpath=$dir/\$dldll~
10259 shlibpath_overrides_runpath=yes
10263 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10264 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10266 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10269 # MinGW DLLs use traditional 'lib' prefix
10270 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10273 # pw32 DLLs use 'pw' prefix rather than 'lib'
10274 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10277 dynamic_linker='Win32 ld.exe'
10282 libname_spec='$name'
10283 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10284 library_names_spec='${libname}.dll.lib'
10288 sys_lib_search_path_spec=
10291 for lt_path in $LIB
10294 # Let DOS variable expansion print the short 8.3 style file name.
10295 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10296 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10299 # Convert to MSYS style.
10300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10303 # Convert to unix form, then to dos form, then back to unix form
10304 # but this time dos style (no spaces!) so that the unix form looks
10305 # like /cygdrive/c/PROGRA~1:/cygdr...
10306 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10307 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10308 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10311 sys_lib_search_path_spec="$LIB"
10312 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10313 # It is most probably a Windows format PATH.
10314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10318 # FIXME: find the short name or the path components, as spaces are
10319 # common. (e.g. "Program Files" -> "PROGRA~1")
10323 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10324 postinstall_cmds='base_file=`basename \${file}`~
10325 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10326 dldir=$destdir/`dirname \$dlpath`~
10327 test -d \$dldir || mkdir -p \$dldir~
10328 $install_prog $dir/$dlname \$dldir/$dlname'
10329 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10330 dlpath=$dir/\$dldll~
10332 shlibpath_overrides_runpath=yes
10333 dynamic_linker='Win32 link.exe'
10337 # Assume MSVC wrapper
10338 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10339 dynamic_linker='Win32 ld.exe'
10342 # FIXME: first we should search . and the directory the executable is in
10346 darwin* | rhapsody*)
10347 dynamic_linker="$host_os dyld"
10348 version_type=darwin
10351 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10352 soname_spec='${libname}${release}${major}$shared_ext'
10353 shlibpath_overrides_runpath=yes
10354 shlibpath_var=DYLD_LIBRARY_PATH
10355 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10357 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10358 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10362 version_type=linux # correct to gnu/linux during the next big refactor
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 shlibpath_var=LD_LIBRARY_PATH
10370 freebsd* | dragonfly*)
10371 # DragonFly does not have aout. When/if they implement a new
10372 # versioning mechanism, adjust this.
10373 if test -x /usr/bin/objformat; then
10374 objformat=`/usr/bin/objformat`
10377 freebsd[23].*) objformat=aout ;;
10378 *) objformat=elf ;;
10381 version_type=freebsd-$objformat
10382 case $version_type in
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10393 shlibpath_var=LD_LIBRARY_PATH
10396 shlibpath_overrides_runpath=yes
10398 freebsd3.[01]* | freebsdelf3.[01]*)
10399 shlibpath_overrides_runpath=yes
10400 hardcode_into_libs=yes
10402 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10403 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10404 shlibpath_overrides_runpath=no
10405 hardcode_into_libs=yes
10407 *) # from 4.6 on, and DragonFly
10408 shlibpath_overrides_runpath=yes
10409 hardcode_into_libs=yes
10415 version_type=linux # correct to gnu/linux during the next big refactor
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=no
10422 hardcode_into_libs=yes
10426 version_type=linux # correct to gnu/linux during the next big refactor
10429 dynamic_linker="$host_os runtime_loader"
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 shlibpath_var=LIBRARY_PATH
10433 shlibpath_overrides_runpath=yes
10434 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10435 hardcode_into_libs=yes
10438 hpux9* | hpux10* | hpux11*)
10439 # Give a soname corresponding to the major version so that dld.sl refuses to
10440 # link against other versions.
10447 hardcode_into_libs=yes
10448 dynamic_linker="$host_os dld.so"
10449 shlibpath_var=LD_LIBRARY_PATH
10450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 soname_spec='${libname}${release}${shared_ext}$major'
10453 if test "X$HPUX_IA64_MODE" = X32; then
10454 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10456 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10462 hardcode_into_libs=yes
10463 dynamic_linker="$host_os dld.sl"
10464 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 soname_spec='${libname}${release}${shared_ext}$major'
10468 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10473 dynamic_linker="$host_os dld.sl"
10474 shlibpath_var=SHLIB_PATH
10475 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10477 soname_spec='${libname}${release}${shared_ext}$major'
10480 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10481 postinstall_cmds='chmod 555 $lib'
10482 # or fails outright, so override atomically:
10483 install_override_mode=555
10487 version_type=linux # correct to gnu/linux during the next big refactor
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10491 soname_spec='${libname}${release}${shared_ext}$major'
10492 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10493 shlibpath_var=LD_LIBRARY_PATH
10494 shlibpath_overrides_runpath=no
10495 hardcode_into_libs=yes
10498 irix5* | irix6* | nonstopux*)
10500 nonstopux*) version_type=nonstopux ;;
10502 if test "$lt_cv_prog_gnu_ld" = yes; then
10503 version_type=linux # correct to gnu/linux during the next big refactor
10510 soname_spec='${libname}${release}${shared_ext}$major'
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10513 irix5* | nonstopux*)
10514 libsuff= shlibsuff=
10517 case $LD in # libtool.m4 will add one of these switches to LD
10518 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10519 libsuff= shlibsuff= libmagic=32-bit;;
10520 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10521 libsuff=32 shlibsuff=N32 libmagic=N32;;
10522 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10523 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10524 *) libsuff= shlibsuff= libmagic=never-match;;
10528 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10529 shlibpath_overrides_runpath=no
10530 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10531 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10532 hardcode_into_libs=yes
10535 # No shared lib support for Linux oldld, aout, or coff.
10536 linux*oldld* | linux*aout* | linux*coff*)
10540 # This must be glibc/ELF.
10541 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10542 version_type=linux # correct to gnu/linux during the next big refactor
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10548 shlibpath_var=LD_LIBRARY_PATH
10549 shlibpath_overrides_runpath=no
10551 # Some binutils ld are patched to set DT_RUNPATH
10552 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10553 $as_echo_n "(cached) " >&6
10555 lt_cv_shlibpath_overrides_runpath=no
10556 save_LDFLAGS=$LDFLAGS
10557 save_libdir=$libdir
10558 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10559 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10571 if ac_fn_c_try_link "$LINENO"; then :
10572 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10573 lt_cv_shlibpath_overrides_runpath=yes
10576 rm -f core conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10578 LDFLAGS=$save_LDFLAGS
10579 libdir=$save_libdir
10583 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10585 # This implies no fast_install, which is unacceptable.
10586 # Some rework will be needed to allow for fast_install
10587 # before this can be enabled.
10588 hardcode_into_libs=yes
10590 # Add ABI-specific directories to the system library path.
10591 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10593 # Append ld.so.conf contents to the search path
10594 if test -f /etc/ld.so.conf; then
10595 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' ' '`
10596 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10600 # We used to test for /lib/ld.so.1 and disable shared libraries on
10601 # powerpc, because MkLinux only supported shared libraries with the
10602 # GNU dynamic linker. Since this was broken with cross compilers,
10603 # most powerpc-linux boxes support dynamic linking these days and
10604 # people can always --disable-shared, the test was removed, and we
10605 # assume the GNU/Linux dynamic linker is in use.
10606 dynamic_linker='GNU/Linux ld.so'
10613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10616 dynamic_linker='NetBSD (a.out) ld.so'
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 dynamic_linker='NetBSD ld.elf_so'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath=yes
10624 hardcode_into_libs=yes
10628 version_type=linux # correct to gnu/linux during the next big refactor
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath=no
10642 hardcode_into_libs=yes
10643 dynamic_linker='ldqnx.so'
10648 sys_lib_dlsearch_path_spec="/usr/lib"
10650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10652 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10653 *) need_version=no ;;
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10660 openbsd2.[89] | openbsd2.[89].*)
10661 shlibpath_overrides_runpath=no
10664 shlibpath_overrides_runpath=yes
10668 shlibpath_overrides_runpath=yes
10673 libname_spec='$name'
10676 library_names_spec='$libname${shared_ext} $libname.a'
10677 dynamic_linker='OS/2 ld.exe'
10678 shlibpath_var=LIBPATH
10681 osf3* | osf4* | osf5*)
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10697 version_type=linux # correct to gnu/linux during the next big refactor
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath=yes
10704 hardcode_into_libs=yes
10705 # ldd complains unless libraries are executable
10706 postinstall_cmds='chmod +x $lib'
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=yes
10715 if test "$with_gnu_ld" = yes; then
10722 version_type=linux # correct to gnu/linux during the next big refactor
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 case $host_vendor in
10728 shlibpath_overrides_runpath=no
10730 runpath_var=LD_RUN_PATH
10738 shlibpath_overrides_runpath=no
10739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10745 if test -d /usr/nec ;then
10746 version_type=linux # correct to gnu/linux during the next big refactor
10747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10748 soname_spec='$libname${shared_ext}.$major'
10749 shlibpath_var=LD_LIBRARY_PATH
10753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10754 version_type=freebsd-elf
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=yes
10761 hardcode_into_libs=yes
10762 if test "$with_gnu_ld" = yes; then
10763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10772 sys_lib_dlsearch_path_spec='/usr/lib'
10776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10777 version_type=linux # correct to gnu/linux during the next big refactor
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=no
10783 hardcode_into_libs=yes
10787 version_type=linux # correct to gnu/linux during the next big refactor
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10798 $as_echo "$dynamic_linker" >&6; }
10799 test "$dynamic_linker" = no && can_build_shared=no
10801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10802 if test "$GCC" = yes; then
10803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10807 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10810 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10905 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10907 if test -n "$hardcode_libdir_flag_spec" ||
10908 test -n "$runpath_var" ||
10909 test "X$hardcode_automatic" = "Xyes" ; then
10911 # We can hardcode non-existent directories.
10912 if test "$hardcode_direct" != no &&
10913 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10914 # have to relink, otherwise we might link with an installed library
10915 # when we should be linking with a yet-to-be-installed one
10916 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10917 test "$hardcode_minus_L" != no; then
10918 # Linking always hardcodes the temporary library directory.
10919 hardcode_action=relink
10921 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10922 hardcode_action=immediate
10925 # We cannot hardcode anything, or else we can only hardcode existing
10927 hardcode_action=unsupported
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10930 $as_echo "$hardcode_action" >&6; }
10932 if test "$hardcode_action" = relink ||
10933 test "$inherit_rpath" = yes; then
10934 # Fast installation is not supported
10935 enable_fast_install=no
10936 elif test "$shlibpath_overrides_runpath" = yes ||
10937 test "$enable_shared" = no; then
10938 # Fast installation is not necessary
10939 enable_fast_install=needless
10947 if test "x$enable_dlopen" != xyes; then
10948 enable_dlopen=unknown
10949 enable_dlopen_self=unknown
10950 enable_dlopen_self_static=unknown
10957 lt_cv_dlopen="load_add_on"
10959 lt_cv_dlopen_self=yes
10962 mingw* | pw32* | cegcc*)
10963 lt_cv_dlopen="LoadLibrary"
10968 lt_cv_dlopen="dlopen"
10973 # if libdl is installed we need to link against it
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10975 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10976 if ${ac_cv_lib_dl_dlopen+:} false; then :
10977 $as_echo_n "(cached) " >&6
10979 ac_check_lib_save_LIBS=$LIBS
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10999 if ac_fn_c_try_link "$LINENO"; then :
11000 ac_cv_lib_dl_dlopen=yes
11002 ac_cv_lib_dl_dlopen=no
11004 rm -f core conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
11006 LIBS=$ac_check_lib_save_LIBS
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11009 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11010 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11014 lt_cv_dlopen="dyld"
11016 lt_cv_dlopen_self=yes
11023 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11024 if test "x$ac_cv_func_shl_load" = xyes; then :
11025 lt_cv_dlopen="shl_load"
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11028 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11029 if ${ac_cv_lib_dld_shl_load+:} false; then :
11030 $as_echo_n "(cached) " >&6
11032 ac_check_lib_save_LIBS=$LIBS
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11037 /* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
11047 return shl_load ();
11052 if ac_fn_c_try_link "$LINENO"; then :
11053 ac_cv_lib_dld_shl_load=yes
11055 ac_cv_lib_dld_shl_load=no
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 LIBS=$ac_check_lib_save_LIBS
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11062 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11063 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11064 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11066 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11067 if test "x$ac_cv_func_dlopen" = xyes; then :
11068 lt_cv_dlopen="dlopen"
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11071 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11072 if ${ac_cv_lib_dl_dlopen+:} false; then :
11073 $as_echo_n "(cached) " >&6
11075 ac_check_lib_save_LIBS=$LIBS
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11080 /* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
11095 if ac_fn_c_try_link "$LINENO"; then :
11096 ac_cv_lib_dl_dlopen=yes
11098 ac_cv_lib_dl_dlopen=no
11100 rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11105 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11106 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11110 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11111 if ${ac_cv_lib_svld_dlopen+:} false; then :
11112 $as_echo_n "(cached) " >&6
11114 ac_check_lib_save_LIBS=$LIBS
11115 LIBS="-lsvld $LIBS"
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11119 /* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
11134 if ac_fn_c_try_link "$LINENO"; then :
11135 ac_cv_lib_svld_dlopen=yes
11137 ac_cv_lib_svld_dlopen=no
11139 rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11141 LIBS=$ac_check_lib_save_LIBS
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11144 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11145 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11149 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11150 if ${ac_cv_lib_dld_dld_link+:} false; then :
11151 $as_echo_n "(cached) " >&6
11153 ac_check_lib_save_LIBS=$LIBS
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11168 return dld_link ();
11173 if ac_fn_c_try_link "$LINENO"; then :
11174 ac_cv_lib_dld_dld_link=yes
11176 ac_cv_lib_dld_dld_link=no
11178 rm -f core conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11183 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11184 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11185 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11206 if test "x$lt_cv_dlopen" != xno; then
11212 case $lt_cv_dlopen in
11214 save_CPPFLAGS="$CPPFLAGS"
11215 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11217 save_LDFLAGS="$LDFLAGS"
11218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11221 LIBS="$lt_cv_dlopen_libs $LIBS"
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11224 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11225 if ${lt_cv_dlopen_self+:} false; then :
11226 $as_echo_n "(cached) " >&6
11228 if test "$cross_compiling" = yes; then :
11229 lt_cv_dlopen_self=cross
11231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11232 lt_status=$lt_dlunknown
11233 cat > conftest.$ac_ext <<_LT_EOF
11234 #line $LINENO "configure"
11235 #include "confdefs.h"
11244 # define LT_DLGLOBAL RTLD_GLOBAL
11247 # define LT_DLGLOBAL DL_GLOBAL
11249 # define LT_DLGLOBAL 0
11253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11254 find out it does not work in some platform. */
11255 #ifndef LT_DLLAZY_OR_NOW
11257 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11260 # define LT_DLLAZY_OR_NOW DL_LAZY
11263 # define LT_DLLAZY_OR_NOW RTLD_NOW
11266 # define LT_DLLAZY_OR_NOW DL_NOW
11268 # define LT_DLLAZY_OR_NOW 0
11275 /* When -fvisbility=hidden is used, assume the code has been annotated
11276 correspondingly for the symbols needed. */
11277 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11278 int fnord () __attribute__((visibility("default")));
11281 int fnord () { return 42; }
11284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11285 int status = $lt_dlunknown;
11289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11292 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11293 else puts (dlerror ());
11295 /* dlclose (self); */
11303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11304 (eval $ac_link) 2>&5
11306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11307 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11308 (./conftest; exit; ) >&5 2>/dev/null
11310 case x$lt_status in
11311 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11312 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11313 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11316 # compilation failed
11317 lt_cv_dlopen_self=no
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11325 $as_echo "$lt_cv_dlopen_self" >&6; }
11327 if test "x$lt_cv_dlopen_self" = xyes; then
11328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11330 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11331 if ${lt_cv_dlopen_self_static+:} false; then :
11332 $as_echo_n "(cached) " >&6
11334 if test "$cross_compiling" = yes; then :
11335 lt_cv_dlopen_self_static=cross
11337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11338 lt_status=$lt_dlunknown
11339 cat > conftest.$ac_ext <<_LT_EOF
11340 #line $LINENO "configure"
11341 #include "confdefs.h"
11350 # define LT_DLGLOBAL RTLD_GLOBAL
11353 # define LT_DLGLOBAL DL_GLOBAL
11355 # define LT_DLGLOBAL 0
11359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11360 find out it does not work in some platform. */
11361 #ifndef LT_DLLAZY_OR_NOW
11363 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11366 # define LT_DLLAZY_OR_NOW DL_LAZY
11369 # define LT_DLLAZY_OR_NOW RTLD_NOW
11372 # define LT_DLLAZY_OR_NOW DL_NOW
11374 # define LT_DLLAZY_OR_NOW 0
11381 /* When -fvisbility=hidden is used, assume the code has been annotated
11382 correspondingly for the symbols needed. */
11383 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11384 int fnord () __attribute__((visibility("default")));
11387 int fnord () { return 42; }
11390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11391 int status = $lt_dlunknown;
11395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11398 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11399 else puts (dlerror ());
11401 /* dlclose (self); */
11409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11410 (eval $ac_link) 2>&5
11412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11413 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11414 (./conftest; exit; ) >&5 2>/dev/null
11416 case x$lt_status in
11417 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11418 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11419 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11422 # compilation failed
11423 lt_cv_dlopen_self_static=no
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11431 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11434 CPPFLAGS="$save_CPPFLAGS"
11435 LDFLAGS="$save_LDFLAGS"
11440 case $lt_cv_dlopen_self in
11441 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11442 *) enable_dlopen_self=unknown ;;
11445 case $lt_cv_dlopen_self_static in
11446 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11447 *) enable_dlopen_self_static=unknown ;;
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11470 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11471 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11472 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11473 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11475 $as_echo "yes" >&6; }
11477 # FIXME - insert some real tests, host_os isn't really good enough
11480 if test -n "$STRIP" ; then
11481 striplib="$STRIP -x"
11482 old_striplib="$STRIP -S"
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11484 $as_echo "yes" >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11508 # Report which library types will actually be built
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11510 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11512 $as_echo "$can_build_shared" >&6; }
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11515 $as_echo_n "checking whether to build shared libraries... " >&6; }
11516 test "$can_build_shared" = "no" && enable_shared=no
11518 # On AIX, shared libraries and static libraries use the same namespace, and
11519 # are all built from PIC.
11522 test "$enable_shared" = yes && enable_static=no
11523 if test -n "$RANLIB"; then
11524 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11525 postinstall_cmds='$RANLIB $lib'
11530 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11531 test "$enable_shared" = yes && enable_static=no
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11536 $as_echo "$enable_shared" >&6; }
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11539 $as_echo_n "checking whether to build static libraries... " >&6; }
11540 # Make sure either enable_shared or enable_static is yes.
11541 test "$enable_shared" = yes || enable_static=yes
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11543 $as_echo "$enable_static" >&6; }
11550 ac_cpp='$CPP $CPPFLAGS'
11551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11571 ac_config_commands="$ac_config_commands libtool"
11576 # Only expand once:
11579 if test "x$CC" != xcc; then
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11581 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11584 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11586 set dummy $CC; ac_cc=`$as_echo "$2" |
11587 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11588 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11589 $as_echo_n "(cached) " >&6
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11602 # Make sure it works both with $CC and with simple cc.
11603 # We do the test twice because some compilers refuse to overwrite an
11604 # existing .o file with -o, though they will create one.
11605 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11607 if { { case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11612 $as_echo "$ac_try_echo"; } >&5
11613 (eval "$ac_try") 2>&5
11615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11616 test $ac_status = 0; } &&
11617 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11622 $as_echo "$ac_try_echo"; } >&5
11623 (eval "$ac_try") 2>&5
11625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11626 test $ac_status = 0; };
11628 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11629 if test "x$CC" != xcc; then
11630 # Test first that cc exists at all.
11631 if { ac_try='cc -c conftest.$ac_ext >&5'
11632 { { case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11637 $as_echo "$ac_try_echo"; } >&5
11638 (eval "$ac_try") 2>&5
11640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11641 test $ac_status = 0; }; }; then
11642 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11644 if { { case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11649 $as_echo "$ac_try_echo"; } >&5
11650 (eval "$ac_try") 2>&5
11652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11653 test $ac_status = 0; } &&
11654 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11659 $as_echo "$ac_try_echo"; } >&5
11660 (eval "$ac_try") 2>&5
11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663 test $ac_status = 0; };
11668 # cc exists but doesn't like -o.
11669 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11674 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11676 rm -f core conftest*
11679 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11681 $as_echo "yes" >&6; }
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11686 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11690 # FIXME: we rely on the cache variable name because
11691 # there is no other way.
11693 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11694 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11695 if test "$am_t" != yes; then
11696 # Losing compiler, so override with the script.
11697 # FIXME: It is wrong to rewrite CC.
11698 # But if we don't then we get into trouble of one sort or another.
11699 # A longer-term fix would be to have automake use am__CC in this case,
11700 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11701 CC="$am_aux_dir/compile $CC"
11707 cflags_save="$CFLAGS"
11708 if test -z "$GCC"; then
11712 CFLAGS="-O2 -w -signed"
11713 PROFILE="-p -g3 -O2 -signed"
11715 sparc-sun-solaris*)
11717 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
11718 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
11729 DEBUG="-g -Wall -fsigned-char"
11730 CFLAGS="-O20 -Wall -ffast-math -fsigned-char"
11731 PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
11734 DEBUG="-g -Wall -fsigned-char"
11735 CFLAGS="-O20 -ffast-math -fsigned-char"
11736 PROFILE="-pg -g -O20 -fsigned-char"
11739 DEBUG="-fno-common -g -Wall -fsigned-char"
11740 CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
11741 PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
11744 DEBUG="-g -Wall -fsigned-char"
11745 CFLAGS="-O20 -fsigned-char"
11746 PROFILE="-O20 -g -pg -fsigned-char"
11750 CFLAGS="$CFLAGS $cflags_save"
11751 DEBUG="$DEBUG $cflags_save"
11752 PROFILE="$PROFILE $cflags_save"
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11757 $as_echo_n "checking for ANSI C header files... " >&6; }
11758 if ${ac_cv_header_stdc+:} false; then :
11759 $as_echo_n "(cached) " >&6
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11763 #include <stdlib.h>
11764 #include <stdarg.h>
11765 #include <string.h>
11776 if ac_fn_c_try_compile "$LINENO"; then :
11777 ac_cv_header_stdc=yes
11779 ac_cv_header_stdc=no
11781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783 if test $ac_cv_header_stdc = yes; then
11784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 #include <string.h>
11790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11791 $EGREP "memchr" >/dev/null 2>&1; then :
11794 ac_cv_header_stdc=no
11800 if test $ac_cv_header_stdc = yes; then
11801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11804 #include <stdlib.h>
11807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11808 $EGREP "free" >/dev/null 2>&1; then :
11811 ac_cv_header_stdc=no
11817 if test $ac_cv_header_stdc = yes; then
11818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11819 if test "$cross_compiling" = yes; then :
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11825 #include <stdlib.h>
11826 #if ((' ' & 0x0FF) == 0x020)
11827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11830 # define ISLOWER(c) \
11831 (('a' <= (c) && (c) <= 'i') \
11832 || ('j' <= (c) && (c) <= 'r') \
11833 || ('s' <= (c) && (c) <= 'z'))
11834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11842 for (i = 0; i < 256; i++)
11843 if (XOR (islower (i), ISLOWER (i))
11844 || toupper (i) != TOUPPER (i))
11849 if ac_fn_c_try_run "$LINENO"; then :
11852 ac_cv_header_stdc=no
11854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11855 conftest.$ac_objext conftest.beam conftest.$ac_ext
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11861 $as_echo "$ac_cv_header_stdc" >&6; }
11862 if test $ac_cv_header_stdc = yes; then
11864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11868 INCLUDE_INTTYPES_H=0
11870 INCLUDE_SYS_TYPES_H=0
11871 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11872 if test "x$ac_cv_header_inttypes_h" = xyes; then :
11873 INCLUDE_INTTYPES_H=1
11877 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11878 if test "x$ac_cv_header_stdint_h" = xyes; then :
11883 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
11884 if test "x$ac_cv_header_sys_types_h" = xyes; then :
11885 INCLUDE_SYS_TYPES_H=1
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11891 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11892 if ${ac_cv_c_const+:} false; then :
11893 $as_echo_n "(cached) " >&6
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11902 #ifndef __cplusplus
11903 /* Ultrix mips cc rejects this sort of thing. */
11904 typedef int charset[2];
11905 const charset cs = { 0, 0 };
11906 /* SunOS 4.1.1 cc rejects this. */
11907 char const *const *pcpcc;
11909 /* NEC SVR4.0.2 mips cc rejects this. */
11910 struct point {int x, y;};
11911 static struct point const zero = {0,0};
11912 /* AIX XL C 1.02.0.0 rejects this.
11913 It does not let you subtract one const X* pointer from another in
11914 an arm of an if-expression whose if-part is not a constant
11916 const char *g = "string";
11917 pcpcc = &g + (g ? g-g : 0);
11918 /* HPUX 7.0 cc rejects these. */
11920 ppc = (char**) pcpcc;
11921 pcpcc = (char const *const *) ppc;
11922 { /* SCO 3.2v4 cc rejects this sort of thing. */
11925 char const *s = 0 ? (char *) 0 : (char const *) 0;
11930 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11931 int x[] = {25, 17};
11932 const int *foo = &x[0];
11935 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11936 typedef const int *iptr;
11940 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11941 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11942 struct s { int j; const int *ap[3]; } bx;
11943 struct s *b = &bx; b->j = 5;
11945 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11946 const int foo = 10;
11947 if (!foo) return 0;
11949 return !cs[0] && !zero.x;
11956 if ac_fn_c_try_compile "$LINENO"; then :
11961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11964 $as_echo "$ac_cv_c_const" >&6; }
11965 if test $ac_cv_c_const = no; then
11967 $as_echo "#define const /**/" >>confdefs.h
11973 # The cast to long int works around a bug in the HP C Compiler
11974 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11975 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11976 # This bug is HP SR number 8606223364.
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
11978 $as_echo_n "checking size of int16_t... " >&6; }
11979 if ${ac_cv_sizeof_int16_t+:} false; then :
11980 $as_echo_n "(cached) " >&6
11982 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
11985 if test "$ac_cv_type_int16_t" = yes; then
11986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11988 as_fn_error 77 "cannot compute sizeof (int16_t)
11989 See \`config.log' for more details" "$LINENO" 5; }
11991 ac_cv_sizeof_int16_t=0
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
11997 $as_echo "$ac_cv_sizeof_int16_t" >&6; }
12001 cat >>confdefs.h <<_ACEOF
12002 #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
12006 # The cast to long int works around a bug in the HP C Compiler
12007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12009 # This bug is HP SR number 8606223364.
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
12011 $as_echo_n "checking size of uint16_t... " >&6; }
12012 if ${ac_cv_sizeof_uint16_t+:} false; then :
12013 $as_echo_n "(cached) " >&6
12015 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
12018 if test "$ac_cv_type_uint16_t" = yes; then
12019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12021 as_fn_error 77 "cannot compute sizeof (uint16_t)
12022 See \`config.log' for more details" "$LINENO" 5; }
12024 ac_cv_sizeof_uint16_t=0
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
12030 $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
12034 cat >>confdefs.h <<_ACEOF
12035 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
12039 # The cast to long int works around a bug in the HP C Compiler
12040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12042 # This bug is HP SR number 8606223364.
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
12044 $as_echo_n "checking size of u_int16_t... " >&6; }
12045 if ${ac_cv_sizeof_u_int16_t+:} false; then :
12046 $as_echo_n "(cached) " >&6
12048 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"; then :
12051 if test "$ac_cv_type_u_int16_t" = yes; then
12052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12054 as_fn_error 77 "cannot compute sizeof (u_int16_t)
12055 See \`config.log' for more details" "$LINENO" 5; }
12057 ac_cv_sizeof_u_int16_t=0
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
12063 $as_echo "$ac_cv_sizeof_u_int16_t" >&6; }
12067 cat >>confdefs.h <<_ACEOF
12068 #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
12072 # The cast to long int works around a bug in the HP C Compiler
12073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12075 # This bug is HP SR number 8606223364.
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
12077 $as_echo_n "checking size of int32_t... " >&6; }
12078 if ${ac_cv_sizeof_int32_t+:} false; then :
12079 $as_echo_n "(cached) " >&6
12081 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
12084 if test "$ac_cv_type_int32_t" = yes; then
12085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12087 as_fn_error 77 "cannot compute sizeof (int32_t)
12088 See \`config.log' for more details" "$LINENO" 5; }
12090 ac_cv_sizeof_int32_t=0
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
12096 $as_echo "$ac_cv_sizeof_int32_t" >&6; }
12100 cat >>confdefs.h <<_ACEOF
12101 #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
12105 # The cast to long int works around a bug in the HP C Compiler
12106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12108 # This bug is HP SR number 8606223364.
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
12110 $as_echo_n "checking size of uint32_t... " >&6; }
12111 if ${ac_cv_sizeof_uint32_t+:} false; then :
12112 $as_echo_n "(cached) " >&6
12114 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
12117 if test "$ac_cv_type_uint32_t" = yes; then
12118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12120 as_fn_error 77 "cannot compute sizeof (uint32_t)
12121 See \`config.log' for more details" "$LINENO" 5; }
12123 ac_cv_sizeof_uint32_t=0
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
12129 $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
12133 cat >>confdefs.h <<_ACEOF
12134 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
12138 # The cast to long int works around a bug in the HP C Compiler
12139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12141 # This bug is HP SR number 8606223364.
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
12143 $as_echo_n "checking size of u_int32_t... " >&6; }
12144 if ${ac_cv_sizeof_u_int32_t+:} false; then :
12145 $as_echo_n "(cached) " >&6
12147 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"; then :
12150 if test "$ac_cv_type_u_int32_t" = yes; then
12151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12153 as_fn_error 77 "cannot compute sizeof (u_int32_t)
12154 See \`config.log' for more details" "$LINENO" 5; }
12156 ac_cv_sizeof_u_int32_t=0
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
12162 $as_echo "$ac_cv_sizeof_u_int32_t" >&6; }
12166 cat >>confdefs.h <<_ACEOF
12167 #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
12171 # The cast to long int works around a bug in the HP C Compiler
12172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12174 # This bug is HP SR number 8606223364.
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
12176 $as_echo_n "checking size of int64_t... " >&6; }
12177 if ${ac_cv_sizeof_int64_t+:} false; then :
12178 $as_echo_n "(cached) " >&6
12180 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
12183 if test "$ac_cv_type_int64_t" = yes; then
12184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12186 as_fn_error 77 "cannot compute sizeof (int64_t)
12187 See \`config.log' for more details" "$LINENO" 5; }
12189 ac_cv_sizeof_int64_t=0
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
12195 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
12199 cat >>confdefs.h <<_ACEOF
12200 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
12204 # The cast to long int works around a bug in the HP C Compiler
12205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12207 # This bug is HP SR number 8606223364.
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12209 $as_echo_n "checking size of short... " >&6; }
12210 if ${ac_cv_sizeof_short+:} false; then :
12211 $as_echo_n "(cached) " >&6
12213 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12216 if test "$ac_cv_type_short" = yes; then
12217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12219 as_fn_error 77 "cannot compute sizeof (short)
12220 See \`config.log' for more details" "$LINENO" 5; }
12222 ac_cv_sizeof_short=0
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12228 $as_echo "$ac_cv_sizeof_short" >&6; }
12232 cat >>confdefs.h <<_ACEOF
12233 #define SIZEOF_SHORT $ac_cv_sizeof_short
12237 # The cast to long int works around a bug in the HP C Compiler
12238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12240 # This bug is HP SR number 8606223364.
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12242 $as_echo_n "checking size of int... " >&6; }
12243 if ${ac_cv_sizeof_int+:} false; then :
12244 $as_echo_n "(cached) " >&6
12246 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12249 if test "$ac_cv_type_int" = yes; then
12250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12252 as_fn_error 77 "cannot compute sizeof (int)
12253 See \`config.log' for more details" "$LINENO" 5; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12261 $as_echo "$ac_cv_sizeof_int" >&6; }
12265 cat >>confdefs.h <<_ACEOF
12266 #define SIZEOF_INT $ac_cv_sizeof_int
12270 # The cast to long int works around a bug in the HP C Compiler
12271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12273 # This bug is HP SR number 8606223364.
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12275 $as_echo_n "checking size of long... " >&6; }
12276 if ${ac_cv_sizeof_long+:} false; then :
12277 $as_echo_n "(cached) " >&6
12279 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12282 if test "$ac_cv_type_long" = yes; then
12283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12285 as_fn_error 77 "cannot compute sizeof (long)
12286 See \`config.log' for more details" "$LINENO" 5; }
12288 ac_cv_sizeof_long=0
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12294 $as_echo "$ac_cv_sizeof_long" >&6; }
12298 cat >>confdefs.h <<_ACEOF
12299 #define SIZEOF_LONG $ac_cv_sizeof_long
12303 # The cast to long int works around a bug in the HP C Compiler
12304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12306 # This bug is HP SR number 8606223364.
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12308 $as_echo_n "checking size of long long... " >&6; }
12309 if ${ac_cv_sizeof_long_long+:} false; then :
12310 $as_echo_n "(cached) " >&6
12312 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12315 if test "$ac_cv_type_long_long" = yes; then
12316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12318 as_fn_error 77 "cannot compute sizeof (long long)
12319 See \`config.log' for more details" "$LINENO" 5; }
12321 ac_cv_sizeof_long_long=0
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12327 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12331 cat >>confdefs.h <<_ACEOF
12332 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12338 $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
12339 $ac_cv_sizeof_short) SIZE16="short";;
12340 $ac_cv_sizeof_int) SIZE16="int";;
12344 $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
12345 $ac_cv_sizeof_short) USIZE16="unsigned short";;
12346 $ac_cv_sizeof_int) USIZE16="unsigned int";;
12347 $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
12351 $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
12352 $ac_cv_sizeof_short) SIZE32="short";;
12353 $ac_cv_sizeof_int) SIZE32="int";;
12354 $ac_cv_sizeof_long) SIZE32="long";;
12358 $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
12359 $ac_cv_sizeof_short) USIZE32="unsigned short";;
12360 $ac_cv_sizeof_int) USIZE32="unsigned int";;
12361 $ac_cv_sizeof_long) USIZE32="unsigned long";;
12362 $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
12366 $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
12367 $ac_cv_sizeof_int) SIZE64="int";;
12368 $ac_cv_sizeof_long) SIZE64="long";;
12369 $ac_cv_sizeof_long_long) SIZE64="long long";;
12372 if test -z "$SIZE16"; then
12373 as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
12375 if test -z "$USIZE16"; then
12376 as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
12378 if test -z "$SIZE32"; then
12379 as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
12381 if test -z "$USIZE32"; then
12382 as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
12384 if test -z "$SIZE64"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
12386 $as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
12390 $as_echo_n "checking for working memcmp... " >&6; }
12391 if ${ac_cv_func_memcmp_working+:} false; then :
12392 $as_echo_n "(cached) " >&6
12394 if test "$cross_compiling" = yes; then :
12395 ac_cv_func_memcmp_working=no
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12399 $ac_includes_default
12404 /* Some versions of memcmp are not 8-bit clean. */
12405 char c0 = '\100', c1 = '\200', c2 = '\201';
12406 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12409 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12410 or more and with at least one buffer not starting on a 4-byte boundary.
12411 William Lewis provided this test program. */
12416 for (i = 0; i < 4; i++)
12420 strcpy (a, "--------01111111");
12421 strcpy (b, "--------10000000");
12422 if (memcmp (a, b, 16) >= 0)
12432 if ac_fn_c_try_run "$LINENO"; then :
12433 ac_cv_func_memcmp_working=yes
12435 ac_cv_func_memcmp_working=no
12437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12438 conftest.$ac_objext conftest.beam conftest.$ac_ext
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
12443 $as_echo "$ac_cv_func_memcmp_working" >&6; }
12444 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12445 *" memcmp.$ac_objext "* ) ;;
12446 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12469 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
12471 ac_config_headers="$ac_config_headers config.h"
12474 cat >confcache <<\_ACEOF
12475 # This file is a shell script that caches the results of configure
12476 # tests run on this system so they can be shared between configure
12477 # scripts and configure runs, see configure's option --config-cache.
12478 # It is not useful on other systems. If it contains results you don't
12479 # want to keep, you may remove or edit it.
12481 # config.status only pays attention to the cache file if you give it
12482 # the --recheck option to rerun configure.
12484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12486 # following values.
12490 # The following way of writing the cache mishandles newlines in values,
12491 # but we know of no workaround that is simple, portable, and efficient.
12492 # So, we kill variables containing newlines.
12493 # Ultrix sh set writes to stderr and can't be redirected directly,
12494 # and sets the high bit in the cache file unless we assign to the vars.
12496 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12497 eval ac_val=\$$ac_var
12501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12505 _ | IFS | as_nl) ;; #(
12506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12507 *) { eval $ac_var=; unset $ac_var;} ;;
12513 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12514 *${as_nl}ac_space=\ *)
12515 # `set' does not quote correctly, so add quotes: double-quote
12516 # substitution turns \\\\ into \\, and sed turns \\ into \.
12519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12522 # `set' quotes correctly as required by POSIX, so do not add quotes.
12523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12534 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12536 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12537 if test -w "$cache_file"; then
12538 if test "x$cache_file" != "x/dev/null"; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12540 $as_echo "$as_me: updating cache $cache_file" >&6;}
12541 if test ! -f "$cache_file" || test -h "$cache_file"; then
12542 cat confcache >"$cache_file"
12544 case $cache_file in #(
12546 mv -f confcache "$cache_file"$$ &&
12547 mv -f "$cache_file"$$ "$cache_file" ;; #(
12549 mv -f confcache "$cache_file" ;;
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12555 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12561 # Let make expand exec_prefix.
12562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12564 DEFS=-DHAVE_CONFIG_H
12569 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12570 # 1. Remove the extension, and $U if already installed.
12571 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12572 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12573 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12574 # will be set to the directory where LIBOBJS objects are built.
12575 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12576 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12578 LIBOBJS=$ac_libobjs
12580 LTLIBOBJS=$ac_ltlibobjs
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12584 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12585 if test -n "$am_sleep_pid"; then
12586 # Hide warnings about reused PIDs.
12587 wait $am_sleep_pid 2>/dev/null
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12590 $as_echo "done" >&6; }
12591 if test -n "$EXEEXT"; then
12593 am__EXEEXT_FALSE='#'
12595 am__EXEEXT_TRUE='#'
12599 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12600 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12603 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12604 as_fn_error $? "conditional \"AMDEP\" was never defined.
12605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12607 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12608 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12612 : "${CONFIG_STATUS=./config.status}"
12614 ac_clean_files_save=$ac_clean_files
12615 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12617 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12619 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12621 # Generated by $as_me.
12622 # Run this file to recreate the current configuration.
12623 # Compiler output produced by configure, useful for debugging
12624 # configure, is in config.log if it exists.
12627 ac_cs_recheck=false
12630 SHELL=\${CONFIG_SHELL-$SHELL}
12633 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12634 ## -------------------- ##
12635 ## M4sh Initialization. ##
12636 ## -------------------- ##
12638 # Be more Bourne compatible
12639 DUALCASE=1; export DUALCASE # for MKS sh
12640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12643 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12644 # is contrary to our usage. Disable this feature.
12645 alias -g '${1+"$@"}'='"$@"'
12646 setopt NO_GLOB_SUBST
12648 case `(set -o) 2>/dev/null` in #(
12660 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12661 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12664 # Prefer a ksh shell builtin over an external printf program on Solaris,
12665 # but without wasting forks for bash or zsh.
12666 if test -z "$BASH_VERSION$ZSH_VERSION" \
12667 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12668 as_echo='print -r --'
12669 as_echo_n='print -rn --'
12670 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12671 as_echo='printf %s\n'
12672 as_echo_n='printf %s'
12674 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12675 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12676 as_echo_n='/usr/ucb/echo -n'
12678 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12679 as_echo_n_body='eval
12683 expr "X$arg" : "X\\(.*\\)$as_nl";
12684 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12686 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12688 export as_echo_n_body
12689 as_echo_n='sh -c $as_echo_n_body as_echo'
12691 export as_echo_body
12692 as_echo='sh -c $as_echo_body as_echo'
12695 # The user is always right.
12696 if test "${PATH_SEPARATOR+set}" != set; then
12698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12699 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12706 # We need space, tab and new line, in precisely that order. Quoting is
12707 # there to prevent editors from complaining about space-tab.
12708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12709 # splitting by setting IFS to empty value.)
12712 # Find who we are. Look in the path if we contain no directory separator.
12715 *[\\/]* ) as_myself=$0 ;;
12716 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12720 test -z "$as_dir" && as_dir=.
12721 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12727 # We did not find ourselves, most probably we were run as `sh COMMAND'
12728 # in which case we are not to be found in the path.
12729 if test "x$as_myself" = x; then
12732 if test ! -f "$as_myself"; then
12733 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12737 # Unset variables that we do not need and which cause bugs (e.g. in
12738 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12739 # suppresses any "Segmentation fault" message there. '((' could
12740 # trigger a bug in pdksh 5.2.14.
12741 for as_var in BASH_ENV ENV MAIL MAILPATH
12742 do eval test x\${$as_var+set} = xset \
12743 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12756 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12759 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12760 # ----------------------------------------
12761 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12762 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12763 # script with STATUS, using 1 if that was 0.
12766 as_status=$1; test $as_status -eq 0 && as_status=1
12768 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12769 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12771 $as_echo "$as_me: error: $2" >&2
12772 as_fn_exit $as_status
12776 # as_fn_set_status STATUS
12777 # -----------------------
12778 # Set $? to STATUS, without forking.
12779 as_fn_set_status ()
12782 } # as_fn_set_status
12784 # as_fn_exit STATUS
12785 # -----------------
12786 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12790 as_fn_set_status $1
12796 # Portably unset VAR.
12799 { eval $1=; unset $1;}
12801 as_unset=as_fn_unset
12802 # as_fn_append VAR VALUE
12803 # ----------------------
12804 # Append the text in VALUE to the end of the definition contained in VAR. Take
12805 # advantage of any shell optimizations that allow amortized linear growth over
12806 # repeated appends, instead of the typical quadratic growth present in naive
12808 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12809 eval 'as_fn_append ()
12820 # as_fn_arith ARG...
12821 # ------------------
12822 # Perform arithmetic evaluation on the ARGs, and store the result in the
12823 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12824 # must be portable across $(()) and expr.
12825 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12826 eval 'as_fn_arith ()
12833 as_val=`expr "$@" || test $? -eq 1`
12838 if expr a : '\(a\)' >/dev/null 2>&1 &&
12839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12845 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12846 as_basename=basename
12851 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12857 as_me=`$as_basename -- "$0" ||
12858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12859 X"$0" : 'X\(//\)$' \| \
12860 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12862 sed '/^.*\/\([^/][^/]*\)\/*$/{
12876 # Avoid depending upon Character Ranges.
12877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12880 as_cr_digits='0123456789'
12881 as_cr_alnum=$as_cr_Letters$as_cr_digits
12883 ECHO_C= ECHO_N= ECHO_T=
12884 case `echo -n x` in #(((((
12886 case `echo 'xy\c'` in
12887 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12889 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12896 rm -f conf$$ conf$$.exe conf$$.file
12897 if test -d conf$$.dir; then
12898 rm -f conf$$.dir/conf$$.file
12901 mkdir conf$$.dir 2>/dev/null
12903 if (echo >conf$$.file) 2>/dev/null; then
12904 if ln -s conf$$.file conf$$ 2>/dev/null; then
12906 # ... but there are two gotchas:
12907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12909 # In both cases, we have to default to `cp -pR'.
12910 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12912 elif ln conf$$.file conf$$ 2>/dev/null; then
12920 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12921 rmdir conf$$.dir 2>/dev/null
12926 # Create "$as_dir" as a directory, including parents if necessary.
12931 -*) as_dir=./$as_dir;;
12933 test -d "$as_dir" || eval $as_mkdir_p || {
12937 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12938 *) as_qdir=$as_dir;;
12940 as_dirs="'$as_qdir' $as_dirs"
12941 as_dir=`$as_dirname -- "$as_dir" ||
12942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12943 X"$as_dir" : 'X\(//\)[^/]' \| \
12944 X"$as_dir" : 'X\(//\)$' \| \
12945 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12946 $as_echo X"$as_dir" |
12947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12951 /^X\(\/\/\)[^/].*/{
12964 test -d "$as_dir" && break
12966 test -z "$as_dirs" || eval "mkdir $as_dirs"
12967 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12971 if mkdir -p . 2>/dev/null; then
12972 as_mkdir_p='mkdir -p "$as_dir"'
12974 test -d ./-p && rmdir ./-p
12979 # as_fn_executable_p FILE
12980 # -----------------------
12981 # Test if FILE is an executable regular file.
12982 as_fn_executable_p ()
12984 test -f "$1" && test -x "$1"
12985 } # as_fn_executable_p
12986 as_test_x='test -x'
12987 as_executable_p=as_fn_executable_p
12989 # Sed expression to map a string onto a valid CPP name.
12990 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12992 # Sed expression to map a string onto a valid variable name.
12993 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12997 ## ----------------------------------- ##
12998 ## Main body of $CONFIG_STATUS script. ##
12999 ## ----------------------------------- ##
13001 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13004 # Save the log message, to keep $0 and so on meaningful, and to
13005 # report actual input values of CONFIG_FILES etc. instead of their
13006 # values after options handling.
13008 This file was extended by libogg $as_me 1.3.2, which was
13009 generated by GNU Autoconf 2.69. Invocation command line was
13011 CONFIG_FILES = $CONFIG_FILES
13012 CONFIG_HEADERS = $CONFIG_HEADERS
13013 CONFIG_LINKS = $CONFIG_LINKS
13014 CONFIG_COMMANDS = $CONFIG_COMMANDS
13017 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13022 case $ac_config_files in *"
13023 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13026 case $ac_config_headers in *"
13027 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13032 # Files that config.status was made for.
13033 config_files="$ac_config_files"
13034 config_headers="$ac_config_headers"
13035 config_commands="$ac_config_commands"
13039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13041 \`$as_me' instantiates files and other configuration actions
13042 from templates according to the current configuration. Unless the files
13043 and actions are specified as TAGs, all are instantiated by default.
13045 Usage: $0 [OPTION]... [TAG]...
13047 -h, --help print this help, then exit
13048 -V, --version print version number and configuration settings, then exit
13049 --config print configuration, then exit
13050 -q, --quiet, --silent
13051 do not print progress messages
13052 -d, --debug don't remove temporary files
13053 --recheck update $as_me by reconfiguring in the same conditions
13054 --file=FILE[:TEMPLATE]
13055 instantiate the configuration file FILE
13056 --header=FILE[:TEMPLATE]
13057 instantiate the configuration header FILE
13059 Configuration files:
13062 Configuration headers:
13065 Configuration commands:
13068 Report bugs to <ogg-dev@xiph.org>."
13071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13072 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13074 libogg config.status 1.3.2
13075 configured by $0, generated by GNU Autoconf 2.69,
13076 with options \\"\$ac_cs_config\\"
13078 Copyright (C) 2012 Free Software Foundation, Inc.
13079 This config.status script is free software; the Free Software Foundation
13080 gives unlimited permission to copy, distribute and modify it."
13087 test -n "\$AWK" || AWK=awk
13090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13091 # The default lists apply if the user does not specify any file.
13097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13098 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13102 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13114 # Handling of the options.
13115 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13117 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13118 $as_echo "$ac_cs_version"; exit ;;
13119 --config | --confi | --conf | --con | --co | --c )
13120 $as_echo "$ac_cs_config"; exit ;;
13121 --debug | --debu | --deb | --de | --d | -d )
13123 --file | --fil | --fi | --f )
13126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13127 '') as_fn_error $? "missing file argument" ;;
13129 as_fn_append CONFIG_FILES " '$ac_optarg'"
13130 ac_need_defaults=false;;
13131 --header | --heade | --head | --hea )
13134 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13136 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13137 ac_need_defaults=false;;
13139 # Conflict between --help and --header
13140 as_fn_error $? "ambiguous option: \`$1'
13141 Try \`$0 --help' for more information.";;
13142 --help | --hel | -h )
13143 $as_echo "$ac_cs_usage"; exit ;;
13144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13148 # This is an error.
13149 -*) as_fn_error $? "unrecognized option: \`$1'
13150 Try \`$0 --help' for more information." ;;
13152 *) as_fn_append ac_config_targets " $1"
13153 ac_need_defaults=false ;;
13159 ac_configure_extra_args=
13161 if $ac_cs_silent; then
13163 ac_configure_extra_args="$ac_configure_extra_args --silent"
13167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13168 if \$ac_cs_recheck; then
13169 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13172 CONFIG_SHELL='$SHELL'
13173 export CONFIG_SHELL
13178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13183 ## Running $as_me. ##
13189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13193 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13196 # The HP-UX ksh and POSIX shell print the target directory to stdout
13197 # if CDPATH is set.
13198 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13200 sed_quote_subst='$sed_quote_subst'
13201 double_quote_subst='$double_quote_subst'
13202 delay_variable_subst='$delay_variable_subst'
13203 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13204 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13205 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13206 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13207 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13208 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13209 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13210 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13211 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13212 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13213 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13214 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13215 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13216 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13217 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13218 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13219 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13220 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13221 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13222 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13223 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13224 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13225 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13226 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13227 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13228 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13229 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13230 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13231 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13232 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13233 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13234 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13235 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13236 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13237 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13238 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13239 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13240 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13241 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13242 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13243 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13244 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13245 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13246 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13247 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13248 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13249 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13250 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13251 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13252 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13253 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13254 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13255 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13256 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13257 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13258 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13259 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"`'
13260 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13261 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13262 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13263 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13264 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13265 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13266 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13267 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13268 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13269 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13270 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13271 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13272 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13273 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13274 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13275 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13276 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13277 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13278 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13279 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13280 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13281 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13282 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13283 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13284 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13285 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13286 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13287 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13288 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13289 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13290 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13291 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13292 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13293 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13294 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13295 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13296 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13297 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13298 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13299 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13300 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13301 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13302 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13303 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13304 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13305 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13306 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13307 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13308 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13309 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13310 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13311 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13312 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13313 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13314 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13315 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13316 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13317 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13318 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13319 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13320 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13321 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13322 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13323 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13324 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13325 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13326 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13327 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13328 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13329 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13330 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13331 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13332 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13335 LTCFLAGS='$LTCFLAGS'
13336 compiler='$compiler_DEFAULT'
13338 # A function that is used when there is no print builtin or printf.
13339 func_fallback_echo ()
13341 eval 'cat <<_LTECHO_EOF
13346 # Quote evaled strings.
13361 deplibs_check_method \
13366 sharedlib_from_linklib_cmd \
13369 archiver_list_spec \
13375 lt_cv_sys_global_symbol_pipe \
13376 lt_cv_sys_global_symbol_to_cdecl \
13377 lt_cv_sys_global_symbol_to_c_name_address \
13378 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13379 nm_file_list_spec \
13380 lt_prog_compiler_no_builtin_flag \
13381 lt_prog_compiler_pic \
13382 lt_prog_compiler_wl \
13383 lt_prog_compiler_static \
13384 lt_cv_prog_compiler_c_o \
13393 export_dynamic_flag_spec \
13394 whole_archive_flag_spec \
13395 compiler_needs_object \
13397 allow_undefined_flag \
13398 no_undefined_flag \
13399 hardcode_libdir_flag_spec \
13400 hardcode_libdir_separator \
13404 variables_saved_for_relink \
13406 library_names_spec \
13408 install_override_mode \
13412 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13413 *[\\\\\\\`\\"\\\$]*)
13414 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13417 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13422 # Double-quote double-evaled strings.
13423 for var in reload_cmds \
13424 old_postinstall_cmds \
13425 old_postuninstall_cmds \
13427 extract_expsyms_cmds \
13428 old_archive_from_new_cmds \
13429 old_archive_from_expsyms_cmds \
13431 archive_expsym_cmds \
13433 module_expsym_cmds \
13434 export_symbols_cmds \
13438 postuninstall_cmds \
13440 sys_lib_search_path_spec \
13441 sys_lib_dlsearch_path_spec; do
13442 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13443 *[\\\\\\\`\\"\\\$]*)
13444 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13447 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13452 ac_aux_dir='$ac_aux_dir'
13453 xsi_shell='$xsi_shell'
13454 lt_shell_append='$lt_shell_append'
13456 # See if we are running on zsh, and set the options which allow our
13457 # commands through without removal of \ escapes INIT.
13458 if test -n "\${ZSH_VERSION+set}" ; then
13459 setopt NO_GLOB_SUBST
13465 TIMESTAMP='$TIMESTAMP'
13474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13476 # Handling of arguments.
13477 for ac_config_target in $ac_config_targets
13479 case $ac_config_target in
13480 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13481 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13482 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13483 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13484 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13485 "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
13486 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13487 "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
13488 "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
13489 "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
13490 "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
13491 "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
13492 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13494 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13499 # If the user did not use the arguments to specify the items to instantiate,
13500 # then the envvar interface is used. Set only those that are not.
13501 # We use the long form for the default assignment because of an extremely
13502 # bizarre bug on SunOS 4.1.3.
13503 if $ac_need_defaults; then
13504 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13505 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13506 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13509 # Have a temporary directory for convenience. Make it in the build tree
13510 # simply because there is no reason against having it here, and in addition,
13511 # creating and moving files from /tmp can sometimes cause problems.
13512 # Hook for its removal unless debugging.
13513 # Note that there is a small window in which the directory will not be cleaned:
13514 # after its creation but before its name has been assigned to `$tmp'.
13518 trap 'exit_status=$?
13519 : "${ac_tmp:=$tmp}"
13520 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13522 trap 'as_fn_exit 1' 1 2 13 15
13524 # Create a (secure) tmp directory for tmp files.
13527 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13531 tmp=./conf$$-$RANDOM
13532 (umask 077 && mkdir "$tmp")
13533 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13536 # Set up the scripts for CONFIG_FILES section.
13537 # No need to generate them if there are no CONFIG_FILES.
13538 # This happens for instance with `./config.status config.h'.
13539 if test -n "$CONFIG_FILES"; then
13542 ac_cr=`echo X | tr X '\015'`
13543 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13544 # But we know of no other shell where ac_cr would be empty at this
13545 # point, so we can use a bashism as a fallback.
13546 if test "x$ac_cr" = x; then
13547 eval ac_cr=\$\'\\r\'
13549 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13550 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13553 ac_cs_awk_cr=$ac_cr
13556 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13561 echo "cat >conf$$subs.awk <<_ACEOF" &&
13562 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13564 } >conf$$subs.sh ||
13565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13566 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13568 for ac_last_try in false false false false false :; do
13569 . ./conf$$subs.sh ||
13570 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13572 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13573 if test $ac_delim_n = $ac_delim_num; then
13575 elif $ac_last_try; then
13576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13581 rm -f conf$$subs.sh
13583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13584 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13588 s/^/S["/; s/!.*/"]=/
13598 s/\(.\{148\}\)..*/\1/
13600 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13605 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13612 s/\(.\{148\}\)..*/\1/
13614 s/["\\]/\\&/g; s/^/"/; s/$/"/
13618 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13623 ' <conf$$subs.awk | sed '
13628 ' >>$CONFIG_STATUS || ac_write_fail=1
13629 rm -f conf$$subs.awk
13630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13632 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13633 for (key in S) S_is_set[key] = 1
13639 nfields = split(line, field, "@")
13641 len = length(field[1])
13642 for (i = 2; i < nfields; i++) {
13644 keylen = length(key)
13645 if (S_is_set[key]) {
13647 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13648 len += length(value) + length(field[++i])
13659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13660 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13661 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13664 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13665 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13668 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13669 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13670 # trailing colons and then remove the whole line if VPATH becomes empty
13671 # (actually we leave an empty line to preserve line numbers).
13672 if test "x$srcdir" = x.; then
13673 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13692 fi # test -n "$CONFIG_FILES"
13694 # Set up the scripts for CONFIG_HEADERS section.
13695 # No need to generate them if there are no CONFIG_HEADERS.
13696 # This happens for instance with `./config.status Makefile'.
13697 if test -n "$CONFIG_HEADERS"; then
13698 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13702 # Transform confdefs.h into an awk script `defines.awk', embedded as
13703 # here-document in config.status, that substitutes the proper values into
13704 # config.h.in to produce config.h.
13706 # Create a delimiter string that does not exist in confdefs.h, to ease
13707 # handling of long lines.
13709 for ac_last_try in false false :; do
13710 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13711 if test -z "$ac_tt"; then
13713 elif $ac_last_try; then
13714 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13720 # For the awk script, D is an array of macro values keyed by name,
13721 # likewise P contains macro parameters if any. Preserve backslash
13722 # newline sequences.
13724 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13726 s/.\{148\}/&'"$ac_delim"'/g
13729 s/^[ ]*#[ ]*define[ ][ ]*/ /
13736 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13738 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13742 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13743 D["\1"]=" \3\\\\\\n"\\/p
13745 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13750 s/.\{148\}/&'"$ac_delim"'/g
13755 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13758 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13760 ' <confdefs.h | sed '
13761 s/'"$ac_delim"'/"\\\
13762 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13765 for (key in D) D_is_set[key] = 1
13768 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13770 split(line, arg, " ")
13771 if (arg[1] == "#") {
13775 defundef = substr(arg[1], 2)
13778 split(mac1, mac2, "(") #)
13780 prefix = substr(line, 1, index(line, defundef) - 1)
13781 if (D_is_set[macro]) {
13782 # Preserve the white space surrounding the "#".
13783 print prefix "define", macro P[macro] D[macro]
13786 # Replace #undef with comments. This is necessary, for example,
13787 # in the case of _POSIX_SOURCE, which is predefined and required
13788 # on some systems where configure will not decide to define it.
13789 if (defundef == "undef") {
13790 print "/*", prefix defundef, macro, "*/"
13798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13799 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13800 fi # test -n "$CONFIG_HEADERS"
13803 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13808 :[FHLC]) ac_mode=$ac_tag; continue;;
13810 case $ac_mode$ac_tag in
13812 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13813 :[FH]-) ac_tag=-:-;;
13814 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13831 -) ac_f="$ac_tmp/stdin";;
13832 *) # Look for the file first in the build tree, then in the source tree
13833 # (if the path is not absolute). The absolute path cannot be DOS-style,
13834 # because $ac_f cannot contain `:'.
13838 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13840 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13842 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13843 as_fn_append ac_file_inputs " '$ac_f'"
13846 # Let's still pretend it is `configure' which instantiates (i.e., don't
13847 # use $as_me), people would be surprised to read:
13848 # /* config.h. Generated by config.status. */
13849 configure_input='Generated from '`
13850 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13852 if test x"$ac_file" != x-; then
13853 configure_input="$ac_file. $configure_input"
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13855 $as_echo "$as_me: creating $ac_file" >&6;}
13857 # Neutralize special characters interpreted by sed in replacement strings.
13858 case $configure_input in #(
13859 *\&* | *\|* | *\\* )
13860 ac_sed_conf_input=`$as_echo "$configure_input" |
13861 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13862 *) ac_sed_conf_input=$configure_input;;
13866 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13872 ac_dir=`$as_dirname -- "$ac_file" ||
13873 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13874 X"$ac_file" : 'X\(//\)[^/]' \| \
13875 X"$ac_file" : 'X\(//\)$' \| \
13876 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13877 $as_echo X"$ac_file" |
13878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13882 /^X\(\/\/\)[^/].*/{
13895 as_dir="$ac_dir"; as_fn_mkdir_p
13899 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13901 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13902 # A ".." for each directory in $ac_dir_suffix.
13903 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13904 case $ac_top_builddir_sub in
13905 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13906 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13909 ac_abs_top_builddir=$ac_pwd
13910 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13911 # for backward compatibility:
13912 ac_top_builddir=$ac_top_build_prefix
13915 .) # We are building in place.
13917 ac_top_srcdir=$ac_top_builddir_sub
13918 ac_abs_top_srcdir=$ac_pwd ;;
13919 [\\/]* | ?:[\\/]* ) # Absolute name.
13920 ac_srcdir=$srcdir$ac_dir_suffix;
13921 ac_top_srcdir=$srcdir
13922 ac_abs_top_srcdir=$srcdir ;;
13923 *) # Relative name.
13924 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13925 ac_top_srcdir=$ac_top_build_prefix$srcdir
13926 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13928 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13938 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13939 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13941 ac_MKDIR_P=$MKDIR_P
13943 [\\/$]* | ?:[\\/]* ) ;;
13944 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13949 # If the template does not know about datarootdir, expand it.
13950 # FIXME: This hack should be removed a few years after 2.60.
13951 ac_datarootdir_hack=; ac_datarootdir_seen=
13962 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13963 *datarootdir*) ac_datarootdir_seen=yes;;
13964 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13966 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13969 ac_datarootdir_hack='
13970 s&@datadir@&$datadir&g
13971 s&@docdir@&$docdir&g
13972 s&@infodir@&$infodir&g
13973 s&@localedir@&$localedir&g
13974 s&@mandir@&$mandir&g
13975 s&\\\${datarootdir}&$datarootdir&g' ;;
13979 # Neutralize VPATH when `$srcdir' = `.'.
13980 # Shell code in configure.ac might set extrasub.
13981 # FIXME: do we really want to maintain this feature?
13982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13983 ac_sed_extra="$ac_vpsub
13986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13989 s|@configure_input@|$ac_sed_conf_input|;t t
13990 s&@top_builddir@&$ac_top_builddir_sub&;t t
13991 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13992 s&@srcdir@&$ac_srcdir&;t t
13993 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13994 s&@top_srcdir@&$ac_top_srcdir&;t t
13995 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13996 s&@builddir@&$ac_builddir&;t t
13997 s&@abs_builddir@&$ac_abs_builddir&;t t
13998 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13999 s&@INSTALL@&$ac_INSTALL&;t t
14000 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14001 $ac_datarootdir_hack
14003 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14004 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14006 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14007 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14008 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14009 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14011 which seems to be undefined. Please make sure it is defined" >&5
14012 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14013 which seems to be undefined. Please make sure it is defined" >&2;}
14015 rm -f "$ac_tmp/stdin"
14017 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14018 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14026 if test x"$ac_file" != x-; then
14028 $as_echo "/* $configure_input */" \
14029 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14030 } >"$ac_tmp/config.h" \
14031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14032 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14034 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14037 mv "$ac_tmp/config.h" "$ac_file" \
14038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14041 $as_echo "/* $configure_input */" \
14042 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14043 || as_fn_error $? "could not create -" "$LINENO" 5
14045 # Compute "$ac_file"'s index in $config_headers.
14048 for _am_header in $config_headers :; do
14049 case $_am_header in
14050 $_am_arg | $_am_arg:* )
14053 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14056 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14057 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14058 X"$_am_arg" : 'X\(//\)[^/]' \| \
14059 X"$_am_arg" : 'X\(//\)$' \| \
14060 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14061 $as_echo X"$_am_arg" |
14062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14066 /^X\(\/\/\)[^/].*/{
14078 s/.*/./; q'`/stamp-h$_am_stamp_count
14081 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14082 $as_echo "$as_me: executing $ac_file commands" >&6;}
14087 case $ac_file$ac_mode in
14088 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14089 # Older Autoconf quotes --file arguments for eval, but not when files
14090 # are listed without --file. Let's play safe and only enable the eval
14091 # if we detect the quoting.
14092 case $CONFIG_FILES in
14093 *\'*) eval set x "$CONFIG_FILES" ;;
14094 *) set x $CONFIG_FILES ;;
14099 # Strip MF so we end up with the name of the file.
14100 mf=`echo "$mf" | sed -e 's/:.*$//'`
14101 # Check whether this is an Automake generated Makefile or not.
14102 # We used to match only the files named 'Makefile.in', but
14103 # some people rename them; so instead we look at the file content.
14104 # Grep'ing the first line is not enough: some people post-process
14105 # each Makefile.in and add a new line on top of each file to say so.
14106 # Grep'ing the whole file is not good either: AIX grep has a line
14107 # limit of 2048, but all sed's we know have understand at least 4000.
14108 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14109 dirpart=`$as_dirname -- "$mf" ||
14110 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14111 X"$mf" : 'X\(//\)[^/]' \| \
14112 X"$mf" : 'X\(//\)$' \| \
14113 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14119 /^X\(\/\/\)[^/].*/{
14135 # Extract the definition of DEPDIR, am__include, and am__quote
14136 # from the Makefile without running 'make'.
14137 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14138 test -z "$DEPDIR" && continue
14139 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14140 test -z "$am__include" && continue
14141 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14142 # Find all dependency output files, they are included files with
14143 # $(DEPDIR) in their names. We invoke sed twice because it is the
14144 # simplest approach to changing $(DEPDIR) to its actual value in the
14146 for file in `sed -n "
14147 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14148 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14149 # Make sure the directory exists.
14150 test -f "$dirpart/$file" && continue
14151 fdir=`$as_dirname -- "$file" ||
14152 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14153 X"$file" : 'X\(//\)[^/]' \| \
14154 X"$file" : 'X\(//\)$' \| \
14155 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14156 $as_echo X"$file" |
14157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14161 /^X\(\/\/\)[^/].*/{
14174 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14175 # echo "creating $dirpart/$file"
14176 echo '# dummy' > "$dirpart/$file"
14183 # See if we are running on zsh, and set the options which allow our
14184 # commands through without removal of \ escapes.
14185 if test -n "${ZSH_VERSION+set}" ; then
14186 setopt NO_GLOB_SUBST
14189 cfgfile="${ofile}T"
14190 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14193 cat <<_LT_EOF >> "$cfgfile"
14196 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14197 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14199 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14201 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14202 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14204 # Written by Gordon Matzigkeit, 1996
14206 # This file is part of GNU Libtool.
14208 # GNU Libtool is free software; you can redistribute it and/or
14209 # modify it under the terms of the GNU General Public License as
14210 # published by the Free Software Foundation; either version 2 of
14211 # the License, or (at your option) any later version.
14213 # As a special exception to the GNU General Public License,
14214 # if you distribute this file as part of a program or library that
14215 # is built using GNU Libtool, you may include this file under the
14216 # same distribution terms that you use for the rest of that program.
14218 # GNU Libtool is distributed in the hope that it will be useful,
14219 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14220 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14221 # GNU General Public License for more details.
14223 # You should have received a copy of the GNU General Public License
14224 # along with GNU Libtool; see the file COPYING. If not, a copy
14225 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14226 # obtained by writing to the Free Software Foundation, Inc.,
14227 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14230 # The names of the tagged configurations supported by this script.
14233 # ### BEGIN LIBTOOL CONFIG
14235 # Which release of libtool.m4 was used?
14236 macro_version=$macro_version
14237 macro_revision=$macro_revision
14239 # Whether or not to build shared libraries.
14240 build_libtool_libs=$enable_shared
14242 # Whether or not to build static libraries.
14243 build_old_libs=$enable_static
14245 # What type of objects to build.
14248 # Whether or not to optimize for fast installation.
14249 fast_install=$enable_fast_install
14251 # Shell to use when invoking shell scripts.
14254 # An echo program that protects backslashes.
14257 # The PATH separator for the build system.
14258 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14261 host_alias=$host_alias
14265 # The build system.
14266 build_alias=$build_alias
14270 # A sed program that does not truncate output.
14273 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14274 Xsed="\$SED -e 1s/^X//"
14276 # A grep program that handles long lines.
14282 # A literal string matcher.
14285 # A BSD- or MS-compatible name lister.
14288 # Whether we need soft or hard links.
14291 # What is the maximum length of a command?
14292 max_cmd_len=$max_cmd_len
14294 # Object file suffix (normally "o").
14297 # Executable file suffix (normally "").
14300 # whether the shell understands "unset".
14303 # turn spaces into newlines.
14306 # turn newlines into spaces.
14309 # convert \$build file names to \$host format.
14310 to_host_file_cmd=$lt_cv_to_host_file_cmd
14312 # convert \$build files to toolchain format.
14313 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14315 # An object symbol dumper.
14316 OBJDUMP=$lt_OBJDUMP
14318 # Method to check whether dependent libraries are shared objects.
14319 deplibs_check_method=$lt_deplibs_check_method
14321 # Command to use when deplibs_check_method = "file_magic".
14322 file_magic_cmd=$lt_file_magic_cmd
14324 # How to find potential files when deplibs_check_method = "file_magic".
14325 file_magic_glob=$lt_file_magic_glob
14327 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14328 want_nocaseglob=$lt_want_nocaseglob
14330 # DLL creation program.
14331 DLLTOOL=$lt_DLLTOOL
14333 # Command to associate shared and link libraries.
14334 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14339 # Flags to create an archive.
14340 AR_FLAGS=$lt_AR_FLAGS
14342 # How to feed a file listing to the archiver.
14343 archiver_list_spec=$lt_archiver_list_spec
14345 # A symbol stripping program.
14348 # Commands used to install an old-style archive.
14350 old_postinstall_cmds=$lt_old_postinstall_cmds
14351 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14353 # Whether to use a lock for old archive extraction.
14354 lock_old_archive_extraction=$lock_old_archive_extraction
14359 # LTCC compiler flags.
14360 LTCFLAGS=$lt_CFLAGS
14362 # Take the output of nm and produce a listing of raw symbols and C names.
14363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14365 # Transform the output of nm in a proper C declaration.
14366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14368 # Transform the output of nm in a C name address pair.
14369 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14371 # Transform the output of nm in a C name address pair when lib prefix is needed.
14372 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14374 # Specify filename containing input files for \$NM.
14375 nm_file_list_spec=$lt_nm_file_list_spec
14377 # The root where to search for dependent libraries,and in which our libraries should be installed.
14378 lt_sysroot=$lt_sysroot
14380 # The name of the directory that contains temporary libtool files.
14383 # Used to examine libraries when file_magic_cmd begins with "file".
14384 MAGIC_CMD=$MAGIC_CMD
14386 # Must we lock files when doing compilation?
14387 need_locks=$lt_need_locks
14390 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14392 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14393 DSYMUTIL=$lt_DSYMUTIL
14395 # Tool to change global to local symbols on Mac OS X.
14398 # Tool to manipulate fat objects and archives on Mac OS X.
14401 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14404 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14405 OTOOL64=$lt_OTOOL64
14407 # Old archive suffix (normally "a").
14410 # Shared library suffix (normally ".so").
14411 shrext_cmds=$lt_shrext_cmds
14413 # The commands to extract the exported symbol list from a shared archive.
14414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14416 # Variables whose values should be saved in libtool wrapper scripts and
14417 # restored at link time.
14418 variables_saved_for_relink=$lt_variables_saved_for_relink
14420 # Do we need the "lib" prefix for modules?
14421 need_lib_prefix=$need_lib_prefix
14423 # Do we need a version for libraries?
14424 need_version=$need_version
14426 # Library versioning type.
14427 version_type=$version_type
14429 # Shared library runtime path variable.
14430 runpath_var=$runpath_var
14432 # Shared library path variable.
14433 shlibpath_var=$shlibpath_var
14435 # Is shlibpath searched before the hard-coded library search path?
14436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14438 # Format of library name prefix.
14439 libname_spec=$lt_libname_spec
14441 # List of archive names. First name is the real one, the rest are links.
14442 # The last name is the one that the linker finds with -lNAME
14443 library_names_spec=$lt_library_names_spec
14445 # The coded name of the library, if different from the real name.
14446 soname_spec=$lt_soname_spec
14448 # Permission mode override for installation of shared libraries.
14449 install_override_mode=$lt_install_override_mode
14451 # Command to use after installation of a shared archive.
14452 postinstall_cmds=$lt_postinstall_cmds
14454 # Command to use after uninstallation of a shared archive.
14455 postuninstall_cmds=$lt_postuninstall_cmds
14457 # Commands used to finish a libtool library installation in a directory.
14458 finish_cmds=$lt_finish_cmds
14460 # As "finish_cmds", except a single script fragment to be evaled but
14462 finish_eval=$lt_finish_eval
14464 # Whether we should hardcode library paths into libraries.
14465 hardcode_into_libs=$hardcode_into_libs
14467 # Compile-time system search path for libraries.
14468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14470 # Run-time system search path for libraries.
14471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14473 # Whether dlopen is supported.
14474 dlopen_support=$enable_dlopen
14476 # Whether dlopen of programs is supported.
14477 dlopen_self=$enable_dlopen_self
14479 # Whether dlopen of statically linked programs is supported.
14480 dlopen_self_static=$enable_dlopen_self_static
14482 # Commands to strip libraries.
14483 old_striplib=$lt_old_striplib
14484 striplib=$lt_striplib
14487 # The linker used to build libraries.
14490 # How to create reloadable object files.
14491 reload_flag=$lt_reload_flag
14492 reload_cmds=$lt_reload_cmds
14494 # Commands used to build an old-style archive.
14495 old_archive_cmds=$lt_old_archive_cmds
14497 # A language specific compiler.
14500 # Is the compiler the GNU compiler?
14503 # Compiler flag to turn off builtin functions.
14504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14506 # Additional compiler flags for building library objects.
14507 pic_flag=$lt_lt_prog_compiler_pic
14509 # How to pass a linker flag through the compiler.
14510 wl=$lt_lt_prog_compiler_wl
14512 # Compiler flag to prevent dynamic linking.
14513 link_static_flag=$lt_lt_prog_compiler_static
14515 # Does compiler simultaneously support -c and -o options?
14516 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14518 # Whether or not to add -lc for building shared libraries.
14519 build_libtool_need_lc=$archive_cmds_need_lc
14521 # Whether or not to disallow shared libs when runtime libs are static.
14522 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14524 # Compiler flag to allow reflexive dlopens.
14525 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14527 # Compiler flag to generate shared objects directly from archives.
14528 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14530 # Whether the compiler copes with passing no objects directly.
14531 compiler_needs_object=$lt_compiler_needs_object
14533 # Create an old-style archive from a shared archive.
14534 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14536 # Create a temporary old-style archive to link instead of a shared archive.
14537 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14539 # Commands used to build a shared archive.
14540 archive_cmds=$lt_archive_cmds
14541 archive_expsym_cmds=$lt_archive_expsym_cmds
14543 # Commands used to build a loadable module if different from building
14544 # a shared archive.
14545 module_cmds=$lt_module_cmds
14546 module_expsym_cmds=$lt_module_expsym_cmds
14548 # Whether we are building with GNU ld or not.
14549 with_gnu_ld=$lt_with_gnu_ld
14551 # Flag that allows shared libraries with undefined symbols to be built.
14552 allow_undefined_flag=$lt_allow_undefined_flag
14554 # Flag that enforces no undefined symbols.
14555 no_undefined_flag=$lt_no_undefined_flag
14557 # Flag to hardcode \$libdir into a binary during linking.
14558 # This must work even if \$libdir does not exist
14559 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14561 # Whether we need a single "-rpath" flag with a separated argument.
14562 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14565 # DIR into the resulting binary.
14566 hardcode_direct=$hardcode_direct
14568 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14569 # DIR into the resulting binary and the resulting library dependency is
14570 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14571 # library is relocated.
14572 hardcode_direct_absolute=$hardcode_direct_absolute
14574 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14575 # into the resulting binary.
14576 hardcode_minus_L=$hardcode_minus_L
14578 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14579 # into the resulting binary.
14580 hardcode_shlibpath_var=$hardcode_shlibpath_var
14582 # Set to "yes" if building a shared library automatically hardcodes DIR
14583 # into the library and all subsequent libraries and executables linked
14585 hardcode_automatic=$hardcode_automatic
14587 # Set to yes if linker adds runtime paths of dependent libraries
14588 # to runtime path list.
14589 inherit_rpath=$inherit_rpath
14591 # Whether libtool must link a program against all its dependency libraries.
14592 link_all_deplibs=$link_all_deplibs
14594 # Set to "yes" if exported symbols are required.
14595 always_export_symbols=$always_export_symbols
14597 # The commands to list exported symbols.
14598 export_symbols_cmds=$lt_export_symbols_cmds
14600 # Symbols that should not be listed in the preloaded symbols.
14601 exclude_expsyms=$lt_exclude_expsyms
14603 # Symbols that must always be exported.
14604 include_expsyms=$lt_include_expsyms
14606 # Commands necessary for linking programs (against libraries) with templates.
14607 prelink_cmds=$lt_prelink_cmds
14609 # Commands necessary for finishing linking programs.
14610 postlink_cmds=$lt_postlink_cmds
14612 # Specify filename containing input files.
14613 file_list_spec=$lt_file_list_spec
14615 # How to hardcode a shared library path into an executable.
14616 hardcode_action=$hardcode_action
14618 # ### END LIBTOOL CONFIG
14624 cat <<\_LT_EOF >> "$cfgfile"
14625 # AIX sometimes has problems with the GCC collect2 program. For some
14626 # reason, if we set the COLLECT_NAMES environment variable, the problems
14627 # vanish in a puff of smoke.
14628 if test "X${COLLECT_NAMES+set}" != Xset; then
14630 export COLLECT_NAMES
14637 ltmain="$ac_aux_dir/ltmain.sh"
14640 # We use sed instead of cat because bash on DJGPP gets confused if
14641 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14642 # text mode, it properly converts lines to CR/LF. This bash problem
14643 # is reportedly fixed, but why not run on old versions too?
14644 sed '$q' "$ltmain" >> "$cfgfile" \
14645 || (rm -f "$cfgfile"; exit 1)
14647 if test x"$xsi_shell" = xyes; then
14648 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14652 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14653 \ * ) func_dirname_result="${3}" ;;\
14655 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14656 && mv -f "$cfgfile.tmp" "$cfgfile" \
14657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14658 test 0 -eq $? || _lt_function_replace_fail=:
14661 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14664 \ func_basename_result="${1##*/}"\
14665 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14666 && mv -f "$cfgfile.tmp" "$cfgfile" \
14667 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14668 test 0 -eq $? || _lt_function_replace_fail=:
14671 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14672 func_dirname_and_basename ()\
14675 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14676 \ * ) func_dirname_result="${3}" ;;\
14678 \ func_basename_result="${1##*/}"\
14679 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14680 && mv -f "$cfgfile.tmp" "$cfgfile" \
14681 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14682 test 0 -eq $? || _lt_function_replace_fail=:
14685 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14688 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14689 \ # positional parameters, so assign one to ordinary parameter first.\
14690 \ func_stripname_result=${3}\
14691 \ func_stripname_result=${func_stripname_result#"${1}"}\
14692 \ func_stripname_result=${func_stripname_result%"${2}"}\
14693 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14694 && mv -f "$cfgfile.tmp" "$cfgfile" \
14695 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14696 test 0 -eq $? || _lt_function_replace_fail=:
14699 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14700 func_split_long_opt ()\
14702 \ func_split_long_opt_name=${1%%=*}\
14703 \ func_split_long_opt_arg=${1#*=}\
14704 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14705 && mv -f "$cfgfile.tmp" "$cfgfile" \
14706 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14707 test 0 -eq $? || _lt_function_replace_fail=:
14710 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14711 func_split_short_opt ()\
14713 \ func_split_short_opt_arg=${1#??}\
14714 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14715 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14716 && mv -f "$cfgfile.tmp" "$cfgfile" \
14717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14718 test 0 -eq $? || _lt_function_replace_fail=:
14721 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14725 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14726 \ *) func_lo2o_result=${1} ;;\
14728 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14729 && mv -f "$cfgfile.tmp" "$cfgfile" \
14730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14731 test 0 -eq $? || _lt_function_replace_fail=:
14734 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14737 func_xform_result=${1%.*}.lo\
14738 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14739 && mv -f "$cfgfile.tmp" "$cfgfile" \
14740 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14741 test 0 -eq $? || _lt_function_replace_fail=:
14744 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14747 func_arith_result=$(( $* ))\
14748 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14749 && mv -f "$cfgfile.tmp" "$cfgfile" \
14750 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14751 test 0 -eq $? || _lt_function_replace_fail=:
14754 sed -e '/^func_len ()$/,/^} # func_len /c\
14757 func_len_result=${#1}\
14758 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14759 && mv -f "$cfgfile.tmp" "$cfgfile" \
14760 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14761 test 0 -eq $? || _lt_function_replace_fail=:
14765 if test x"$lt_shell_append" = xyes; then
14766 sed -e '/^func_append ()$/,/^} # func_append /c\
14769 eval "${1}+=\\${2}"\
14770 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14771 && mv -f "$cfgfile.tmp" "$cfgfile" \
14772 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14773 test 0 -eq $? || _lt_function_replace_fail=:
14776 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14777 func_append_quoted ()\
14779 \ func_quote_for_eval "${2}"\
14780 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14781 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14782 && mv -f "$cfgfile.tmp" "$cfgfile" \
14783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14784 test 0 -eq $? || _lt_function_replace_fail=:
14787 # Save a `func_append' function call where possible by direct use of '+='
14788 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14789 && mv -f "$cfgfile.tmp" "$cfgfile" \
14790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14791 test 0 -eq $? || _lt_function_replace_fail=:
14793 # Save a `func_append' function call even when '+=' is not available
14794 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14795 && mv -f "$cfgfile.tmp" "$cfgfile" \
14796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14797 test 0 -eq $? || _lt_function_replace_fail=:
14800 if test x"$_lt_function_replace_fail" = x":"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14802 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14806 mv -f "$cfgfile" "$ofile" ||
14807 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14818 ac_clean_files=$ac_clean_files_save
14820 test $ac_write_fail = 0 ||
14821 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14824 # configure is writing to config.log, and then calls config.status.
14825 # config.status does its own redirection, appending to config.log.
14826 # Unfortunately, on DOS this fails, as config.log is still kept open
14827 # by configure, so config.status won't be able to write to it; its
14828 # output is simply discarded. So we exec the FD to /dev/null,
14829 # effectively closing config.log, so it can be properly (re)opened and
14830 # appended to by config.status. When coming back to configure, we
14831 # need to make the FD available again.
14832 if test "$no_create" != yes; then
14834 ac_config_status_args=
14835 test "$silent" = yes &&
14836 ac_config_status_args="$ac_config_status_args --quiet"
14838 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14840 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14841 # would make configure fail if this is the last instruction.
14842 $ac_cs_success || as_fn_exit 1
14844 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14846 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}