2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libtheora 1.1.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix=/usr/local
735 ac_config_libobj_dir=.
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME='libtheora'
745 PACKAGE_TARNAME='libtheora'
746 PACKAGE_VERSION='1.1.1'
747 PACKAGE_STRING='libtheora 1.1.1'
750 ac_unique_file="lib/fdct.c"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
764 # ifdef HAVE_STDLIB_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
787 ac_subst_vars='DOCDIR
797 THEORA_ENABLE_EXAMPLES_FALSE
798 THEORA_ENABLE_EXAMPLES_TRUE
799 THEORA_DISABLE_ENCODE_FALSE
800 THEORA_DISABLE_ENCODE_TRUE
801 THEORA_DISABLE_FLOAT_FALSE
802 THEORA_DISABLE_FLOAT_TRUE
883 MAINTAINER_MODE_FALSE
887 INSTALL_STRIP_PROGRAM
940 program_transform_name
952 enable_option_checking
953 enable_maintainer_mode
954 enable_dependency_tracking
962 enable_valgrind_testing
969 with_vorbis_libraries
980 ac_precious_vars='build_alias
1000 # Initialize some variables set by options.
1002 ac_init_version=false
1003 ac_unrecognized_opts=
1004 ac_unrecognized_sep=
1005 # The variables have the same names as the options, with
1006 # dashes changed to underlines.
1007 cache_file=/dev/null
1014 program_transform_name=s,x,x,
1022 # Installation directory options.
1023 # These are left unexpanded so users can "make install exec_prefix=/foo"
1024 # and all the variables that are supposed to be based on exec_prefix
1025 # by default will actually change.
1026 # Use braces instead of parens because sh, perl, etc. also accept them.
1027 # (The list follows the same order as the GNU Coding Standards.)
1028 bindir='${exec_prefix}/bin'
1029 sbindir='${exec_prefix}/sbin'
1030 libexecdir='${exec_prefix}/libexec'
1031 datarootdir='${prefix}/share'
1032 datadir='${datarootdir}'
1033 sysconfdir='${prefix}/etc'
1034 sharedstatedir='${prefix}/com'
1035 localstatedir='${prefix}/var'
1036 includedir='${prefix}/include'
1037 oldincludedir='/usr/include'
1038 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1039 infodir='${datarootdir}/info'
1044 libdir='${exec_prefix}/lib'
1045 localedir='${datarootdir}/locale'
1046 mandir='${datarootdir}/man'
1052 # If the previous option needs an argument, assign it.
1053 if test -n "$ac_prev"; then
1054 eval $ac_prev=\$ac_option
1060 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064 # Accept the important Cygnus configure options, so we can diagnose typos.
1066 case $ac_dashdash$ac_option in
1070 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1072 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1073 bindir=$ac_optarg ;;
1075 -build | --build | --buil | --bui | --bu)
1076 ac_prev=build_alias ;;
1077 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1078 build_alias=$ac_optarg ;;
1080 -cache-file | --cache-file | --cache-fil | --cache-fi \
1081 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1082 ac_prev=cache_file ;;
1083 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1084 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1085 cache_file=$ac_optarg ;;
1087 --config-cache | -C)
1088 cache_file=config.cache ;;
1090 -datadir | --datadir | --datadi | --datad)
1092 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1093 datadir=$ac_optarg ;;
1095 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1096 | --dataroo | --dataro | --datar)
1097 ac_prev=datarootdir ;;
1098 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1099 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1100 datarootdir=$ac_optarg ;;
1102 -disable-* | --disable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1112 "enable_$ac_useropt"
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1117 eval enable_$ac_useropt=no ;;
1119 -docdir | --docdir | --docdi | --doc | --do)
1121 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1122 docdir=$ac_optarg ;;
1124 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1126 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1127 dvidir=$ac_optarg ;;
1129 -enable-* | --enable-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1134 { (exit 1); exit 1; }; }
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "enable_$ac_useropt"
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1144 eval enable_$ac_useropt=\$ac_optarg ;;
1146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1148 | --exec | --exe | --ex)
1149 ac_prev=exec_prefix ;;
1150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1152 | --exec=* | --exe=* | --ex=*)
1153 exec_prefix=$ac_optarg ;;
1155 -gas | --gas | --ga | --g)
1156 # Obsolete; use --with-gas.
1159 -help | --help | --hel | --he | -h)
1160 ac_init_help=long ;;
1161 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1162 ac_init_help=recursive ;;
1163 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1164 ac_init_help=short ;;
1166 -host | --host | --hos | --ho)
1167 ac_prev=host_alias ;;
1168 -host=* | --host=* | --hos=* | --ho=*)
1169 host_alias=$ac_optarg ;;
1171 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1173 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1175 htmldir=$ac_optarg ;;
1177 -includedir | --includedir | --includedi | --included | --include \
1178 | --includ | --inclu | --incl | --inc)
1179 ac_prev=includedir ;;
1180 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1181 | --includ=* | --inclu=* | --incl=* | --inc=*)
1182 includedir=$ac_optarg ;;
1184 -infodir | --infodir | --infodi | --infod | --info | --inf)
1186 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1187 infodir=$ac_optarg ;;
1189 -libdir | --libdir | --libdi | --libd)
1191 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1192 libdir=$ac_optarg ;;
1194 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1195 | --libexe | --libex | --libe)
1196 ac_prev=libexecdir ;;
1197 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1198 | --libexe=* | --libex=* | --libe=*)
1199 libexecdir=$ac_optarg ;;
1201 -localedir | --localedir | --localedi | --localed | --locale)
1202 ac_prev=localedir ;;
1203 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1204 localedir=$ac_optarg ;;
1206 -localstatedir | --localstatedir | --localstatedi | --localstated \
1207 | --localstate | --localstat | --localsta | --localst | --locals)
1208 ac_prev=localstatedir ;;
1209 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1210 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1211 localstatedir=$ac_optarg ;;
1213 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1215 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1216 mandir=$ac_optarg ;;
1218 -nfp | --nfp | --nf)
1219 # Obsolete; use --without-fp.
1222 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1223 | --no-cr | --no-c | -n)
1226 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1227 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1230 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1231 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1232 | --oldin | --oldi | --old | --ol | --o)
1233 ac_prev=oldincludedir ;;
1234 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1235 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1236 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1237 oldincludedir=$ac_optarg ;;
1239 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1241 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1242 prefix=$ac_optarg ;;
1244 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1245 | --program-pre | --program-pr | --program-p)
1246 ac_prev=program_prefix ;;
1247 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1248 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1249 program_prefix=$ac_optarg ;;
1251 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1252 | --program-suf | --program-su | --program-s)
1253 ac_prev=program_suffix ;;
1254 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1255 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1256 program_suffix=$ac_optarg ;;
1258 -program-transform-name | --program-transform-name \
1259 | --program-transform-nam | --program-transform-na \
1260 | --program-transform-n | --program-transform- \
1261 | --program-transform | --program-transfor \
1262 | --program-transfo | --program-transf \
1263 | --program-trans | --program-tran \
1264 | --progr-tra | --program-tr | --program-t)
1265 ac_prev=program_transform_name ;;
1266 -program-transform-name=* | --program-transform-name=* \
1267 | --program-transform-nam=* | --program-transform-na=* \
1268 | --program-transform-n=* | --program-transform-=* \
1269 | --program-transform=* | --program-transfor=* \
1270 | --program-transfo=* | --program-transf=* \
1271 | --program-trans=* | --program-tran=* \
1272 | --progr-tra=* | --program-tr=* | --program-t=*)
1273 program_transform_name=$ac_optarg ;;
1275 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1277 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1278 pdfdir=$ac_optarg ;;
1280 -psdir | --psdir | --psdi | --psd | --ps)
1282 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286 | -silent | --silent | --silen | --sile | --sil)
1289 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293 sbindir=$ac_optarg ;;
1295 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1296 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1297 | --sharedst | --shareds | --shared | --share | --shar \
1299 ac_prev=sharedstatedir ;;
1300 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1301 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1302 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304 sharedstatedir=$ac_optarg ;;
1306 -site | --site | --sit)
1308 -site=* | --site=* | --sit=*)
1311 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1314 srcdir=$ac_optarg ;;
1316 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1317 | --syscon | --sysco | --sysc | --sys | --sy)
1318 ac_prev=sysconfdir ;;
1319 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1320 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1321 sysconfdir=$ac_optarg ;;
1323 -target | --target | --targe | --targ | --tar | --ta | --t)
1324 ac_prev=target_alias ;;
1325 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1326 target_alias=$ac_optarg ;;
1328 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1331 -version | --version | --versio | --versi | --vers | -V)
1332 ac_init_version=: ;;
1335 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1339 { (exit 1); exit 1; }; }
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1349 eval with_$ac_useropt=\$ac_optarg ;;
1351 -without-* | --without-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1356 { (exit 1); exit 1; }; }
1357 ac_useropt_orig=$ac_useropt
1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1364 ac_unrecognized_sep=', ';;
1366 eval with_$ac_useropt=no ;;
1369 # Obsolete; use --with-x.
1372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1373 | --x-incl | --x-inc | --x-in | --x-i)
1374 ac_prev=x_includes ;;
1375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1377 x_includes=$ac_optarg ;;
1379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1381 ac_prev=x_libraries ;;
1382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1384 x_libraries=$ac_optarg ;;
1386 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1387 Try \`$0 --help' for more information." >&2
1388 { (exit 1); exit 1; }; }
1392 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1393 # Reject names that are not valid shell variable names.
1394 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1395 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1396 { (exit 1); exit 1; }; }
1397 eval $ac_envvar=\$ac_optarg
1398 export $ac_envvar ;;
1401 # FIXME: should be removed in autoconf 3.0.
1402 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1403 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1404 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1405 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1411 if test -n "$ac_prev"; then
1412 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1413 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1414 { (exit 1); exit 1; }; }
1417 if test -n "$ac_unrecognized_opts"; then
1418 case $enable_option_checking in
1420 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1421 { (exit 1); exit 1; }; } ;;
1422 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1426 # Check all directory arguments for consistency.
1427 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1428 datadir sysconfdir sharedstatedir localstatedir includedir \
1429 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1430 libdir localedir mandir
1432 eval ac_val=\$$ac_var
1433 # Remove trailing slashes.
1436 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1437 eval $ac_var=\$ac_val;;
1439 # Be sure to have absolute directory names.
1441 [\\/$]* | ?:[\\/]* ) continue;;
1442 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1444 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1445 { (exit 1); exit 1; }; }
1448 # There might be people who depend on the old broken behavior: `$host'
1449 # used to hold the argument of --host etc.
1450 # FIXME: To remove some day.
1453 target=$target_alias
1455 # FIXME: To remove some day.
1456 if test "x$host_alias" != x; then
1457 if test "x$build_alias" = x; then
1458 cross_compiling=maybe
1459 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1460 If a cross compiler is detected then cross compile mode will be used." >&2
1461 elif test "x$build_alias" != "x$host_alias"; then
1467 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1469 test "$silent" = yes && exec 6>/dev/null
1472 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1473 ac_ls_di=`ls -di .` &&
1474 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1475 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1476 { (exit 1); exit 1; }; }
1477 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1478 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1479 { (exit 1); exit 1; }; }
1482 # Find the source files, if location was not specified.
1483 if test -z "$srcdir"; then
1484 ac_srcdir_defaulted=yes
1485 # Try the directory containing this script, then the parent directory.
1486 ac_confdir=`$as_dirname -- "$as_myself" ||
1487 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1488 X"$as_myself" : 'X\(//\)[^/]' \| \
1489 X"$as_myself" : 'X\(//\)$' \| \
1490 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1491 $as_echo X"$as_myself" |
1492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1514 ac_srcdir_defaulted=no
1516 if test ! -r "$srcdir/$ac_unique_file"; then
1517 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1518 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1519 { (exit 1); exit 1; }; }
1521 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1523 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1524 { (exit 1); exit 1; }; }
1526 # When building in place, set srcdir=.
1527 if test "$ac_abs_confdir" = "$ac_pwd"; then
1530 # Remove unnecessary trailing slashes from srcdir.
1531 # Double slashes in file names in object file debugging info
1532 # mess up M-x gdb in Emacs.
1534 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536 for ac_var in $ac_precious_vars; do
1537 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1538 eval ac_env_${ac_var}_value=\$${ac_var}
1539 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1540 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1544 # Report the --help message.
1546 if test "$ac_init_help" = "long"; then
1547 # Omit some internal or obsolete options to make the list less imposing.
1548 # This message is too long to be a string in the A/UX 3.1 sh.
1550 \`configure' configures libtheora 1.1.1 to adapt to many kinds of systems.
1552 Usage: $0 [OPTION]... [VAR=VALUE]...
1554 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555 VAR=VALUE. See below for descriptions of some of the useful variables.
1557 Defaults for the options are specified in brackets.
1560 -h, --help display this help and exit
1561 --help=short display options specific to this package
1562 --help=recursive display the short help of all the included packages
1563 -V, --version display version information and exit
1564 -q, --quiet, --silent do not print \`checking...' messages
1565 --cache-file=FILE cache test results in FILE [disabled]
1566 -C, --config-cache alias for \`--cache-file=config.cache'
1567 -n, --no-create do not create output files
1568 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1570 Installation directories:
1571 --prefix=PREFIX install architecture-independent files in PREFIX
1572 [$ac_default_prefix]
1573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1576 By default, \`make install' will install all the files in
1577 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1578 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579 for instance \`--prefix=\$HOME'.
1581 For better control, use the options below.
1583 Fine tuning of the installation directories:
1584 --bindir=DIR user executables [EPREFIX/bin]
1585 --sbindir=DIR system admin executables [EPREFIX/sbin]
1586 --libexecdir=DIR program executables [EPREFIX/libexec]
1587 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1588 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1589 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1590 --libdir=DIR object code libraries [EPREFIX/lib]
1591 --includedir=DIR C header files [PREFIX/include]
1592 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1593 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1594 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1595 --infodir=DIR info documentation [DATAROOTDIR/info]
1596 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1597 --mandir=DIR man documentation [DATAROOTDIR/man]
1598 --docdir=DIR documentation root [DATAROOTDIR/doc/libtheora]
1599 --htmldir=DIR html documentation [DOCDIR]
1600 --dvidir=DIR dvi documentation [DOCDIR]
1601 --pdfdir=DIR pdf documentation [DOCDIR]
1602 --psdir=DIR ps documentation [DOCDIR]
1608 --program-prefix=PREFIX prepend PREFIX to installed program names
1609 --program-suffix=SUFFIX append SUFFIX to installed program names
1610 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1613 --build=BUILD configure for building on BUILD [guessed]
1614 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1615 --target=TARGET configure for building compilers for TARGET [HOST]
1619 if test -n "$ac_init_help"; then
1620 case $ac_init_help in
1621 short | recursive ) echo "Configuration of libtheora 1.1.1:";;
1626 --disable-option-checking ignore unrecognized --enable/--with options
1627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1629 --enable-maintainer-mode enable make rules and dependencies not useful
1630 (and sometimes confusing) to the casual installer
1631 --disable-dependency-tracking Speeds up one-time builds
1632 --enable-dependency-tracking Do not reject slow dependency extractors
1633 --enable-shared[=PKGS] build shared libraries [default=yes]
1634 --enable-static[=PKGS] build static libraries [default=yes]
1635 --enable-fast-install[=PKGS]
1636 optimize for fast installation [default=yes]
1637 --disable-libtool-lock avoid locking (might break parallel builds)
1638 --disable-spec do not build spec
1639 --enable-valgrind-testing enable running of tests inside Valgrind
1640 --disable-asm disable assembly optimizations
1641 --disable-oggtest Do not try to compile and run a test Ogg program
1642 --disable-vorbistest Do not try to compile and run a test Vorbis program
1643 --disable-sdltest Do not try to compile and run a test SDL program
1644 --enable-telemetry enable debugging output controls
1645 --disable-float disable use of floating point code
1646 --disable-encode disable encoding support
1647 --disable-examples disable examples
1650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1652 --with-pic try to use only PIC/non-PIC objects [default=use
1654 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1655 --with-ogg=PFX Prefix where libogg is installed (optional)
1656 --with-ogg-libraries=DIR
1657 Directory where libogg library is installed
1659 --with-ogg-includes=DIR Directory where libogg header files are installed
1661 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
1662 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
1663 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
1664 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1665 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1667 Some influential environment variables:
1668 CC C compiler command
1669 CFLAGS C compiler flags
1670 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1671 nonstandard directory <lib dir>
1672 LIBS libraries to pass to the linker, e.g. -l<library>
1673 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1674 you have headers in a nonstandard directory <include dir>
1676 PKG_CONFIG path to pkg-config utility
1677 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1678 OGG_LIBS linker flags for OGG, overriding pkg-config
1680 C compiler flags for VORBIS, overriding pkg-config
1681 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1682 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
1683 PNG_LIBS linker flags for PNG, overriding pkg-config
1685 C compiler flags for CAIRO, overriding pkg-config
1686 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1688 Use these variables to override the choices made by `configure' or to help
1689 it to find libraries and programs with nonstandard names/locations.
1695 if test "$ac_init_help" = "recursive"; then
1696 # If there are subdirs, report their specific --help.
1697 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1698 test -d "$ac_dir" ||
1699 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1707 # A ".." for each directory in $ac_dir_suffix.
1708 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1709 case $ac_top_builddir_sub in
1710 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1714 ac_abs_top_builddir=$ac_pwd
1715 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1716 # for backward compatibility:
1717 ac_top_builddir=$ac_top_build_prefix
1720 .) # We are building in place.
1722 ac_top_srcdir=$ac_top_builddir_sub
1723 ac_abs_top_srcdir=$ac_pwd ;;
1724 [\\/]* | ?:[\\/]* ) # Absolute name.
1725 ac_srcdir=$srcdir$ac_dir_suffix;
1726 ac_top_srcdir=$srcdir
1727 ac_abs_top_srcdir=$srcdir ;;
1729 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1730 ac_top_srcdir=$ac_top_build_prefix$srcdir
1731 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1733 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735 cd "$ac_dir" || { ac_status=$?; continue; }
1736 # Check for guested configure.
1737 if test -f "$ac_srcdir/configure.gnu"; then
1739 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1740 elif test -f "$ac_srcdir/configure"; then
1742 $SHELL "$ac_srcdir/configure" --help=recursive
1744 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1746 cd "$ac_pwd" || { ac_status=$?; break; }
1750 test -n "$ac_init_help" && exit $ac_status
1751 if $ac_init_version; then
1753 libtheora configure 1.1.1
1754 generated by GNU Autoconf 2.63
1756 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1757 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1758 This configure script is free software; the Free Software Foundation
1759 gives unlimited permission to copy, distribute and modify it.
1763 cat >config.log <<_ACEOF
1764 This file contains any messages produced by compilers while
1765 running configure, to aid debugging if configure makes a mistake.
1767 It was created by libtheora $as_me 1.1.1, which was
1768 generated by GNU Autoconf 2.63. Invocation command line was
1780 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1781 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1782 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1783 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1784 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1786 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1787 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1789 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1790 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1791 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1792 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1793 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1794 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1795 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 test -z "$as_dir" && as_dir=.
1804 $as_echo "PATH: $as_dir"
1820 # Keep a trace of the command line.
1821 # Strip out --no-create and --no-recursion so they do not pile up.
1822 # Strip out --silent because we don't want to record it for future runs.
1823 # Also quote any args containing shell meta-characters.
1824 # Make two passes to allow for proper duplicate-argument suppression.
1828 ac_must_keep_next=false
1834 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1836 | -silent | --silent | --silen | --sile | --sil)
1839 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1842 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1844 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1845 if test $ac_must_keep_next = true; then
1846 ac_must_keep_next=false # Got value, back to normal.
1849 *=* | --config-cache | -C | -disable-* | --disable-* \
1850 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1851 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1852 | -with-* | --with-* | -without-* | --without-* | --x)
1853 case "$ac_configure_args0 " in
1854 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1857 -* ) ac_must_keep_next=true ;;
1860 ac_configure_args="$ac_configure_args '$ac_arg'"
1865 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1866 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1868 # When interrupted or exit'd, cleanup temporary files, and complete
1869 # config.log. We remove comments because anyway the quotes in there
1870 # would cause problems or look ugly.
1871 # WARNING: Use '\'' to represent an apostrophe within the trap.
1872 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1873 trap 'exit_status=$?
1874 # Save into config.log some information that might help in debugging.
1879 ## ---------------- ##
1880 ## Cache variables. ##
1881 ## ---------------- ##
1884 # The following way of writing the cache mishandles newlines in values,
1886 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1887 eval ac_val=\$$ac_var
1891 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1892 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1895 _ | IFS | as_nl) ;; #(
1896 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1897 *) $as_unset $ac_var ;;
1902 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1903 *${as_nl}ac_space=\ *)
1905 "s/'\''/'\''\\\\'\'''\''/g;
1906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1909 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1917 ## ----------------- ##
1918 ## Output variables. ##
1919 ## ----------------- ##
1922 for ac_var in $ac_subst_vars
1924 eval ac_val=\$$ac_var
1926 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1928 $as_echo "$ac_var='\''$ac_val'\''"
1932 if test -n "$ac_subst_files"; then
1934 ## ------------------- ##
1935 ## File substitutions. ##
1936 ## ------------------- ##
1939 for ac_var in $ac_subst_files
1941 eval ac_val=\$$ac_var
1943 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945 $as_echo "$ac_var='\''$ac_val'\''"
1950 if test -s confdefs.h; then
1960 test "$ac_signal" != 0 &&
1961 $as_echo "$as_me: caught signal $ac_signal"
1962 $as_echo "$as_me: exit $exit_status"
1964 rm -f core *.core core.conftest.* &&
1965 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1968 for ac_signal in 1 2 13 15; do
1969 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1973 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1974 rm -f -r conftest* confdefs.h
1976 # Predefined preprocessor variables.
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_NAME "$PACKAGE_NAME"
1983 cat >>confdefs.h <<_ACEOF
1984 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1988 cat >>confdefs.h <<_ACEOF
1989 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1993 cat >>confdefs.h <<_ACEOF
1994 #define PACKAGE_STRING "$PACKAGE_STRING"
1998 cat >>confdefs.h <<_ACEOF
1999 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2003 # Let the site file select an alternate cache file if it wants to.
2004 # Prefer an explicitly selected file to automatically selected ones.
2007 if test -n "$CONFIG_SITE"; then
2008 ac_site_file1=$CONFIG_SITE
2009 elif test "x$prefix" != xNONE; then
2010 ac_site_file1=$prefix/share/config.site
2011 ac_site_file2=$prefix/etc/config.site
2013 ac_site_file1=$ac_default_prefix/share/config.site
2014 ac_site_file2=$ac_default_prefix/etc/config.site
2016 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2018 test "x$ac_site_file" = xNONE && continue
2019 if test -r "$ac_site_file"; then
2020 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2021 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2022 sed 's/^/| /' "$ac_site_file" >&5
2027 if test -r "$cache_file"; then
2028 # Some versions of bash will fail to source /dev/null (special
2029 # files actually), so we avoid doing that.
2030 if test -f "$cache_file"; then
2031 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2032 $as_echo "$as_me: loading cache $cache_file" >&6;}
2034 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2035 *) . "./$cache_file";;
2039 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2040 $as_echo "$as_me: creating cache $cache_file" >&6;}
2044 # Check that the precious variables saved in the cache have kept the same
2046 ac_cache_corrupted=false
2047 for ac_var in $ac_precious_vars; do
2048 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2049 eval ac_new_set=\$ac_env_${ac_var}_set
2050 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2051 eval ac_new_val=\$ac_env_${ac_var}_value
2052 case $ac_old_set,$ac_new_set in
2054 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2055 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2056 ac_cache_corrupted=: ;;
2058 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2059 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2060 ac_cache_corrupted=: ;;
2063 if test "x$ac_old_val" != "x$ac_new_val"; then
2064 # differences in whitespace do not lead to failure.
2065 ac_old_val_w=`echo x $ac_old_val`
2066 ac_new_val_w=`echo x $ac_new_val`
2067 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2068 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2069 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2070 ac_cache_corrupted=:
2072 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2073 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2074 eval $ac_var=\$ac_old_val
2076 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2077 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2078 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2079 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2082 # Pass precious variables to config.status.
2083 if test "$ac_new_set" = set; then
2085 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2086 *) ac_arg=$ac_var=$ac_new_val ;;
2088 case " $ac_configure_args " in
2089 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2090 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2094 if $ac_cache_corrupted; then
2095 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2098 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2099 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2100 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2101 { (exit 1); exit 1; }; }
2129 ac_cpp='$CPP $CPPFLAGS'
2130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2138 if test -f "$ac_dir/install-sh"; then
2140 ac_install_sh="$ac_aux_dir/install-sh -c"
2142 elif test -f "$ac_dir/install.sh"; then
2144 ac_install_sh="$ac_aux_dir/install.sh -c"
2146 elif test -f "$ac_dir/shtool"; then
2148 ac_install_sh="$ac_aux_dir/shtool install -c"
2152 if test -z "$ac_aux_dir"; then
2153 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2154 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2155 { (exit 1); exit 1; }; }
2158 # These three variables are undocumented and unsupported,
2159 # and are intended to be withdrawn in a future Autoconf release.
2160 # They can cause serious problems if a builder's source tree is in a directory
2161 # whose full name contains unusual characters.
2162 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2163 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2164 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2167 # Make sure we can run config.sub.
2168 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2169 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2170 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2171 { (exit 1); exit 1; }; }
2173 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2174 $as_echo_n "checking build system type... " >&6; }
2175 if test "${ac_cv_build+set}" = set; then
2176 $as_echo_n "(cached) " >&6
2178 ac_build_alias=$build_alias
2179 test "x$ac_build_alias" = x &&
2180 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2181 test "x$ac_build_alias" = x &&
2182 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2183 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2184 { (exit 1); exit 1; }; }
2185 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2186 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2187 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2188 { (exit 1); exit 1; }; }
2191 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2192 $as_echo "$ac_cv_build" >&6; }
2193 case $ac_cv_build in
2195 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2196 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2197 { (exit 1); exit 1; }; };;
2200 ac_save_IFS=$IFS; IFS='-'
2206 # Remember, the first character of IFS is used to create $*,
2207 # except with old shells:
2210 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2213 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2214 $as_echo_n "checking host system type... " >&6; }
2215 if test "${ac_cv_host+set}" = set; then
2216 $as_echo_n "(cached) " >&6
2218 if test "x$host_alias" = x; then
2219 ac_cv_host=$ac_cv_build
2221 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2222 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2223 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2224 { (exit 1); exit 1; }; }
2228 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2229 $as_echo "$ac_cv_host" >&6; }
2232 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2233 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2234 { (exit 1); exit 1; }; };;
2237 ac_save_IFS=$IFS; IFS='-'
2243 # Remember, the first character of IFS is used to create $*,
2244 # except with old shells:
2247 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2250 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2251 $as_echo_n "checking target system type... " >&6; }
2252 if test "${ac_cv_target+set}" = set; then
2253 $as_echo_n "(cached) " >&6
2255 if test "x$target_alias" = x; then
2256 ac_cv_target=$ac_cv_host
2258 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2259 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2260 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2261 { (exit 1); exit 1; }; }
2265 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2266 $as_echo "$ac_cv_target" >&6; }
2267 case $ac_cv_target in
2269 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2270 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2271 { (exit 1); exit 1; }; };;
2273 target=$ac_cv_target
2274 ac_save_IFS=$IFS; IFS='-'
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2284 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2287 # The aliases save the names the user supplied, while $host etc.
2288 # will get canonicalized.
2289 test -n "$target_alias" &&
2290 test "$program_prefix$program_suffix$program_transform_name" = \
2292 program_prefix=${target_alias}-
2294 # Add the stamp file to the list of files AC keeps track of,
2295 # along with our hook.
2296 ac_config_headers="$ac_config_headers config.h"
2301 am__api_version="1.6"
2302 # Find a good install program. We prefer a C program (faster),
2303 # so one script is as good as another. But avoid the broken or
2304 # incompatible versions:
2305 # SysV /etc/install, /usr/sbin/install
2306 # SunOS /usr/etc/install
2307 # IRIX /sbin/install
2309 # AmigaOS /C/install, which installs bootblocks on floppy discs
2310 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2311 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2312 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2313 # OS/2's system install, which has a completely different semantic
2314 # ./install, which can be erroneously created by make from ./install.sh.
2315 # Reject install programs that cannot install multiple files.
2316 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2317 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2318 if test -z "$INSTALL"; then
2319 if test "${ac_cv_path_install+set}" = set; then
2320 $as_echo_n "(cached) " >&6
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 test -z "$as_dir" && as_dir=.
2327 # Account for people who put trailing slashes in PATH elements.
2329 ./ | .// | /cC/* | \
2330 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2331 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2334 # OSF1 and SCO ODT 3.0 have their own names for install.
2335 # Don't use installbsd from OSF since it installs stuff as root
2337 for ac_prog in ginstall scoinst install; do
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2340 if test $ac_prog = install &&
2341 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2342 # AIX install. It has an incompatible calling convention.
2344 elif test $ac_prog = install &&
2345 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346 # program-specific install script used by HP pwplus--don't use.
2349 rm -rf conftest.one conftest.two conftest.dir
2350 echo one > conftest.one
2351 echo two > conftest.two
2353 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2354 test -s conftest.one && test -s conftest.two &&
2355 test -s conftest.dir/conftest.one &&
2356 test -s conftest.dir/conftest.two
2358 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2371 rm -rf conftest.one conftest.two conftest.dir
2374 if test "${ac_cv_path_install+set}" = set; then
2375 INSTALL=$ac_cv_path_install
2377 # As a last resort, use the slow shell script. Don't cache a
2378 # value for INSTALL within a source directory, because that will
2379 # break other packages using the cache if that directory is
2380 # removed, or if the value is a relative name.
2381 INSTALL=$ac_install_sh
2384 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2385 $as_echo "$INSTALL" >&6; }
2387 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2388 # It thinks the first close brace ends the variable substitution.
2389 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2391 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2393 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2395 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2396 $as_echo_n "checking whether build environment is sane... " >&6; }
2399 echo timestamp > conftest.file
2400 # Do `set' in a subshell so we don't clobber the current shell's
2401 # arguments. Must try -L first in case configure is actually a
2402 # symlink; some systems play weird games with the mod time of symlinks
2403 # (eg FreeBSD returns the mod time of the symlink's containing
2406 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2407 if test "$*" = "X"; then
2409 set X `ls -t $srcdir/configure conftest.file`
2412 if test "$*" != "X $srcdir/configure conftest.file" \
2413 && test "$*" != "X conftest.file $srcdir/configure"; then
2415 # If neither matched, then we have a broken ls. This can happen
2416 # if, for instance, CONFIG_SHELL is bash and it inherits a
2417 # broken ls alias from the environment. This has actually
2418 # happened. Such a system could not be considered "sane".
2419 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2420 alias in your environment" >&5
2421 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2422 alias in your environment" >&2;}
2423 { (exit 1); exit 1; }; }
2426 test "$2" = conftest.file
2432 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2433 Check your system clock" >&5
2434 $as_echo "$as_me: error: newly created file is older than distributed files!
2435 Check your system clock" >&2;}
2436 { (exit 1); exit 1; }; }
2438 { $as_echo "$as_me:$LINENO: result: yes" >&5
2439 $as_echo "yes" >&6; }
2440 test "$program_prefix" != NONE &&
2441 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2442 # Use a double $ so make ignores it.
2443 test "$program_suffix" != NONE &&
2444 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2445 # Double any \ or $.
2446 # By default was `s,x,x', remove it if useless.
2447 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2448 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2451 # expand $ac_aux_dir to an absolute path
2452 am_aux_dir=`cd $ac_aux_dir && pwd`
2454 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2455 # Use eval to expand $SHELL
2456 if eval "$MISSING --run true"; then
2457 am_missing_run="$MISSING --run "
2460 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2461 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2464 for ac_prog in gawk mawk nawk awk
2466 # Extract the first word of "$ac_prog", so it can be a program name with args.
2467 set dummy $ac_prog; ac_word=$2
2468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_prog_AWK+set}" = set; then
2471 $as_echo_n "(cached) " >&6
2473 if test -n "$AWK"; then
2474 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_AWK="$ac_prog"
2484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 if test -n "$AWK"; then
2495 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2496 $as_echo "$AWK" >&6; }
2498 { $as_echo "$as_me:$LINENO: result: no" >&5
2499 $as_echo "no" >&6; }
2503 test -n "$AWK" && break
2506 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2507 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2509 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2510 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2511 $as_echo_n "(cached) " >&6
2513 cat >conftest.make <<\_ACEOF
2516 @echo '@@@%%%=$(MAKE)=@@@%%%'
2518 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2519 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2521 eval ac_cv_prog_make_${ac_make}_set=yes;;
2523 eval ac_cv_prog_make_${ac_make}_set=no;;
2527 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2528 { $as_echo "$as_me:$LINENO: result: yes" >&5
2529 $as_echo "yes" >&6; }
2532 { $as_echo "$as_me:$LINENO: result: no" >&5
2533 $as_echo "no" >&6; }
2534 SET_MAKE="MAKE=${MAKE-make}"
2537 # test to see if srcdir already configured
2538 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2539 test -f $srcdir/config.status; then
2540 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2541 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2542 { (exit 1); exit 1; }; }
2545 # Define the identity of the package.
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE "$PACKAGE"
2555 cat >>confdefs.h <<_ACEOF
2556 #define VERSION "$VERSION"
2559 # Some tools Automake needs.
2561 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2564 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2567 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2570 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2573 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2576 AMTAR=${AMTAR-"${am_missing_run}tar"}
2578 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2580 # Installed binaries are usually stripped using `strip' when the user
2581 # run `make install-strip'. However `strip' might not be the right
2582 # tool to use in cross-compilation environments, therefore Automake
2583 # will honor the `STRIP' environment variable to overrule this program.
2584 if test "$cross_compiling" != no; then
2585 if test -n "$ac_tool_prefix"; then
2586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2587 set dummy ${ac_tool_prefix}strip; ac_word=$2
2588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_STRIP+set}" = set; then
2591 $as_echo_n "(cached) " >&6
2593 if test -n "$STRIP"; then
2594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 STRIP=$ac_cv_prog_STRIP
2614 if test -n "$STRIP"; then
2615 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2616 $as_echo "$STRIP" >&6; }
2618 { $as_echo "$as_me:$LINENO: result: no" >&5
2619 $as_echo "no" >&6; }
2624 if test -z "$ac_cv_prog_STRIP"; then
2626 # Extract the first word of "strip", so it can be a program name with args.
2627 set dummy strip; ac_word=$2
2628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2631 $as_echo_n "(cached) " >&6
2633 if test -n "$ac_ct_STRIP"; then
2634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_ac_ct_STRIP="strip"
2644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2654 if test -n "$ac_ct_STRIP"; then
2655 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2656 $as_echo "$ac_ct_STRIP" >&6; }
2658 { $as_echo "$as_me:$LINENO: result: no" >&5
2659 $as_echo "no" >&6; }
2662 if test "x$ac_ct_STRIP" = x; then
2665 case $cross_compiling:$ac_tool_warned in
2667 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2669 ac_tool_warned=yes ;;
2674 STRIP="$ac_cv_prog_STRIP"
2678 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2680 # We need awk for the "check" target. The system "awk" is bad on
2685 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2686 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2687 # Check whether --enable-maintainer-mode was given.
2688 if test "${enable_maintainer_mode+set}" = set; then
2689 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2691 USE_MAINTAINER_MODE=no
2694 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2695 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2698 if test $USE_MAINTAINER_MODE = yes; then
2699 MAINTAINER_MODE_TRUE=
2700 MAINTAINER_MODE_FALSE='#'
2702 MAINTAINER_MODE_TRUE='#'
2703 MAINTAINER_MODE_FALSE=
2706 MAINT=$MAINTAINER_MODE_TRUE
2719 THDEC_LIB_REVISION=4
2726 THENC_LIB_REVISION=2
2735 cflags_save="$CFLAGS"
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_CC+set}" = set; then
2747 $as_echo_n "(cached) " >&6
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 if test -n "$CC"; then
2771 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2772 $as_echo "$CC" >&6; }
2774 { $as_echo "$as_me:$LINENO: result: no" >&5
2775 $as_echo "no" >&6; }
2780 if test -z "$ac_cv_prog_CC"; then
2782 # Extract the first word of "gcc", so it can be a program name with args.
2783 set dummy gcc; ac_word=$2
2784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787 $as_echo_n "(cached) " >&6
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_CC="gcc"
2800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812 $as_echo "$ac_ct_CC" >&6; }
2814 { $as_echo "$as_me:$LINENO: result: no" >&5
2815 $as_echo "no" >&6; }
2818 if test "x$ac_ct_CC" = x; then
2821 case $cross_compiling:$ac_tool_warned in
2823 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2833 if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}cc; ac_word=$2
2837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840 $as_echo_n "(cached) " >&6
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_CC="${ac_tool_prefix}cc"
2853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2867 { $as_echo "$as_me:$LINENO: result: no" >&5
2868 $as_echo "no" >&6; }
2874 if test -z "$CC"; then
2875 # Extract the first word of "cc", so it can be a program name with args.
2876 set dummy cc; ac_word=$2
2877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then
2880 $as_echo_n "(cached) " >&6
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2894 ac_prog_rejected=yes
2898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 if test $ac_prog_rejected = yes; then
2906 # We found a bogon in the path, so make sure we never use it.
2907 set dummy $ac_cv_prog_CC
2909 if test $# != 0; then
2910 # We chose a different compiler from the bogus one.
2911 # However, it has the same basename, so the bogon will be chosen
2912 # first if we set CC to just the basename; use the full file name.
2914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2920 if test -n "$CC"; then
2921 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2924 { $as_echo "$as_me:$LINENO: result: no" >&5
2925 $as_echo "no" >&6; }
2930 if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 for ac_prog in cl.exe
2934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939 $as_echo_n "(cached) " >&6
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2952 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2966 { $as_echo "$as_me:$LINENO: result: no" >&5
2967 $as_echo "no" >&6; }
2971 test -n "$CC" && break
2974 if test -z "$CC"; then
2976 for ac_prog in cl.exe
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983 $as_echo_n "(cached) " >&6
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_ac_ct_CC="$ac_prog"
2996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3008 $as_echo "$ac_ct_CC" >&6; }
3010 { $as_echo "$as_me:$LINENO: result: no" >&5
3011 $as_echo "no" >&6; }
3015 test -n "$ac_ct_CC" && break
3018 if test "x$ac_ct_CC" = x; then
3021 case $cross_compiling:$ac_tool_warned in
3023 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025 ac_tool_warned=yes ;;
3034 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3037 See \`config.log' for more details." >&5
3038 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3039 See \`config.log' for more details." >&2;}
3040 { (exit 1); exit 1; }; }; }
3042 # Provide some information about the compiler.
3043 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3046 { (ac_try="$ac_compiler --version >&5"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3052 $as_echo "$ac_try_echo") >&5
3053 (eval "$ac_compiler --version >&5") 2>&5
3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }
3057 { (ac_try="$ac_compiler -v >&5"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3063 $as_echo "$ac_try_echo") >&5
3064 (eval "$ac_compiler -v >&5") 2>&5
3066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }
3068 { (ac_try="$ac_compiler -V >&5"
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3074 $as_echo "$ac_try_echo") >&5
3075 (eval "$ac_compiler -V >&5") 2>&5
3077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 ac_clean_files_save=$ac_clean_files
3096 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3097 # Try to create an executable without -o first, disregard a.out.
3098 # It will help us diagnose broken compilers, and finding out an intuition
3100 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3101 $as_echo_n "checking for C compiler default output file name... " >&6; }
3102 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3104 # The possible output files:
3105 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3108 for ac_file in $ac_files
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3112 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117 if { (ac_try="$ac_link_default"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3123 $as_echo "$ac_try_echo") >&5
3124 (eval "$ac_link_default") 2>&5
3126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; then
3128 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3131 # so that the user can short-circuit this test for compilers unknown to
3133 for ac_file in $ac_files ''
3135 test -f "$ac_file" || continue
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3140 # We found the default executable, but exeext='' is most
3144 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3148 # We set ac_cv_exeext here because the later test for it is not
3149 # safe: cross compilers may not add the suffix if given an `-o'
3150 # argument, so we may need to know it at that point already.
3151 # Even if this section looks crufty: it has the advantage of
3158 test "$ac_cv_exeext" = no && ac_cv_exeext=
3164 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3165 $as_echo "$ac_file" >&6; }
3166 if test -z "$ac_file"; then
3167 $as_echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3173 See \`config.log' for more details." >&5
3174 $as_echo "$as_me: error: C compiler cannot create executables
3175 See \`config.log' for more details." >&2;}
3176 { (exit 77); exit 77; }; }; }
3179 ac_exeext=$ac_cv_exeext
3181 # Check that the compiler produces executables we can run. If not, either
3182 # the compiler is broken, or we cross compile.
3183 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3184 $as_echo_n "checking whether the C compiler works... " >&6; }
3185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3186 # If not cross compiling, check that we can run a simple program.
3187 if test "$cross_compiling" != yes; then
3188 if { ac_try='./$ac_file'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3194 $as_echo "$ac_try_echo") >&5
3195 (eval "$ac_try") 2>&5
3197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3201 if test "$cross_compiling" = maybe; then
3204 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3207 If you meant to cross compile, use \`--host'.
3208 See \`config.log' for more details." >&5
3209 $as_echo "$as_me: error: cannot run C compiled programs.
3210 If you meant to cross compile, use \`--host'.
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }; }
3216 { $as_echo "$as_me:$LINENO: result: yes" >&5
3217 $as_echo "yes" >&6; }
3219 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3220 ac_clean_files=$ac_clean_files_save
3221 # Check that the compiler produces executables we can run. If not, either
3222 # the compiler is broken, or we cross compile.
3223 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3224 $as_echo_n "checking whether we are cross compiling... " >&6; }
3225 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3226 $as_echo "$cross_compiling" >&6; }
3228 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3229 $as_echo_n "checking for suffix of executables... " >&6; }
3230 if { (ac_try="$ac_link"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3236 $as_echo "$ac_try_echo") >&5
3237 (eval "$ac_link") 2>&5
3239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; then
3241 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3242 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3243 # work properly (i.e., refer to `conftest.exe'), while it won't with
3245 for ac_file in conftest.exe conftest conftest.*; do
3246 test -f "$ac_file" || continue
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3249 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3258 See \`config.log' for more details." >&5
3259 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3260 See \`config.log' for more details." >&2;}
3261 { (exit 1); exit 1; }; }; }
3264 rm -f conftest$ac_cv_exeext
3265 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3266 $as_echo "$ac_cv_exeext" >&6; }
3268 rm -f conftest.$ac_ext
3269 EXEEXT=$ac_cv_exeext
3271 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3272 $as_echo_n "checking for suffix of object files... " >&6; }
3273 if test "${ac_cv_objext+set}" = set; then
3274 $as_echo_n "(cached) " >&6
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3291 rm -f conftest.o conftest.obj
3292 if { (ac_try="$ac_compile"
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3298 $as_echo "$ac_try_echo") >&5
3299 (eval "$ac_compile") 2>&5
3301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; then
3303 for ac_file in conftest.o conftest.obj conftest.*; do
3304 test -f "$ac_file" || continue;
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3318 See \`config.log' for more details." >&5
3319 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3320 See \`config.log' for more details." >&2;}
3321 { (exit 1); exit 1; }; }; }
3324 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3326 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3327 $as_echo "$ac_cv_objext" >&6; }
3328 OBJEXT=$ac_cv_objext
3330 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3331 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3332 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3333 $as_echo_n "(cached) " >&6
3335 cat >conftest.$ac_ext <<_ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3353 rm -f conftest.$ac_objext
3354 if { (ac_try="$ac_compile"
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361 (eval "$ac_compile") 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && {
3368 test -z "$ac_c_werror_flag" ||
3369 test ! -s conftest.err
3370 } && test -s conftest.$ac_objext; then
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3383 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3384 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3385 if test $ac_compiler_gnu = yes; then
3390 ac_test_CFLAGS=${CFLAGS+set}
3391 ac_save_CFLAGS=$CFLAGS
3392 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3393 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3394 if test "${ac_cv_prog_cc_g+set}" = set; then
3395 $as_echo_n "(cached) " >&6
3397 ac_save_c_werror_flag=$ac_c_werror_flag
3398 ac_c_werror_flag=yes
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3416 rm -f conftest.$ac_objext
3417 if { (ac_try="$ac_compile"
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3423 $as_echo "$ac_try_echo") >&5
3424 (eval "$ac_compile") 2>conftest.er1
3426 grep -v '^ *+' conftest.er1 >conftest.err
3428 cat conftest.err >&5
3429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } && {
3431 test -z "$ac_c_werror_flag" ||
3432 test ! -s conftest.err
3433 } && test -s conftest.$ac_objext; then
3436 $as_echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3440 cat >conftest.$ac_ext <<_ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3455 rm -f conftest.$ac_objext
3456 if { (ac_try="$ac_compile"
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462 $as_echo "$ac_try_echo") >&5
3463 (eval "$ac_compile") 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } && {
3470 test -z "$ac_c_werror_flag" ||
3471 test ! -s conftest.err
3472 } && test -s conftest.$ac_objext; then
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 ac_c_werror_flag=$ac_save_c_werror_flag
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3502 $as_echo "$ac_try_echo") >&5
3503 (eval "$ac_compile") 2>conftest.er1
3505 grep -v '^ *+' conftest.er1 >conftest.err
3507 cat conftest.err >&5
3508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } && {
3510 test -z "$ac_c_werror_flag" ||
3511 test ! -s conftest.err
3512 } && test -s conftest.$ac_objext; then
3515 $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 ac_c_werror_flag=$ac_save_c_werror_flag
3530 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3531 $as_echo "$ac_cv_prog_cc_g" >&6; }
3532 if test "$ac_test_CFLAGS" = set; then
3533 CFLAGS=$ac_save_CFLAGS
3534 elif test $ac_cv_prog_cc_g = yes; then
3535 if test "$GCC" = yes; then
3541 if test "$GCC" = yes; then
3547 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3548 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3549 if test "${ac_cv_prog_cc_c89+set}" = set; then
3550 $as_echo_n "(cached) " >&6
3552 ac_cv_prog_cc_c89=no
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3562 #include <sys/types.h>
3563 #include <sys/stat.h>
3564 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3565 struct buf { int x; };
3566 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3567 static char *e (p, i)
3573 static char *f (char * (*g) (char **, int), char **p, ...)
3578 s = g (p, va_arg (v,int));
3583 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3584 function prototypes and stuff, but not '\xHH' hex character constants.
3585 These don't provoke an error unfortunately, instead are silently treated
3586 as 'x'. The following induces an error, until -std is added to get
3587 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3588 array size at least. It's necessary to write '\x00'==0 to get something
3589 that's true only with -std. */
3590 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3592 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3593 inside strings and character constants. */
3595 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3597 int test (int i, double x);
3598 struct s1 {int (*f) (int a);};
3599 struct s2 {int (*f) (double a);};
3600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3606 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3611 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3612 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3614 CC="$ac_save_CC $ac_arg"
3615 rm -f conftest.$ac_objext
3616 if { (ac_try="$ac_compile"
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3622 $as_echo "$ac_try_echo") >&5
3623 (eval "$ac_compile") 2>conftest.er1
3625 grep -v '^ *+' conftest.er1 >conftest.err
3627 cat conftest.err >&5
3628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } && {
3630 test -z "$ac_c_werror_flag" ||
3631 test ! -s conftest.err
3632 } && test -s conftest.$ac_objext; then
3633 ac_cv_prog_cc_c89=$ac_arg
3635 $as_echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3641 rm -f core conftest.err conftest.$ac_objext
3642 test "x$ac_cv_prog_cc_c89" != "xno" && break
3644 rm -f conftest.$ac_ext
3649 case "x$ac_cv_prog_cc_c89" in
3651 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3652 $as_echo "none needed" >&6; } ;;
3654 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3655 $as_echo "unsupported" >&6; } ;;
3657 CC="$CC $ac_cv_prog_cc_c89"
3658 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3659 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 rm -f .deps 2>/dev/null
3669 mkdir .deps 2>/dev/null
3670 if test -d .deps; then
3673 # MS-DOS does not allow filenames that begin with a dot.
3676 rmdir .deps 2>/dev/null
3679 ac_config_commands="$ac_config_commands depfiles"
3682 am_make=${MAKE-make}
3683 cat > confinc << 'END'
3687 # If we don't find an include directive, just comment out the code.
3688 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3689 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3693 # First try GNU make style include.
3694 echo "include confinc" > confmf
3695 # We grep out `Entering directory' and `Leaving directory'
3696 # messages which can occur if `w' ends up in MAKEFLAGS.
3697 # In particular we don't look at `^make:' because GNU make might
3698 # be invoked under some other name (usually "gmake"), in which
3699 # case it prints its new name instead of `make'.
3700 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
3705 # Now try BSD make style include.
3706 if test "$am__include" = "#"; then
3707 echo '.include "confinc"' > confmf
3708 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3709 am__include=.include
3716 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3717 $as_echo "$_am_result" >&6; }
3718 rm -f confinc confmf
3720 # Check whether --enable-dependency-tracking was given.
3721 if test "${enable_dependency_tracking+set}" = set; then
3722 enableval=$enable_dependency_tracking;
3725 if test "x$enable_dependency_tracking" != xno; then
3726 am_depcomp="$ac_aux_dir/depcomp"
3731 if test "x$enable_dependency_tracking" != xno; then
3742 depcc="$CC" am_compiler_list=
3744 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3745 $as_echo_n "checking dependency style of $depcc... " >&6; }
3746 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3747 $as_echo_n "(cached) " >&6
3749 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3750 # We make a subdir and do the tests there. Otherwise we can end up
3751 # making bogus files that we don't know about and never remove. For
3752 # instance it was reported that on HP-UX the gcc test will end up
3753 # making a dummy file named `D' -- because `-MD' means `put the output
3756 # Copy depcomp to subdir because otherwise we won't find it if we're
3757 # using a relative directory.
3758 cp "$am_depcomp" conftest.dir
3761 am_cv_CC_dependencies_compiler_type=none
3762 if test "$am_compiler_list" = ""; then
3763 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3765 for depmode in $am_compiler_list; do
3766 # We need to recreate these files for each test, as the compiler may
3767 # overwrite some of them when testing with obscure command lines.
3768 # This happens at least with the AIX C compiler.
3769 echo '#include "conftest.h"' > conftest.c
3770 echo 'int i;' > conftest.h
3771 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3775 # after this tag, mechanisms are not by side-effect, so they'll
3776 # only be used when explicitly requested
3777 if test "x$enable_dependency_tracking" = xyes; then
3785 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3786 # mode. It turns out that the SunPro C++ compiler does not properly
3787 # handle `-M -o', and we need to detect this.
3788 if depmode=$depmode \
3789 source=conftest.c object=conftest.o \
3790 depfile=conftest.Po tmpdepfile=conftest.TPo \
3791 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3792 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3793 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3794 am_cv_CC_dependencies_compiler_type=$depmode
3802 am_cv_CC_dependencies_compiler_type=none
3806 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3807 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3808 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3817 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3818 # On Suns, sometimes $CPP names a directory.
3819 if test -n "$CPP" && test -d "$CPP"; then
3822 if test -z "$CPP"; then
3823 if test "${ac_cv_prog_CPP+set}" = set; then
3824 $as_echo_n "(cached) " >&6
3826 # Double quotes because CPP needs to be expanded
3827 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3830 for ac_c_preproc_warn_flag in '' yes
3832 # Use a header file that comes with gcc, so configuring glibc
3833 # with a fresh cross-compiler works.
3834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3835 # <limits.h> exists even on freestanding compilers.
3836 # On the NeXT, cc -E runs the code through the compiler's parser,
3837 # not just through cpp. "Syntax error" is here to catch this case.
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3845 # include <limits.h>
3847 # include <assert.h>
3851 if { (ac_try="$ac_cpp conftest.$ac_ext"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3857 $as_echo "$ac_try_echo") >&5
3858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3860 grep -v '^ *+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } >/dev/null && {
3865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3866 test ! -s conftest.err
3870 $as_echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 # Broken: fails on valid input.
3877 rm -f conftest.err conftest.$ac_ext
3879 # OK, works on sane cases. Now check whether nonexistent headers
3880 # can be detected and how.
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <ac_nonexistent.h>
3889 if { (ac_try="$ac_cpp conftest.$ac_ext"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } >/dev/null && {
3903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3906 # Broken: success on invalid input.
3909 $as_echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3912 # Passes both tests.
3917 rm -f conftest.err conftest.$ac_ext
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.err conftest.$ac_ext
3922 if $ac_preproc_ok; then
3934 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3935 $as_echo "$CPP" >&6; }
3937 for ac_c_preproc_warn_flag in '' yes
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error" is here to catch this case.
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3952 # include <limits.h>
3954 # include <assert.h>
3958 if { (ac_try="$ac_cpp conftest.$ac_ext"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3964 $as_echo "$ac_try_echo") >&5
3965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } >/dev/null && {
3972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3973 test ! -s conftest.err
3977 $as_echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 # Broken: fails on valid input.
3984 rm -f conftest.err conftest.$ac_ext
3986 # OK, works on sane cases. Now check whether nonexistent headers
3987 # can be detected and how.
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 #include <ac_nonexistent.h>
3996 if { (ac_try="$ac_cpp conftest.$ac_ext"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4005 grep -v '^ *+' conftest.er1 >conftest.err
4007 cat conftest.err >&5
4008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } >/dev/null && {
4010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4013 # Broken: success on invalid input.
4016 $as_echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 # Passes both tests.
4024 rm -f conftest.err conftest.$ac_ext
4027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4028 rm -f conftest.err conftest.$ac_ext
4029 if $ac_preproc_ok; then
4032 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4035 See \`config.log' for more details." >&5
4036 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4037 See \`config.log' for more details." >&2;}
4038 { (exit 1); exit 1; }; }; }
4042 ac_cpp='$CPP $CPPFLAGS'
4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047 CFLAGS="$cflags_save"
4049 if test "x$CC" != xcc; then
4050 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4051 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4053 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4054 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4056 set dummy $CC; ac_cc=`$as_echo "$2" |
4057 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4058 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4059 $as_echo_n "(cached) " >&6
4061 cat >conftest.$ac_ext <<_ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4076 # Make sure it works both with $CC and with simple cc.
4077 # We do the test twice because some compilers refuse to overwrite an
4078 # existing .o file with -o, though they will create one.
4079 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4081 if { (case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4086 $as_echo "$ac_try_echo") >&5
4087 (eval "$ac_try") 2>&5
4089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4096 $as_echo "$ac_try_echo") >&5
4097 (eval "$ac_try") 2>&5
4099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); };
4102 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4103 if test "x$CC" != xcc; then
4104 # Test first that cc exists at all.
4105 if { ac_try='cc -c conftest.$ac_ext >&5'
4106 { (case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4111 $as_echo "$ac_try_echo") >&5
4112 (eval "$ac_try") 2>&5
4114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; }; then
4116 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4118 if { (case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4123 $as_echo "$ac_try_echo") >&5
4124 (eval "$ac_try") 2>&5
4126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4133 $as_echo "$ac_try_echo") >&5
4134 (eval "$ac_try") 2>&5
4136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); };
4142 # cc exists but doesn't like -o.
4143 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4148 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4150 rm -f core conftest*
4153 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4154 { $as_echo "$as_me:$LINENO: result: yes" >&5
4155 $as_echo "yes" >&6; }
4157 { $as_echo "$as_me:$LINENO: result: no" >&5
4158 $as_echo "no" >&6; }
4160 cat >>confdefs.h <<\_ACEOF
4161 #define NO_MINUS_C_MINUS_O 1
4166 # FIXME: we rely on the cache variable name because
4167 # there is no other way.
4169 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4170 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4171 # Losing compiler, so override with the script.
4172 # FIXME: It is wrong to rewrite CC.
4173 # But if we don't then we get into trouble of one sort or another.
4174 # A longer-term fix would be to have automake use am__CC in this case,
4175 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4176 CC="$am_aux_dir/compile $CC"
4179 enable_win32_dll=yes
4182 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4183 if test -n "$ac_tool_prefix"; then
4184 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4185 set dummy ${ac_tool_prefix}as; ac_word=$2
4186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if test "${ac_cv_prog_AS+set}" = set; then
4189 $as_echo_n "(cached) " >&6
4191 if test -n "$AS"; then
4192 ac_cv_prog_AS="$AS" # Let the user override the test.
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201 ac_cv_prog_AS="${ac_tool_prefix}as"
4202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 if test -n "$AS"; then
4213 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4214 $as_echo "$AS" >&6; }
4216 { $as_echo "$as_me:$LINENO: result: no" >&5
4217 $as_echo "no" >&6; }
4222 if test -z "$ac_cv_prog_AS"; then
4224 # Extract the first word of "as", so it can be a program name with args.
4225 set dummy as; ac_word=$2
4226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4229 $as_echo_n "(cached) " >&6
4231 if test -n "$ac_ct_AS"; then
4232 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_ac_ct_AS="as"
4242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4252 if test -n "$ac_ct_AS"; then
4253 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4254 $as_echo "$ac_ct_AS" >&6; }
4256 { $as_echo "$as_me:$LINENO: result: no" >&5
4257 $as_echo "no" >&6; }
4260 if test "x$ac_ct_AS" = x; then
4263 case $cross_compiling:$ac_tool_warned in
4265 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned=yes ;;
4275 if test -n "$ac_tool_prefix"; then
4276 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4277 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4281 $as_echo_n "(cached) " >&6
4283 if test -n "$DLLTOOL"; then
4284 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 DLLTOOL=$ac_cv_prog_DLLTOOL
4304 if test -n "$DLLTOOL"; then
4305 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4306 $as_echo "$DLLTOOL" >&6; }
4308 { $as_echo "$as_me:$LINENO: result: no" >&5
4309 $as_echo "no" >&6; }
4314 if test -z "$ac_cv_prog_DLLTOOL"; then
4315 ac_ct_DLLTOOL=$DLLTOOL
4316 # Extract the first word of "dlltool", so it can be a program name with args.
4317 set dummy dlltool; ac_word=$2
4318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4321 $as_echo_n "(cached) " >&6
4323 if test -n "$ac_ct_DLLTOOL"; then
4324 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4344 if test -n "$ac_ct_DLLTOOL"; then
4345 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4346 $as_echo "$ac_ct_DLLTOOL" >&6; }
4348 { $as_echo "$as_me:$LINENO: result: no" >&5
4349 $as_echo "no" >&6; }
4352 if test "x$ac_ct_DLLTOOL" = x; then
4355 case $cross_compiling:$ac_tool_warned in
4357 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4359 ac_tool_warned=yes ;;
4361 DLLTOOL=$ac_ct_DLLTOOL
4364 DLLTOOL="$ac_cv_prog_DLLTOOL"
4367 if test -n "$ac_tool_prefix"; then
4368 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4369 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4373 $as_echo_n "(cached) " >&6
4375 if test -n "$OBJDUMP"; then
4376 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 OBJDUMP=$ac_cv_prog_OBJDUMP
4396 if test -n "$OBJDUMP"; then
4397 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4398 $as_echo "$OBJDUMP" >&6; }
4400 { $as_echo "$as_me:$LINENO: result: no" >&5
4401 $as_echo "no" >&6; }
4406 if test -z "$ac_cv_prog_OBJDUMP"; then
4407 ac_ct_OBJDUMP=$OBJDUMP
4408 # Extract the first word of "objdump", so it can be a program name with args.
4409 set dummy objdump; ac_word=$2
4410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4413 $as_echo_n "(cached) " >&6
4415 if test -n "$ac_ct_OBJDUMP"; then
4416 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4436 if test -n "$ac_ct_OBJDUMP"; then
4437 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4438 $as_echo "$ac_ct_OBJDUMP" >&6; }
4440 { $as_echo "$as_me:$LINENO: result: no" >&5
4441 $as_echo "no" >&6; }
4444 if test "x$ac_ct_OBJDUMP" = x; then
4447 case $cross_compiling:$ac_tool_warned in
4449 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4451 ac_tool_warned=yes ;;
4453 OBJDUMP=$ac_ct_OBJDUMP
4456 OBJDUMP="$ac_cv_prog_OBJDUMP"
4462 test -z "$AS" && AS=as
4468 test -z "$DLLTOOL" && DLLTOOL=dlltool
4474 test -z "$OBJDUMP" && OBJDUMP=objdump
4484 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4485 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4490 macro_version='2.2.6'
4491 macro_revision='1.3012'
4505 ltmain="$ac_aux_dir/ltmain.sh"
4507 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4508 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4509 if test "${ac_cv_path_SED+set}" = set; then
4510 $as_echo_n "(cached) " >&6
4512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4513 for ac_i in 1 2 3 4 5 6 7; do
4514 ac_script="$ac_script$as_nl$ac_script"
4516 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4517 $as_unset ac_script || ac_script=
4518 if test -z "$SED"; then
4519 ac_path_SED_found=false
4520 # Loop through the user's path and test for each of PROGNAME-LIST
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_prog in sed gsed; do
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4529 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4530 # Check for GNU ac_path_SED and select it if it is found.
4531 # Check for GNU $ac_path_SED
4532 case `"$ac_path_SED" --version 2>&1` in
4534 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4537 $as_echo_n 0123456789 >"conftest.in"
4540 cat "conftest.in" "conftest.in" >"conftest.tmp"
4541 mv "conftest.tmp" "conftest.in"
4542 cp "conftest.in" "conftest.nl"
4543 $as_echo '' >> "conftest.nl"
4544 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4546 ac_count=`expr $ac_count + 1`
4547 if test $ac_count -gt ${ac_path_SED_max-0}; then
4548 # Best one so far, save it but keep looking for a better one
4549 ac_cv_path_SED="$ac_path_SED"
4550 ac_path_SED_max=$ac_count
4552 # 10*(2^10) chars as input seems more than enough
4553 test $ac_count -gt 10 && break
4555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558 $ac_path_SED_found && break 3
4563 if test -z "$ac_cv_path_SED"; then
4564 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4565 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4566 { (exit 1); exit 1; }; }
4573 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4574 $as_echo "$ac_cv_path_SED" >&6; }
4575 SED="$ac_cv_path_SED"
4578 test -z "$SED" && SED=sed
4579 Xsed="$SED -e 1s/^X//"
4591 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4592 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4593 if test "${ac_cv_path_GREP+set}" = set; then
4594 $as_echo_n "(cached) " >&6
4596 if test -z "$GREP"; then
4597 ac_path_GREP_found=false
4598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4603 test -z "$as_dir" && as_dir=.
4604 for ac_prog in grep ggrep; do
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4607 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4608 # Check for GNU ac_path_GREP and select it if it is found.
4609 # Check for GNU $ac_path_GREP
4610 case `"$ac_path_GREP" --version 2>&1` in
4612 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4615 $as_echo_n 0123456789 >"conftest.in"
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
4621 $as_echo 'GREP' >> "conftest.nl"
4622 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624 ac_count=`expr $ac_count + 1`
4625 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_GREP="$ac_path_GREP"
4628 ac_path_GREP_max=$ac_count
4630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636 $ac_path_GREP_found && break 3
4641 if test -z "$ac_cv_path_GREP"; then
4642 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4643 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4644 { (exit 1); exit 1; }; }
4647 ac_cv_path_GREP=$GREP
4651 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4652 $as_echo "$ac_cv_path_GREP" >&6; }
4653 GREP="$ac_cv_path_GREP"
4656 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4657 $as_echo_n "checking for egrep... " >&6; }
4658 if test "${ac_cv_path_EGREP+set}" = set; then
4659 $as_echo_n "(cached) " >&6
4661 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4662 then ac_cv_path_EGREP="$GREP -E"
4664 if test -z "$EGREP"; then
4665 ac_path_EGREP_found=false
4666 # Loop through the user's path and test for each of PROGNAME-LIST
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4671 test -z "$as_dir" && as_dir=.
4672 for ac_prog in egrep; do
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4675 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4676 # Check for GNU ac_path_EGREP and select it if it is found.
4677 # Check for GNU $ac_path_EGREP
4678 case `"$ac_path_EGREP" --version 2>&1` in
4680 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4683 $as_echo_n 0123456789 >"conftest.in"
4686 cat "conftest.in" "conftest.in" >"conftest.tmp"
4687 mv "conftest.tmp" "conftest.in"
4688 cp "conftest.in" "conftest.nl"
4689 $as_echo 'EGREP' >> "conftest.nl"
4690 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4692 ac_count=`expr $ac_count + 1`
4693 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4694 # Best one so far, save it but keep looking for a better one
4695 ac_cv_path_EGREP="$ac_path_EGREP"
4696 ac_path_EGREP_max=$ac_count
4698 # 10*(2^10) chars as input seems more than enough
4699 test $ac_count -gt 10 && break
4701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4704 $ac_path_EGREP_found && break 3
4709 if test -z "$ac_cv_path_EGREP"; then
4710 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4711 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4712 { (exit 1); exit 1; }; }
4715 ac_cv_path_EGREP=$EGREP
4720 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4721 $as_echo "$ac_cv_path_EGREP" >&6; }
4722 EGREP="$ac_cv_path_EGREP"
4725 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4726 $as_echo_n "checking for fgrep... " >&6; }
4727 if test "${ac_cv_path_FGREP+set}" = set; then
4728 $as_echo_n "(cached) " >&6
4730 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4731 then ac_cv_path_FGREP="$GREP -F"
4733 if test -z "$FGREP"; then
4734 ac_path_FGREP_found=false
4735 # Loop through the user's path and test for each of PROGNAME-LIST
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4740 test -z "$as_dir" && as_dir=.
4741 for ac_prog in fgrep; do
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4744 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4745 # Check for GNU ac_path_FGREP and select it if it is found.
4746 # Check for GNU $ac_path_FGREP
4747 case `"$ac_path_FGREP" --version 2>&1` in
4749 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4752 $as_echo_n 0123456789 >"conftest.in"
4755 cat "conftest.in" "conftest.in" >"conftest.tmp"
4756 mv "conftest.tmp" "conftest.in"
4757 cp "conftest.in" "conftest.nl"
4758 $as_echo 'FGREP' >> "conftest.nl"
4759 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4761 ac_count=`expr $ac_count + 1`
4762 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4763 # Best one so far, save it but keep looking for a better one
4764 ac_cv_path_FGREP="$ac_path_FGREP"
4765 ac_path_FGREP_max=$ac_count
4767 # 10*(2^10) chars as input seems more than enough
4768 test $ac_count -gt 10 && break
4770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4773 $ac_path_FGREP_found && break 3
4778 if test -z "$ac_cv_path_FGREP"; then
4779 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4780 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4781 { (exit 1); exit 1; }; }
4784 ac_cv_path_FGREP=$FGREP
4789 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4790 $as_echo "$ac_cv_path_FGREP" >&6; }
4791 FGREP="$ac_cv_path_FGREP"
4794 test -z "$GREP" && GREP=grep
4814 # Check whether --with-gnu-ld was given.
4815 if test "${with_gnu_ld+set}" = set; then
4816 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4822 if test "$GCC" = yes; then
4823 # Check if gcc -print-prog-name=ld gives a path.
4824 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4825 $as_echo_n "checking for ld used by $CC... " >&6; }
4828 # gcc leaves a trailing carriage return which upsets mingw
4829 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4831 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4834 # Accept absolute paths.
4836 re_direlt='/[^/][^/]*/\.\./'
4837 # Canonicalize the pathname of ld
4838 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4839 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4840 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4842 test -z "$LD" && LD="$ac_prog"
4845 # If it fails, then pretend we aren't using GCC.
4849 # If it is relative, then search for the first ld in PATH.
4853 elif test "$with_gnu_ld" = yes; then
4854 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4855 $as_echo_n "checking for GNU ld... " >&6; }
4857 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4858 $as_echo_n "checking for non-GNU ld... " >&6; }
4860 if test "${lt_cv_path_LD+set}" = set; then
4861 $as_echo_n "(cached) " >&6
4863 if test -z "$LD"; then
4864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4865 for ac_dir in $PATH; do
4867 test -z "$ac_dir" && ac_dir=.
4868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4869 lt_cv_path_LD="$ac_dir/$ac_prog"
4870 # Check to see if the program is GNU ld. I'd rather use --version,
4871 # but apparently some variants of GNU ld only accept -v.
4872 # Break only if it was the GNU/non-GNU ld that we prefer.
4873 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4874 *GNU* | *'with BFD'*)
4875 test "$with_gnu_ld" != no && break
4878 test "$with_gnu_ld" != yes && break
4885 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4890 if test -n "$LD"; then
4891 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4892 $as_echo "$LD" >&6; }
4894 { $as_echo "$as_me:$LINENO: result: no" >&5
4895 $as_echo "no" >&6; }
4897 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4898 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4899 { (exit 1); exit 1; }; }
4900 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4901 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4902 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4903 $as_echo_n "(cached) " >&6
4905 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4906 case `$LD -v 2>&1 </dev/null` in
4907 *GNU* | *'with BFD'*)
4908 lt_cv_prog_gnu_ld=yes
4911 lt_cv_prog_gnu_ld=no
4915 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4916 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4917 with_gnu_ld=$lt_cv_prog_gnu_ld
4927 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4928 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4929 if test "${lt_cv_path_NM+set}" = set; then
4930 $as_echo_n "(cached) " >&6
4932 if test -n "$NM"; then
4933 # Let the user override the test.
4936 lt_nm_to_check="${ac_tool_prefix}nm"
4937 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4938 lt_nm_to_check="$lt_nm_to_check nm"
4940 for lt_tmp_nm in $lt_nm_to_check; do
4941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4942 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4944 test -z "$ac_dir" && ac_dir=.
4945 tmp_nm="$ac_dir/$lt_tmp_nm"
4946 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4947 # Check to see if the nm accepts a BSD-compat flag.
4948 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4949 # nm: unknown option "B" ignored
4950 # Tru64's nm complains that /dev/null is an invalid object file
4951 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4952 */dev/null* | *'Invalid file or object type'*)
4953 lt_cv_path_NM="$tmp_nm -B"
4957 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4959 lt_cv_path_NM="$tmp_nm -p"
4963 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4964 continue # so that we can try to find one that supports BSD flags
4973 : ${lt_cv_path_NM=no}
4976 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4977 $as_echo "$lt_cv_path_NM" >&6; }
4978 if test "$lt_cv_path_NM" != "no"; then
4981 # Didn't find any BSD compatible name lister, look for dumpbin.
4982 if test -n "$ac_tool_prefix"; then
4983 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4990 $as_echo_n "(cached) " >&6
4992 if test -n "$DUMPBIN"; then
4993 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 DUMPBIN=$ac_cv_prog_DUMPBIN
5013 if test -n "$DUMPBIN"; then
5014 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5015 $as_echo "$DUMPBIN" >&6; }
5017 { $as_echo "$as_me:$LINENO: result: no" >&5
5018 $as_echo "no" >&6; }
5022 test -n "$DUMPBIN" && break
5025 if test -z "$DUMPBIN"; then
5026 ac_ct_DUMPBIN=$DUMPBIN
5027 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5029 # Extract the first word of "$ac_prog", so it can be a program name with args.
5030 set dummy $ac_prog; ac_word=$2
5031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5034 $as_echo_n "(cached) " >&6
5036 if test -n "$ac_ct_DUMPBIN"; then
5037 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5057 if test -n "$ac_ct_DUMPBIN"; then
5058 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5059 $as_echo "$ac_ct_DUMPBIN" >&6; }
5061 { $as_echo "$as_me:$LINENO: result: no" >&5
5062 $as_echo "no" >&6; }
5066 test -n "$ac_ct_DUMPBIN" && break
5069 if test "x$ac_ct_DUMPBIN" = x; then
5072 case $cross_compiling:$ac_tool_warned in
5074 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076 ac_tool_warned=yes ;;
5078 DUMPBIN=$ac_ct_DUMPBIN
5083 if test "$DUMPBIN" != ":"; then
5087 test -z "$NM" && NM=nm
5094 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5095 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5096 if test "${lt_cv_nm_interface+set}" = set; then
5097 $as_echo_n "(cached) " >&6
5099 lt_cv_nm_interface="BSD nm"
5100 echo "int some_variable = 0;" > conftest.$ac_ext
5101 (eval echo "\"\$as_me:5101: $ac_compile\"" >&5)
5102 (eval "$ac_compile" 2>conftest.err)
5103 cat conftest.err >&5
5104 (eval echo "\"\$as_me:5104: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5105 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5106 cat conftest.err >&5
5107 (eval echo "\"\$as_me:5107: output\"" >&5)
5108 cat conftest.out >&5
5109 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5110 lt_cv_nm_interface="MS dumpbin"
5114 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5115 $as_echo "$lt_cv_nm_interface" >&6; }
5117 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5118 $as_echo_n "checking whether ln -s works... " >&6; }
5120 if test "$LN_S" = "ln -s"; then
5121 { $as_echo "$as_me:$LINENO: result: yes" >&5
5122 $as_echo "yes" >&6; }
5124 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5125 $as_echo "no, using $LN_S" >&6; }
5128 # find the maximum length of command line arguments
5129 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5130 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5131 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5132 $as_echo_n "(cached) " >&6
5139 # On DJGPP, this test can blow up pretty badly due to problems in libc
5140 # (any single argument exceeding 2000 bytes causes a buffer overrun
5141 # during glob expansion). Even if it were fixed, the result of this
5142 # check would be larger than it should be.
5143 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5147 # Under GNU Hurd, this test is not required because there is
5148 # no limit to the length of command line arguments.
5149 # Libtool will interpret -1 as no limit whatsoever
5150 lt_cv_sys_max_cmd_len=-1;
5153 cygwin* | mingw* | cegcc*)
5154 # On Win9x/ME, this test blows up -- it succeeds, but takes
5155 # about 5 minutes as the teststring grows exponentially.
5156 # Worse, since 9x/ME are not pre-emptively multitasking,
5157 # you end up with a "frozen" computer, even though with patience
5158 # the test eventually succeeds (with a max line length of 256k).
5159 # Instead, let's just punt: use the minimum linelength reported by
5160 # all of the supported platforms: 8192 (on NT/2K/XP).
5161 lt_cv_sys_max_cmd_len=8192;
5165 # On AmigaOS with pdksh, this test takes hours, literally.
5166 # So we just punt and use a minimum line length of 8192.
5167 lt_cv_sys_max_cmd_len=8192;
5170 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5171 # This has been around since 386BSD, at least. Likely further.
5172 if test -x /sbin/sysctl; then
5173 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5174 elif test -x /usr/sbin/sysctl; then
5175 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5177 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5179 # And add a safety zone
5180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5185 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5186 lt_cv_sys_max_cmd_len=196608
5190 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5191 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5192 # nice to cause kernel panics so lets avoid the loop below.
5193 # First set a reasonable default.
5194 lt_cv_sys_max_cmd_len=16384
5196 if test -x /sbin/sysconfig; then
5197 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5198 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5203 lt_cv_sys_max_cmd_len=102400
5205 sysv5* | sco5v6* | sysv4.2uw2*)
5206 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5207 if test -n "$kargmax"; then
5208 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5210 lt_cv_sys_max_cmd_len=32768
5214 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5215 if test -n "$lt_cv_sys_max_cmd_len"; then
5216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5219 # Make teststring a little bigger before we do anything with it.
5220 # a 1K string should be a reasonable start.
5221 for i in 1 2 3 4 5 6 7 8 ; do
5222 teststring=$teststring$teststring
5224 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5225 # If test is not a shell built-in, we'll probably end up computing a
5226 # maximum length that is only half of the actual maximum length, but
5228 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5229 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5230 test $i != 17 # 1/2 MB should be enough
5233 teststring=$teststring$teststring
5235 # Only check the string length outside the loop.
5236 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5238 # Add a significant safety factor because C++ compilers can tack on
5239 # massive amounts of additional arguments before passing them to the
5240 # linker. It appears as though 1/2 is a usable value.
5241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5248 if test -n $lt_cv_sys_max_cmd_len ; then
5249 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5250 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5252 { $as_echo "$as_me:$LINENO: result: none" >&5
5253 $as_echo "none" >&6; }
5255 max_cmd_len=$lt_cv_sys_max_cmd_len
5266 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5267 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5268 # Try some XSI features
5271 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5273 && eval 'test $(( 1 + 1 )) -eq 2 \
5274 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5276 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5277 $as_echo "$xsi_shell" >&6; }
5280 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5281 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5283 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5285 && lt_shell_append=yes
5286 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5287 $as_echo "$lt_shell_append" >&6; }
5290 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5300 # test EBCDIC or ASCII
5301 case `echo X|tr X '\101'` in
5302 A) # ASCII based system
5303 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5304 lt_SP2NL='tr \040 \012'
5305 lt_NL2SP='tr \015\012 \040\040'
5307 *) # EBCDIC based system
5308 lt_SP2NL='tr \100 \n'
5309 lt_NL2SP='tr \r\n \100\100'
5321 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5322 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5323 if test "${lt_cv_ld_reload_flag+set}" = set; then
5324 $as_echo_n "(cached) " >&6
5326 lt_cv_ld_reload_flag='-r'
5328 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5329 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5330 reload_flag=$lt_cv_ld_reload_flag
5331 case $reload_flag in
5333 *) reload_flag=" $reload_flag" ;;
5335 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5338 if test "$GCC" = yes; then
5339 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5341 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5360 $as_echo_n "(cached) " >&6
5362 if test -n "$OBJDUMP"; then
5363 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 OBJDUMP=$ac_cv_prog_OBJDUMP
5383 if test -n "$OBJDUMP"; then
5384 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5385 $as_echo "$OBJDUMP" >&6; }
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5393 if test -z "$ac_cv_prog_OBJDUMP"; then
5394 ac_ct_OBJDUMP=$OBJDUMP
5395 # Extract the first word of "objdump", so it can be a program name with args.
5396 set dummy objdump; ac_word=$2
5397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5402 if test -n "$ac_ct_OBJDUMP"; then
5403 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5423 if test -n "$ac_ct_OBJDUMP"; then
5424 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5425 $as_echo "$ac_ct_OBJDUMP" >&6; }
5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5428 $as_echo "no" >&6; }
5431 if test "x$ac_ct_OBJDUMP" = x; then
5434 case $cross_compiling:$ac_tool_warned in
5436 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5440 OBJDUMP=$ac_ct_OBJDUMP
5443 OBJDUMP="$ac_cv_prog_OBJDUMP"
5446 test -z "$OBJDUMP" && OBJDUMP=objdump
5453 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5454 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5455 if test "${lt_cv_deplibs_check_method+set}" = set; then
5456 $as_echo_n "(cached) " >&6
5458 lt_cv_file_magic_cmd='$MAGIC_CMD'
5459 lt_cv_file_magic_test_file=
5460 lt_cv_deplibs_check_method='unknown'
5461 # Need to set the preceding variable on all platforms that support
5462 # interlibrary dependencies.
5463 # 'none' -- dependencies not supported.
5464 # `unknown' -- same as none, but documents that we really don't know.
5465 # 'pass_all' -- all dependencies passed with no checks.
5466 # 'test_compile' -- check by making test program.
5467 # 'file_magic [[regex]]' -- check by looking for files in library path
5468 # which responds to the $file_magic_cmd with a given extended regex.
5469 # If you have `file' or equivalent on your system and you're not sure
5470 # whether `pass_all' will *always* work, you probably want this one.
5474 lt_cv_deplibs_check_method=pass_all
5478 lt_cv_deplibs_check_method=pass_all
5482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5483 lt_cv_file_magic_cmd='/usr/bin/file -L'
5484 lt_cv_file_magic_test_file=/shlib/libc.so
5488 # func_win32_libid is a shell function defined in ltmain.sh
5489 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5490 lt_cv_file_magic_cmd='func_win32_libid'
5494 # Base MSYS/MinGW do not provide the 'file' command needed by
5495 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5496 # unless we find 'file', for example because we are cross-compiling.
5497 if ( file / ) >/dev/null 2>&1; then
5498 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5499 lt_cv_file_magic_cmd='func_win32_libid'
5501 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5502 lt_cv_file_magic_cmd='$OBJDUMP -f'
5507 # use the weaker test based on 'objdump'. See mingw*.
5508 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5509 lt_cv_file_magic_cmd='$OBJDUMP -f'
5512 darwin* | rhapsody*)
5513 lt_cv_deplibs_check_method=pass_all
5516 freebsd* | dragonfly*)
5517 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5520 # Not sure whether the presence of OpenBSD here was a mistake.
5521 # Let's accept both of them until this is cleared up.
5522 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5523 lt_cv_file_magic_cmd=/usr/bin/file
5524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5528 lt_cv_deplibs_check_method=pass_all
5533 lt_cv_deplibs_check_method=pass_all
5536 hpux10.20* | hpux11*)
5537 lt_cv_file_magic_cmd=/usr/bin/file
5540 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5541 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5545 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5548 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5549 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5555 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5559 irix5* | irix6* | nonstopux*)
5561 *-32|*"-32 ") libmagic=32-bit;;
5562 *-n32|*"-n32 ") libmagic=N32;;
5563 *-64|*"-64 ") libmagic=64-bit;;
5564 *) libmagic=never-match;;
5566 lt_cv_deplibs_check_method=pass_all
5569 # This must be Linux ELF.
5570 linux* | k*bsd*-gnu)
5571 lt_cv_deplibs_check_method=pass_all
5575 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5584 lt_cv_file_magic_cmd=/usr/bin/file
5585 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5589 lt_cv_deplibs_check_method=pass_all
5593 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5600 osf3* | osf4* | osf5*)
5601 lt_cv_deplibs_check_method=pass_all
5605 lt_cv_deplibs_check_method=pass_all
5609 lt_cv_deplibs_check_method=pass_all
5612 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5613 lt_cv_deplibs_check_method=pass_all
5617 case $host_vendor in
5619 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]'
5620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5623 lt_cv_deplibs_check_method=pass_all
5626 lt_cv_file_magic_cmd='/bin/file'
5627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5630 lt_cv_file_magic_cmd='/bin/file'
5631 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5632 lt_cv_file_magic_test_file=/lib/libc.so
5635 lt_cv_deplibs_check_method=pass_all
5638 lt_cv_deplibs_check_method=pass_all
5644 lt_cv_deplibs_check_method=pass_all
5649 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5650 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5651 file_magic_cmd=$lt_cv_file_magic_cmd
5652 deplibs_check_method=$lt_cv_deplibs_check_method
5653 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5666 if test -n "$ac_tool_prefix"; then
5667 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5668 set dummy ${ac_tool_prefix}ar; ac_word=$2
5669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if test "${ac_cv_prog_AR+set}" = set; then
5672 $as_echo_n "(cached) " >&6
5674 if test -n "$AR"; then
5675 ac_cv_prog_AR="$AR" # Let the user override the test.
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_AR="${ac_tool_prefix}ar"
5685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 if test -n "$AR"; then
5696 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5697 $as_echo "$AR" >&6; }
5699 { $as_echo "$as_me:$LINENO: result: no" >&5
5700 $as_echo "no" >&6; }
5705 if test -z "$ac_cv_prog_AR"; then
5707 # Extract the first word of "ar", so it can be a program name with args.
5708 set dummy ar; ac_word=$2
5709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5712 $as_echo_n "(cached) " >&6
5714 if test -n "$ac_ct_AR"; then
5715 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_prog_ac_ct_AR="ar"
5725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5735 if test -n "$ac_ct_AR"; then
5736 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5737 $as_echo "$ac_ct_AR" >&6; }
5739 { $as_echo "$as_me:$LINENO: result: no" >&5
5740 $as_echo "no" >&6; }
5743 if test "x$ac_ct_AR" = x; then
5746 case $cross_compiling:$ac_tool_warned in
5748 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750 ac_tool_warned=yes ;;
5758 test -z "$AR" && AR=ar
5759 test -z "$AR_FLAGS" && AR_FLAGS=cru
5771 if test -n "$ac_tool_prefix"; then
5772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5773 set dummy ${ac_tool_prefix}strip; ac_word=$2
5774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if test "${ac_cv_prog_STRIP+set}" = set; then
5777 $as_echo_n "(cached) " >&6
5779 if test -n "$STRIP"; then
5780 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 STRIP=$ac_cv_prog_STRIP
5800 if test -n "$STRIP"; then
5801 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5802 $as_echo "$STRIP" >&6; }
5804 { $as_echo "$as_me:$LINENO: result: no" >&5
5805 $as_echo "no" >&6; }
5810 if test -z "$ac_cv_prog_STRIP"; then
5812 # Extract the first word of "strip", so it can be a program name with args.
5813 set dummy strip; ac_word=$2
5814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5817 $as_echo_n "(cached) " >&6
5819 if test -n "$ac_ct_STRIP"; then
5820 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829 ac_cv_prog_ac_ct_STRIP="strip"
5830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5840 if test -n "$ac_ct_STRIP"; then
5841 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5842 $as_echo "$ac_ct_STRIP" >&6; }
5844 { $as_echo "$as_me:$LINENO: result: no" >&5
5845 $as_echo "no" >&6; }
5848 if test "x$ac_ct_STRIP" = x; then
5851 case $cross_compiling:$ac_tool_warned in
5853 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5855 ac_tool_warned=yes ;;
5860 STRIP="$ac_cv_prog_STRIP"
5863 test -z "$STRIP" && STRIP=:
5870 if test -n "$ac_tool_prefix"; then
5871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5873 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if test "${ac_cv_prog_RANLIB+set}" = set; then
5876 $as_echo_n "(cached) " >&6
5878 if test -n "$RANLIB"; then
5879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5889 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 RANLIB=$ac_cv_prog_RANLIB
5899 if test -n "$RANLIB"; then
5900 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5901 $as_echo "$RANLIB" >&6; }
5903 { $as_echo "$as_me:$LINENO: result: no" >&5
5904 $as_echo "no" >&6; }
5909 if test -z "$ac_cv_prog_RANLIB"; then
5910 ac_ct_RANLIB=$RANLIB
5911 # Extract the first word of "ranlib", so it can be a program name with args.
5912 set dummy ranlib; ac_word=$2
5913 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5916 $as_echo_n "(cached) " >&6
5918 if test -n "$ac_ct_RANLIB"; then
5919 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_ac_ct_RANLIB="ranlib"
5929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5939 if test -n "$ac_ct_RANLIB"; then
5940 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5941 $as_echo "$ac_ct_RANLIB" >&6; }
5943 { $as_echo "$as_me:$LINENO: result: no" >&5
5944 $as_echo "no" >&6; }
5947 if test "x$ac_ct_RANLIB" = x; then
5950 case $cross_compiling:$ac_tool_warned in
5952 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954 ac_tool_warned=yes ;;
5956 RANLIB=$ac_ct_RANLIB
5959 RANLIB="$ac_cv_prog_RANLIB"
5962 test -z "$RANLIB" && RANLIB=:
5969 # Determine commands to create old-style static archives.
5970 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5971 old_postinstall_cmds='chmod 644 $oldlib'
5972 old_postuninstall_cmds=
5974 if test -n "$RANLIB"; then
5977 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5980 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5983 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6019 # If no C compiler was specified, use CC.
6022 # If no C compiler flags were specified, use CFLAGS.
6023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6025 # Allow CC to be a program name with arguments.
6029 # Check for command to grab the raw symbol name followed by C symbol from nm.
6030 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6031 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6032 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6033 $as_echo_n "(cached) " >&6
6036 # These are sane defaults that work on at least a few old systems.
6037 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6039 # Character class describing NM global symbol codes.
6040 symcode='[BCDEGRST]'
6042 # Regexp to match symbols that can be accessed directly from C.
6043 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6045 # Define system-specific variables.
6050 cygwin* | mingw* | pw32* | cegcc*)
6051 symcode='[ABCDGISTW]'
6054 if test "$host_cpu" = ia64; then
6055 symcode='[ABCDEGRST]'
6059 symcode='[BCDEGRST]'
6062 symcode='[BCDEGQRST]'
6073 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6081 # If we're using GNU nm, then use its standard symbol codes.
6082 case `$NM -V 2>&1` in
6083 *GNU* | *'with BFD'*)
6084 symcode='[ABCDGIRSTW]' ;;
6087 # Transform an extracted symbol line into a proper C declaration.
6088 # Some systems (esp. on ia64) link data and code symbols differently,
6089 # so use this general approach.
6090 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6092 # Transform an extracted symbol line into symbol name and symbol address
6093 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6094 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'"
6096 # Handle CRLF in mingw tool chain
6100 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6104 # Try without a prefix underscore, then with it.
6105 for ac_symprfx in "" "_"; do
6107 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6108 symxfrm="\\1 $ac_symprfx\\2 \\2"
6110 # Write the raw and C identifiers.
6111 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6112 # Fake it for dumpbin and say T for any non-static function
6113 # and D for any global variable.
6114 # Also find C++ and __fastcall symbols from MSVC++,
6115 # which start with @ or ?.
6116 lt_cv_sys_global_symbol_pipe="$AWK '"\
6117 " {last_section=section; section=\$ 3};"\
6118 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6119 " \$ 0!~/External *\|/{next};"\
6120 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6121 " {if(hide[section]) next};"\
6122 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6123 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6124 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6125 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6126 " ' prfx=^$ac_symprfx"
6128 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6131 # Check to see that the pipe works correctly.
6135 cat > conftest.$ac_ext <<_LT_EOF
6140 void nm_test_func(void);
6141 void nm_test_func(void){}
6145 int main(){nm_test_var='a';nm_test_func();return(0);}
6148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149 (eval $ac_compile) 2>&5
6151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; then
6153 # Now try to grab the symbols.
6155 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6156 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && test -s "$nlist"; then
6160 # Try sorting and uniquifying the output.
6161 if sort "$nlist" | uniq > "$nlist"T; then
6162 mv -f "$nlist"T "$nlist"
6167 # Make sure that we snagged all the symbols we need.
6168 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6169 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6170 cat <<_LT_EOF > conftest.$ac_ext
6176 # Now generate the symbol file.
6177 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6179 cat <<_LT_EOF >> conftest.$ac_ext
6181 /* The mapping between symbol names and symbols. */
6186 lt__PROGRAM__LTX_preloaded_symbols[] =
6188 { "@PROGRAM@", (void *) 0 },
6190 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6191 cat <<\_LT_EOF >> conftest.$ac_ext
6195 /* This works around a problem in FreeBSD linker */
6196 #ifdef FREEBSD_WORKAROUND
6197 static const void *lt_preloaded_setup() {
6198 return lt__PROGRAM__LTX_preloaded_symbols;
6206 # Now try linking the two files.
6207 mv conftest.$ac_objext conftstm.$ac_objext
6208 lt_save_LIBS="$LIBS"
6209 lt_save_CFLAGS="$CFLAGS"
6210 LIBS="conftstm.$ac_objext"
6211 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6213 (eval $ac_link) 2>&5
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6219 LIBS="$lt_save_LIBS"
6220 CFLAGS="$lt_save_CFLAGS"
6222 echo "cannot find nm_test_func in $nlist" >&5
6225 echo "cannot find nm_test_var in $nlist" >&5
6228 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6231 echo "$progname: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6234 rm -rf conftest* conftst*
6236 # Do not use the global_symbol_pipe unless it works.
6237 if test "$pipe_works" = yes; then
6240 lt_cv_sys_global_symbol_pipe=
6246 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6247 lt_cv_sys_global_symbol_to_cdecl=
6249 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6250 { $as_echo "$as_me:$LINENO: result: failed" >&5
6251 $as_echo "failed" >&6; }
6253 { $as_echo "$as_me:$LINENO: result: ok" >&5
6254 $as_echo "ok" >&6; }
6279 # Check whether --enable-libtool-lock was given.
6280 if test "${enable_libtool_lock+set}" = set; then
6281 enableval=$enable_libtool_lock;
6284 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6286 # Some flags need to be propagated to the compiler or linker for good
6290 # Find out which ABI we are using.
6291 echo 'int i;' > conftest.$ac_ext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293 (eval $ac_compile) 2>&5
6295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; then
6297 case `/usr/bin/file conftest.$ac_objext` in
6309 # Find out which ABI we are using.
6310 echo '#line 6310 "configure"' > conftest.$ac_ext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>&5
6314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; then
6316 if test "$lt_cv_prog_gnu_ld" = yes; then
6317 case `/usr/bin/file conftest.$ac_objext` in
6319 LD="${LD-ld} -melf32bsmip"
6322 LD="${LD-ld} -melf32bmipn32"
6325 LD="${LD-ld} -melf64bmip"
6329 case `/usr/bin/file conftest.$ac_objext` in
6345 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6346 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6347 # Find out which ABI we are using.
6348 echo 'int i;' > conftest.$ac_ext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>&5
6352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; then
6354 case `/usr/bin/file conftest.o` in
6357 x86_64-*kfreebsd*-gnu)
6358 LD="${LD-ld} -m elf_i386_fbsd"
6361 LD="${LD-ld} -m elf_i386"
6363 ppc64-*linux*|powerpc64-*linux*)
6364 LD="${LD-ld} -m elf32ppclinux"
6367 LD="${LD-ld} -m elf_s390"
6370 LD="${LD-ld} -m elf32_sparc"
6376 x86_64-*kfreebsd*-gnu)
6377 LD="${LD-ld} -m elf_x86_64_fbsd"
6380 LD="${LD-ld} -m elf_x86_64"
6382 ppc*-*linux*|powerpc*-*linux*)
6383 LD="${LD-ld} -m elf64ppc"
6385 s390*-*linux*|s390*-*tpf*)
6386 LD="${LD-ld} -m elf64_s390"
6389 LD="${LD-ld} -m elf64_sparc"
6399 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6400 SAVE_CFLAGS="$CFLAGS"
6401 CFLAGS="$CFLAGS -belf"
6402 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6403 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6404 if test "${lt_cv_cc_needs_belf+set}" = set; then
6405 $as_echo_n "(cached) " >&6
6408 ac_cpp='$CPP $CPPFLAGS'
6409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6413 cat >conftest.$ac_ext <<_ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6428 rm -f conftest.$ac_objext conftest$ac_exeext
6429 if { (ac_try="$ac_link"
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6435 $as_echo "$ac_try_echo") >&5
6436 (eval "$ac_link") 2>conftest.er1
6438 grep -v '^ *+' conftest.er1 >conftest.err
6440 cat conftest.err >&5
6441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } && {
6443 test -z "$ac_c_werror_flag" ||
6444 test ! -s conftest.err
6445 } && test -s conftest$ac_exeext && {
6446 test "$cross_compiling" = yes ||
6447 $as_test_x conftest$ac_exeext
6449 lt_cv_cc_needs_belf=yes
6451 $as_echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 lt_cv_cc_needs_belf=no
6457 rm -rf conftest.dSYM
6458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6459 conftest$ac_exeext conftest.$ac_ext
6461 ac_cpp='$CPP $CPPFLAGS'
6462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6467 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6468 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6469 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6470 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6471 CFLAGS="$SAVE_CFLAGS"
6475 # Find out which ABI we are using.
6476 echo 'int i;' > conftest.$ac_ext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6478 (eval $ac_compile) 2>&5
6480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; then
6482 case `/usr/bin/file conftest.o` in
6484 case $lt_cv_prog_gnu_ld in
6485 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6487 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6499 need_locks="$enable_libtool_lock"
6503 rhapsody* | darwin*)
6504 if test -n "$ac_tool_prefix"; then
6505 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6510 $as_echo_n "(cached) " >&6
6512 if test -n "$DSYMUTIL"; then
6513 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6533 if test -n "$DSYMUTIL"; then
6534 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6535 $as_echo "$DSYMUTIL" >&6; }
6537 { $as_echo "$as_me:$LINENO: result: no" >&5
6538 $as_echo "no" >&6; }
6543 if test -z "$ac_cv_prog_DSYMUTIL"; then
6544 ac_ct_DSYMUTIL=$DSYMUTIL
6545 # Extract the first word of "dsymutil", so it can be a program name with args.
6546 set dummy dsymutil; ac_word=$2
6547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6550 $as_echo_n "(cached) " >&6
6552 if test -n "$ac_ct_DSYMUTIL"; then
6553 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6573 if test -n "$ac_ct_DSYMUTIL"; then
6574 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6575 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6577 { $as_echo "$as_me:$LINENO: result: no" >&5
6578 $as_echo "no" >&6; }
6581 if test "x$ac_ct_DSYMUTIL" = x; then
6584 case $cross_compiling:$ac_tool_warned in
6586 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6590 DSYMUTIL=$ac_ct_DSYMUTIL
6593 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6596 if test -n "$ac_tool_prefix"; then
6597 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6602 $as_echo_n "(cached) " >&6
6604 if test -n "$NMEDIT"; then
6605 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 NMEDIT=$ac_cv_prog_NMEDIT
6625 if test -n "$NMEDIT"; then
6626 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6627 $as_echo "$NMEDIT" >&6; }
6629 { $as_echo "$as_me:$LINENO: result: no" >&5
6630 $as_echo "no" >&6; }
6635 if test -z "$ac_cv_prog_NMEDIT"; then
6636 ac_ct_NMEDIT=$NMEDIT
6637 # Extract the first word of "nmedit", so it can be a program name with args.
6638 set dummy nmedit; ac_word=$2
6639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6642 $as_echo_n "(cached) " >&6
6644 if test -n "$ac_ct_NMEDIT"; then
6645 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6665 if test -n "$ac_ct_NMEDIT"; then
6666 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6667 $as_echo "$ac_ct_NMEDIT" >&6; }
6669 { $as_echo "$as_me:$LINENO: result: no" >&5
6670 $as_echo "no" >&6; }
6673 if test "x$ac_ct_NMEDIT" = x; then
6676 case $cross_compiling:$ac_tool_warned in
6678 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680 ac_tool_warned=yes ;;
6682 NMEDIT=$ac_ct_NMEDIT
6685 NMEDIT="$ac_cv_prog_NMEDIT"
6688 if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if test "${ac_cv_prog_LIPO+set}" = set; then
6694 $as_echo_n "(cached) " >&6
6696 if test -n "$LIPO"; then
6697 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 LIPO=$ac_cv_prog_LIPO
6717 if test -n "$LIPO"; then
6718 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6719 $as_echo "$LIPO" >&6; }
6721 { $as_echo "$as_me:$LINENO: result: no" >&5
6722 $as_echo "no" >&6; }
6727 if test -z "$ac_cv_prog_LIPO"; then
6729 # Extract the first word of "lipo", so it can be a program name with args.
6730 set dummy lipo; ac_word=$2
6731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6734 $as_echo_n "(cached) " >&6
6736 if test -n "$ac_ct_LIPO"; then
6737 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_prog_ac_ct_LIPO="lipo"
6747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6757 if test -n "$ac_ct_LIPO"; then
6758 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6759 $as_echo "$ac_ct_LIPO" >&6; }
6761 { $as_echo "$as_me:$LINENO: result: no" >&5
6762 $as_echo "no" >&6; }
6765 if test "x$ac_ct_LIPO" = x; then
6768 case $cross_compiling:$ac_tool_warned in
6770 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6777 LIPO="$ac_cv_prog_LIPO"
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}otool; ac_word=$2
6783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_OTOOL+set}" = set; then
6786 $as_echo_n "(cached) " >&6
6788 if test -n "$OTOOL"; then
6789 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 OTOOL=$ac_cv_prog_OTOOL
6809 if test -n "$OTOOL"; then
6810 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6811 $as_echo "$OTOOL" >&6; }
6813 { $as_echo "$as_me:$LINENO: result: no" >&5
6814 $as_echo "no" >&6; }
6819 if test -z "$ac_cv_prog_OTOOL"; then
6821 # Extract the first word of "otool", so it can be a program name with args.
6822 set dummy otool; ac_word=$2
6823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6826 $as_echo_n "(cached) " >&6
6828 if test -n "$ac_ct_OTOOL"; then
6829 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_ac_ct_OTOOL="otool"
6839 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6849 if test -n "$ac_ct_OTOOL"; then
6850 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6851 $as_echo "$ac_ct_OTOOL" >&6; }
6853 { $as_echo "$as_me:$LINENO: result: no" >&5
6854 $as_echo "no" >&6; }
6857 if test "x$ac_ct_OTOOL" = x; then
6860 case $cross_compiling:$ac_tool_warned in
6862 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6869 OTOOL="$ac_cv_prog_OTOOL"
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6878 $as_echo_n "(cached) " >&6
6880 if test -n "$OTOOL64"; then
6881 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 OTOOL64=$ac_cv_prog_OTOOL64
6901 if test -n "$OTOOL64"; then
6902 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6903 $as_echo "$OTOOL64" >&6; }
6905 { $as_echo "$as_me:$LINENO: result: no" >&5
6906 $as_echo "no" >&6; }
6911 if test -z "$ac_cv_prog_OTOOL64"; then
6912 ac_ct_OTOOL64=$OTOOL64
6913 # Extract the first word of "otool64", so it can be a program name with args.
6914 set dummy otool64; ac_word=$2
6915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6918 $as_echo_n "(cached) " >&6
6920 if test -n "$ac_ct_OTOOL64"; then
6921 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_ac_ct_OTOOL64="otool64"
6931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6941 if test -n "$ac_ct_OTOOL64"; then
6942 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6943 $as_echo "$ac_ct_OTOOL64" >&6; }
6945 { $as_echo "$as_me:$LINENO: result: no" >&5
6946 $as_echo "no" >&6; }
6949 if test "x$ac_ct_OTOOL64" = x; then
6952 case $cross_compiling:$ac_tool_warned in
6954 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6958 OTOOL64=$ac_ct_OTOOL64
6961 OTOOL64="$ac_cv_prog_OTOOL64"
6990 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6991 $as_echo_n "checking for -single_module linker flag... " >&6; }
6992 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6993 $as_echo_n "(cached) " >&6
6995 lt_cv_apple_cc_single_mod=no
6996 if test -z "${LT_MULTI_MODULE}"; then
6997 # By default we will add the -single_module flag. You can override
6998 # by either setting the environment variable LT_MULTI_MODULE
6999 # non-empty at configure time, or by adding -multi_module to the
7001 rm -rf libconftest.dylib*
7002 echo "int foo(void){return 1;}" > conftest.c
7003 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7004 -dynamiclib -Wl,-single_module conftest.c" >&5
7005 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7006 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7008 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7009 lt_cv_apple_cc_single_mod=yes
7011 cat conftest.err >&5
7013 rm -rf libconftest.dylib*
7017 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7018 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7019 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7020 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7021 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7022 $as_echo_n "(cached) " >&6
7024 lt_cv_ld_exported_symbols_list=no
7025 save_LDFLAGS=$LDFLAGS
7026 echo "_main" > conftest.sym
7027 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7028 cat >conftest.$ac_ext <<_ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (ac_try="$ac_link"
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7050 $as_echo "$ac_try_echo") >&5
7051 (eval "$ac_link") 2>conftest.er1
7053 grep -v '^ *+' conftest.er1 >conftest.err
7055 cat conftest.err >&5
7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && {
7058 test -z "$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 } && test -s conftest$ac_exeext && {
7061 test "$cross_compiling" = yes ||
7062 $as_test_x conftest$ac_exeext
7064 lt_cv_ld_exported_symbols_list=yes
7066 $as_echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 lt_cv_ld_exported_symbols_list=no
7072 rm -rf conftest.dSYM
7073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7074 conftest$ac_exeext conftest.$ac_ext
7075 LDFLAGS="$save_LDFLAGS"
7078 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7079 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7081 rhapsody* | darwin1.[012])
7082 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7084 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7085 darwin*) # darwin 5.x on
7086 # if running on 10.5 or later, the deployment target defaults
7087 # to the OS version, if on x86, and 10.4, the deployment
7088 # target defaults to 10.4. Don't you love it?
7089 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7090 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7091 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7093 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7095 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7099 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7100 _lt_dar_single_mod='$single_module'
7102 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7103 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7105 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7107 if test "$DSYMUTIL" != ":"; then
7108 _lt_dsymutil='~$DSYMUTIL $lib || :'
7116 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7117 $as_echo_n "checking for ANSI C header files... " >&6; }
7118 if test "${ac_cv_header_stdc+set}" = set; then
7119 $as_echo_n "(cached) " >&6
7121 cat >conftest.$ac_ext <<_ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7140 rm -f conftest.$ac_objext
7141 if { (ac_try="$ac_compile"
7143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144 *) ac_try_echo=$ac_try;;
7146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7147 $as_echo "$ac_try_echo") >&5
7148 (eval "$ac_compile") 2>conftest.er1
7150 grep -v '^ *+' conftest.er1 >conftest.err
7152 cat conftest.err >&5
7153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && {
7155 test -z "$ac_c_werror_flag" ||
7156 test ! -s conftest.err
7157 } && test -s conftest.$ac_objext; then
7158 ac_cv_header_stdc=yes
7160 $as_echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7163 ac_cv_header_stdc=no
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 if test $ac_cv_header_stdc = yes; then
7169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7170 cat >conftest.$ac_ext <<_ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 $EGREP "memchr" >/dev/null 2>&1; then
7183 ac_cv_header_stdc=no
7189 if test $ac_cv_header_stdc = yes; then
7190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201 $EGREP "free" >/dev/null 2>&1; then
7204 ac_cv_header_stdc=no
7210 if test $ac_cv_header_stdc = yes; then
7211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7212 if test "$cross_compiling" = yes; then
7215 cat >conftest.$ac_ext <<_ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7223 #if ((' ' & 0x0FF) == 0x020)
7224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7227 # define ISLOWER(c) \
7228 (('a' <= (c) && (c) <= 'i') \
7229 || ('j' <= (c) && (c) <= 'r') \
7230 || ('s' <= (c) && (c) <= 'z'))
7231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7239 for (i = 0; i < 256; i++)
7240 if (XOR (islower (i), ISLOWER (i))
7241 || toupper (i) != TOUPPER (i))
7246 rm -f conftest$ac_exeext
7247 if { (ac_try="$ac_link"
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7253 $as_echo "$ac_try_echo") >&5
7254 (eval "$ac_link") 2>&5
7256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7258 { (case "(($ac_try" in
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7263 $as_echo "$ac_try_echo") >&5
7264 (eval "$ac_try") 2>&5
7266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7270 $as_echo "$as_me: program exited with status $ac_status" >&5
7271 $as_echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7275 ac_cv_header_stdc=no
7277 rm -rf conftest.dSYM
7278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7284 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7285 $as_echo "$ac_cv_header_stdc" >&6; }
7286 if test $ac_cv_header_stdc = yes; then
7288 cat >>confdefs.h <<\_ACEOF
7289 #define STDC_HEADERS 1
7294 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7304 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7305 inttypes.h stdint.h unistd.h
7307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7309 $as_echo_n "checking for $ac_header... " >&6; }
7310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7311 $as_echo_n "(cached) " >&6
7313 cat >conftest.$ac_ext <<_ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 $ac_includes_default
7321 #include <$ac_header>
7323 rm -f conftest.$ac_objext
7324 if { (ac_try="$ac_compile"
7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7330 $as_echo "$ac_try_echo") >&5
7331 (eval "$ac_compile") 2>conftest.er1
7333 grep -v '^ *+' conftest.er1 >conftest.err
7335 cat conftest.err >&5
7336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && {
7338 test -z "$ac_c_werror_flag" ||
7339 test ! -s conftest.err
7340 } && test -s conftest.$ac_objext; then
7341 eval "$as_ac_Header=yes"
7343 $as_echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7346 eval "$as_ac_Header=no"
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 ac_res=`eval 'as_val=${'$as_ac_Header'}
7352 $as_echo "$as_val"'`
7353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7354 $as_echo "$ac_res" >&6; }
7355 as_val=`eval 'as_val=${'$as_ac_Header'}
7356 $as_echo "$as_val"'`
7357 if test "x$as_val" = x""yes; then
7358 cat >>confdefs.h <<_ACEOF
7359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7368 for ac_header in dlfcn.h
7370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7372 $as_echo_n "checking for $ac_header... " >&6; }
7373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7374 $as_echo_n "(cached) " >&6
7376 cat >conftest.$ac_ext <<_ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 $ac_includes_default
7384 #include <$ac_header>
7386 rm -f conftest.$ac_objext
7387 if { (ac_try="$ac_compile"
7389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7390 *) ac_try_echo=$ac_try;;
7392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7393 $as_echo "$ac_try_echo") >&5
7394 (eval "$ac_compile") 2>conftest.er1
7396 grep -v '^ *+' conftest.er1 >conftest.err
7398 cat conftest.err >&5
7399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } && {
7401 test -z "$ac_c_werror_flag" ||
7402 test ! -s conftest.err
7403 } && test -s conftest.$ac_objext; then
7404 eval "$as_ac_Header=yes"
7406 $as_echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7409 eval "$as_ac_Header=no"
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 ac_res=`eval 'as_val=${'$as_ac_Header'}
7415 $as_echo "$as_val"'`
7416 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7417 $as_echo "$ac_res" >&6; }
7418 as_val=`eval 'as_val=${'$as_ac_Header'}
7419 $as_echo "$as_val"'`
7420 if test "x$as_val" = x""yes; then
7421 cat >>confdefs.h <<_ACEOF
7422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7439 # Check whether --enable-shared was given.
7440 if test "${enable_shared+set}" = set; then
7441 enableval=$enable_shared; p=${PACKAGE-default}
7443 yes) enable_shared=yes ;;
7444 no) enable_shared=no ;;
7447 # Look at the argument we got. We use all the common list separators.
7448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7449 for pkg in $enableval; do
7451 if test "X$pkg" = "X$p"; then
7470 # Check whether --enable-static was given.
7471 if test "${enable_static+set}" = set; then
7472 enableval=$enable_static; p=${PACKAGE-default}
7474 yes) enable_static=yes ;;
7475 no) enable_static=no ;;
7478 # Look at the argument we got. We use all the common list separators.
7479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7480 for pkg in $enableval; do
7482 if test "X$pkg" = "X$p"; then
7502 # Check whether --with-pic was given.
7503 if test "${with_pic+set}" = set; then
7504 withval=$with_pic; pic_mode="$withval"
7510 test -z "$pic_mode" && pic_mode=default
7518 # Check whether --enable-fast-install was given.
7519 if test "${enable_fast_install+set}" = set; then
7520 enableval=$enable_fast_install; p=${PACKAGE-default}
7522 yes) enable_fast_install=yes ;;
7523 no) enable_fast_install=no ;;
7525 enable_fast_install=no
7526 # Look at the argument we got. We use all the common list separators.
7527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7528 for pkg in $enableval; do
7530 if test "X$pkg" = "X$p"; then
7531 enable_fast_install=yes
7538 enable_fast_install=yes
7551 # This can be used to rebuild libtool when needed
7552 LIBTOOL_DEPS="$ltmain"
7554 # Always use our own libtool.
7555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7581 test -z "$LN_S" && LN_S="ln -s"
7596 if test -n "${ZSH_VERSION+set}" ; then
7597 setopt NO_GLOB_SUBST
7600 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7601 $as_echo_n "checking for objdir... " >&6; }
7602 if test "${lt_cv_objdir+set}" = set; then
7603 $as_echo_n "(cached) " >&6
7605 rm -f .libs 2>/dev/null
7606 mkdir .libs 2>/dev/null
7607 if test -d .libs; then
7610 # MS-DOS does not allow filenames that begin with a dot.
7613 rmdir .libs 2>/dev/null
7615 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7616 $as_echo "$lt_cv_objdir" >&6; }
7617 objdir=$lt_cv_objdir
7623 cat >>confdefs.h <<_ACEOF
7624 #define LT_OBJDIR "$lt_cv_objdir/"
7645 # AIX sometimes has problems with the GCC collect2 program. For some
7646 # reason, if we set the COLLECT_NAMES environment variable, the problems
7647 # vanish in a puff of smoke.
7648 if test "X${COLLECT_NAMES+set}" != Xset; then
7650 export COLLECT_NAMES
7655 # Sed substitution that helps us do robust quoting. It backslashifies
7656 # metacharacters that are still active within double-quoted strings.
7657 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7659 # Same as above, but do not quote variable references.
7660 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7662 # Sed substitution to delay expansion of an escaped shell variable in a
7663 # double_quote_subst'ed string.
7664 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7666 # Sed substitution to delay expansion of an escaped single quote.
7667 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7669 # Sed substitution to avoid accidental globbing in evaled expressions
7670 no_glob_subst='s/\*/\\\*/g'
7674 can_build_shared=yes
7676 # All known linkers require a `.a' archive for static linking (except MSVC,
7677 # which needs '.lib').
7680 with_gnu_ld="$lt_cv_prog_gnu_ld"
7683 old_CFLAGS="$CFLAGS"
7685 # Set sane defaults for various variables
7686 test -z "$CC" && CC=cc
7687 test -z "$LTCC" && LTCC=$CC
7688 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7689 test -z "$LD" && LD=ld
7690 test -z "$ac_objext" && ac_objext=o
7692 for cc_temp in $compiler""; do
7694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7700 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7703 # Only perform the check for file, if the check method requires it
7704 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7705 case $deplibs_check_method in
7707 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7708 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7709 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7711 $as_echo_n "(cached) " >&6
7715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7718 lt_save_MAGIC_CMD="$MAGIC_CMD"
7719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7721 for ac_dir in $ac_dummy; do
7723 test -z "$ac_dir" && ac_dir=.
7724 if test -f $ac_dir/${ac_tool_prefix}file; then
7725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7726 if test -n "$file_magic_test_file"; then
7727 case $deplibs_check_method in
7729 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7732 $EGREP "$file_magic_regex" > /dev/null; then
7737 *** Warning: the command libtool uses to detect shared libraries,
7738 *** $file_magic_cmd, produces output that libtool cannot recognize.
7739 *** The result is that libtool may fail to recognize shared libraries
7740 *** as such. This will affect the creation of libtool libraries that
7741 *** depend on shared libraries, but programs linked with such libtool
7742 *** libraries will work regardless of this problem. Nevertheless, you
7743 *** may want to report the problem to your system manager and/or to
7744 *** bug-libtool@gnu.org
7754 MAGIC_CMD="$lt_save_MAGIC_CMD"
7759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760 if test -n "$MAGIC_CMD"; then
7761 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7762 $as_echo "$MAGIC_CMD" >&6; }
7764 { $as_echo "$as_me:$LINENO: result: no" >&5
7765 $as_echo "no" >&6; }
7772 if test -z "$lt_cv_path_MAGIC_CMD"; then
7773 if test -n "$ac_tool_prefix"; then
7774 { $as_echo "$as_me:$LINENO: checking for file" >&5
7775 $as_echo_n "checking for file... " >&6; }
7776 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7777 $as_echo_n "(cached) " >&6
7781 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7784 lt_save_MAGIC_CMD="$MAGIC_CMD"
7785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7786 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7787 for ac_dir in $ac_dummy; do
7789 test -z "$ac_dir" && ac_dir=.
7790 if test -f $ac_dir/file; then
7791 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7792 if test -n "$file_magic_test_file"; then
7793 case $deplibs_check_method in
7795 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7797 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7798 $EGREP "$file_magic_regex" > /dev/null; then
7803 *** Warning: the command libtool uses to detect shared libraries,
7804 *** $file_magic_cmd, produces output that libtool cannot recognize.
7805 *** The result is that libtool may fail to recognize shared libraries
7806 *** as such. This will affect the creation of libtool libraries that
7807 *** depend on shared libraries, but programs linked with such libtool
7808 *** libraries will work regardless of this problem. Nevertheless, you
7809 *** may want to report the problem to your system manager and/or to
7810 *** bug-libtool@gnu.org
7820 MAGIC_CMD="$lt_save_MAGIC_CMD"
7825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7826 if test -n "$MAGIC_CMD"; then
7827 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7828 $as_echo "$MAGIC_CMD" >&6; }
7830 { $as_echo "$as_me:$LINENO: result: no" >&5
7831 $as_echo "no" >&6; }
7844 # Use C for the default configuration in the libtool script
7848 ac_cpp='$CPP $CPPFLAGS'
7849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7854 # Source file extension for C test sources.
7857 # Object file extension for compiled C test sources.
7861 # Code to be used in simple compile tests
7862 lt_simple_compile_test_code="int some_variable = 0;"
7864 # Code to be used in simple link tests
7865 lt_simple_link_test_code='int main(){return(0);}'
7873 # If no C compiler was specified, use CC.
7876 # If no C compiler flags were specified, use CFLAGS.
7877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7879 # Allow CC to be a program name with arguments.
7882 # Save the default compiler, since it gets overwritten when the other
7883 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7884 compiler_DEFAULT=$CC
7886 # save warnings/boilerplate of simple test code
7887 ac_outfile=conftest.$ac_objext
7888 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7890 _lt_compiler_boilerplate=`cat conftest.err`
7893 ac_outfile=conftest.$ac_objext
7894 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7896 _lt_linker_boilerplate=`cat conftest.err`
7900 if test -n "$compiler"; then
7902 lt_prog_compiler_no_builtin_flag=
7904 if test "$GCC" = yes; then
7905 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7907 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7908 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7909 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7910 $as_echo_n "(cached) " >&6
7912 lt_cv_prog_compiler_rtti_exceptions=no
7913 ac_outfile=conftest.$ac_objext
7914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7915 lt_compiler_flag="-fno-rtti -fno-exceptions"
7916 # Insert the option either (1) after the last *FLAGS variable, or
7917 # (2) before a word containing "conftest.", or (3) at the end.
7918 # Note that $ac_compile itself does not contain backslashes and begins
7919 # with a dollar sign (not a hyphen), so the echo should work correctly.
7920 # The option is referenced via a variable to avoid confusing sed.
7921 lt_compile=`echo "$ac_compile" | $SED \
7922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7924 -e 's:$: $lt_compiler_flag:'`
7925 (eval echo "\"\$as_me:7925: $lt_compile\"" >&5)
7926 (eval "$lt_compile" 2>conftest.err)
7928 cat conftest.err >&5
7929 echo "$as_me:7929: \$? = $ac_status" >&5
7930 if (exit $ac_status) && test -s "$ac_outfile"; then
7931 # The compiler can only warn and ignore the option if not recognized
7932 # So say no if there are warnings other than the usual output.
7933 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7936 lt_cv_prog_compiler_rtti_exceptions=yes
7942 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7943 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7945 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7946 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7958 lt_prog_compiler_wl=
7959 lt_prog_compiler_pic=
7960 lt_prog_compiler_static=
7962 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7963 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7965 if test "$GCC" = yes; then
7966 lt_prog_compiler_wl='-Wl,'
7967 lt_prog_compiler_static='-static'
7971 # All AIX code is PIC.
7972 if test "$host_cpu" = ia64; then
7973 # AIX 5 now supports IA64 processor
7974 lt_prog_compiler_static='-Bstatic'
7981 # see comment about AmigaOS4 .so support
7982 lt_prog_compiler_pic='-fPIC'
7985 # FIXME: we need at least 68020 code to build shared libraries, but
7986 # adding the `-m68020' flag to GCC prevents building anything better,
7988 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7993 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7994 # PIC is the default for these OSes.
7997 mingw* | cygwin* | pw32* | os2* | cegcc*)
7998 # This hack is so that the source file can tell whether it is being
7999 # built for inclusion in a dll (and should export symbols for example).
8000 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8001 # (--disable-auto-import) libraries
8002 lt_prog_compiler_pic='-DDLL_EXPORT'
8005 darwin* | rhapsody*)
8006 # PIC is the default on this platform
8007 # Common symbols not allowed in MH_DYLIB files
8008 lt_prog_compiler_pic='-fno-common'
8012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8014 # sets the default TLS model and affects inlining.
8020 lt_prog_compiler_pic='-fPIC'
8026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8027 # Instead, we relocate shared libraries at runtime.
8031 # Just because we use GCC doesn't mean we suddenly get shared libraries
8032 # on systems that don't support them.
8033 lt_prog_compiler_can_build_shared=no
8038 # QNX uses GNU C++, but need to define -shared option too, otherwise
8040 lt_prog_compiler_pic='-fPIC -shared'
8044 if test -d /usr/nec; then
8045 lt_prog_compiler_pic=-Kconform_pic
8050 lt_prog_compiler_pic='-fPIC'
8054 # PORTME Check for flag to pass linker flags through the system compiler.
8057 lt_prog_compiler_wl='-Wl,'
8058 if test "$host_cpu" = ia64; then
8059 # AIX 5 now supports IA64 processor
8060 lt_prog_compiler_static='-Bstatic'
8062 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8066 mingw* | cygwin* | pw32* | os2* | cegcc*)
8067 # This hack is so that the source file can tell whether it is being
8068 # built for inclusion in a dll (and should export symbols for example).
8069 lt_prog_compiler_pic='-DDLL_EXPORT'
8072 hpux9* | hpux10* | hpux11*)
8073 lt_prog_compiler_wl='-Wl,'
8074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8081 lt_prog_compiler_pic='+Z'
8084 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8085 lt_prog_compiler_static='${wl}-a ${wl}archive'
8088 irix5* | irix6* | nonstopux*)
8089 lt_prog_compiler_wl='-Wl,'
8090 # PIC (with -KPIC) is the default.
8091 lt_prog_compiler_static='-non_shared'
8094 linux* | k*bsd*-gnu)
8095 case $cc_basename in
8096 # old Intel for x86_64 which still supported -KPIC.
8098 lt_prog_compiler_wl='-Wl,'
8099 lt_prog_compiler_pic='-KPIC'
8100 lt_prog_compiler_static='-static'
8102 # icc used to be incompatible with GCC.
8103 # ICC 10 doesn't accept -KPIC any more.
8105 lt_prog_compiler_wl='-Wl,'
8106 lt_prog_compiler_pic='-fPIC'
8107 lt_prog_compiler_static='-static'
8109 # Lahey Fortran 8.1.
8111 lt_prog_compiler_wl='-Wl,'
8112 lt_prog_compiler_pic='--shared'
8113 lt_prog_compiler_static='--static'
8115 pgcc* | pgf77* | pgf90* | pgf95*)
8116 # Portland Group compilers (*not* the Pentium gcc compiler,
8117 # which looks to be a dead project)
8118 lt_prog_compiler_wl='-Wl,'
8119 lt_prog_compiler_pic='-fpic'
8120 lt_prog_compiler_static='-Bstatic'
8123 lt_prog_compiler_wl='-Wl,'
8124 # All Alpha code is PIC.
8125 lt_prog_compiler_static='-non_shared'
8128 # IBM XL C 8.0/Fortran 10.1 on PPC
8129 lt_prog_compiler_wl='-Wl,'
8130 lt_prog_compiler_pic='-qpic'
8131 lt_prog_compiler_static='-qstaticlink'
8134 case `$CC -V 2>&1 | sed 5q` in
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8139 lt_prog_compiler_wl='-Wl,'
8142 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8143 lt_prog_compiler_pic='-KPIC'
8144 lt_prog_compiler_static='-Bstatic'
8145 lt_prog_compiler_wl=''
8153 lt_prog_compiler_pic='-KPIC'
8154 lt_prog_compiler_static='-Bstatic'
8158 # QNX uses GNU C++, but need to define -shared option too, otherwise
8160 lt_prog_compiler_pic='-fPIC -shared'
8163 osf3* | osf4* | osf5*)
8164 lt_prog_compiler_wl='-Wl,'
8165 # All OSF/1 code is PIC.
8166 lt_prog_compiler_static='-non_shared'
8170 lt_prog_compiler_static='-non_shared'
8174 lt_prog_compiler_pic='-KPIC'
8175 lt_prog_compiler_static='-Bstatic'
8176 case $cc_basename in
8178 lt_prog_compiler_wl='-Qoption ld ';;
8180 lt_prog_compiler_wl='-Wl,';;
8185 lt_prog_compiler_wl='-Qoption ld '
8186 lt_prog_compiler_pic='-PIC'
8187 lt_prog_compiler_static='-Bstatic'
8190 sysv4 | sysv4.2uw2* | sysv4.3*)
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_pic='-KPIC'
8193 lt_prog_compiler_static='-Bstatic'
8197 if test -d /usr/nec ;then
8198 lt_prog_compiler_pic='-Kconform_pic'
8199 lt_prog_compiler_static='-Bstatic'
8203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8204 lt_prog_compiler_wl='-Wl,'
8205 lt_prog_compiler_pic='-KPIC'
8206 lt_prog_compiler_static='-Bstatic'
8210 lt_prog_compiler_wl='-Wl,'
8211 lt_prog_compiler_can_build_shared=no
8215 lt_prog_compiler_pic='-pic'
8216 lt_prog_compiler_static='-Bstatic'
8220 lt_prog_compiler_can_build_shared=no
8226 # For platforms which do not support PIC, -DPIC is meaningless:
8228 lt_prog_compiler_pic=
8231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8234 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8235 $as_echo "$lt_prog_compiler_pic" >&6; }
8243 # Check to make sure the PIC flag actually works.
8245 if test -n "$lt_prog_compiler_pic"; then
8246 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8247 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8248 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8249 $as_echo_n "(cached) " >&6
8251 lt_cv_prog_compiler_pic_works=no
8252 ac_outfile=conftest.$ac_objext
8253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8254 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8255 # Insert the option either (1) after the last *FLAGS variable, or
8256 # (2) before a word containing "conftest.", or (3) at the end.
8257 # Note that $ac_compile itself does not contain backslashes and begins
8258 # with a dollar sign (not a hyphen), so the echo should work correctly.
8259 # The option is referenced via a variable to avoid confusing sed.
8260 lt_compile=`echo "$ac_compile" | $SED \
8261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8263 -e 's:$: $lt_compiler_flag:'`
8264 (eval echo "\"\$as_me:8264: $lt_compile\"" >&5)
8265 (eval "$lt_compile" 2>conftest.err)
8267 cat conftest.err >&5
8268 echo "$as_me:8268: \$? = $ac_status" >&5
8269 if (exit $ac_status) && test -s "$ac_outfile"; then
8270 # The compiler can only warn and ignore the option if not recognized
8271 # So say no if there are warnings other than the usual output.
8272 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8275 lt_cv_prog_compiler_pic_works=yes
8281 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8282 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8284 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8285 case $lt_prog_compiler_pic in
8287 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8290 lt_prog_compiler_pic=
8291 lt_prog_compiler_can_build_shared=no
8302 # Check to make sure the static flag actually works.
8304 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8305 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8306 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8307 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8308 $as_echo_n "(cached) " >&6
8310 lt_cv_prog_compiler_static_works=no
8311 save_LDFLAGS="$LDFLAGS"
8312 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8313 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8314 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8315 # The linker can only warn and ignore the option if not recognized
8316 # So say no if there are warnings
8317 if test -s conftest.err; then
8318 # Append any errors to the config.log.
8319 cat conftest.err 1>&5
8320 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8322 if diff conftest.exp conftest.er2 >/dev/null; then
8323 lt_cv_prog_compiler_static_works=yes
8326 lt_cv_prog_compiler_static_works=yes
8330 LDFLAGS="$save_LDFLAGS"
8333 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8334 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8336 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8339 lt_prog_compiler_static=
8348 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8349 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8350 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8351 $as_echo_n "(cached) " >&6
8353 lt_cv_prog_compiler_c_o=no
8354 $RM -r conftest 2>/dev/null
8358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8360 lt_compiler_flag="-o out/conftest2.$ac_objext"
8361 # Insert the option either (1) after the last *FLAGS variable, or
8362 # (2) before a word containing "conftest.", or (3) at the end.
8363 # Note that $ac_compile itself does not contain backslashes and begins
8364 # with a dollar sign (not a hyphen), so the echo should work correctly.
8365 lt_compile=`echo "$ac_compile" | $SED \
8366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8368 -e 's:$: $lt_compiler_flag:'`
8369 (eval echo "\"\$as_me:8369: $lt_compile\"" >&5)
8370 (eval "$lt_compile" 2>out/conftest.err)
8372 cat out/conftest.err >&5
8373 echo "$as_me:8373: \$? = $ac_status" >&5
8374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8376 # The compiler can only warn and ignore the option if not recognized
8377 # So say no if there are warnings
8378 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8381 lt_cv_prog_compiler_c_o=yes
8386 # SGI C++ compiler will create directory out/ii_files/ for
8387 # template instantiation
8388 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8389 $RM out/* && rmdir out
8395 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8396 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8403 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8405 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8406 $as_echo_n "(cached) " >&6
8408 lt_cv_prog_compiler_c_o=no
8409 $RM -r conftest 2>/dev/null
8413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8415 lt_compiler_flag="-o out/conftest2.$ac_objext"
8416 # Insert the option either (1) after the last *FLAGS variable, or
8417 # (2) before a word containing "conftest.", or (3) at the end.
8418 # Note that $ac_compile itself does not contain backslashes and begins
8419 # with a dollar sign (not a hyphen), so the echo should work correctly.
8420 lt_compile=`echo "$ac_compile" | $SED \
8421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423 -e 's:$: $lt_compiler_flag:'`
8424 (eval echo "\"\$as_me:8424: $lt_compile\"" >&5)
8425 (eval "$lt_compile" 2>out/conftest.err)
8427 cat out/conftest.err >&5
8428 echo "$as_me:8428: \$? = $ac_status" >&5
8429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8431 # The compiler can only warn and ignore the option if not recognized
8432 # So say no if there are warnings
8433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8436 lt_cv_prog_compiler_c_o=yes
8441 # SGI C++ compiler will create directory out/ii_files/ for
8442 # template instantiation
8443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8444 $RM out/* && rmdir out
8450 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8451 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8456 hard_links="nottested"
8457 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8458 # do not overwrite the value of need_locks provided by the user
8459 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8460 $as_echo_n "checking if we can lock with hard links... " >&6; }
8463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8465 ln conftest.a conftest.b 2>&5 || hard_links=no
8466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8467 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8468 $as_echo "$hard_links" >&6; }
8469 if test "$hard_links" = no; then
8470 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8483 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8484 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8487 allow_undefined_flag=
8488 always_export_symbols=no
8490 archive_expsym_cmds=
8491 compiler_needs_object=no
8492 enable_shared_with_static_runtimes=no
8493 export_dynamic_flag_spec=
8494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8495 hardcode_automatic=no
8497 hardcode_direct_absolute=no
8498 hardcode_libdir_flag_spec=
8499 hardcode_libdir_flag_spec_ld=
8500 hardcode_libdir_separator=
8502 hardcode_shlibpath_var=unsupported
8504 link_all_deplibs=unknown
8507 old_archive_from_new_cmds=
8508 old_archive_from_expsyms_cmds=
8509 thread_safe_flag_spec=
8510 whole_archive_flag_spec=
8511 # include_expsyms should be a list of space-separated symbols to be *always*
8512 # included in the symbol list
8514 # exclude_expsyms can be an extended regexp of symbols to exclude
8515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8517 # as well as any symbol that contains `d'.
8518 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8520 # platforms (ab)use it in PIC code, but their linkers get confused if
8521 # the symbol is explicitly referenced. Since portable code cannot
8522 # rely on this symbol name, it's probably fine to never include it in
8523 # preloaded symbol tables.
8524 # Exclude shared library initialization/finalization symbols.
8525 extract_expsyms_cmds=
8528 cygwin* | mingw* | pw32* | cegcc*)
8529 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8530 # When not using gcc, we currently assume that we are using
8531 # Microsoft Visual C++.
8532 if test "$GCC" != yes; then
8537 # we just hope/assume this is gcc and not c89 (= MSVC++)
8546 if test "$with_gnu_ld" = yes; then
8547 # If archive_cmds runs LD, not CC, wlarc should be empty
8550 # Set some defaults for GNU ld with shared library support. These
8551 # are reset later if shared libraries are not supported. Putting them
8552 # here allows them to be overridden if necessary.
8553 runpath_var=LD_RUN_PATH
8554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555 export_dynamic_flag_spec='${wl}--export-dynamic'
8556 # ancient GNU ld didn't support --whole-archive et. al.
8557 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8558 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8560 whole_archive_flag_spec=
8562 supports_anon_versioning=no
8563 case `$LD -v 2>&1` in
8564 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8565 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8566 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8567 *\ 2.11.*) ;; # other 2.11 versions
8568 *) supports_anon_versioning=yes ;;
8571 # See if GNU ld supports shared libraries.
8574 # On AIX/PPC, the GNU linker is very broken
8575 if test "$host_cpu" != ia64; then
8579 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8580 *** to be unable to reliably create shared libraries on AIX.
8581 *** Therefore, libtool is disabling shared libraries support. If you
8582 *** really care for shared libraries, you may want to modify your PATH
8583 *** so that a non-GNU linker is found, and then restart.
8592 # see comment about AmigaOS4 .so support
8593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594 archive_expsym_cmds=''
8597 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)'
8598 hardcode_libdir_flag_spec='-L$libdir'
8599 hardcode_minus_L=yes
8605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8606 allow_undefined_flag=unsupported
8607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8608 # support --undefined. This deserves some investigation. FIXME
8609 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615 cygwin* | mingw* | pw32* | cegcc*)
8616 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8617 # as there is no search path for DLLs.
8618 hardcode_libdir_flag_spec='-L$libdir'
8619 allow_undefined_flag=unsupported
8620 always_export_symbols=no
8621 enable_shared_with_static_runtimes=yes
8622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8624 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8626 # If the export-symbols file already is a .def file (1st line
8627 # is EXPORTS), use it as is; otherwise, prepend...
8628 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8629 cp $export_symbols $output_objdir/$soname.def;
8631 echo EXPORTS > $output_objdir/$soname.def;
8632 cat $export_symbols >> $output_objdir/$soname.def;
8634 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8642 hardcode_shlibpath_var=no
8643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8644 export_dynamic_flag_spec='${wl}-E'
8645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8646 # Instead, shared libraries are loaded at an image base (0x10000000 by
8647 # default) and relocated if they conflict, which is a slow very memory
8648 # consuming and fragmenting process. To avoid this, we pick a random,
8649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8652 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'
8655 gnu* | linux* | tpf* | k*bsd*-gnu)
8657 if test "$host_os" = linux-dietlibc; then
8658 case $cc_basename in
8659 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8662 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8663 && test "$tmp_diet" = no
8666 tmp_sharedflag='-shared'
8667 case $cc_basename,$host_cpu in
8668 pgcc*) # Portland Group C compiler
8669 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8670 tmp_addflag=' $pic_flag'
8672 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8673 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8674 tmp_addflag=' $pic_flag -Mnomain' ;;
8675 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8676 tmp_addflag=' -i_dynamic' ;;
8677 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8678 tmp_addflag=' -i_dynamic -nofor_main' ;;
8679 ifc* | ifort*) # Intel Fortran compiler
8680 tmp_addflag=' -nofor_main' ;;
8681 lf95*) # Lahey Fortran 8.1
8682 whole_archive_flag_spec=
8683 tmp_sharedflag='--shared' ;;
8684 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8685 tmp_sharedflag='-qmkshrobj'
8688 case `$CC -V 2>&1 | sed 5q` in
8689 *Sun\ C*) # Sun C 5.9
8690 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8691 compiler_needs_object=yes
8692 tmp_sharedflag='-G' ;;
8693 *Sun\ F*) # Sun Fortran 8.3
8694 tmp_sharedflag='-G' ;;
8696 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 if test "x$supports_anon_versioning" = xyes; then
8699 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8701 echo "local: *; };" >> $output_objdir/$libname.ver~
8702 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8705 case $cc_basename in
8707 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8708 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8709 hardcode_libdir_flag_spec=
8710 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8711 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8712 if test "x$supports_anon_versioning" = xyes; then
8713 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8715 echo "local: *; };" >> $output_objdir/$libname.ver~
8716 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8727 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8736 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8740 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8741 *** create shared libraries on Solaris systems. Therefore, libtool
8742 *** is disabling shared libraries support. We urge you to upgrade GNU
8743 *** binutils to release 2.9.1 or newer. Another option is to modify
8744 *** your PATH or compiler configuration so that the native linker is
8745 *** used, and then restart.
8748 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8750 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8757 case `$LD -v 2>&1` in
8758 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8762 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8763 *** reliably create shared libraries on SCO systems. Therefore, libtool
8764 *** is disabling shared libraries support. We urge you to upgrade GNU
8765 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8766 *** your PATH or compiler configuration so that the native linker is
8767 *** used, and then restart.
8772 # For security reasons, it is highly recommended that you always
8773 # use absolute paths for naming shared libraries, and exclude the
8774 # DT_RUNPATH tag from executables and libraries. But doing so
8775 # requires that you compile everything twice, which is a pain.
8776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8788 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_shlibpath_var=no
8795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8804 if test "$ld_shlibs" = no; then
8806 hardcode_libdir_flag_spec=
8807 export_dynamic_flag_spec=
8808 whole_archive_flag_spec=
8811 # PORTME fill in a description of your system's linker (not GNU ld)
8814 allow_undefined_flag=unsupported
8815 always_export_symbols=yes
8816 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'
8817 # Note: this linker hardcodes the directories in LIBPATH if there
8818 # are no directories specified by -L.
8819 hardcode_minus_L=yes
8820 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8821 # Neither direct hardcoding nor static linking is supported with a
8823 hardcode_direct=unsupported
8828 if test "$host_cpu" = ia64; then
8829 # On IA64, the linker does run time linking by default, so we don't
8830 # have to do anything special.
8831 aix_use_runtimelinking=no
8832 exp_sym_flag='-Bexport'
8835 # If we're using GNU nm, then we don't want the "-C" option.
8836 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8837 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8838 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8840 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'
8842 aix_use_runtimelinking=no
8844 # Test if we are trying to use run time linking or normal
8845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8846 # need to do runtime linking.
8847 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8848 for ld_flag in $LDFLAGS; do
8849 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8850 aix_use_runtimelinking=yes
8857 exp_sym_flag='-bexport'
8858 no_entry_flag='-bnoentry'
8861 # When large executables or shared objects are built, AIX ld can
8862 # have problems creating the table of contents. If linking a library
8863 # or program results in "error TOC overflow" add -mminimal-toc to
8864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8869 hardcode_direct_absolute=yes
8870 hardcode_libdir_separator=':'
8871 link_all_deplibs=yes
8872 file_list_spec='${wl}-f,'
8874 if test "$GCC" = yes; then
8875 case $host_os in aix4.[012]|aix4.[012].*)
8876 # We only want to do this on AIX 4.2 and lower, the check
8877 # below for broken collect2 doesn't work under 4.3+
8878 collect2name=`${CC} -print-prog-name=collect2`
8879 if test -f "$collect2name" &&
8880 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8882 # We have reworked collect2
8885 # We have old collect2
8886 hardcode_direct=unsupported
8887 # It fails to find uninstalled libraries when the uninstalled
8888 # path is not listed in the libpath. Setting hardcode_minus_L
8889 # to unsupported forces relinking
8890 hardcode_minus_L=yes
8891 hardcode_libdir_flag_spec='-L$libdir'
8892 hardcode_libdir_separator=
8896 shared_flag='-shared'
8897 if test "$aix_use_runtimelinking" = yes; then
8898 shared_flag="$shared_flag "'${wl}-G'
8902 if test "$host_cpu" = ia64; then
8903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8904 # chokes on -Wl,-G. The following line is correct:
8907 if test "$aix_use_runtimelinking" = yes; then
8908 shared_flag='${wl}-G'
8910 shared_flag='${wl}-bM:SRE'
8915 export_dynamic_flag_spec='${wl}-bexpall'
8916 # It seems that -bexpall does not export symbols beginning with
8917 # underscore (_), so it is better to generate a list of symbols to export.
8918 always_export_symbols=yes
8919 if test "$aix_use_runtimelinking" = yes; then
8920 # Warning - without using the other runtime loading flags (-brtl),
8921 # -berok will link without error, but may produce a broken library.
8922 allow_undefined_flag='-berok'
8923 # Determine the default libpath from the value encoded in an
8925 cat >conftest.$ac_ext <<_ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947 $as_echo "$ac_try_echo") >&5
8948 (eval "$ac_link") 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest$ac_exeext && {
8958 test "$cross_compiling" = yes ||
8959 $as_test_x conftest$ac_exeext
8962 lt_aix_libpath_sed='
8963 /Import File Strings/,/^$/ {
8969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8970 # Check for a 64-bit object if we didn't find anything.
8971 if test -z "$aix_libpath"; then
8972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8975 $as_echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8981 rm -rf conftest.dSYM
8982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8983 conftest$ac_exeext conftest.$ac_ext
8984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8986 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8987 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8989 if test "$host_cpu" = ia64; then
8990 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8991 allow_undefined_flag="-z nodefs"
8992 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"
8994 # Determine the default libpath from the value encoded in an
8996 cat >conftest.$ac_ext <<_ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9018 $as_echo "$ac_try_echo") >&5
9019 (eval "$ac_link") 2>conftest.er1
9021 grep -v '^ *+' conftest.er1 >conftest.err
9023 cat conftest.err >&5
9024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } && {
9026 test -z "$ac_c_werror_flag" ||
9027 test ! -s conftest.err
9028 } && test -s conftest$ac_exeext && {
9029 test "$cross_compiling" = yes ||
9030 $as_test_x conftest$ac_exeext
9033 lt_aix_libpath_sed='
9034 /Import File Strings/,/^$/ {
9040 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9041 # Check for a 64-bit object if we didn't find anything.
9042 if test -z "$aix_libpath"; then
9043 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9046 $as_echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9052 rm -rf conftest.dSYM
9053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9054 conftest$ac_exeext conftest.$ac_ext
9055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9058 # Warning - without using the other run time loading flags,
9059 # -berok will link without error, but may produce a broken library.
9060 no_undefined_flag=' ${wl}-bernotok'
9061 allow_undefined_flag=' ${wl}-berok'
9062 # Exported symbols can be pulled into shared objects from archives
9063 whole_archive_flag_spec='$convenience'
9064 archive_cmds_need_lc=yes
9065 # This is similar to how AIX traditionally builds its shared libraries.
9066 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'
9074 # see comment about AmigaOS4 .so support
9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076 archive_expsym_cmds=''
9079 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)'
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_minus_L=yes
9087 export_dynamic_flag_spec=-rdynamic
9090 cygwin* | mingw* | pw32* | cegcc*)
9091 # When not using gcc, we currently assume that we are using
9092 # Microsoft Visual C++.
9093 # hardcode_libdir_flag_spec is actually meaningless, as there is
9094 # no search path for DLLs.
9095 hardcode_libdir_flag_spec=' '
9096 allow_undefined_flag=unsupported
9097 # Tell ltmain to make .lib files, not .a files.
9099 # Tell ltmain to make .dll files, not .so files.
9101 # FIXME: Setting linknames here is a bad hack.
9102 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9103 # The linker will automatically build a .lib file if we build a DLL.
9104 old_archive_from_new_cmds='true'
9105 # FIXME: Should let the user specify the lib program.
9106 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9107 fix_srcfile_path='`cygpath -w "$srcfile"`'
9108 enable_shared_with_static_runtimes=yes
9111 darwin* | rhapsody*)
9114 archive_cmds_need_lc=no
9116 hardcode_automatic=yes
9117 hardcode_shlibpath_var=unsupported
9118 whole_archive_flag_spec=''
9119 link_all_deplibs=yes
9120 allow_undefined_flag="$_lt_dar_allow_undefined"
9121 case $cc_basename in
9122 ifort*) _lt_dar_can_shared=yes ;;
9123 *) _lt_dar_can_shared=$GCC ;;
9125 if test "$_lt_dar_can_shared" = "yes"; then
9126 output_verbose_link_cmd=echo
9127 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9128 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9129 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}"
9130 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}"
9139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 hardcode_shlibpath_var=no
9148 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9149 # support. Future versions do this automatically, but an explicit c++rt0.o
9150 # does not break anything, and helps significantly (at the cost of a little
9153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9154 hardcode_libdir_flag_spec='-R$libdir'
9156 hardcode_shlibpath_var=no
9159 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9163 hardcode_minus_L=yes
9164 hardcode_shlibpath_var=no
9167 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9168 freebsd* | dragonfly*)
9169 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9170 hardcode_libdir_flag_spec='-R$libdir'
9172 hardcode_shlibpath_var=no
9176 if test "$GCC" = yes; then
9177 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9179 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'
9181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9182 hardcode_libdir_separator=:
9185 # hardcode_minus_L: Not really in the search PATH,
9186 # but as the default location of the library.
9187 hardcode_minus_L=yes
9188 export_dynamic_flag_spec='${wl}-E'
9192 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9193 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9197 if test "$with_gnu_ld" = no; then
9198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9199 hardcode_libdir_flag_spec_ld='+b $libdir'
9200 hardcode_libdir_separator=:
9202 hardcode_direct_absolute=yes
9203 export_dynamic_flag_spec='${wl}-E'
9204 # hardcode_minus_L: Not really in the search PATH,
9205 # but as the default location of the library.
9206 hardcode_minus_L=yes
9211 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9214 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9217 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9226 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9229 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9236 if test "$with_gnu_ld" = no; then
9237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9238 hardcode_libdir_separator=:
9243 hardcode_shlibpath_var=no
9247 hardcode_direct_absolute=yes
9248 export_dynamic_flag_spec='${wl}-E'
9250 # hardcode_minus_L: Not really in the search PATH,
9251 # but as the default location of the library.
9252 hardcode_minus_L=yes
9258 irix5* | irix6* | nonstopux*)
9259 if test "$GCC" = yes; then
9260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9261 # Try to use the -exported_symbol ld option, if it does not
9262 # work, assume that -exports_file does not work either and
9263 # implicitly export all symbols.
9264 save_LDFLAGS="$LDFLAGS"
9265 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9266 cat >conftest.$ac_ext <<_ACEOF
9269 rm -f conftest.$ac_objext conftest$ac_exeext
9270 if { (ac_try="$ac_link"
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9276 $as_echo "$ac_try_echo") >&5
9277 (eval "$ac_link") 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } && {
9284 test -z "$ac_c_werror_flag" ||
9285 test ! -s conftest.err
9286 } && test -s conftest$ac_exeext && {
9287 test "$cross_compiling" = yes ||
9288 $as_test_x conftest$ac_exeext
9290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9293 $as_echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9299 rm -rf conftest.dSYM
9300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9301 conftest$ac_exeext conftest.$ac_ext
9302 LDFLAGS="$save_LDFLAGS"
9304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9307 archive_cmds_need_lc='no'
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309 hardcode_libdir_separator=:
9311 link_all_deplibs=yes
9315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9318 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9320 hardcode_libdir_flag_spec='-R$libdir'
9322 hardcode_shlibpath_var=no
9326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9329 hardcode_libdir_separator=:
9330 hardcode_shlibpath_var=no
9337 if test -f /usr/libexec/ld.so; then
9339 hardcode_shlibpath_var=no
9340 hardcode_direct_absolute=yes
9341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9343 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9345 export_dynamic_flag_spec='${wl}-E'
9348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_libdir_flag_spec='-R$libdir'
9353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_minus_L=yes
9366 allow_undefined_flag=unsupported
9367 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'
9368 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9372 if test "$GCC" = yes; then
9373 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9374 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9376 allow_undefined_flag=' -expect_unresolved \*'
9377 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9379 archive_cmds_need_lc='no'
9380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9381 hardcode_libdir_separator=:
9384 osf4* | osf5*) # as osf3* with the addition of -msym flag
9385 if test "$GCC" = yes; then
9386 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9387 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9390 allow_undefined_flag=' -expect_unresolved \*'
9391 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9392 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~
9393 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9395 # Both c and cxx compiler support -rpath directly
9396 hardcode_libdir_flag_spec='-rpath $libdir'
9398 archive_cmds_need_lc='no'
9399 hardcode_libdir_separator=:
9403 no_undefined_flag=' -z defs'
9404 if test "$GCC" = yes; then
9406 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9408 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9410 case `$CC -V 2>&1` in
9413 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9419 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9421 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9425 hardcode_libdir_flag_spec='-R$libdir'
9426 hardcode_shlibpath_var=no
9428 solaris2.[0-5] | solaris2.[0-5].*) ;;
9430 # The compiler driver will combine and reorder linker options,
9431 # but understands `-z linker_flag'. GCC discards it without `$wl',
9432 # but is careful enough not to reorder.
9433 # Supported since Solaris 2.6 (maybe 2.5.1?)
9434 if test "$GCC" = yes; then
9435 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9437 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9441 link_all_deplibs=yes
9445 if test "x$host_vendor" = xsequent; then
9446 # Use $CC to link under sequent, because it throws in some extra .o
9447 # files that make .init and .fini sections work.
9448 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9452 hardcode_libdir_flag_spec='-L$libdir'
9454 hardcode_minus_L=yes
9455 hardcode_shlibpath_var=no
9459 case $host_vendor in
9461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462 hardcode_direct=yes # is this really true???
9465 ## LD is ld it makes a PLAMLIB
9466 ## CC just makes a GrossModule.
9467 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9468 reload_cmds='$CC -r -o $output$reload_objs'
9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9476 runpath_var='LD_RUN_PATH'
9477 hardcode_shlibpath_var=no
9481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9482 hardcode_shlibpath_var=no
9483 export_dynamic_flag_spec='-Bexport'
9487 if test -d /usr/nec; then
9488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489 hardcode_shlibpath_var=no
9490 runpath_var=LD_RUN_PATH
9491 hardcode_runpath_var=yes
9496 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9497 no_undefined_flag='${wl}-z,text'
9498 archive_cmds_need_lc=no
9499 hardcode_shlibpath_var=no
9500 runpath_var='LD_RUN_PATH'
9502 if test "$GCC" = yes; then
9503 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 sysv5* | sco3.2v5* | sco5v6*)
9512 # Note: We can NOT use -z defs as we might desire, because we do not
9513 # link with -lc, and that would cause any symbols used from libc to
9514 # always be unresolved, which means just about no library would
9515 # ever link correctly. If we're not using GNU ld we use -z text
9516 # though, which does catch some bad symbols but isn't as heavy-handed
9518 no_undefined_flag='${wl}-z,text'
9519 allow_undefined_flag='${wl}-z,nodefs'
9520 archive_cmds_need_lc=no
9521 hardcode_shlibpath_var=no
9522 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9523 hardcode_libdir_separator=':'
9524 link_all_deplibs=yes
9525 export_dynamic_flag_spec='${wl}-Bexport'
9526 runpath_var='LD_RUN_PATH'
9528 if test "$GCC" = yes; then
9529 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539 hardcode_libdir_flag_spec='-L$libdir'
9540 hardcode_shlibpath_var=no
9548 if test x$host_vendor = xsni; then
9550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9551 export_dynamic_flag_spec='${wl}-Blargedynsym'
9557 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9558 $as_echo "$ld_shlibs" >&6; }
9559 test "$ld_shlibs" = no && can_build_shared=no
9561 with_gnu_ld=$with_gnu_ld
9578 # Do we need to explicitly link libc?
9580 case "x$archive_cmds_need_lc" in
9582 # Assume -lc should be added
9583 archive_cmds_need_lc=yes
9585 if test "$enable_shared" = yes && test "$GCC" = yes; then
9586 case $archive_cmds in
9588 # FIXME: we may have to deal with multi-command sequences.
9591 # Test whether the compiler implicitly links with -lc since on some
9592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9593 # to ld, don't add -lc before -lgcc.
9594 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9595 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600 (eval $ac_compile) 2>&5
9602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } 2>conftest.err; then
9606 libobjs=conftest.$ac_objext
9608 wl=$lt_prog_compiler_wl
9609 pic_flag=$lt_prog_compiler_pic
9615 lt_save_allow_undefined_flag=$allow_undefined_flag
9616 allow_undefined_flag=
9617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9618 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }
9623 archive_cmds_need_lc=no
9625 archive_cmds_need_lc=yes
9627 allow_undefined_flag=$lt_save_allow_undefined_flag
9629 cat conftest.err 1>&5
9632 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9633 $as_echo "$archive_cmds_need_lc" >&6; }
9796 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9797 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9799 if test "$GCC" = yes; then
9801 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9802 *) lt_awk_arg="/^libraries:/" ;;
9804 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9805 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9806 # if the path contains ";" then we assume it to be the separator
9807 # otherwise default to the standard path separator (i.e. ":") - it is
9808 # assumed that no part of a normal pathname contains ";" but that should
9809 # okay in the real world where ";" in dirpaths is itself problematic.
9810 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9814 # Ok, now we have the path, separated by spaces, we can step through it
9815 # and add multilib dir if necessary.
9816 lt_tmp_lt_search_path_spec=
9817 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9818 for lt_sys_path in $lt_search_path_spec; do
9819 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9822 test -d "$lt_sys_path" && \
9823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9826 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9827 BEGIN {RS=" "; FS="/|\n";} {
9830 for (lt_i = NF; lt_i > 0; lt_i--) {
9831 if ($lt_i != "" && $lt_i != ".") {
9832 if ($lt_i == "..") {
9835 if (lt_count == 0) {
9836 lt_foo="/" $lt_i lt_foo;
9843 if (lt_foo != "") { lt_freq[lt_foo]++; }
9844 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9846 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9851 libname_spec='lib$name'
9859 shlibpath_overrides_runpath=unknown
9861 dynamic_linker="$host_os ld.so"
9862 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9863 need_lib_prefix=unknown
9864 hardcode_into_libs=no
9866 # when you set need_version to no, make sure it does not cause -set_version
9867 # flags to be left without arguments
9868 need_version=unknown
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9874 shlibpath_var=LIBPATH
9876 # AIX 3 has no versioning support, so we append a major version to the name.
9877 soname_spec='${libname}${release}${shared_ext}$major'
9884 hardcode_into_libs=yes
9885 if test "$host_cpu" = ia64; then
9886 # AIX 5 supports IA64
9887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9888 shlibpath_var=LD_LIBRARY_PATH
9890 # With GCC up to 2.95.x, collect2 would create an import file
9891 # for dependence libraries. The import file would start with
9892 # the line `#! .'. This would cause the generated library to
9893 # depend on `.', always an invalid library. This was fixed in
9894 # development snapshots of GCC prior to 3.0.
9896 aix4 | aix4.[01] | aix4.[01].*)
9897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9899 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9907 # soname into executable. Probably we can add versioning support to
9908 # collect2, so additional links can be useful in future.
9909 if test "$aix_use_runtimelinking" = yes; then
9910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9911 # instead of lib<name>.a to let people know that these are not
9912 # typical AIX shared libraries.
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 # We preserve .a as extension for shared libraries through AIX4.2
9916 # and later when we are not doing run time linking.
9917 library_names_spec='${libname}${release}.a $libname.a'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9920 shlibpath_var=LIBPATH
9927 # Since July 2007 AmigaOS4 officially supports .so libraries.
9928 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932 library_names_spec='$libname.ixlibrary $libname.a'
9933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9934 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9940 library_names_spec='${libname}${shared_ext}'
9941 dynamic_linker="$host_os ld.so"
9942 shlibpath_var=LIBRARY_PATH
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 soname_spec='${libname}${release}${shared_ext}$major'
9950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9954 # the default ld.so.conf also contains /usr/contrib/lib and
9955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9956 # libtool to hard-code these into programs
9959 cygwin* | mingw* | pw32* | cegcc*)
9960 version_type=windows
9965 case $GCC,$host_os in
9966 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9967 library_names_spec='$libname.dll.a'
9968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9969 postinstall_cmds='base_file=`basename \${file}`~
9970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9971 dldir=$destdir/`dirname \$dlpath`~
9972 test -d \$dldir || mkdir -p \$dldir~
9973 $install_prog $dir/$dlname \$dldir/$dlname~
9974 chmod a+x \$dldir/$dlname~
9975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9979 dlpath=$dir/\$dldll~
9981 shlibpath_overrides_runpath=yes
9985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9990 # MinGW DLLs use traditional 'lib' prefix
9991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9992 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9993 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9994 # It is most probably a Windows format PATH printed by
9995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9996 # path with ; separators, and with drive letters. We can handle the
9997 # drive letters (cygwin fileutils understands them), so leave them,
9998 # especially as we might pass files found there to a mingw objdump,
9999 # which wouldn't understand a cygwinified path. Ahh.
10000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10006 # pw32 DLLs use 'pw' prefix rather than 'lib'
10007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10016 dynamic_linker='Win32 ld.exe'
10017 # FIXME: first we should search . and the directory the executable is in
10021 darwin* | rhapsody*)
10022 dynamic_linker="$host_os dyld"
10023 version_type=darwin
10026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10027 soname_spec='${libname}${release}${major}$shared_ext'
10028 shlibpath_overrides_runpath=yes
10029 shlibpath_var=DYLD_LIBRARY_PATH
10030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 shlibpath_var=LD_LIBRARY_PATH
10049 freebsd* | dragonfly*)
10050 # DragonFly does not have aout. When/if they implement a new
10051 # versioning mechanism, adjust this.
10052 if test -x /usr/bin/objformat; then
10053 objformat=`/usr/bin/objformat`
10056 freebsd[123]*) objformat=aout ;;
10057 *) objformat=elf ;;
10060 version_type=freebsd-$objformat
10061 case $version_type in
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10072 shlibpath_var=LD_LIBRARY_PATH
10075 shlibpath_overrides_runpath=yes
10077 freebsd3.[01]* | freebsdelf3.[01]*)
10078 shlibpath_overrides_runpath=yes
10079 hardcode_into_libs=yes
10081 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10082 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10083 shlibpath_overrides_runpath=no
10084 hardcode_into_libs=yes
10086 *) # from 4.6 on, and DragonFly
10087 shlibpath_overrides_runpath=yes
10088 hardcode_into_libs=yes
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 shlibpath_var=LD_LIBRARY_PATH
10100 hardcode_into_libs=yes
10103 hpux9* | hpux10* | hpux11*)
10104 # Give a soname corresponding to the major version so that dld.sl refuses to
10105 # link against other versions.
10112 hardcode_into_libs=yes
10113 dynamic_linker="$host_os dld.so"
10114 shlibpath_var=LD_LIBRARY_PATH
10115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 if test "X$HPUX_IA64_MODE" = X32; then
10119 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10127 hardcode_into_libs=yes
10128 dynamic_linker="$host_os dld.sl"
10129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10138 dynamic_linker="$host_os dld.sl"
10139 shlibpath_var=SHLIB_PATH
10140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10145 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10146 postinstall_cmds='chmod 555 $lib'
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 shlibpath_overrides_runpath=no
10158 hardcode_into_libs=yes
10161 irix5* | irix6* | nonstopux*)
10163 nonstopux*) version_type=nonstopux ;;
10165 if test "$lt_cv_prog_gnu_ld" = yes; then
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10176 irix5* | nonstopux*)
10177 libsuff= shlibsuff=
10180 case $LD in # libtool.m4 will add one of these switches to LD
10181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10182 libsuff= shlibsuff= libmagic=32-bit;;
10183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10184 libsuff=32 shlibsuff=N32 libmagic=N32;;
10185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10187 *) libsuff= shlibsuff= libmagic=never-match;;
10191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10192 shlibpath_overrides_runpath=no
10193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10195 hardcode_into_libs=yes
10198 # No shared lib support for Linux oldld, aout, or coff.
10199 linux*oldld* | linux*aout* | linux*coff*)
10203 # This must be Linux ELF.
10204 linux* | k*bsd*-gnu)
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=no
10213 # Some binutils ld are patched to set DT_RUNPATH
10214 save_LDFLAGS=$LDFLAGS
10215 save_libdir=$libdir
10216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10218 cat >conftest.$ac_ext <<_ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (ac_try="$ac_link"
10235 case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10240 $as_echo "$ac_try_echo") >&5
10241 (eval "$ac_link") 2>conftest.er1
10243 grep -v '^ *+' conftest.er1 >conftest.err
10245 cat conftest.err >&5
10246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest$ac_exeext && {
10251 test "$cross_compiling" = yes ||
10252 $as_test_x conftest$ac_exeext
10254 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10255 shlibpath_overrides_runpath=yes
10259 $as_echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10265 rm -rf conftest.dSYM
10266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10267 conftest$ac_exeext conftest.$ac_ext
10268 LDFLAGS=$save_LDFLAGS
10269 libdir=$save_libdir
10271 # This implies no fast_install, which is unacceptable.
10272 # Some rework will be needed to allow for fast_install
10273 # before this can be enabled.
10274 hardcode_into_libs=yes
10276 # Add ABI-specific directories to the system library path.
10277 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10279 # Append ld.so.conf contents to the search path
10280 if test -f /etc/ld.so.conf; then
10281 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;/^$/d' | tr '\n' ' '`
10282 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10285 # We used to test for /lib/ld.so.1 and disable shared libraries on
10286 # powerpc, because MkLinux only supported shared libraries with the
10287 # GNU dynamic linker. Since this was broken with cross compilers,
10288 # most powerpc-linux boxes support dynamic linking these days and
10289 # people can always --disable-shared, the test was removed, and we
10290 # assume the GNU/Linux dynamic linker is in use.
10291 dynamic_linker='GNU/Linux ld.so'
10298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10301 dynamic_linker='NetBSD (a.out) ld.so'
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 dynamic_linker='NetBSD ld.elf_so'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=yes
10309 hardcode_into_libs=yes
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=no
10327 hardcode_into_libs=yes
10328 dynamic_linker='ldqnx.so'
10333 sys_lib_dlsearch_path_spec="/usr/lib"
10335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10337 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10338 *) need_version=no ;;
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10345 openbsd2.[89] | openbsd2.[89].*)
10346 shlibpath_overrides_runpath=no
10349 shlibpath_overrides_runpath=yes
10353 shlibpath_overrides_runpath=yes
10358 libname_spec='$name'
10361 library_names_spec='$libname${shared_ext} $libname.a'
10362 dynamic_linker='OS/2 ld.exe'
10363 shlibpath_var=LIBPATH
10366 osf3* | osf4* | osf5*)
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10390 # ldd complains unless libraries are executable
10391 postinstall_cmds='chmod +x $lib'
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=yes
10400 if test "$with_gnu_ld" = yes; then
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 case $host_vendor in
10413 shlibpath_overrides_runpath=no
10415 runpath_var=LD_RUN_PATH
10423 shlibpath_overrides_runpath=no
10424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10430 if test -d /usr/nec ;then
10432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10433 soname_spec='$libname${shared_ext}.$major'
10434 shlibpath_var=LD_LIBRARY_PATH
10438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10439 version_type=freebsd-elf
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=yes
10446 hardcode_into_libs=yes
10447 if test "$with_gnu_ld" = yes; then
10448 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10450 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10453 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10457 sys_lib_dlsearch_path_spec='/usr/lib'
10461 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468 hardcode_into_libs=yes
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 shlibpath_var=LD_LIBRARY_PATH
10482 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10483 $as_echo "$dynamic_linker" >&6; }
10484 test "$dynamic_linker" = no && can_build_shared=no
10486 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10487 if test "$GCC" = yes; then
10488 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10491 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10492 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10495 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10584 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10585 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10587 if test -n "$hardcode_libdir_flag_spec" ||
10588 test -n "$runpath_var" ||
10589 test "X$hardcode_automatic" = "Xyes" ; then
10591 # We can hardcode non-existent directories.
10592 if test "$hardcode_direct" != no &&
10593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10594 # have to relink, otherwise we might link with an installed library
10595 # when we should be linking with a yet-to-be-installed one
10596 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10597 test "$hardcode_minus_L" != no; then
10598 # Linking always hardcodes the temporary library directory.
10599 hardcode_action=relink
10601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10602 hardcode_action=immediate
10605 # We cannot hardcode anything, or else we can only hardcode existing
10607 hardcode_action=unsupported
10609 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10610 $as_echo "$hardcode_action" >&6; }
10612 if test "$hardcode_action" = relink ||
10613 test "$inherit_rpath" = yes; then
10614 # Fast installation is not supported
10615 enable_fast_install=no
10616 elif test "$shlibpath_overrides_runpath" = yes ||
10617 test "$enable_shared" = no; then
10618 # Fast installation is not necessary
10619 enable_fast_install=needless
10627 if test "x$enable_dlopen" != xyes; then
10628 enable_dlopen=unknown
10629 enable_dlopen_self=unknown
10630 enable_dlopen_self_static=unknown
10637 lt_cv_dlopen="load_add_on"
10639 lt_cv_dlopen_self=yes
10642 mingw* | pw32* | cegcc*)
10643 lt_cv_dlopen="LoadLibrary"
10648 lt_cv_dlopen="dlopen"
10653 # if libdl is installed we need to link against it
10654 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10655 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10657 $as_echo_n "(cached) " >&6
10659 ac_check_lib_save_LIBS=$LIBS
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10668 /* Override any GCC internal prototype to avoid an error.
10669 Use char because int might match the return type of a GCC
10670 builtin and then its argument prototype would still apply. */
10683 rm -f conftest.$ac_objext conftest$ac_exeext
10684 if { (ac_try="$ac_link"
10685 case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10690 $as_echo "$ac_try_echo") >&5
10691 (eval "$ac_link") 2>conftest.er1
10693 grep -v '^ *+' conftest.er1 >conftest.err
10695 cat conftest.err >&5
10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && {
10698 test -z "$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10700 } && test -s conftest$ac_exeext && {
10701 test "$cross_compiling" = yes ||
10702 $as_test_x conftest$ac_exeext
10704 ac_cv_lib_dl_dlopen=yes
10706 $as_echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10709 ac_cv_lib_dl_dlopen=no
10712 rm -rf conftest.dSYM
10713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10714 conftest$ac_exeext conftest.$ac_ext
10715 LIBS=$ac_check_lib_save_LIBS
10717 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10718 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10719 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10723 lt_cv_dlopen="dyld"
10725 lt_cv_dlopen_self=yes
10732 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10733 $as_echo_n "checking for shl_load... " >&6; }
10734 if test "${ac_cv_func_shl_load+set}" = set; then
10735 $as_echo_n "(cached) " >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10745 #define shl_load innocuous_shl_load
10747 /* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char shl_load (); below.
10749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 <limits.h> exists even on freestanding compilers. */
10753 # include <limits.h>
10755 # include <assert.h>
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10767 /* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770 #if defined __stub_shl_load || defined __stub___shl_load
10777 return shl_load ();
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10789 $as_echo "$ac_try_echo") >&5
10790 (eval "$ac_link") 2>conftest.er1
10792 grep -v '^ *+' conftest.er1 >conftest.err
10794 cat conftest.err >&5
10795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } && {
10797 test -z "$ac_c_werror_flag" ||
10798 test ! -s conftest.err
10799 } && test -s conftest$ac_exeext && {
10800 test "$cross_compiling" = yes ||
10801 $as_test_x conftest$ac_exeext
10803 ac_cv_func_shl_load=yes
10805 $as_echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ac_cv_func_shl_load=no
10811 rm -rf conftest.dSYM
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10815 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10816 $as_echo "$ac_cv_func_shl_load" >&6; }
10817 if test "x$ac_cv_func_shl_load" = x""yes; then
10818 lt_cv_dlopen="shl_load"
10820 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10821 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10822 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10823 $as_echo_n "(cached) " >&6
10825 ac_check_lib_save_LIBS=$LIBS
10827 cat >conftest.$ac_ext <<_ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10834 /* Override any GCC internal prototype to avoid an error.
10835 Use char because int might match the return type of a GCC
10836 builtin and then its argument prototype would still apply. */
10844 return shl_load ();
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10856 $as_echo "$ac_try_echo") >&5
10857 (eval "$ac_link") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest$ac_exeext && {
10867 test "$cross_compiling" = yes ||
10868 $as_test_x conftest$ac_exeext
10870 ac_cv_lib_dld_shl_load=yes
10872 $as_echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10875 ac_cv_lib_dld_shl_load=no
10878 rm -rf conftest.dSYM
10879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10883 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10884 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10885 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10886 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10888 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10889 $as_echo_n "checking for dlopen... " >&6; }
10890 if test "${ac_cv_func_dlopen+set}" = set; then
10891 $as_echo_n "(cached) " >&6
10893 cat >conftest.$ac_ext <<_ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10901 #define dlopen innocuous_dlopen
10903 /* System header to define __stub macros and hopefully few prototypes,
10904 which can conflict with char dlopen (); below.
10905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10906 <limits.h> exists even on freestanding compilers. */
10909 # include <limits.h>
10911 # include <assert.h>
10916 /* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10923 /* The GNU C library defines this for functions which it implements
10924 to always fail with ENOSYS. Some functions are actually named
10925 something starting with __ and the normal name is an alias. */
10926 #if defined __stub_dlopen || defined __stub___dlopen
10938 rm -f conftest.$ac_objext conftest$ac_exeext
10939 if { (ac_try="$ac_link"
10940 case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10945 $as_echo "$ac_try_echo") >&5
10946 (eval "$ac_link") 2>conftest.er1
10948 grep -v '^ *+' conftest.er1 >conftest.err
10950 cat conftest.err >&5
10951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } && {
10953 test -z "$ac_c_werror_flag" ||
10954 test ! -s conftest.err
10955 } && test -s conftest$ac_exeext && {
10956 test "$cross_compiling" = yes ||
10957 $as_test_x conftest$ac_exeext
10959 ac_cv_func_dlopen=yes
10961 $as_echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_func_dlopen=no
10967 rm -rf conftest.dSYM
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969 conftest$ac_exeext conftest.$ac_ext
10971 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10972 $as_echo "$ac_cv_func_dlopen" >&6; }
10973 if test "x$ac_cv_func_dlopen" = x""yes; then
10974 lt_cv_dlopen="dlopen"
10976 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10979 $as_echo_n "(cached) " >&6
10981 ac_check_lib_save_LIBS=$LIBS
10983 cat >conftest.$ac_ext <<_ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11012 $as_echo "$ac_try_echo") >&5
11013 (eval "$ac_link") 2>conftest.er1
11015 grep -v '^ *+' conftest.er1 >conftest.err
11017 cat conftest.err >&5
11018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } && {
11020 test -z "$ac_c_werror_flag" ||
11021 test ! -s conftest.err
11022 } && test -s conftest$ac_exeext && {
11023 test "$cross_compiling" = yes ||
11024 $as_test_x conftest$ac_exeext
11026 ac_cv_lib_dl_dlopen=yes
11028 $as_echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11031 ac_cv_lib_dl_dlopen=no
11034 rm -rf conftest.dSYM
11035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11040 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11041 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11044 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11045 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11046 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11047 $as_echo_n "(cached) " >&6
11049 ac_check_lib_save_LIBS=$LIBS
11050 LIBS="-lsvld $LIBS"
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11058 /* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (ac_try="$ac_link"
11075 case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11080 $as_echo "$ac_try_echo") >&5
11081 (eval "$ac_link") 2>conftest.er1
11083 grep -v '^ *+' conftest.er1 >conftest.err
11085 cat conftest.err >&5
11086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } && {
11088 test -z "$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11090 } && test -s conftest$ac_exeext && {
11091 test "$cross_compiling" = yes ||
11092 $as_test_x conftest$ac_exeext
11094 ac_cv_lib_svld_dlopen=yes
11096 $as_echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 ac_cv_lib_svld_dlopen=no
11102 rm -rf conftest.dSYM
11103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104 conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11107 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11108 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11109 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11112 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11113 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11114 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11115 $as_echo_n "(cached) " >&6
11117 ac_check_lib_save_LIBS=$LIBS
11119 cat >conftest.$ac_ext <<_ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11136 return dld_link ();
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (ac_try="$ac_link"
11143 case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11148 $as_echo "$ac_try_echo") >&5
11149 (eval "$ac_link") 2>conftest.er1
11151 grep -v '^ *+' conftest.er1 >conftest.err
11153 cat conftest.err >&5
11154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && {
11156 test -z "$ac_c_werror_flag" ||
11157 test ! -s conftest.err
11158 } && test -s conftest$ac_exeext && {
11159 test "$cross_compiling" = yes ||
11160 $as_test_x conftest$ac_exeext
11162 ac_cv_lib_dld_dld_link=yes
11164 $as_echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11167 ac_cv_lib_dld_dld_link=no
11170 rm -rf conftest.dSYM
11171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11175 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11176 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11177 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11178 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11199 if test "x$lt_cv_dlopen" != xno; then
11205 case $lt_cv_dlopen in
11207 save_CPPFLAGS="$CPPFLAGS"
11208 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11210 save_LDFLAGS="$LDFLAGS"
11211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11214 LIBS="$lt_cv_dlopen_libs $LIBS"
11216 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11217 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11218 if test "${lt_cv_dlopen_self+set}" = set; then
11219 $as_echo_n "(cached) " >&6
11221 if test "$cross_compiling" = yes; then :
11222 lt_cv_dlopen_self=cross
11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225 lt_status=$lt_dlunknown
11226 cat > conftest.$ac_ext <<_LT_EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11237 # define LT_DLGLOBAL RTLD_GLOBAL
11240 # define LT_DLGLOBAL DL_GLOBAL
11242 # define LT_DLGLOBAL 0
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11253 # define LT_DLLAZY_OR_NOW DL_LAZY
11256 # define LT_DLLAZY_OR_NOW RTLD_NOW
11259 # define LT_DLLAZY_OR_NOW DL_NOW
11261 # define LT_DLLAZY_OR_NOW 0
11268 void fnord() { int i=42;}
11271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11272 int status = $lt_dlunknown;
11276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11278 /* dlclose (self); */
11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287 (eval $ac_link) 2>&5
11289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11291 (./conftest; exit; ) >&5 2>/dev/null
11293 case x$lt_status in
11294 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11295 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11296 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11299 # compilation failed
11300 lt_cv_dlopen_self=no
11307 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11308 $as_echo "$lt_cv_dlopen_self" >&6; }
11310 if test "x$lt_cv_dlopen_self" = xyes; then
11311 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11312 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11313 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11314 if test "${lt_cv_dlopen_self_static+set}" = set; then
11315 $as_echo_n "(cached) " >&6
11317 if test "$cross_compiling" = yes; then :
11318 lt_cv_dlopen_self_static=cross
11320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11321 lt_status=$lt_dlunknown
11322 cat > conftest.$ac_ext <<_LT_EOF
11323 #line 11323 "configure"
11324 #include "confdefs.h"
11333 # define LT_DLGLOBAL RTLD_GLOBAL
11336 # define LT_DLGLOBAL DL_GLOBAL
11338 # define LT_DLGLOBAL 0
11342 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11343 find out it does not work in some platform. */
11344 #ifndef LT_DLLAZY_OR_NOW
11346 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11349 # define LT_DLLAZY_OR_NOW DL_LAZY
11352 # define LT_DLLAZY_OR_NOW RTLD_NOW
11355 # define LT_DLLAZY_OR_NOW DL_NOW
11357 # define LT_DLLAZY_OR_NOW 0
11364 void fnord() { int i=42;}
11367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11368 int status = $lt_dlunknown;
11372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11374 /* dlclose (self); */
11382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11383 (eval $ac_link) 2>&5
11385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11387 (./conftest; exit; ) >&5 2>/dev/null
11389 case x$lt_status in
11390 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11391 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11392 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11395 # compilation failed
11396 lt_cv_dlopen_self_static=no
11403 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11404 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11407 CPPFLAGS="$save_CPPFLAGS"
11408 LDFLAGS="$save_LDFLAGS"
11413 case $lt_cv_dlopen_self in
11414 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11415 *) enable_dlopen_self=unknown ;;
11418 case $lt_cv_dlopen_self_static in
11419 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11420 *) enable_dlopen_self_static=unknown ;;
11442 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11443 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11444 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11445 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11446 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11447 { $as_echo "$as_me:$LINENO: result: yes" >&5
11448 $as_echo "yes" >&6; }
11450 # FIXME - insert some real tests, host_os isn't really good enough
11453 if test -n "$STRIP" ; then
11454 striplib="$STRIP -x"
11455 old_striplib="$STRIP -S"
11456 { $as_echo "$as_me:$LINENO: result: yes" >&5
11457 $as_echo "yes" >&6; }
11459 { $as_echo "$as_me:$LINENO: result: no" >&5
11460 $as_echo "no" >&6; }
11464 { $as_echo "$as_me:$LINENO: result: no" >&5
11465 $as_echo "no" >&6; }
11481 # Report which library types will actually be built
11482 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11483 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11484 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11485 $as_echo "$can_build_shared" >&6; }
11487 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11488 $as_echo_n "checking whether to build shared libraries... " >&6; }
11489 test "$can_build_shared" = "no" && enable_shared=no
11491 # On AIX, shared libraries and static libraries use the same namespace, and
11492 # are all built from PIC.
11495 test "$enable_shared" = yes && enable_static=no
11496 if test -n "$RANLIB"; then
11497 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11498 postinstall_cmds='$RANLIB $lib'
11503 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11504 test "$enable_shared" = yes && enable_static=no
11508 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11509 $as_echo "$enable_shared" >&6; }
11511 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11512 $as_echo_n "checking whether to build static libraries... " >&6; }
11513 # Make sure either enable_shared or enable_static is yes.
11514 test "$enable_shared" = yes || enable_static=yes
11515 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11516 $as_echo "$enable_static" >&6; }
11523 ac_cpp='$CPP $CPPFLAGS'
11524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11542 ac_config_commands="$ac_config_commands libtool"
11547 # Only expand once:
11551 ACLOCAL_AMFLAGS="-I m4"
11554 # Extract the first word of "doxygen", so it can be a program name with args.
11555 set dummy doxygen; ac_word=$2
11556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then
11559 $as_echo_n "(cached) " >&6
11561 if test -n "$HAVE_DOXYGEN"; then
11562 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_prog_HAVE_DOXYGEN="true"
11572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11579 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
11582 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
11583 if test -n "$HAVE_DOXYGEN"; then
11584 { $as_echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5
11585 $as_echo "$HAVE_DOXYGEN" >&6; }
11587 { $as_echo "$as_me:$LINENO: result: no" >&5
11588 $as_echo "no" >&6; }
11594 if $HAVE_DOXYGEN; then
11596 HAVE_DOXYGEN_FALSE='#'
11598 HAVE_DOXYGEN_TRUE='#'
11599 HAVE_DOXYGEN_FALSE=
11602 if test $HAVE_DOXYGEN = "false"; then
11603 { $as_echo "$as_me:$LINENO: WARNING: *** doxygen not found, API documentation will not be built" >&5
11604 $as_echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;}
11609 # Check whether --enable-spec was given.
11610 if test "${enable_spec+set}" = set; then
11611 enableval=$enable_spec;
11612 if test "x$enableval" = "xno"; then
11613 ac_build_spec=$enableval
11622 if test "x$ac_build_spec" = "xyes"; then
11623 # Extract the first word of "pdflatex", so it can be a program name with args.
11624 set dummy pdflatex; ac_word=$2
11625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if test "${ac_cv_prog_HAVE_PDFLATEX+set}" = set; then
11628 $as_echo_n "(cached) " >&6
11630 if test -n "$HAVE_PDFLATEX"; then
11631 ac_cv_prog_HAVE_PDFLATEX="$HAVE_PDFLATEX" # Let the user override the test.
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640 ac_cv_prog_HAVE_PDFLATEX="yes"
11641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11650 HAVE_PDFLATEX=$ac_cv_prog_HAVE_PDFLATEX
11651 if test -n "$HAVE_PDFLATEX"; then
11652 { $as_echo "$as_me:$LINENO: result: $HAVE_PDFLATEX" >&5
11653 $as_echo "$HAVE_PDFLATEX" >&6; }
11655 { $as_echo "$as_me:$LINENO: result: no" >&5
11656 $as_echo "no" >&6; }
11660 # Extract the first word of "bibtex", so it can be a program name with args.
11661 set dummy bibtex; ac_word=$2
11662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11663 $as_echo_n "checking for $ac_word... " >&6; }
11664 if test "${ac_cv_prog_HAVE_BIBTEX+set}" = set; then
11665 $as_echo_n "(cached) " >&6
11667 if test -n "$HAVE_BIBTEX"; then
11668 ac_cv_prog_HAVE_BIBTEX="$HAVE_BIBTEX" # Let the user override the test.
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11674 test -z "$as_dir" && as_dir=.
11675 for ac_exec_ext in '' $ac_executable_extensions; do
11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11677 ac_cv_prog_HAVE_BIBTEX="yes"
11678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11687 HAVE_BIBTEX=$ac_cv_prog_HAVE_BIBTEX
11688 if test -n "$HAVE_BIBTEX"; then
11689 { $as_echo "$as_me:$LINENO: result: $HAVE_BIBTEX" >&5
11690 $as_echo "$HAVE_BIBTEX" >&6; }
11692 { $as_echo "$as_me:$LINENO: result: no" >&5
11693 $as_echo "no" >&6; }
11697 # Extract the first word of "fig2dev", so it can be a program name with args.
11698 set dummy fig2dev; ac_word=$2
11699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if test "${ac_cv_prog_HAVE_TRANSFIG+set}" = set; then
11702 $as_echo_n "(cached) " >&6
11704 if test -n "$HAVE_TRANSFIG"; then
11705 ac_cv_prog_HAVE_TRANSFIG="$HAVE_TRANSFIG" # Let the user override the test.
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11714 ac_cv_prog_HAVE_TRANSFIG="yes"
11715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 HAVE_TRANSFIG=$ac_cv_prog_HAVE_TRANSFIG
11725 if test -n "$HAVE_TRANSFIG"; then
11726 { $as_echo "$as_me:$LINENO: result: $HAVE_TRANSFIG" >&5
11727 $as_echo "$HAVE_TRANSFIG" >&6; }
11729 { $as_echo "$as_me:$LINENO: result: no" >&5
11730 $as_echo "no" >&6; }
11734 if test -r doc/spec/spec.tex; then
11735 if test "x$HAVE_PDFLATEX" = "xyes"; then
11736 if test "x$HAVE_BIBTEX" = "xyes"; then
11737 if test "x$HAVE_TRANSFIG" = "xyes"; then
11738 tex_pkg_list=`fgrep usepackage doc/spec/spec.tex | grep \{ | grep -v ltablex`
11740 for pkg_line in $tex_pkg_list; do
11741 pkg_name=`echo $pkg_line | sed -e 's/.*{\(.*\)}.*/\1/'`
11742 { $as_echo "$as_me:$LINENO: checking for Tex package $pkg_name" >&5
11743 $as_echo_n "checking for Tex package $pkg_name... " >&6; }
11744 cat >conftest.tex <<_ACEOF
11745 \\documentclass{book}
11751 if pdflatex -interaction batchmode -halt-on-error conftest < /dev/null > /dev/null 2>&1; then
11752 { $as_echo "$as_me:$LINENO: result: ok" >&5
11753 $as_echo "ok" >&6; }
11756 { $as_echo "$as_me:$LINENO: result: no" >&5
11757 $as_echo "no" >&6; }
11760 if test -w conftest.tex; then rm conftest.tex; fi
11761 if test -w conftest.tex; then rm conftest.aux; fi
11762 if test -w conftest.pdf; then rm conftest.pdf; fi
11763 if test "x$tex_pkg_ok" = "xyes"; then
11773 if $BUILD_SPEC; then
11775 BUILD_SPEC_FALSE='#'
11777 BUILD_SPEC_TRUE='#'
11781 if test $BUILD_SPEC = "false"; then
11782 { $as_echo "$as_me:$LINENO: WARNING: *** Format Specification will not built." >&5
11783 $as_echo "$as_me: WARNING: *** Format Specification will not built." >&2;}
11786 VALGRIND_ENVIRONMENT=""
11787 ac_enable_valgrind=no
11788 # Check whether --enable-valgrind-testing was given.
11789 if test "${enable_valgrind_testing+set}" = set; then
11790 enableval=$enable_valgrind_testing; ac_enable_valgrind=yes
11792 ac_enable_valgrind=no
11796 if test "x${ac_enable_valgrind}" = xyes ; then
11797 if test "x${enable_shared}" = xyes ; then
11798 VALGRIND_ENVIRONMENT="libtool --mode=execute "
11801 # Extract the first word of "valgrind", so it can be a program name with args.
11802 set dummy valgrind; ac_word=$2
11803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11804 $as_echo_n "checking for $ac_word... " >&6; }
11805 if test "${ac_cv_prog_HAVE_VALGRIND+set}" = set; then
11806 $as_echo_n "(cached) " >&6
11808 if test -n "$HAVE_VALGRIND"; then
11809 ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test.
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11818 ac_cv_prog_HAVE_VALGRIND="yes"
11819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no"
11829 HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND
11830 if test -n "$HAVE_VALGRIND"; then
11831 { $as_echo "$as_me:$LINENO: result: $HAVE_VALGRIND" >&5
11832 $as_echo "$HAVE_VALGRIND" >&6; }
11834 { $as_echo "$as_me:$LINENO: result: no" >&5
11835 $as_echo "no" >&6; }
11839 if test "x$HAVE_VALGRIND" = xyes ; then
11840 VALGRIND_ENVIRONMENT="$VALGRIND_ENVIRONMENT valgrind -q --leak-check=yes --show-reachable=yes --num-callers=100"
11842 TESTS_INFO="Type 'make check' to run test suite. Tests will be run under:
11843 ${VALGRIND_ENVIRONMENT}"
11845 TESTS_INFO="Type 'make check' to run test suite (Valgrind not found)"
11848 TESTS_INFO="Type 'make check' to run test suite (Valgrind testing not enabled)"
11853 cflags_save="$CFLAGS"
11854 if test -z "$GCC"; then
11859 PROFILE="-g -p -DDEBUG" ;;
11865 DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
11866 CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
11867 PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
11870 CFLAGS="$CFLAGS $cflags_save"
11874 # Check whether --enable-asm was given.
11875 if test "${enable_asm+set}" = set; then
11876 enableval=$enable_asm; ac_enable_asm=$enableval
11882 if test "x${ac_enable_asm}" = xyes; then
11883 cpu_optimization="no optimization for your platform, please send a patch"
11884 case $target_cpu in
11887 cpu_optimization="32 bit x86"
11889 cat >>confdefs.h <<\_ACEOF
11890 #define OC_X86_ASM /**/
11893 if test "x$target_vendor" = "xapple"; then
11894 THEORA_LDFLAGS="$THEORA_LDFLAGS -Wl,-read_only_relocs,suppress"
11899 cpu_optimization="64 bit x86"
11901 cat >>confdefs.h <<\_ACEOF
11902 #define OC_X86_ASM /**/
11906 cat >>confdefs.h <<\_ACEOF
11907 #define OC_X86_64_ASM /**/
11913 cpu_optimization="disabled"
11917 if test x$cpu_x86_64 = xyes; then
11919 CPU_x86_64_FALSE='#'
11921 CPU_x86_64_TRUE='#'
11927 if test x$cpu_x86_32 = xyes; then
11929 CPU_x86_32_FALSE='#'
11931 CPU_x86_32_TRUE='#'
11936 # Test whenever ld supports -version-script
11939 # Check whether --with-gnu-ld was given.
11940 if test "${with_gnu_ld+set}" = set; then
11941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11947 if test "$GCC" = yes; then
11948 # Check if gcc -print-prog-name=ld gives a path.
11949 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11950 $as_echo_n "checking for ld used by $CC... " >&6; }
11953 # gcc leaves a trailing carriage return which upsets mingw
11954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11959 # Accept absolute paths.
11961 re_direlt='/[^/][^/]*/\.\./'
11962 # Canonicalize the pathname of ld
11963 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11964 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11965 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11967 test -z "$LD" && LD="$ac_prog"
11970 # If it fails, then pretend we aren't using GCC.
11974 # If it is relative, then search for the first ld in PATH.
11975 with_gnu_ld=unknown
11978 elif test "$with_gnu_ld" = yes; then
11979 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11980 $as_echo_n "checking for GNU ld... " >&6; }
11982 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11983 $as_echo_n "checking for non-GNU ld... " >&6; }
11985 if test "${lt_cv_path_LD+set}" = set; then
11986 $as_echo_n "(cached) " >&6
11988 if test -z "$LD"; then
11989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11990 for ac_dir in $PATH; do
11992 test -z "$ac_dir" && ac_dir=.
11993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11994 lt_cv_path_LD="$ac_dir/$ac_prog"
11995 # Check to see if the program is GNU ld. I'd rather use --version,
11996 # but apparently some variants of GNU ld only accept -v.
11997 # Break only if it was the GNU/non-GNU ld that we prefer.
11998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11999 *GNU* | *'with BFD'*)
12000 test "$with_gnu_ld" != no && break
12003 test "$with_gnu_ld" != yes && break
12010 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12014 LD="$lt_cv_path_LD"
12015 if test -n "$LD"; then
12016 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12017 $as_echo "$LD" >&6; }
12019 { $as_echo "$as_me:$LINENO: result: no" >&5
12020 $as_echo "no" >&6; }
12022 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12023 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12024 { (exit 1); exit 1; }; }
12025 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12026 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12027 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12028 $as_echo_n "(cached) " >&6
12030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12031 case `$LD -v 2>&1 </dev/null` in
12032 *GNU* | *'with BFD'*)
12033 lt_cv_prog_gnu_ld=yes
12036 lt_cv_prog_gnu_ld=no
12040 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12041 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12042 with_gnu_ld=$lt_cv_prog_gnu_ld
12050 { $as_echo "$as_me:$LINENO: checking how to control symbol export" >&5
12051 $as_echo_n "checking how to control symbol export... " >&6; }
12053 THDEC_VERSION_ARG=""
12054 THENC_VERSION_ARG=""
12056 if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
12057 case "$target_os" in
12059 THEORA_LDFLAGS="$THEORA_LDFLAGS -no-undefined"
12060 THDEC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/xmingw32/libtheoradec-all.def"
12061 THENC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/xmingw32/libtheoraenc-all.def"
12062 THENC_VERSION_ARG="$THENC_VERSION_ARG -ltheoradec"
12063 THC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/libtheora.def"
12064 { $as_echo "$as_me:$LINENO: result: -export-symbols" >&5
12065 $as_echo "-export-symbols" >&6; }
12067 linux* | solaris* )
12068 THDEC_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script-dec'
12069 THENC_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script-enc'
12070 TH_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script'
12071 { $as_echo "$as_me:$LINENO: result: --version-script" >&5
12072 $as_echo "--version-script" >&6; }
12075 # build without versioning
12076 { $as_echo "$as_me:$LINENO: result: no" >&5
12077 $as_echo "no" >&6; }
12081 case "$target_os" in
12083 THDEC_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theoradec.exp'
12084 THENC_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theoraenc.exp'
12085 TH_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theora.exp'
12086 { $as_echo "$as_me:$LINENO: result: -exported_symbols_list" >&5
12087 $as_echo "-exported_symbols_list" >&6; }
12090 # build without versioning
12091 { $as_echo "$as_me:$LINENO: result: no" >&5
12092 $as_echo "no" >&6; }
12097 THEORADEC_LDFLAGS="$THEORA_LDFLAGS $THDEC_VERSION_ARG"
12098 THEORAENC_LDFLAGS="$THEORA_LDFLAGS $THENC_VERSION_ARG"
12099 THEORA_LDFLAGS="$THEORA_LDFLAGS $TH_VERSION_ARG"
12108 # Extract the first word of "pkg-config", so it can be a program name with args.
12109 set dummy pkg-config; ac_word=$2
12110 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12111 $as_echo_n "checking for $ac_word... " >&6; }
12112 if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
12113 $as_echo_n "(cached) " >&6
12115 if test -n "$HAVE_PKG_CONFIG"; then
12116 ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12122 test -z "$as_dir" && as_dir=.
12123 for ac_exec_ext in '' $ac_executable_extensions; do
12124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12125 ac_cv_prog_HAVE_PKG_CONFIG="yes"
12126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12135 HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
12136 if test -n "$HAVE_PKG_CONFIG"; then
12137 { $as_echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
12138 $as_echo "$HAVE_PKG_CONFIG" >&6; }
12140 { $as_echo "$as_me:$LINENO: result: no" >&5
12141 $as_echo "no" >&6; }
12145 if test "x$HAVE_PKG_CONFIG" = "xyes"
12149 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12150 if test -n "$ac_tool_prefix"; then
12151 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12152 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12153 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12156 $as_echo_n "(cached) " >&6
12158 case $PKG_CONFIG in
12160 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 for as_dir in $PATH
12167 test -z "$as_dir" && as_dir=.
12168 for ac_exec_ext in '' $ac_executable_extensions; do
12169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12170 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12181 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12182 if test -n "$PKG_CONFIG"; then
12183 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12184 $as_echo "$PKG_CONFIG" >&6; }
12186 { $as_echo "$as_me:$LINENO: result: no" >&5
12187 $as_echo "no" >&6; }
12192 if test -z "$ac_cv_path_PKG_CONFIG"; then
12193 ac_pt_PKG_CONFIG=$PKG_CONFIG
12194 # Extract the first word of "pkg-config", so it can be a program name with args.
12195 set dummy pkg-config; ac_word=$2
12196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12199 $as_echo_n "(cached) " >&6
12201 case $ac_pt_PKG_CONFIG in
12203 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12213 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12225 if test -n "$ac_pt_PKG_CONFIG"; then
12226 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12227 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12229 { $as_echo "$as_me:$LINENO: result: no" >&5
12230 $as_echo "no" >&6; }
12233 if test "x$ac_pt_PKG_CONFIG" = x; then
12236 case $cross_compiling:$ac_tool_warned in
12238 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12240 ac_tool_warned=yes ;;
12242 PKG_CONFIG=$ac_pt_PKG_CONFIG
12245 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12249 if test -n "$PKG_CONFIG"; then
12250 _pkg_min_version=0.9.0
12251 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12252 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12253 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12254 { $as_echo "$as_me:$LINENO: result: yes" >&5
12255 $as_echo "yes" >&6; }
12257 { $as_echo "$as_me:$LINENO: result: no" >&5
12258 $as_echo "no" >&6; }
12265 { $as_echo "$as_me:$LINENO: checking for OGG" >&5
12266 $as_echo_n "checking for OGG... " >&6; }
12268 if test -n "$PKG_CONFIG"; then
12269 if test -n "$OGG_CFLAGS"; then
12270 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
12272 if test -n "$PKG_CONFIG" && \
12273 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1\"") >&5
12274 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1") 2>&5
12276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; then
12278 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.1" 2>/dev/null`
12286 if test -n "$PKG_CONFIG"; then
12287 if test -n "$OGG_LIBS"; then
12288 pkg_cv_OGG_LIBS="$OGG_LIBS"
12290 if test -n "$PKG_CONFIG" && \
12291 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1\"") >&5
12292 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1") 2>&5
12294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; then
12296 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.1" 2>/dev/null`
12307 if test $pkg_failed = yes; then
12309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12310 _pkg_short_errors_supported=yes
12312 _pkg_short_errors_supported=no
12314 if test $_pkg_short_errors_supported = yes; then
12315 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.1"`
12317 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.1"`
12319 # Put the nasty error message in config.log where it belongs
12320 echo "$OGG_PKG_ERRORS" >&5
12322 { $as_echo "$as_me:$LINENO: result: no" >&5
12323 $as_echo "no" >&6; }
12325 elif test $pkg_failed = untried; then
12328 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
12329 OGG_LIBS=$pkg_cv_OGG_LIBS
12330 { $as_echo "$as_me:$LINENO: result: yes" >&5
12331 $as_echo "yes" >&6; }
12335 if test "x$HAVE_OGG" = "xno"
12338 # Check whether --with-ogg was given.
12339 if test "${with_ogg+set}" = set; then
12340 withval=$with_ogg; ogg_prefix="$withval"
12346 # Check whether --with-ogg-libraries was given.
12347 if test "${with_ogg_libraries+set}" = set; then
12348 withval=$with_ogg_libraries; ogg_libraries="$withval"
12354 # Check whether --with-ogg-includes was given.
12355 if test "${with_ogg_includes+set}" = set; then
12356 withval=$with_ogg_includes; ogg_includes="$withval"
12361 # Check whether --enable-oggtest was given.
12362 if test "${enable_oggtest+set}" = set; then
12363 enableval=$enable_oggtest;
12369 if test "x$ogg_libraries" != "x" ; then
12370 OGG_LIBS="-L$ogg_libraries"
12371 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
12373 elif test "x$ogg_prefix" != "x" ; then
12374 OGG_LIBS="-L$ogg_prefix/lib"
12375 elif test "x$prefix" != "xNONE" ; then
12376 OGG_LIBS="-L$libdir"
12379 if test "x$ogg_prefix" != "xno" ; then
12380 OGG_LIBS="$OGG_LIBS -logg"
12383 if test "x$ogg_includes" != "x" ; then
12384 OGG_CFLAGS="-I$ogg_includes"
12385 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
12387 elif test "x$ogg_prefix" != "x" ; then
12388 OGG_CFLAGS="-I$ogg_prefix/include"
12389 elif test "x$prefix" != "xNONE"; then
12393 { $as_echo "$as_me:$LINENO: checking for Ogg" >&5
12394 $as_echo_n "checking for Ogg... " >&6; }
12395 if test "x$ogg_prefix" = "xno" ; then
12397 enable_oggtest="no"
12403 if test "x$enable_oggtest" = "xyes" ; then
12404 ac_save_CFLAGS="$CFLAGS"
12405 ac_save_LIBS="$LIBS"
12406 CFLAGS="$CFLAGS $OGG_CFLAGS"
12407 LIBS="$LIBS $OGG_LIBS"
12409 if test "$cross_compiling" = yes; then
12410 echo $ac_n "cross compiling; assumed OK... $ac_c"
12412 cat >conftest.$ac_ext <<_ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12420 #include <stdlib.h>
12421 #include <string.h>
12422 #include <ogg/ogg.h>
12426 system("touch conf.oggtest");
12432 rm -f conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12439 $as_echo "$ac_try_echo") >&5
12440 (eval "$ac_link") 2>&5
12442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12444 { (case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12449 $as_echo "$ac_try_echo") >&5
12450 (eval "$ac_try") 2>&5
12452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12456 $as_echo "$as_me: program exited with status $ac_status" >&5
12457 $as_echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ( exit $ac_status )
12463 rm -rf conftest.dSYM
12464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12468 CFLAGS="$ac_save_CFLAGS"
12469 LIBS="$ac_save_LIBS"
12472 if test "x$no_ogg" = "xdisabled" ; then
12473 { $as_echo "$as_me:$LINENO: result: no" >&5
12474 $as_echo "no" >&6; }
12475 { { $as_echo "$as_me:$LINENO: error:
12476 libogg is required to build this package!
12477 please see http://www.xiph.org/ for how to
12480 $as_echo "$as_me: error:
12481 libogg is required to build this package!
12482 please see http://www.xiph.org/ for how to
12485 { (exit 1); exit 1; }; }
12486 elif test "x$no_ogg" = "x" ; then
12487 { $as_echo "$as_me:$LINENO: result: yes" >&5
12488 $as_echo "yes" >&6; }
12491 { $as_echo "$as_me:$LINENO: result: no" >&5
12492 $as_echo "no" >&6; }
12493 if test -f conf.oggtest ; then
12496 echo "*** Could not run Ogg test program, checking why..."
12497 CFLAGS="$CFLAGS $OGG_CFLAGS"
12498 LIBS="$LIBS $OGG_LIBS"
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12507 #include <ogg/ogg.h>
12517 rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (ac_try="$ac_link"
12519 case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12524 $as_echo "$ac_try_echo") >&5
12525 (eval "$ac_link") 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } && {
12532 test -z "$ac_c_werror_flag" ||
12533 test ! -s conftest.err
12534 } && test -s conftest$ac_exeext && {
12535 test "$cross_compiling" = yes ||
12536 $as_test_x conftest$ac_exeext
12538 echo "*** The test program compiled, but did not run. This usually means"
12539 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12540 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12541 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12542 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12543 echo "*** is required on your system"
12545 echo "*** If you have an old version installed, it is best to remove it, although"
12546 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12548 $as_echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551 echo "*** The test program failed to compile or link. See the file config.log for the"
12552 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12553 echo "*** or that you have moved Ogg since it was installed."
12556 rm -rf conftest.dSYM
12557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12558 conftest$ac_exeext conftest.$ac_ext
12559 CFLAGS="$ac_save_CFLAGS"
12560 LIBS="$ac_save_LIBS"
12564 { { $as_echo "$as_me:$LINENO: error:
12565 libogg is required to build this package!
12566 please see http://www.xiph.org/ for how to
12569 $as_echo "$as_me: error:
12570 libogg is required to build this package!
12571 please see http://www.xiph.org/ for how to
12574 { (exit 1); exit 1; }; }
12580 cflags_save=$CFLAGS
12582 CFLAGS="$CFLAGS $OGG_CFLAGS"
12583 LIBS="$LIBS $OGG_LIBS"
12584 { $as_echo "$as_me:$LINENO: checking for oggpackB_read" >&5
12585 $as_echo_n "checking for oggpackB_read... " >&6; }
12586 if test "${ac_cv_func_oggpackB_read+set}" = set; then
12587 $as_echo_n "(cached) " >&6
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 /* Define oggpackB_read to an innocuous variant, in case <limits.h> declares oggpackB_read.
12596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12597 #define oggpackB_read innocuous_oggpackB_read
12599 /* System header to define __stub macros and hopefully few prototypes,
12600 which can conflict with char oggpackB_read (); below.
12601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12602 <limits.h> exists even on freestanding compilers. */
12605 # include <limits.h>
12607 # include <assert.h>
12610 #undef oggpackB_read
12612 /* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
12618 char oggpackB_read ();
12619 /* The GNU C library defines this for functions which it implements
12620 to always fail with ENOSYS. Some functions are actually named
12621 something starting with __ and the normal name is an alias. */
12622 #if defined __stub_oggpackB_read || defined __stub___oggpackB_read
12629 return oggpackB_read ();
12634 rm -f conftest.$ac_objext conftest$ac_exeext
12635 if { (ac_try="$ac_link"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12641 $as_echo "$ac_try_echo") >&5
12642 (eval "$ac_link") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest$ac_exeext && {
12652 test "$cross_compiling" = yes ||
12653 $as_test_x conftest$ac_exeext
12655 ac_cv_func_oggpackB_read=yes
12657 $as_echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 ac_cv_func_oggpackB_read=no
12663 rm -rf conftest.dSYM
12664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12665 conftest$ac_exeext conftest.$ac_ext
12667 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_oggpackB_read" >&5
12668 $as_echo "$ac_cv_func_oggpackB_read" >&6; }
12669 if test "x$ac_cv_func_oggpackB_read" = x""yes; then
12673 { { $as_echo "$as_me:$LINENO: error: newer libogg version (1.1 or later) required" >&5
12674 $as_echo "$as_me: error: newer libogg version (1.1 or later) required" >&2;}
12675 { (exit 1); exit 1; }; }
12679 CFLAGS=$cflags_save
12687 if test "x$HAVE_PKG_CONFIG" = "xyes"
12691 { $as_echo "$as_me:$LINENO: checking for VORBIS" >&5
12692 $as_echo_n "checking for VORBIS... " >&6; }
12694 if test -n "$PKG_CONFIG"; then
12695 if test -n "$VORBIS_CFLAGS"; then
12696 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
12698 if test -n "$PKG_CONFIG" && \
12699 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.0.1\"") >&5
12700 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.0.1") 2>&5
12702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; then
12704 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.0.1" 2>/dev/null`
12712 if test -n "$PKG_CONFIG"; then
12713 if test -n "$VORBIS_LIBS"; then
12714 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
12716 if test -n "$PKG_CONFIG" && \
12717 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.0.1\"") >&5
12718 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.0.1") 2>&5
12720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; then
12722 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.0.1" 2>/dev/null`
12733 if test $pkg_failed = yes; then
12735 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12736 _pkg_short_errors_supported=yes
12738 _pkg_short_errors_supported=no
12740 if test $_pkg_short_errors_supported = yes; then
12741 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.0.1"`
12743 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.0.1"`
12745 # Put the nasty error message in config.log where it belongs
12746 echo "$VORBIS_PKG_ERRORS" >&5
12748 { $as_echo "$as_me:$LINENO: result: no" >&5
12749 $as_echo "no" >&6; }
12751 elif test $pkg_failed = untried; then
12754 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
12755 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
12756 { $as_echo "$as_me:$LINENO: result: yes" >&5
12757 $as_echo "yes" >&6; }
12760 VORBISENC_LIBS="-lvorbisenc"
12763 if test "x$HAVE_VORBIS" = "xno"
12766 # Check whether --with-vorbis was given.
12767 if test "${with_vorbis+set}" = set; then
12768 withval=$with_vorbis; vorbis_prefix="$withval"
12774 # Check whether --with-vorbis-libraries was given.
12775 if test "${with_vorbis_libraries+set}" = set; then
12776 withval=$with_vorbis_libraries; vorbis_libraries="$withval"
12778 vorbis_libraries=""
12782 # Check whether --with-vorbis-includes was given.
12783 if test "${with_vorbis_includes+set}" = set; then
12784 withval=$with_vorbis_includes; vorbis_includes="$withval"
12789 # Check whether --enable-vorbistest was given.
12790 if test "${enable_vorbistest+set}" = set; then
12791 enableval=$enable_vorbistest;
12793 enable_vorbistest=yes
12797 if test "x$vorbis_libraries" != "x" ; then
12798 VORBIS_LIBS="-L$vorbis_libraries"
12799 elif test "x$vorbis_prefix" != "x" ; then
12800 VORBIS_LIBS="-L$vorbis_prefix/lib"
12801 elif test "x$prefix" != "xNONE"; then
12802 VORBIS_LIBS="-L$libdir"
12805 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
12806 VORBISFILE_LIBS="-lvorbisfile"
12807 VORBISENC_LIBS="-lvorbisenc"
12809 if test "x$vorbis_includes" != "x" ; then
12810 VORBIS_CFLAGS="-I$vorbis_includes"
12811 elif test "x$vorbis_prefix" != "x" ; then
12812 VORBIS_CFLAGS="-I$vorbis_prefix/include"
12813 elif test "x$prefix" != "xNONE"; then
12818 { $as_echo "$as_me:$LINENO: checking for Vorbis" >&5
12819 $as_echo_n "checking for Vorbis... " >&6; }
12823 if test "x$enable_vorbistest" = "xyes" ; then
12824 ac_save_CFLAGS="$CFLAGS"
12825 ac_save_LIBS="$LIBS"
12826 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
12827 LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
12828 rm -f conf.vorbistest
12829 if test "$cross_compiling" = yes; then
12830 echo $ac_n "cross compiling; assumed OK... $ac_c"
12832 cat >conftest.$ac_ext <<_ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12840 #include <stdlib.h>
12841 #include <string.h>
12842 #include <vorbis/codec.h>
12843 #include <vorbis/vorbisenc.h>
12848 vorbis_dsp_state vd;
12851 vorbis_info_init (&vi);
12852 vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
12853 vorbis_analysis_init (&vd, &vi);
12854 vorbis_block_init (&vd, &vb);
12855 /* this function was added in 1.0rc3, so this is what we're testing for */
12856 vorbis_bitrate_addblock (&vb);
12858 system("touch conf.vorbistest");
12864 rm -f conftest$ac_exeext
12865 if { (ac_try="$ac_link"
12866 case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12871 $as_echo "$ac_try_echo") >&5
12872 (eval "$ac_link") 2>&5
12874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12876 { (case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12881 $as_echo "$ac_try_echo") >&5
12882 (eval "$ac_try") 2>&5
12884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12888 $as_echo "$as_me: program exited with status $ac_status" >&5
12889 $as_echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12892 ( exit $ac_status )
12895 rm -rf conftest.dSYM
12896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12900 CFLAGS="$ac_save_CFLAGS"
12901 LIBS="$ac_save_LIBS"
12904 if test "x$no_vorbis" = "x" ; then
12905 { $as_echo "$as_me:$LINENO: result: yes" >&5
12906 $as_echo "yes" >&6; }
12909 { $as_echo "$as_me:$LINENO: result: no" >&5
12910 $as_echo "no" >&6; }
12911 if test -f conf.vorbistest ; then
12914 echo "*** Could not run Vorbis test program, checking why..."
12915 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
12916 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12917 cat >conftest.$ac_ext <<_ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12925 #include <vorbis/codec.h>
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (ac_try="$ac_link"
12937 case "(($ac_try" in
12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12942 $as_echo "$ac_try_echo") >&5
12943 (eval "$ac_link") 2>conftest.er1
12945 grep -v '^ *+' conftest.er1 >conftest.err
12947 cat conftest.err >&5
12948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } && {
12950 test -z "$ac_c_werror_flag" ||
12951 test ! -s conftest.err
12952 } && test -s conftest$ac_exeext && {
12953 test "$cross_compiling" = yes ||
12954 $as_test_x conftest$ac_exeext
12956 echo "*** The test program compiled, but did not run. This usually means"
12957 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
12958 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
12959 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12960 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12961 echo "*** is required on your system"
12963 echo "*** If you have an old version installed, it is best to remove it, although"
12964 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12966 $as_echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 echo "*** The test program failed to compile or link. See the file config.log for the"
12970 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
12971 echo "*** or that you have moved Vorbis since it was installed."
12974 rm -rf conftest.dSYM
12975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12976 conftest$ac_exeext conftest.$ac_ext
12977 CFLAGS="$ac_save_CFLAGS"
12978 LIBS="$ac_save_LIBS"
12990 rm -f conf.vorbistest
12997 # Check whether --with-sdl-prefix was given.
12998 if test "${with_sdl_prefix+set}" = set; then
12999 withval=$with_sdl_prefix; sdl_prefix="$withval"
13005 # Check whether --with-sdl-exec-prefix was given.
13006 if test "${with_sdl_exec_prefix+set}" = set; then
13007 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13012 # Check whether --enable-sdltest was given.
13013 if test "${enable_sdltest+set}" = set; then
13014 enableval=$enable_sdltest;
13020 if test x$sdl_exec_prefix != x ; then
13021 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
13022 if test x${SDL_CONFIG+set} != xset ; then
13023 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13026 if test x$sdl_prefix != x ; then
13027 sdl_args="$sdl_args --prefix=$sdl_prefix"
13028 if test x${SDL_CONFIG+set} != xset ; then
13029 SDL_CONFIG=$sdl_prefix/bin/sdl-config
13034 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13035 # Extract the first word of "sdl-config", so it can be a program name with args.
13036 set dummy sdl-config; ac_word=$2
13037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13038 $as_echo_n "checking for $ac_word... " >&6; }
13039 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
13040 $as_echo_n "(cached) " >&6
13042 case $SDL_CONFIG in
13044 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13062 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13066 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13067 if test -n "$SDL_CONFIG"; then
13068 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
13069 $as_echo "$SDL_CONFIG" >&6; }
13071 { $as_echo "$as_me:$LINENO: result: no" >&5
13072 $as_echo "no" >&6; }
13076 min_sdl_version=0.11.0
13077 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
13078 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13080 if test "$SDL_CONFIG" = "no" ; then
13083 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
13084 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
13086 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
13087 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13088 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
13089 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13090 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13091 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13092 if test "x$enable_sdltest" = "xyes" ; then
13093 ac_save_CFLAGS="$CFLAGS"
13094 ac_save_CXXFLAGS="$CXXFLAGS"
13095 ac_save_LIBS="$LIBS"
13096 CFLAGS="$CFLAGS $SDL_CFLAGS"
13097 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13098 LIBS="$LIBS $SDL_LIBS"
13100 if test "$cross_compiling" = yes; then
13101 echo $ac_n "cross compiling; assumed OK... $ac_c"
13103 cat >conftest.$ac_ext <<_ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13111 #include <stdlib.h>
13112 #include <string.h>
13116 my_strdup (char *str)
13122 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13123 strcpy (new_str, str);
13131 int main (int argc, char *argv[])
13133 int major, minor, micro;
13136 /* This hangs on some systems (?)
13137 system ("touch conf.sdltest");
13139 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13141 /* HP/UX 9 (%@#!) writes to sscanf strings */
13142 tmp_version = my_strdup("$min_sdl_version");
13143 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13144 printf("%s, bad version string\n", "$min_sdl_version");
13148 if (($sdl_major_version > major) ||
13149 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13150 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13156 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13157 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13158 printf("*** best to upgrade to the required version.\n");
13159 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13160 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13161 printf("*** config.cache before re-running configure\n");
13168 rm -f conftest$ac_exeext
13169 if { (ac_try="$ac_link"
13170 case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13175 $as_echo "$ac_try_echo") >&5
13176 (eval "$ac_link") 2>&5
13178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13180 { (case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13185 $as_echo "$ac_try_echo") >&5
13186 (eval "$ac_try") 2>&5
13188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13192 $as_echo "$as_me: program exited with status $ac_status" >&5
13193 $as_echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 ( exit $ac_status )
13199 rm -rf conftest.dSYM
13200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13204 CFLAGS="$ac_save_CFLAGS"
13205 CXXFLAGS="$ac_save_CXXFLAGS"
13206 LIBS="$ac_save_LIBS"
13209 if test "x$no_sdl" = x ; then
13210 { $as_echo "$as_me:$LINENO: result: yes" >&5
13211 $as_echo "yes" >&6; }
13214 SDL_LIBS=`$SDL_CONFIG --libs`
13217 { $as_echo "$as_me:$LINENO: result: no" >&5
13218 $as_echo "no" >&6; }
13219 if test "$SDL_CONFIG" = "no" ; then
13220 echo "*** The sdl-config script installed by SDL could not be found"
13221 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
13222 echo "*** your path, or set the SDL_CONFIG environment variable to the"
13223 echo "*** full path to sdl-config."
13225 if test -f conf.sdltest ; then
13228 echo "*** Could not run SDL test program, checking why..."
13229 CFLAGS="$CFLAGS $SDL_CFLAGS"
13230 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13231 LIBS="$LIBS $SDL_LIBS"
13232 cat >conftest.$ac_ext <<_ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13242 int main(int argc, char *argv[])
13245 #define main K_and_R_C_main
13255 rm -f conftest.$ac_objext conftest$ac_exeext
13256 if { (ac_try="$ac_link"
13257 case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13262 $as_echo "$ac_try_echo") >&5
13263 (eval "$ac_link") 2>conftest.er1
13265 grep -v '^ *+' conftest.er1 >conftest.err
13267 cat conftest.err >&5
13268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } && {
13270 test -z "$ac_c_werror_flag" ||
13271 test ! -s conftest.err
13272 } && test -s conftest$ac_exeext && {
13273 test "$cross_compiling" = yes ||
13274 $as_test_x conftest$ac_exeext
13276 echo "*** The test program compiled, but did not run. This usually means"
13277 echo "*** that the run-time linker is not finding SDL or finding the wrong"
13278 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
13279 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13280 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13281 echo "*** is required on your system"
13283 echo "*** If you have an old version installed, it is best to remove it, although"
13284 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13286 $as_echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 echo "*** The test program failed to compile or link. See the file config.log for the"
13290 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
13291 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
13292 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
13295 rm -rf conftest.dSYM
13296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13297 conftest$ac_exeext conftest.$ac_ext
13298 CFLAGS="$ac_save_CFLAGS"
13299 CXXFLAGS="$ac_save_CXXFLAGS"
13300 LIBS="$ac_save_LIBS"
13305 { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find SDL -- Not compiling example players ***" >&5
13306 $as_echo "$as_me: WARNING: *** Unable to find SDL -- Not compiling example players ***" >&2;}
13317 for ac_header in sys/soundcard.h soundcard.h machine/soundcard.h
13319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13322 $as_echo_n "checking for $ac_header... " >&6; }
13323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13324 $as_echo_n "(cached) " >&6
13326 ac_res=`eval 'as_val=${'$as_ac_Header'}
13327 $as_echo "$as_val"'`
13328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13329 $as_echo "$ac_res" >&6; }
13331 # Is the header compilable?
13332 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13333 $as_echo_n "checking $ac_header usability... " >&6; }
13334 cat >conftest.$ac_ext <<_ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13340 $ac_includes_default
13341 #include <$ac_header>
13343 rm -f conftest.$ac_objext
13344 if { (ac_try="$ac_compile"
13345 case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13350 $as_echo "$ac_try_echo") >&5
13351 (eval "$ac_compile") 2>conftest.er1
13353 grep -v '^ *+' conftest.er1 >conftest.err
13355 cat conftest.err >&5
13356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } && {
13358 test -z "$ac_c_werror_flag" ||
13359 test ! -s conftest.err
13360 } && test -s conftest.$ac_objext; then
13361 ac_header_compiler=yes
13363 $as_echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 ac_header_compiler=no
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13371 $as_echo "$ac_header_compiler" >&6; }
13373 # Is the header present?
13374 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13375 $as_echo_n "checking $ac_header presence... " >&6; }
13376 cat >conftest.$ac_ext <<_ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 #include <$ac_header>
13384 if { (ac_try="$ac_cpp conftest.$ac_ext"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13390 $as_echo "$ac_try_echo") >&5
13391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13393 grep -v '^ *+' conftest.er1 >conftest.err
13395 cat conftest.err >&5
13396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } >/dev/null && {
13398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13399 test ! -s conftest.err
13401 ac_header_preproc=yes
13403 $as_echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ac_header_preproc=no
13409 rm -f conftest.err conftest.$ac_ext
13410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13411 $as_echo "$ac_header_preproc" >&6; }
13413 # So? What about this header?
13414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13417 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13420 ac_header_preproc=yes
13423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13424 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13426 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13428 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13430 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13434 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13439 $as_echo_n "checking for $ac_header... " >&6; }
13440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13441 $as_echo_n "(cached) " >&6
13443 eval "$as_ac_Header=\$ac_header_preproc"
13445 ac_res=`eval 'as_val=${'$as_ac_Header'}
13446 $as_echo "$as_val"'`
13447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13448 $as_echo "$ac_res" >&6; }
13451 as_val=`eval 'as_val=${'$as_ac_Header'}
13452 $as_echo "$as_val"'`
13453 if test "x$as_val" = x""yes; then
13454 cat >>confdefs.h <<_ACEOF
13455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13465 if test x$HAVE_OSS != xyes; then
13466 { $as_echo "$as_me:$LINENO: WARNING: OSS audio support not found -- not compiling player_example" >&5
13467 $as_echo "$as_me: WARNING: OSS audio support not found -- not compiling player_example" >&2;}
13471 case "$target_os" in
13473 OSS_LIBS='-lossaudio'
13479 if test "x$HAVE_PKG_CONFIG" = "xyes"
13483 { $as_echo "$as_me:$LINENO: checking for PNG" >&5
13484 $as_echo_n "checking for PNG... " >&6; }
13486 if test -n "$PKG_CONFIG"; then
13487 if test -n "$PNG_CFLAGS"; then
13488 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13490 if test -n "$PKG_CONFIG" && \
13491 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
13492 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
13494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; then
13496 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
13504 if test -n "$PKG_CONFIG"; then
13505 if test -n "$PNG_LIBS"; then
13506 pkg_cv_PNG_LIBS="$PNG_LIBS"
13508 if test -n "$PKG_CONFIG" && \
13509 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
13510 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
13512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; then
13514 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
13525 if test $pkg_failed = yes; then
13527 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13528 _pkg_short_errors_supported=yes
13530 _pkg_short_errors_supported=no
13532 if test $_pkg_short_errors_supported = yes; then
13533 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng"`
13535 PNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng"`
13537 # Put the nasty error message in config.log where it belongs
13538 echo "$PNG_PKG_ERRORS" >&5
13540 { $as_echo "$as_me:$LINENO: result: no" >&5
13541 $as_echo "no" >&6; }
13543 elif test $pkg_failed = untried; then
13546 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13547 PNG_LIBS=$pkg_cv_PNG_LIBS
13548 { $as_echo "$as_me:$LINENO: result: yes" >&5
13549 $as_echo "yes" >&6; }
13557 # Check whether --enable-telemetry was given.
13558 if test "${enable_telemetry+set}" = set; then
13559 enableval=$enable_telemetry; ac_enable_telemetry=$enableval
13561 ac_enable_telemetry=no
13565 if test "x${ac_enable_telemetry}" = xyes; then
13566 if test "x$HAVE_PKG_CONFIG" = "xyes"
13570 { $as_echo "$as_me:$LINENO: checking for CAIRO" >&5
13571 $as_echo_n "checking for CAIRO... " >&6; }
13573 if test -n "$PKG_CONFIG"; then
13574 if test -n "$CAIRO_CFLAGS"; then
13575 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13577 if test -n "$PKG_CONFIG" && \
13578 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
13579 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; then
13583 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
13591 if test -n "$PKG_CONFIG"; then
13592 if test -n "$CAIRO_LIBS"; then
13593 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13595 if test -n "$PKG_CONFIG" && \
13596 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
13597 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; then
13601 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
13612 if test $pkg_failed = yes; then
13614 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13615 _pkg_short_errors_supported=yes
13617 _pkg_short_errors_supported=no
13619 if test $_pkg_short_errors_supported = yes; then
13620 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
13622 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
13624 # Put the nasty error message in config.log where it belongs
13625 echo "$CAIRO_PKG_ERRORS" >&5
13627 { $as_echo "$as_me:$LINENO: result: no" >&5
13628 $as_echo "no" >&6; }
13630 elif test $pkg_failed = untried; then
13633 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13634 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13635 { $as_echo "$as_me:$LINENO: result: yes" >&5
13636 $as_echo "yes" >&6; }
13640 cat >>confdefs.h <<\_ACEOF
13641 #define HAVE_CAIRO /**/
13645 if test x$HAVE_CAIRO != xyes; then
13646 { $as_echo "$as_me:$LINENO: WARNING: libcairo not found -- not compiling telemetry output support " >&5
13647 $as_echo "$as_me: WARNING: libcairo not found -- not compiling telemetry output support " >&2;}
13655 ac_enable_float=yes
13656 # Check whether --enable-float was given.
13657 if test "${enable_float+set}" = set; then
13658 enableval=$enable_float; ac_enable_float=$enableval
13660 ac_enable_float=yes
13664 if test "x${ac_enable_float}" != xyes ; then
13666 cat >>confdefs.h <<\_ACEOF
13667 #define THEORA_DISABLE_FLOAT /**/
13673 if test "x${ac_enable_float}" != xyes; then
13674 THEORA_DISABLE_FLOAT_TRUE=
13675 THEORA_DISABLE_FLOAT_FALSE='#'
13677 THEORA_DISABLE_FLOAT_TRUE='#'
13678 THEORA_DISABLE_FLOAT_FALSE=
13683 ac_enable_encode=yes
13684 # Check whether --enable-encode was given.
13685 if test "${enable_encode+set}" = set; then
13686 enableval=$enable_encode; ac_enable_encode=$enableval
13688 ac_enable_encode=yes
13692 if test "x${ac_enable_encode}" != xyes ; then
13694 cat >>confdefs.h <<\_ACEOF
13695 #define THEORA_DISABLE_ENCODE /**/
13699 if test x$HAVE_VORBIS = xyes; then
13700 BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES encoder_example\$(EXEEXT)"
13702 { $as_echo "$as_me:$LINENO: Vorbis missing, cannot build example encoder" >&5
13703 $as_echo "$as_me: Vorbis missing, cannot build example encoder" >&6;}
13708 if test "x${ac_enable_encode}" != xyes; then
13709 THEORA_DISABLE_ENCODE_TRUE=
13710 THEORA_DISABLE_ENCODE_FALSE='#'
13712 THEORA_DISABLE_ENCODE_TRUE='#'
13713 THEORA_DISABLE_ENCODE_FALSE=
13718 ac_enable_examples=yes
13719 # Check whether --enable-examples was given.
13720 if test "${enable_examples+set}" = set; then
13721 enableval=$enable_examples; ac_enable_examples=$enableval
13723 ac_enable_examples=yes
13728 if test "x${ac_enable_examples}" != xno; then
13729 THEORA_ENABLE_EXAMPLES_TRUE=
13730 THEORA_ENABLE_EXAMPLES_FALSE='#'
13732 THEORA_ENABLE_EXAMPLES_TRUE='#'
13733 THEORA_ENABLE_EXAMPLES_FALSE=
13742 { $as_echo "$as_me:$LINENO: checking for library containing ftime" >&5
13743 $as_echo_n "checking for library containing ftime... " >&6; }
13744 if test "${ac_cv_search_ftime+set}" = set; then
13745 $as_echo_n "(cached) " >&6
13747 ac_func_search_save_LIBS=$LIBS
13748 cat >conftest.$ac_ext <<_ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13755 /* Override any GCC internal prototype to avoid an error.
13756 Use char because int might match the return type of a GCC
13757 builtin and then its argument prototype would still apply. */
13770 for ac_lib in '' compat; do
13771 if test -z "$ac_lib"; then
13772 ac_res="none required"
13775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13777 rm -f conftest.$ac_objext conftest$ac_exeext
13778 if { (ac_try="$ac_link"
13779 case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13784 $as_echo "$ac_try_echo") >&5
13785 (eval "$ac_link") 2>conftest.er1
13787 grep -v '^ *+' conftest.er1 >conftest.err
13789 cat conftest.err >&5
13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest$ac_exeext && {
13795 test "$cross_compiling" = yes ||
13796 $as_test_x conftest$ac_exeext
13798 ac_cv_search_ftime=$ac_res
13800 $as_echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13806 rm -rf conftest.dSYM
13807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13809 if test "${ac_cv_search_ftime+set}" = set; then
13813 if test "${ac_cv_search_ftime+set}" = set; then
13816 ac_cv_search_ftime=no
13818 rm conftest.$ac_ext
13819 LIBS=$ac_func_search_save_LIBS
13821 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ftime" >&5
13822 $as_echo "$ac_cv_search_ftime" >&6; }
13823 ac_res=$ac_cv_search_ftime
13824 if test "$ac_res" != no; then
13825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13830 { $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
13831 $as_echo_n "checking for getopt_long... " >&6; }
13832 if test "${ac_cv_func_getopt_long+set}" = set; then
13833 $as_echo_n "(cached) " >&6
13835 cat >conftest.$ac_ext <<_ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13841 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
13842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13843 #define getopt_long innocuous_getopt_long
13845 /* System header to define __stub macros and hopefully few prototypes,
13846 which can conflict with char getopt_long (); below.
13847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13848 <limits.h> exists even on freestanding compilers. */
13851 # include <limits.h>
13853 # include <assert.h>
13858 /* Override any GCC internal prototype to avoid an error.
13859 Use char because int might match the return type of a GCC
13860 builtin and then its argument prototype would still apply. */
13864 char getopt_long ();
13865 /* The GNU C library defines this for functions which it implements
13866 to always fail with ENOSYS. Some functions are actually named
13867 something starting with __ and the normal name is an alias. */
13868 #if defined __stub_getopt_long || defined __stub___getopt_long
13875 return getopt_long ();
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (ac_try="$ac_link"
13882 case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13887 $as_echo "$ac_try_echo") >&5
13888 (eval "$ac_link") 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } && {
13895 test -z "$ac_c_werror_flag" ||
13896 test ! -s conftest.err
13897 } && test -s conftest$ac_exeext && {
13898 test "$cross_compiling" = yes ||
13899 $as_test_x conftest$ac_exeext
13901 ac_cv_func_getopt_long=yes
13903 $as_echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ac_cv_func_getopt_long=no
13909 rm -rf conftest.dSYM
13910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13911 conftest$ac_exeext conftest.$ac_ext
13913 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
13914 $as_echo "$ac_cv_func_getopt_long" >&6; }
13915 if test "x$ac_cv_func_getopt_long" = x""yes; then
13918 GETOPT_OBJS='getopt.$(OBJEXT) getopt1.$(OBJEXT)'
13923 if test x$HAVE_SDL = xyes -a x$HAVE_OSS = xyes -a x$HAVE_VORBIS = xyes; then
13924 BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES player_example\$(EXEEXT)"
13926 if test x$HAVE_PNG = xyes; then
13927 BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES png2theora\$(EXEEXT)"
13935 ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile include/theora/Makefile examples/Makefile doc/Makefile doc/Doxyfile doc/spec/Makefile tests/Makefile m4/Makefile libtheora.spec theora.pc theora-uninstalled.pc theoradec.pc theoradec-uninstalled.pc theoraenc.pc theoraenc-uninstalled.pc"
13937 cat >confcache <<\_ACEOF
13938 # This file is a shell script that caches the results of configure
13939 # tests run on this system so they can be shared between configure
13940 # scripts and configure runs, see configure's option --config-cache.
13941 # It is not useful on other systems. If it contains results you don't
13942 # want to keep, you may remove or edit it.
13944 # config.status only pays attention to the cache file if you give it
13945 # the --recheck option to rerun configure.
13947 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13949 # following values.
13953 # The following way of writing the cache mishandles newlines in values,
13954 # but we know of no workaround that is simple, portable, and efficient.
13955 # So, we kill variables containing newlines.
13956 # Ultrix sh set writes to stderr and can't be redirected directly,
13957 # and sets the high bit in the cache file unless we assign to the vars.
13959 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13960 eval ac_val=\$$ac_var
13964 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13965 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13968 _ | IFS | as_nl) ;; #(
13969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13970 *) $as_unset $ac_var ;;
13976 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13977 *${as_nl}ac_space=\ *)
13978 # `set' does not quote correctly, so add quotes (double-quote
13979 # substitution turns \\\\ into \\, and sed turns \\ into \).
13982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13985 # `set' quotes correctly as required by POSIX, so do not add quotes.
13986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13997 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13999 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14000 if test -w "$cache_file"; then
14001 test "x$cache_file" != "x/dev/null" &&
14002 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14003 $as_echo "$as_me: updating cache $cache_file" >&6;}
14004 cat confcache >$cache_file
14006 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14007 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14012 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14013 # Let make expand exec_prefix.
14014 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14016 DEFS=-DHAVE_CONFIG_H
14020 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14021 # 1. Remove the extension, and $U if already installed.
14022 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14023 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14024 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14025 # will be set to the directory where LIBOBJS objects are built.
14026 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14027 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14029 LIBOBJS=$ac_libobjs
14031 LTLIBOBJS=$ac_ltlibobjs
14034 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14035 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14036 Usually this means the macro was only invoked conditionally." >&5
14037 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14038 Usually this means the macro was only invoked conditionally." >&2;}
14039 { (exit 1); exit 1; }; }
14041 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14042 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14043 Usually this means the macro was only invoked conditionally." >&5
14044 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14045 Usually this means the macro was only invoked conditionally." >&2;}
14046 { (exit 1); exit 1; }; }
14048 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
14049 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
14050 Usually this means the macro was only invoked conditionally." >&5
14051 $as_echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
14052 Usually this means the macro was only invoked conditionally." >&2;}
14053 { (exit 1); exit 1; }; }
14055 if test -z "${BUILD_SPEC_TRUE}" && test -z "${BUILD_SPEC_FALSE}"; then
14056 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SPEC\" was never defined.
14057 Usually this means the macro was only invoked conditionally." >&5
14058 $as_echo "$as_me: error: conditional \"BUILD_SPEC\" was never defined.
14059 Usually this means the macro was only invoked conditionally." >&2;}
14060 { (exit 1); exit 1; }; }
14062 if test -z "${CPU_x86_64_TRUE}" && test -z "${CPU_x86_64_FALSE}"; then
14063 { { $as_echo "$as_me:$LINENO: error: conditional \"CPU_x86_64\" was never defined.
14064 Usually this means the macro was only invoked conditionally." >&5
14065 $as_echo "$as_me: error: conditional \"CPU_x86_64\" was never defined.
14066 Usually this means the macro was only invoked conditionally." >&2;}
14067 { (exit 1); exit 1; }; }
14069 if test -z "${CPU_x86_32_TRUE}" && test -z "${CPU_x86_32_FALSE}"; then
14070 { { $as_echo "$as_me:$LINENO: error: conditional \"CPU_x86_32\" was never defined.
14071 Usually this means the macro was only invoked conditionally." >&5
14072 $as_echo "$as_me: error: conditional \"CPU_x86_32\" was never defined.
14073 Usually this means the macro was only invoked conditionally." >&2;}
14074 { (exit 1); exit 1; }; }
14076 if test -z "${THEORA_DISABLE_FLOAT_TRUE}" && test -z "${THEORA_DISABLE_FLOAT_FALSE}"; then
14077 { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_DISABLE_FLOAT\" was never defined.
14078 Usually this means the macro was only invoked conditionally." >&5
14079 $as_echo "$as_me: error: conditional \"THEORA_DISABLE_FLOAT\" was never defined.
14080 Usually this means the macro was only invoked conditionally." >&2;}
14081 { (exit 1); exit 1; }; }
14083 if test -z "${THEORA_DISABLE_ENCODE_TRUE}" && test -z "${THEORA_DISABLE_ENCODE_FALSE}"; then
14084 { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_DISABLE_ENCODE\" was never defined.
14085 Usually this means the macro was only invoked conditionally." >&5
14086 $as_echo "$as_me: error: conditional \"THEORA_DISABLE_ENCODE\" was never defined.
14087 Usually this means the macro was only invoked conditionally." >&2;}
14088 { (exit 1); exit 1; }; }
14090 if test -z "${THEORA_ENABLE_EXAMPLES_TRUE}" && test -z "${THEORA_ENABLE_EXAMPLES_FALSE}"; then
14091 { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_ENABLE_EXAMPLES\" was never defined.
14092 Usually this means the macro was only invoked conditionally." >&5
14093 $as_echo "$as_me: error: conditional \"THEORA_ENABLE_EXAMPLES\" was never defined.
14094 Usually this means the macro was only invoked conditionally." >&2;}
14095 { (exit 1); exit 1; }; }
14098 : ${CONFIG_STATUS=./config.status}
14100 ac_clean_files_save=$ac_clean_files
14101 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14102 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14103 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14104 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14106 # Generated by $as_me.
14107 # Run this file to recreate the current configuration.
14108 # Compiler output produced by configure, useful for debugging
14109 # configure, is in config.log if it exists.
14112 ac_cs_recheck=false
14114 SHELL=\${CONFIG_SHELL-$SHELL}
14117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14118 ## --------------------- ##
14119 ## M4sh Initialization. ##
14120 ## --------------------- ##
14122 # Be more Bourne compatible
14123 DUALCASE=1; export DUALCASE # for MKS sh
14124 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14127 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14128 # is contrary to our usage. Disable this feature.
14129 alias -g '${1+"$@"}'='"$@"'
14130 setopt NO_GLOB_SUBST
14132 case `(set -o) 2>/dev/null` in
14133 *posix*) set -o posix ;;
14142 # Avoid depending upon Character Ranges.
14143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14146 as_cr_digits='0123456789'
14147 as_cr_alnum=$as_cr_Letters$as_cr_digits
14152 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14153 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14154 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14155 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14156 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14157 as_echo='printf %s\n'
14158 as_echo_n='printf %s'
14160 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14161 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14162 as_echo_n='/usr/ucb/echo -n'
14164 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14165 as_echo_n_body='eval
14169 expr "X$arg" : "X\\(.*\\)$as_nl";
14170 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14172 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14174 export as_echo_n_body
14175 as_echo_n='sh -c $as_echo_n_body as_echo'
14177 export as_echo_body
14178 as_echo='sh -c $as_echo_body as_echo'
14181 # The user is always right.
14182 if test "${PATH_SEPARATOR+set}" != set; then
14184 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14185 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14190 # Support unset when possible.
14191 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14199 # We need space, tab and new line, in precisely that order. Quoting is
14200 # there to prevent editors from complaining about space-tab.
14201 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14202 # splitting by setting IFS to empty value.)
14205 # Find who we are. Look in the path if we contain no directory separator.
14207 *[\\/]* ) as_myself=$0 ;;
14208 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14209 for as_dir in $PATH
14212 test -z "$as_dir" && as_dir=.
14213 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14219 # We did not find ourselves, most probably we were run as `sh COMMAND'
14220 # in which case we are not to be found in the path.
14221 if test "x$as_myself" = x; then
14224 if test ! -f "$as_myself"; then
14225 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14226 { (exit 1); exit 1; }
14229 # Work around bugs in pre-3.0 UWIN ksh.
14230 for as_var in ENV MAIL MAILPATH
14231 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14243 # Required to use basename.
14244 if expr a : '\(a\)' >/dev/null 2>&1 &&
14245 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14251 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14252 as_basename=basename
14258 # Name of the executable.
14259 as_me=`$as_basename -- "$0" ||
14260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14261 X"$0" : 'X\(//\)$' \| \
14262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14264 sed '/^.*\/\([^/][^/]*\)\/*$/{
14283 as_lineno_1=$LINENO
14284 as_lineno_2=$LINENO
14285 test "x$as_lineno_1" != "x$as_lineno_2" &&
14286 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14288 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14289 # uniformly replaced by the line number. The first 'sed' inserts a
14290 # line-number line after each line using $LINENO; the second 'sed'
14291 # does the real work. The second script uses 'N' to pair each
14292 # line-number line with the line containing $LINENO, and appends
14293 # trailing '-' during substitution so that $LINENO is not a special
14294 # case at line end.
14295 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14296 # scripts with optimization help from Paolo Bonzini. Blame Lee
14297 # E. McMahon (1931-1989) for sed's syntax. :-)
14309 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14312 ' >$as_me.lineno &&
14313 chmod +x "$as_me.lineno" ||
14314 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14315 { (exit 1); exit 1; }; }
14317 # Don't try to exec as it changes $[0], causing all sort of problems
14318 # (the dirname of $[0] is not the place where we might find the
14319 # original and so on. Autoconf is especially sensitive to this).
14320 . "./$as_me.lineno"
14321 # Exit status is that of the last command.
14326 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14332 ECHO_C= ECHO_N= ECHO_T=
14333 case `echo -n x` in
14335 case `echo 'x\c'` in
14336 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14342 if expr a : '\(a\)' >/dev/null 2>&1 &&
14343 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14349 rm -f conf$$ conf$$.exe conf$$.file
14350 if test -d conf$$.dir; then
14351 rm -f conf$$.dir/conf$$.file
14354 mkdir conf$$.dir 2>/dev/null
14356 if (echo >conf$$.file) 2>/dev/null; then
14357 if ln -s conf$$.file conf$$ 2>/dev/null; then
14359 # ... but there are two gotchas:
14360 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14361 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14362 # In both cases, we have to default to `cp -p'.
14363 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14365 elif ln conf$$.file conf$$ 2>/dev/null; then
14373 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14374 rmdir conf$$.dir 2>/dev/null
14376 if mkdir -p . 2>/dev/null; then
14379 test -d ./-p && rmdir ./-p
14383 if test -x / >/dev/null 2>&1; then
14384 as_test_x='test -x'
14386 if ls -dL / >/dev/null 2>&1; then
14393 if test -d "$1"; then
14399 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14400 ???[sx]*):;;*)false;;esac;fi
14404 as_executable_p=$as_test_x
14406 # Sed expression to map a string onto a valid CPP name.
14407 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14409 # Sed expression to map a string onto a valid variable name.
14410 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14415 # Save the log message, to keep $[0] and so on meaningful, and to
14416 # report actual input values of CONFIG_FILES etc. instead of their
14417 # values after options handling.
14419 This file was extended by libtheora $as_me 1.1.1, which was
14420 generated by GNU Autoconf 2.63. Invocation command line was
14422 CONFIG_FILES = $CONFIG_FILES
14423 CONFIG_HEADERS = $CONFIG_HEADERS
14424 CONFIG_LINKS = $CONFIG_LINKS
14425 CONFIG_COMMANDS = $CONFIG_COMMANDS
14428 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14433 case $ac_config_files in *"
14434 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14437 case $ac_config_headers in *"
14438 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14443 # Files that config.status was made for.
14444 config_files="$ac_config_files"
14445 config_headers="$ac_config_headers"
14446 config_commands="$ac_config_commands"
14450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14452 \`$as_me' instantiates files from templates according to the
14453 current configuration.
14455 Usage: $0 [OPTION]... [FILE]...
14457 -h, --help print this help, then exit
14458 -V, --version print version number and configuration settings, then exit
14459 -q, --quiet, --silent
14460 do not print progress messages
14461 -d, --debug don't remove temporary files
14462 --recheck update $as_me by reconfiguring in the same conditions
14463 --file=FILE[:TEMPLATE]
14464 instantiate the configuration file FILE
14465 --header=FILE[:TEMPLATE]
14466 instantiate the configuration header FILE
14468 Configuration files:
14471 Configuration headers:
14474 Configuration commands:
14477 Report bugs to <bug-autoconf@gnu.org>."
14480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14482 libtheora config.status 1.1.1
14483 configured by $0, generated by GNU Autoconf 2.63,
14484 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14486 Copyright (C) 2008 Free Software Foundation, Inc.
14487 This config.status script is free software; the Free Software Foundation
14488 gives unlimited permission to copy, distribute and modify it."
14494 test -n "\$AWK" || AWK=awk
14497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14498 # The default lists apply if the user does not specify any file.
14504 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14505 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14516 # Handling of the options.
14517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14519 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14520 $as_echo "$ac_cs_version"; exit ;;
14521 --debug | --debu | --deb | --de | --d | -d )
14523 --file | --fil | --fi | --f )
14526 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14528 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14529 ac_need_defaults=false;;
14530 --header | --heade | --head | --hea )
14533 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14535 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14536 ac_need_defaults=false;;
14538 # Conflict between --help and --header
14539 { $as_echo "$as_me: error: ambiguous option: $1
14540 Try \`$0 --help' for more information." >&2
14541 { (exit 1); exit 1; }; };;
14542 --help | --hel | -h )
14543 $as_echo "$ac_cs_usage"; exit ;;
14544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14548 # This is an error.
14549 -*) { $as_echo "$as_me: error: unrecognized option: $1
14550 Try \`$0 --help' for more information." >&2
14551 { (exit 1); exit 1; }; } ;;
14553 *) ac_config_targets="$ac_config_targets $1"
14554 ac_need_defaults=false ;;
14560 ac_configure_extra_args=
14562 if $ac_cs_silent; then
14564 ac_configure_extra_args="$ac_configure_extra_args --silent"
14568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14569 if \$ac_cs_recheck; then
14570 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14572 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14573 CONFIG_SHELL='$SHELL'
14574 export CONFIG_SHELL
14579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14583 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14584 ## Running $as_me. ##
14590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14594 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14597 # The HP-UX ksh and POSIX shell print the target directory to stdout
14598 # if CDPATH is set.
14599 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14601 sed_quote_subst='$sed_quote_subst'
14602 double_quote_subst='$double_quote_subst'
14603 delay_variable_subst='$delay_variable_subst'
14604 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14605 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14606 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14607 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14608 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14609 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14610 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14611 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14612 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14613 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14614 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14615 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14616 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14617 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14618 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14619 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14620 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14621 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14622 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14623 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14624 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14625 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14626 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14627 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14628 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14629 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14630 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14631 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14632 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14633 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14634 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14635 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14636 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14637 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14638 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14639 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14640 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14641 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14642 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14643 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14644 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14645 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14646 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14647 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14648 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14649 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14650 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14651 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14652 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14653 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14654 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14655 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14656 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14657 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14658 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14659 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14660 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14661 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14662 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14663 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14664 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14665 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14666 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14667 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14668 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14669 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14670 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14671 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14672 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14673 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14674 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14675 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14676 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14677 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14678 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14679 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14680 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14681 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14682 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14683 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14684 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14685 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14686 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14687 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14688 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14689 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14690 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14691 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14692 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14693 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14694 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14695 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14696 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14697 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14698 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14699 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14700 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14701 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14702 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14703 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14704 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14705 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14706 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14707 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14708 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14709 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14710 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14711 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14712 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14713 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14714 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14715 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14716 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14717 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14718 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14719 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14720 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14721 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14722 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14723 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14726 LTCFLAGS='$LTCFLAGS'
14727 compiler='$compiler_DEFAULT'
14729 # Quote evaled strings.
14740 deplibs_check_method \
14749 lt_cv_sys_global_symbol_pipe \
14750 lt_cv_sys_global_symbol_to_cdecl \
14751 lt_cv_sys_global_symbol_to_c_name_address \
14752 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14755 lt_prog_compiler_no_builtin_flag \
14756 lt_prog_compiler_wl \
14757 lt_prog_compiler_pic \
14758 lt_prog_compiler_static \
14759 lt_cv_prog_compiler_c_o \
14767 export_dynamic_flag_spec \
14768 whole_archive_flag_spec \
14769 compiler_needs_object \
14771 allow_undefined_flag \
14772 no_undefined_flag \
14773 hardcode_libdir_flag_spec \
14774 hardcode_libdir_flag_spec_ld \
14775 hardcode_libdir_separator \
14780 variables_saved_for_relink \
14782 library_names_spec \
14787 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14788 *[\\\\\\\`\\"\\\$]*)
14789 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14792 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14797 # Double-quote double-evaled strings.
14798 for var in reload_cmds \
14799 old_postinstall_cmds \
14800 old_postuninstall_cmds \
14802 extract_expsyms_cmds \
14803 old_archive_from_new_cmds \
14804 old_archive_from_expsyms_cmds \
14806 archive_expsym_cmds \
14808 module_expsym_cmds \
14809 export_symbols_cmds \
14812 postuninstall_cmds \
14814 sys_lib_search_path_spec \
14815 sys_lib_dlsearch_path_spec; do
14816 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14817 *[\\\\\\\`\\"\\\$]*)
14818 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14821 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14826 # Fix-up fallback echo if it was mangled by the above quoting rules.
14828 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14832 ac_aux_dir='$ac_aux_dir'
14833 xsi_shell='$xsi_shell'
14834 lt_shell_append='$lt_shell_append'
14836 # See if we are running on zsh, and set the options which allow our
14837 # commands through without removal of \ escapes INIT.
14838 if test -n "\${ZSH_VERSION+set}" ; then
14839 setopt NO_GLOB_SUBST
14845 TIMESTAMP='$TIMESTAMP'
14854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14856 # Handling of arguments.
14857 for ac_config_target in $ac_config_targets
14859 case $ac_config_target in
14860 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14861 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14862 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14863 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14864 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14865 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14866 "include/theora/Makefile") CONFIG_FILES="$CONFIG_FILES include/theora/Makefile" ;;
14867 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14868 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14869 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14870 "doc/spec/Makefile") CONFIG_FILES="$CONFIG_FILES doc/spec/Makefile" ;;
14871 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14872 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14873 "libtheora.spec") CONFIG_FILES="$CONFIG_FILES libtheora.spec" ;;
14874 "theora.pc") CONFIG_FILES="$CONFIG_FILES theora.pc" ;;
14875 "theora-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theora-uninstalled.pc" ;;
14876 "theoradec.pc") CONFIG_FILES="$CONFIG_FILES theoradec.pc" ;;
14877 "theoradec-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theoradec-uninstalled.pc" ;;
14878 "theoraenc.pc") CONFIG_FILES="$CONFIG_FILES theoraenc.pc" ;;
14879 "theoraenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theoraenc-uninstalled.pc" ;;
14881 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14882 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14883 { (exit 1); exit 1; }; };;
14888 # If the user did not use the arguments to specify the items to instantiate,
14889 # then the envvar interface is used. Set only those that are not.
14890 # We use the long form for the default assignment because of an extremely
14891 # bizarre bug on SunOS 4.1.3.
14892 if $ac_need_defaults; then
14893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14898 # Have a temporary directory for convenience. Make it in the build tree
14899 # simply because there is no reason against having it here, and in addition,
14900 # creating and moving files from /tmp can sometimes cause problems.
14901 # Hook for its removal unless debugging.
14902 # Note that there is a small window in which the directory will not be cleaned:
14903 # after its creation but before its name has been assigned to `$tmp'.
14907 trap 'exit_status=$?
14908 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14910 trap '{ (exit 1); exit 1; }' 1 2 13 15
14912 # Create a (secure) tmp directory for tmp files.
14915 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14916 test -n "$tmp" && test -d "$tmp"
14919 tmp=./conf$$-$RANDOM
14920 (umask 077 && mkdir "$tmp")
14923 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14924 { (exit 1); exit 1; }
14927 # Set up the scripts for CONFIG_FILES section.
14928 # No need to generate them if there are no CONFIG_FILES.
14929 # This happens for instance with `./config.status config.h'.
14930 if test -n "$CONFIG_FILES"; then
14934 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14935 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14938 ac_cs_awk_cr=$ac_cr
14941 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14946 echo "cat >conf$$subs.awk <<_ACEOF" &&
14947 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14949 } >conf$$subs.sh ||
14950 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14951 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14952 { (exit 1); exit 1; }; }
14953 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14955 for ac_last_try in false false false false false :; do
14956 . ./conf$$subs.sh ||
14957 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14958 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14959 { (exit 1); exit 1; }; }
14961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14962 if test $ac_delim_n = $ac_delim_num; then
14964 elif $ac_last_try; then
14965 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14966 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14967 { (exit 1); exit 1; }; }
14969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14972 rm -f conf$$subs.sh
14974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14975 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14979 s/^/S["/; s/!.*/"]=/
14989 s/\(.\{148\}\).*/\1/
14991 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14996 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15003 s/\(.\{148\}\).*/\1/
15005 s/["\\]/\\&/g; s/^/"/; s/$/"/
15009 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15014 ' <conf$$subs.awk | sed '
15019 ' >>$CONFIG_STATUS || ac_write_fail=1
15020 rm -f conf$$subs.awk
15021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15023 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15024 for (key in S) S_is_set[key] = 1
15030 nfields = split(line, field, "@")
15032 len = length(field[1])
15033 for (i = 2; i < nfields; i++) {
15035 keylen = length(key)
15036 if (S_is_set[key]) {
15038 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15039 len += length(value) + length(field[++i])
15050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15051 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15052 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15055 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15056 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15057 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15058 { (exit 1); exit 1; }; }
15061 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15062 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15063 # trailing colons and then remove the whole line if VPATH becomes empty
15064 # (actually we leave an empty line to preserve line numbers).
15065 if test "x$srcdir" = x.; then
15066 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15067 s/:*\$(srcdir):*/:/
15068 s/:*\${srcdir}:*/:/
15070 s/^\([^=]*=[ ]*\):*/\1/
15076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15077 fi # test -n "$CONFIG_FILES"
15079 # Set up the scripts for CONFIG_HEADERS section.
15080 # No need to generate them if there are no CONFIG_HEADERS.
15081 # This happens for instance with `./config.status Makefile'.
15082 if test -n "$CONFIG_HEADERS"; then
15083 cat >"$tmp/defines.awk" <<\_ACAWK ||
15087 # Transform confdefs.h into an awk script `defines.awk', embedded as
15088 # here-document in config.status, that substitutes the proper values into
15089 # config.h.in to produce config.h.
15091 # Create a delimiter string that does not exist in confdefs.h, to ease
15092 # handling of long lines.
15094 for ac_last_try in false false :; do
15095 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15096 if test -z "$ac_t"; then
15098 elif $ac_last_try; then
15099 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15100 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15101 { (exit 1); exit 1; }; }
15103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15107 # For the awk script, D is an array of macro values keyed by name,
15108 # likewise P contains macro parameters if any. Preserve backslash
15109 # newline sequences.
15111 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15113 s/.\{148\}/&'"$ac_delim"'/g
15116 s/^[ ]*#[ ]*define[ ][ ]*/ /
15123 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15125 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15129 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15130 D["\1"]=" \3\\\\\\n"\\/p
15132 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15137 s/.\{148\}/&'"$ac_delim"'/g
15142 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15145 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15147 ' <confdefs.h | sed '
15148 s/'"$ac_delim"'/"\\\
15149 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15152 for (key in D) D_is_set[key] = 1
15155 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15157 split(line, arg, " ")
15158 if (arg[1] == "#") {
15162 defundef = substr(arg[1], 2)
15165 split(mac1, mac2, "(") #)
15167 prefix = substr(line, 1, index(line, defundef) - 1)
15168 if (D_is_set[macro]) {
15169 # Preserve the white space surrounding the "#".
15170 print prefix "define", macro P[macro] D[macro]
15173 # Replace #undef with comments. This is necessary, for example,
15174 # in the case of _POSIX_SOURCE, which is predefined and required
15175 # on some systems where configure will not decide to define it.
15176 if (defundef == "undef") {
15177 print "/*", prefix defundef, macro, "*/"
15185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15186 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15187 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15188 { (exit 1); exit 1; }; }
15189 fi # test -n "$CONFIG_HEADERS"
15192 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15197 :[FHLC]) ac_mode=$ac_tag; continue;;
15199 case $ac_mode$ac_tag in
15201 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15202 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15203 { (exit 1); exit 1; }; };;
15204 :[FH]-) ac_tag=-:-;;
15205 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15222 -) ac_f="$tmp/stdin";;
15223 *) # Look for the file first in the build tree, then in the source tree
15224 # (if the path is not absolute). The absolute path cannot be DOS-style,
15225 # because $ac_f cannot contain `:'.
15229 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15231 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15232 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15233 { (exit 1); exit 1; }; };;
15235 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15236 ac_file_inputs="$ac_file_inputs '$ac_f'"
15239 # Let's still pretend it is `configure' which instantiates (i.e., don't
15240 # use $as_me), people would be surprised to read:
15241 # /* config.h. Generated by config.status. */
15242 configure_input='Generated from '`
15243 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15245 if test x"$ac_file" != x-; then
15246 configure_input="$ac_file. $configure_input"
15247 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15248 $as_echo "$as_me: creating $ac_file" >&6;}
15250 # Neutralize special characters interpreted by sed in replacement strings.
15251 case $configure_input in #(
15252 *\&* | *\|* | *\\* )
15253 ac_sed_conf_input=`$as_echo "$configure_input" |
15254 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15255 *) ac_sed_conf_input=$configure_input;;
15259 *:-:* | *:-) cat >"$tmp/stdin" \
15260 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15261 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15262 { (exit 1); exit 1; }; } ;;
15267 ac_dir=`$as_dirname -- "$ac_file" ||
15268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15269 X"$ac_file" : 'X\(//\)[^/]' \| \
15270 X"$ac_file" : 'X\(//\)$' \| \
15271 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15272 $as_echo X"$ac_file" |
15273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15277 /^X\(\/\/\)[^/].*/{
15292 -*) as_dir=./$as_dir;;
15294 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15299 *) as_qdir=$as_dir;;
15301 as_dirs="'$as_qdir' $as_dirs"
15302 as_dir=`$as_dirname -- "$as_dir" ||
15303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15304 X"$as_dir" : 'X\(//\)[^/]' \| \
15305 X"$as_dir" : 'X\(//\)$' \| \
15306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15307 $as_echo X"$as_dir" |
15308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15312 /^X\(\/\/\)[^/].*/{
15325 test -d "$as_dir" && break
15327 test -z "$as_dirs" || eval "mkdir $as_dirs"
15328 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15329 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15330 { (exit 1); exit 1; }; }; }
15334 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15336 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15337 # A ".." for each directory in $ac_dir_suffix.
15338 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15339 case $ac_top_builddir_sub in
15340 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15341 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15344 ac_abs_top_builddir=$ac_pwd
15345 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15346 # for backward compatibility:
15347 ac_top_builddir=$ac_top_build_prefix
15350 .) # We are building in place.
15352 ac_top_srcdir=$ac_top_builddir_sub
15353 ac_abs_top_srcdir=$ac_pwd ;;
15354 [\\/]* | ?:[\\/]* ) # Absolute name.
15355 ac_srcdir=$srcdir$ac_dir_suffix;
15356 ac_top_srcdir=$srcdir
15357 ac_abs_top_srcdir=$srcdir ;;
15358 *) # Relative name.
15359 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15360 ac_top_srcdir=$ac_top_build_prefix$srcdir
15361 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15363 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15373 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15374 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15379 # If the template does not know about datarootdir, expand it.
15380 # FIXME: This hack should be removed a few years after 2.60.
15381 ac_datarootdir_hack=; ac_datarootdir_seen=
15394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15395 *datarootdir*) ac_datarootdir_seen=yes;;
15396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15397 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 ac_datarootdir_hack='
15402 s&@datadir@&$datadir&g
15403 s&@docdir@&$docdir&g
15404 s&@infodir@&$infodir&g
15405 s&@localedir@&$localedir&g
15406 s&@mandir@&$mandir&g
15407 s&\\\${datarootdir}&$datarootdir&g' ;;
15411 # Neutralize VPATH when `$srcdir' = `.'.
15412 # Shell code in configure.ac might set extrasub.
15413 # FIXME: do we really want to maintain this feature?
15414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15415 ac_sed_extra="$ac_vpsub
15418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15421 s|@configure_input@|$ac_sed_conf_input|;t t
15422 s&@top_builddir@&$ac_top_builddir_sub&;t t
15423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15424 s&@srcdir@&$ac_srcdir&;t t
15425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15426 s&@top_srcdir@&$ac_top_srcdir&;t t
15427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15428 s&@builddir@&$ac_builddir&;t t
15429 s&@abs_builddir@&$ac_abs_builddir&;t t
15430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15431 s&@INSTALL@&$ac_INSTALL&;t t
15432 $ac_datarootdir_hack
15434 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15435 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15436 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15437 { (exit 1); exit 1; }; }
15439 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15440 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15441 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15442 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15443 which seems to be undefined. Please make sure it is defined." >&5
15444 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15445 which seems to be undefined. Please make sure it is defined." >&2;}
15449 -) cat "$tmp/out" && rm -f "$tmp/out";;
15450 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15452 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15453 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15454 { (exit 1); exit 1; }; }
15460 if test x"$ac_file" != x-; then
15462 $as_echo "/* $configure_input */" \
15463 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15464 } >"$tmp/config.h" \
15465 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15466 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15467 { (exit 1); exit 1; }; }
15468 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15469 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15470 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15473 mv "$tmp/config.h" "$ac_file" \
15474 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15475 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15476 { (exit 1); exit 1; }; }
15479 $as_echo "/* $configure_input */" \
15480 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15481 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15482 $as_echo "$as_me: error: could not create -" >&2;}
15483 { (exit 1); exit 1; }; }
15487 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15488 $as_echo "$as_me: executing $ac_file commands" >&6;}
15493 case $ac_file$ac_mode in
15494 "config.h":H) # update the timestamp
15495 echo 'timestamp for config.h' >"./stamp-h1"
15497 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15498 # Strip MF so we end up with the name of the file.
15499 mf=`echo "$mf" | sed -e 's/:.*$//'`
15500 # Check whether this is an Automake generated Makefile or not.
15501 # We used to match only the files named `Makefile.in', but
15502 # some people rename them; so instead we look at the file content.
15503 # Grep'ing the first line is not enough: some people post-process
15504 # each Makefile.in and add a new line on top of each file to say so.
15505 # So let's grep whole file.
15506 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15507 dirpart=`$as_dirname -- "$mf" ||
15508 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15509 X"$mf" : 'X\(//\)[^/]' \| \
15510 X"$mf" : 'X\(//\)$' \| \
15511 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15517 /^X\(\/\/\)[^/].*/{
15533 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
15534 # Extract the definition of DEP_FILES from the Makefile without
15536 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
15537 test -z "$DEPDIR" && continue
15538 # When using ansi2knr, U may be empty or an underscore; expand it
15539 U=`sed -n -e '/^U = / s///p' < "$mf"`
15540 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
15541 # We invoke sed twice because it is the simplest approach to
15542 # changing $(DEPDIR) to its actual value in the expansion.
15543 for file in `sed -n -e '
15544 /^DEP_FILES = .*\\\\$/ {
15553 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
15554 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15555 # Make sure the directory exists.
15556 test -f "$dirpart/$file" && continue
15557 fdir=`$as_dirname -- "$file" ||
15558 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15559 X"$file" : 'X\(//\)[^/]' \| \
15560 X"$file" : 'X\(//\)$' \| \
15561 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15562 $as_echo X"$file" |
15563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15567 /^X\(\/\/\)[^/].*/{
15580 { as_dir=$dirpart/$fdir
15582 -*) as_dir=./$as_dir;;
15584 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15588 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15589 *) as_qdir=$as_dir;;
15591 as_dirs="'$as_qdir' $as_dirs"
15592 as_dir=`$as_dirname -- "$as_dir" ||
15593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15594 X"$as_dir" : 'X\(//\)[^/]' \| \
15595 X"$as_dir" : 'X\(//\)$' \| \
15596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15597 $as_echo X"$as_dir" |
15598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15602 /^X\(\/\/\)[^/].*/{
15615 test -d "$as_dir" && break
15617 test -z "$as_dirs" || eval "mkdir $as_dirs"
15618 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15619 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15620 { (exit 1); exit 1; }; }; }
15621 # echo "creating $dirpart/$file"
15622 echo '# dummy' > "$dirpart/$file"
15628 # See if we are running on zsh, and set the options which allow our
15629 # commands through without removal of \ escapes.
15630 if test -n "${ZSH_VERSION+set}" ; then
15631 setopt NO_GLOB_SUBST
15634 cfgfile="${ofile}T"
15635 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15638 cat <<_LT_EOF >> "$cfgfile"
15641 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15642 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15643 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15644 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15646 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15647 # 2006, 2007, 2008 Free Software Foundation, Inc.
15648 # Written by Gordon Matzigkeit, 1996
15650 # This file is part of GNU Libtool.
15652 # GNU Libtool is free software; you can redistribute it and/or
15653 # modify it under the terms of the GNU General Public License as
15654 # published by the Free Software Foundation; either version 2 of
15655 # the License, or (at your option) any later version.
15657 # As a special exception to the GNU General Public License,
15658 # if you distribute this file as part of a program or library that
15659 # is built using GNU Libtool, you may include this file under the
15660 # same distribution terms that you use for the rest of that program.
15662 # GNU Libtool is distributed in the hope that it will be useful,
15663 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15664 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15665 # GNU General Public License for more details.
15667 # You should have received a copy of the GNU General Public License
15668 # along with GNU Libtool; see the file COPYING. If not, a copy
15669 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15670 # obtained by writing to the Free Software Foundation, Inc.,
15671 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15674 # The names of the tagged configurations supported by this script.
15677 # ### BEGIN LIBTOOL CONFIG
15679 # Assembler program.
15682 # DLL creation program.
15685 # Object dumper program.
15688 # Which release of libtool.m4 was used?
15689 macro_version=$macro_version
15690 macro_revision=$macro_revision
15692 # Whether or not to build shared libraries.
15693 build_libtool_libs=$enable_shared
15695 # Whether or not to build static libraries.
15696 build_old_libs=$enable_static
15698 # What type of objects to build.
15701 # Whether or not to optimize for fast installation.
15702 fast_install=$enable_fast_install
15705 host_alias=$host_alias
15709 # The build system.
15710 build_alias=$build_alias
15714 # A sed program that does not truncate output.
15717 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15718 Xsed="\$SED -e 1s/^X//"
15720 # A grep program that handles long lines.
15726 # A literal string matcher.
15729 # A BSD- or MS-compatible name lister.
15732 # Whether we need soft or hard links.
15735 # What is the maximum length of a command?
15736 max_cmd_len=$max_cmd_len
15738 # Object file suffix (normally "o").
15741 # Executable file suffix (normally "").
15744 # whether the shell understands "unset".
15747 # turn spaces into newlines.
15750 # turn newlines into spaces.
15753 # How to create reloadable object files.
15754 reload_flag=$lt_reload_flag
15755 reload_cmds=$lt_reload_cmds
15757 # Method to check whether dependent libraries are shared objects.
15758 deplibs_check_method=$lt_deplibs_check_method
15760 # Command to use when deplibs_check_method == "file_magic".
15761 file_magic_cmd=$lt_file_magic_cmd
15765 AR_FLAGS=$lt_AR_FLAGS
15767 # A symbol stripping program.
15770 # Commands used to install an old-style archive.
15772 old_postinstall_cmds=$lt_old_postinstall_cmds
15773 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15778 # LTCC compiler flags.
15779 LTCFLAGS=$lt_CFLAGS
15781 # Take the output of nm and produce a listing of raw symbols and C names.
15782 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15784 # Transform the output of nm in a proper C declaration.
15785 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15787 # Transform the output of nm in a C name address pair.
15788 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15790 # Transform the output of nm in a C name address pair when lib prefix is needed.
15791 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15793 # The name of the directory that contains temporary libtool files.
15796 # Shell to use when invoking shell scripts.
15799 # An echo program that does not interpret backslashes.
15802 # Used to examine libraries when file_magic_cmd begins with "file".
15803 MAGIC_CMD=$MAGIC_CMD
15805 # Must we lock files when doing compilation?
15806 need_locks=$lt_need_locks
15808 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15809 DSYMUTIL=$lt_DSYMUTIL
15811 # Tool to change global to local symbols on Mac OS X.
15814 # Tool to manipulate fat objects and archives on Mac OS X.
15817 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15820 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15821 OTOOL64=$lt_OTOOL64
15823 # Old archive suffix (normally "a").
15826 # Shared library suffix (normally ".so").
15827 shrext_cmds=$lt_shrext_cmds
15829 # The commands to extract the exported symbol list from a shared archive.
15830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15832 # Variables whose values should be saved in libtool wrapper scripts and
15833 # restored at link time.
15834 variables_saved_for_relink=$lt_variables_saved_for_relink
15836 # Do we need the "lib" prefix for modules?
15837 need_lib_prefix=$need_lib_prefix
15839 # Do we need a version for libraries?
15840 need_version=$need_version
15842 # Library versioning type.
15843 version_type=$version_type
15845 # Shared library runtime path variable.
15846 runpath_var=$runpath_var
15848 # Shared library path variable.
15849 shlibpath_var=$shlibpath_var
15851 # Is shlibpath searched before the hard-coded library search path?
15852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15854 # Format of library name prefix.
15855 libname_spec=$lt_libname_spec
15857 # List of archive names. First name is the real one, the rest are links.
15858 # The last name is the one that the linker finds with -lNAME
15859 library_names_spec=$lt_library_names_spec
15861 # The coded name of the library, if different from the real name.
15862 soname_spec=$lt_soname_spec
15864 # Command to use after installation of a shared archive.
15865 postinstall_cmds=$lt_postinstall_cmds
15867 # Command to use after uninstallation of a shared archive.
15868 postuninstall_cmds=$lt_postuninstall_cmds
15870 # Commands used to finish a libtool library installation in a directory.
15871 finish_cmds=$lt_finish_cmds
15873 # As "finish_cmds", except a single script fragment to be evaled but
15875 finish_eval=$lt_finish_eval
15877 # Whether we should hardcode library paths into libraries.
15878 hardcode_into_libs=$hardcode_into_libs
15880 # Compile-time system search path for libraries.
15881 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15883 # Run-time system search path for libraries.
15884 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15886 # Whether dlopen is supported.
15887 dlopen_support=$enable_dlopen
15889 # Whether dlopen of programs is supported.
15890 dlopen_self=$enable_dlopen_self
15892 # Whether dlopen of statically linked programs is supported.
15893 dlopen_self_static=$enable_dlopen_self_static
15895 # Commands to strip libraries.
15896 old_striplib=$lt_old_striplib
15897 striplib=$lt_striplib
15900 # The linker used to build libraries.
15903 # Commands used to build an old-style archive.
15904 old_archive_cmds=$lt_old_archive_cmds
15906 # A language specific compiler.
15909 # Is the compiler the GNU compiler?
15912 # Compiler flag to turn off builtin functions.
15913 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15915 # How to pass a linker flag through the compiler.
15916 wl=$lt_lt_prog_compiler_wl
15918 # Additional compiler flags for building library objects.
15919 pic_flag=$lt_lt_prog_compiler_pic
15921 # Compiler flag to prevent dynamic linking.
15922 link_static_flag=$lt_lt_prog_compiler_static
15924 # Does compiler simultaneously support -c and -o options?
15925 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15927 # Whether or not to add -lc for building shared libraries.
15928 build_libtool_need_lc=$archive_cmds_need_lc
15930 # Whether or not to disallow shared libs when runtime libs are static.
15931 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15933 # Compiler flag to allow reflexive dlopens.
15934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15936 # Compiler flag to generate shared objects directly from archives.
15937 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15939 # Whether the compiler copes with passing no objects directly.
15940 compiler_needs_object=$lt_compiler_needs_object
15942 # Create an old-style archive from a shared archive.
15943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15945 # Create a temporary old-style archive to link instead of a shared archive.
15946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15948 # Commands used to build a shared archive.
15949 archive_cmds=$lt_archive_cmds
15950 archive_expsym_cmds=$lt_archive_expsym_cmds
15952 # Commands used to build a loadable module if different from building
15953 # a shared archive.
15954 module_cmds=$lt_module_cmds
15955 module_expsym_cmds=$lt_module_expsym_cmds
15957 # Whether we are building with GNU ld or not.
15958 with_gnu_ld=$lt_with_gnu_ld
15960 # Flag that allows shared libraries with undefined symbols to be built.
15961 allow_undefined_flag=$lt_allow_undefined_flag
15963 # Flag that enforces no undefined symbols.
15964 no_undefined_flag=$lt_no_undefined_flag
15966 # Flag to hardcode \$libdir into a binary during linking.
15967 # This must work even if \$libdir does not exist
15968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15970 # If ld is used when linking, flag to hardcode \$libdir into a binary
15971 # during linking. This must work even if \$libdir does not exist.
15972 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15974 # Whether we need a single "-rpath" flag with a separated argument.
15975 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15978 # DIR into the resulting binary.
15979 hardcode_direct=$hardcode_direct
15981 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15982 # DIR into the resulting binary and the resulting library dependency is
15983 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15984 # library is relocated.
15985 hardcode_direct_absolute=$hardcode_direct_absolute
15987 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15988 # into the resulting binary.
15989 hardcode_minus_L=$hardcode_minus_L
15991 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15992 # into the resulting binary.
15993 hardcode_shlibpath_var=$hardcode_shlibpath_var
15995 # Set to "yes" if building a shared library automatically hardcodes DIR
15996 # into the library and all subsequent libraries and executables linked
15998 hardcode_automatic=$hardcode_automatic
16000 # Set to yes if linker adds runtime paths of dependent libraries
16001 # to runtime path list.
16002 inherit_rpath=$inherit_rpath
16004 # Whether libtool must link a program against all its dependency libraries.
16005 link_all_deplibs=$link_all_deplibs
16007 # Fix the shell variable \$srcfile for the compiler.
16008 fix_srcfile_path=$lt_fix_srcfile_path
16010 # Set to "yes" if exported symbols are required.
16011 always_export_symbols=$always_export_symbols
16013 # The commands to list exported symbols.
16014 export_symbols_cmds=$lt_export_symbols_cmds
16016 # Symbols that should not be listed in the preloaded symbols.
16017 exclude_expsyms=$lt_exclude_expsyms
16019 # Symbols that must always be exported.
16020 include_expsyms=$lt_include_expsyms
16022 # Commands necessary for linking programs (against libraries) with templates.
16023 prelink_cmds=$lt_prelink_cmds
16025 # Specify filename containing input files.
16026 file_list_spec=$lt_file_list_spec
16028 # How to hardcode a shared library path into an executable.
16029 hardcode_action=$hardcode_action
16031 # ### END LIBTOOL CONFIG
16037 cat <<\_LT_EOF >> "$cfgfile"
16038 # AIX sometimes has problems with the GCC collect2 program. For some
16039 # reason, if we set the COLLECT_NAMES environment variable, the problems
16040 # vanish in a puff of smoke.
16041 if test "X${COLLECT_NAMES+set}" != Xset; then
16043 export COLLECT_NAMES
16050 ltmain="$ac_aux_dir/ltmain.sh"
16053 # We use sed instead of cat because bash on DJGPP gets confused if
16054 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16055 # text mode, it properly converts lines to CR/LF. This bash problem
16056 # is reportedly fixed, but why not run on old versions too?
16057 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16058 || (rm -f "$cfgfile"; exit 1)
16062 cat << \_LT_EOF >> "$cfgfile"
16064 # func_dirname file append nondir_replacement
16065 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16066 # otherwise set result to NONDIR_REPLACEMENT.
16070 */*) func_dirname_result="${1%/*}${2}" ;;
16071 * ) func_dirname_result="${3}" ;;
16075 # func_basename file
16078 func_basename_result="${1##*/}"
16081 # func_dirname_and_basename file append nondir_replacement
16082 # perform func_basename and func_dirname in a single function
16084 # dirname: Compute the dirname of FILE. If nonempty,
16085 # add APPEND to the result, otherwise set result
16086 # to NONDIR_REPLACEMENT.
16087 # value returned in "$func_dirname_result"
16088 # basename: Compute filename of FILE.
16089 # value retuned in "$func_basename_result"
16090 # Implementation must be kept synchronized with func_dirname
16091 # and func_basename. For efficiency, we do not delegate to
16092 # those functions but instead duplicate the functionality here.
16093 func_dirname_and_basename ()
16096 */*) func_dirname_result="${1%/*}${2}" ;;
16097 * ) func_dirname_result="${3}" ;;
16099 func_basename_result="${1##*/}"
16102 # func_stripname prefix suffix name
16103 # strip PREFIX and SUFFIX off of NAME.
16104 # PREFIX and SUFFIX must not contain globbing or regex special
16105 # characters, hashes, percent signs, but SUFFIX may contain a leading
16106 # dot (in which case that matches only a dot).
16109 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16110 # positional parameters, so assign one to ordinary parameter first.
16111 func_stripname_result=${3}
16112 func_stripname_result=${func_stripname_result#"${1}"}
16113 func_stripname_result=${func_stripname_result%"${2}"}
16119 func_opt_split_opt=${1%%=*}
16120 func_opt_split_arg=${1#*=}
16127 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16128 *) func_lo2o_result=${1} ;;
16132 # func_xform libobj-or-source
16135 func_xform_result=${1%.*}.lo
16138 # func_arith arithmetic-term...
16141 func_arith_result=$(( $* ))
16145 # STRING may not start with a hyphen.
16148 func_len_result=${#1}
16153 *) # Bourne compatible functions.
16154 cat << \_LT_EOF >> "$cfgfile"
16156 # func_dirname file append nondir_replacement
16157 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16158 # otherwise set result to NONDIR_REPLACEMENT.
16161 # Extract subdirectory from the argument.
16162 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16163 if test "X$func_dirname_result" = "X${1}"; then
16164 func_dirname_result="${3}"
16166 func_dirname_result="$func_dirname_result${2}"
16170 # func_basename file
16173 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16177 # func_stripname prefix suffix name
16178 # strip PREFIX and SUFFIX off of NAME.
16179 # PREFIX and SUFFIX must not contain globbing or regex special
16180 # characters, hashes, percent signs, but SUFFIX may contain a leading
16181 # dot (in which case that matches only a dot).
16182 # func_strip_suffix prefix name
16186 .*) func_stripname_result=`$ECHO "X${3}" \
16187 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16188 *) func_stripname_result=`$ECHO "X${3}" \
16189 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16194 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16195 my_sed_long_arg='1s/^-[^=]*=//'
16200 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16201 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16207 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16210 # func_xform libobj-or-source
16213 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16216 # func_arith arithmetic-term...
16219 func_arith_result=`expr "$@"`
16223 # STRING may not start with a hyphen.
16226 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16232 case $lt_shell_append in
16234 cat << \_LT_EOF >> "$cfgfile"
16236 # func_append var value
16237 # Append VALUE to the end of shell variable VAR.
16245 cat << \_LT_EOF >> "$cfgfile"
16247 # func_append var value
16248 # Append VALUE to the end of shell variable VAR.
16259 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16260 || (rm -f "$cfgfile"; exit 1)
16262 mv -f "$cfgfile" "$ofile" ||
16263 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16272 { (exit 0); exit 0; }
16274 chmod +x $CONFIG_STATUS
16275 ac_clean_files=$ac_clean_files_save
16277 test $ac_write_fail = 0 ||
16278 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16279 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16280 { (exit 1); exit 1; }; }
16283 # configure is writing to config.log, and then calls config.status.
16284 # config.status does its own redirection, appending to config.log.
16285 # Unfortunately, on DOS this fails, as config.log is still kept open
16286 # by configure, so config.status won't be able to write to it; its
16287 # output is simply discarded. So we exec the FD to /dev/null,
16288 # effectively closing config.log, so it can be properly (re)opened and
16289 # appended to by config.status. When coming back to configure, we
16290 # need to make the FD available again.
16291 if test "$no_create" != yes; then
16293 ac_config_status_args=
16294 test "$silent" = yes &&
16295 ac_config_status_args="$ac_config_status_args --quiet"
16297 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16300 # would make configure fail if this is the last instruction.
16301 $ac_cs_success || { (exit 1); exit 1; }
16303 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16304 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16305 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16313 prefix_save=$prefix
16314 exec_prefix_save=$exec_prefix
16316 if test "x$prefix" = "xNONE"; then
16317 prefix="$ac_default_prefix"
16319 if test "x$exec_prefix" = "xNONE"; then
16320 exec_prefix=$prefix
16323 full_var="$FROM_VAR"
16325 new_full_var="`eval echo $full_var`"
16326 if test "x$new_full_var" = "x$full_var"; then break; fi
16327 full_var=$new_full_var
16330 full_var=$new_full_var
16334 prefix=$prefix_save
16335 exec_prefix=$exec_prefix_save
16339 FROM_VAR=${includedir}
16341 prefix_save=$prefix
16342 exec_prefix_save=$exec_prefix
16344 if test "x$prefix" = "xNONE"; then
16345 prefix="$ac_default_prefix"
16347 if test "x$exec_prefix" = "xNONE"; then
16348 exec_prefix=$prefix
16351 full_var="$FROM_VAR"
16353 new_full_var="`eval echo $full_var`"
16354 if test "x$new_full_var" = "x$full_var"; then break; fi
16355 full_var=$new_full_var
16358 full_var=$new_full_var
16359 INCLUDEDIR="$full_var"
16362 prefix=$prefix_save
16363 exec_prefix=$exec_prefix_save
16369 prefix_save=$prefix
16370 exec_prefix_save=$exec_prefix
16372 if test "x$prefix" = "xNONE"; then
16373 prefix="$ac_default_prefix"
16375 if test "x$exec_prefix" = "xNONE"; then
16376 exec_prefix=$prefix
16379 full_var="$FROM_VAR"
16381 new_full_var="`eval echo $full_var`"
16382 if test "x$new_full_var" = "x$full_var"; then break; fi
16383 full_var=$new_full_var
16386 full_var=$new_full_var
16390 prefix=$prefix_save
16391 exec_prefix=$exec_prefix_save
16395 FROM_VAR=${datadir}/doc
16397 prefix_save=$prefix
16398 exec_prefix_save=$exec_prefix
16400 if test "x$prefix" = "xNONE"; then
16401 prefix="$ac_default_prefix"
16403 if test "x$exec_prefix" = "xNONE"; then
16404 exec_prefix=$prefix
16407 full_var="$FROM_VAR"
16409 new_full_var="`eval echo $full_var`"
16410 if test "x$new_full_var" = "x$full_var"; then break; fi
16411 full_var=$new_full_var
16414 full_var=$new_full_var
16418 prefix=$prefix_save
16419 exec_prefix=$exec_prefix_save
16422 if test $HAVE_DOXYGEN = "false"; then
16427 if test $BUILD_SPEC = "false"; then
16433 { $as_echo "$as_me:$LINENO: result:
16434 ------------------------------------------------------------------------
16435 $PACKAGE $VERSION: Automatic configuration OK.
16437 General configuration:
16439 Encoding support: ........... ${ac_enable_encode}
16440 Floating point support: ..... ${ac_enable_float}
16441 Assembly optimization: ...... ${cpu_optimization}
16442 Debugging telemetry: ........ ${ac_enable_telemetry}
16443 Build example code: ......... ${ac_enable_examples}
16444 API Documentation: .......... ${doc_build}
16445 Format Documentation: ....... ${spec_build}
16447 Installation paths:
16449 libtheora: ................... ${LIBDIR}
16450 C header files: .............. ${INCLUDEDIR}/theora
16451 Documentation: ............... ${DOCDIR}/$PACKAGE
16455 Type 'make' to compile $PACKAGE.
16457 Type 'make install' to install $PACKAGE.
16461 Example programs will be built but not installed.
16462 ------------------------------------------------------------------------
16465 ------------------------------------------------------------------------
16466 $PACKAGE $VERSION: Automatic configuration OK.
16468 General configuration:
16470 Encoding support: ........... ${ac_enable_encode}
16471 Floating point support: ..... ${ac_enable_float}
16472 Assembly optimization: ...... ${cpu_optimization}
16473 Debugging telemetry: ........ ${ac_enable_telemetry}
16474 Build example code: ......... ${ac_enable_examples}
16475 API Documentation: .......... ${doc_build}
16476 Format Documentation: ....... ${spec_build}
16478 Installation paths:
16480 libtheora: ................... ${LIBDIR}
16481 C header files: .............. ${INCLUDEDIR}/theora
16482 Documentation: ............... ${DOCDIR}/$PACKAGE
16486 Type 'make' to compile $PACKAGE.
16488 Type 'make install' to install $PACKAGE.
16492 Example programs will be built but not installed.
16493 ------------------------------------------------------------------------